Commit Graph
367 Commits
Author SHA1 Message Date
tmakin 00627cc306 nx: firmware: Fix ATF build path
Change-Id: I57abf655220508394044ba7f6a9d1a9f2508b253
2024-03-13 09:36:40 +00:00
Aaron Kling ac2a2389aa initfiles: Remove some unsued properties
Most are denied by upstream policy, so just remove them to silence
errors.

Change-Id: I81f83a460705aac45cfdd9583e1457834df98463
2024-03-01 04:42:48 +00:00
Nolen Johnson fff9de46cb properties: Stop declaring EBPF support
* Property is dead, enforced globally.

Change-Id: I1de4b359b9031b37fd6f7b095c126f215d9f2123
2024-02-29 23:40:13 -05:00
Nolen Johnson 6649ca250f nx: tablet: Hide stuff we don't care about
* We have no cellular capabilities, so disable call volume,
  SMS, data saver, data toggles, and calls.

Change-Id: I7506f4ec96ade9524524baef335240beec26aa89
2024-02-20 22:21:01 +00:00
Nolen Johnson 56415cd5c6 fixup! nx: Adapt to common init changes
Change-Id: I2b803595fee045ae6c3f31e7c30ca4559b001e94
2024-02-18 18:09:22 -05:00
Nolen Johnson 70298bbdc3 nx: modules: Correct recovery USB module name
Change-Id: I68c8f1dab5ba6fd72104ac640451117517839652
2024-02-12 17:11:23 -05:00
tmakin 8b8183c6c5 devicesettings: Use SettingsLib themes
Now it does not look dumb on A13.

Change-Id: I69c66fc5c7ded8b26fb16e3284b0dc0e12afbeae
(cherry picked from commit 08de3c6a3518c1c342c61a68b88b8aff3b6e0ec3)
2024-02-08 07:03:18 +00:00
Michael Bestas d9d92a7a21 nx: Inherit common partition reserved sizes
Change-Id: I444ce2fcd37cdfa58d83a7e872dc547fb05a2a89
2024-02-07 12:08:51 -05:00
tmakin 294e59ea55 nx: Use dpi 186
Extensively tested--provides a fantastic experience for ~6-7" 16:9
tablets. Triggers the tab UI but is big enough that apps look good.

Change-Id: I0981b5d37d5ce68797f8e2343841a2534d22b632
2024-02-06 14:28:21 -05:00
Nolen Johnson 29ea88207e nx: Disable the GMS SetupWraith pairing wizard
* Users can still send the key event for pairing  on the deivce
  to open BT pairing - resolves all the complaints about
  not being able to use USB keyboards, JoyCons over serial, etc
  because SetupWraith prevents moving past the pairing wizard
  screen without successfully pairing a remote.

Change-Id: I23d5e455d52899aec069fa0897b684433566350c
(cherry picked from commit da4fcc4d7bf4ca6af14a48c1b6c0a87690b5d288)
2024-02-06 07:50:14 +00:00
Nolen Johnson 056f28d82a Revert "nx: Use minimal GMS if building with it"
This reverts commit 525c9b6d18.

Reason: We now have enough space for full GMS with dynamic partitions.
Change-Id: I7c3ab4c187b7284f5d03471531cd57238e6fd953
(cherry picked from commit 0bf0c81a31bf64c11b58be5b27ed3a57add2c9d6)
2024-02-06 07:45:28 +00:00
Aaron Kling 4a04554348 Remove recovery kernel defconfig
The main reason that existed was to allow fastboot booting a recovery
image on system as root bootloaders. Now that system as root is removed,
this is no longer necessary. This requires copying a few kmods to
recovery and loading them.

[npjohnson]: We dropped the recovery defconfig long ago, but lost
these modules in the process here.

Change-Id: Iaac438c89fbda4e9c3c8d66e5734b94916984d92
2024-02-06 07:35:52 +00:00
Nolen Johnson 1d66134d3a nx: Adapt to common init changes
* As of https://github.com/LineageOS/android_device_nvidia_foster/commit/2594eafd1cb09c8d8f36310ce053268d11cbb4cb.

Change-Id: Icf52bdc42940147cc65425fe5b78f9e0f461ddc1
2024-02-06 02:32:54 -05:00
LuK1337 98689dc4b8 nx: Bump vintf target-level to 4
ERROR: No such file or directory: Cannot find framework matrix at FCM
version 3.: No such file or directory

Change-Id: I5ecb40d69834fdef90555cb8fecad51a5edda826
2024-02-06 02:32:49 -05:00
tmakinandTim Zimmermann f8b5067dcc nx: Flash dummy super on clean install
Reference: https://github.com/jjpprrrr/device_xiaomi_sdm845-common/commit/03191c60c738c84b99bcc67e0c3856b4e9087876
Co-authored-by: Thomas Makin <halorocker89@gmail.com>
Co-authored-by: Tim Zimmermann <tim@linux4.de>
Change-Id: Ida93bd051185aeb22feba61d5aa5e5f6c0ec2c38
2024-02-05 00:57:43 +00:00
tmakin 14af49d754 nx: Pretend to be launched to dynamic partitions
* We are aren't launched with Android at all to, but
  our partitions were origianlly set up to match
  foster, as it is our closest hardware counterpart.

* Those partition sizes are now to small to fit
  almost any form of GMS.

* The fact that users have to exploit their console,
  run a custom first stage bootloader (Hekate), and
  applications bootloader (u-boot) that we control
  means that instead of retrofitting dynamic partitions
  we can just _launch with them_ (as we have yet to ship
  this device).

* Treat this device as if it has always had dynamic
  partitions and let Hekate set us up to reflect that.

* Do away with SAR in the process, as Hekate can turn
  that off.

* Nuke MDA, we don't support hardware backed encryption
  anyway, so it doesn't make any sense to house.

Reference: https://github.com/CTCaer/hekate/pull/922
Change-Id: I1e5d8c309d08559873ea3c93ac5b4b6e197b528e
2024-02-05 00:57:38 +00:00
tmakin 66484b0291 devicesettings: update to sdk 33
Change-Id: Ibb5430c653eb56ae2785d9fac91a49cd1c9fddc5
2024-01-29 13:43:29 -05:00
Aaron Kling c72354658b audio: Remove a2dp in include from policy
This is no longer used in Android 13

Change-Id: Ifcd2e5b2bbf391674d4b56e5b7d7051545a23642
2024-01-29 13:43:29 -05:00
tmakin 43df23605b nx: devicesettings: Remove updateRotation
Should not be needed, also unsupported on T+

Change-Id: I20447df3ce7cb5005470fec03d61ea947ac50c03
2024-01-29 13:43:29 -05:00
Jarl-Penguin 1d3626e1f3 nx: Ship full recovery image
* Ensure users are always on the latest recovery image

Signed-off-by: Jarl-Penguin <jarlpenguin@outlook.com>
Change-Id: I033ac4442622b737639d678993daf602a89f9bac
2024-01-29 13:43:29 -05:00
Tim Zimmermann be5097fe23 nx: Inherit non_ab_device.mk
* This is required to build applypatch for updating recovery

Change-Id: I38053691f7724b5d6c30159c410d5d04ac136180
2024-01-29 13:43:29 -05:00
tmakin 3aba489f08 devicesettings: Switch to Blueprint
* Needed to make build system happy with what we link.

Change-Id: I6549c681e1c41a3b9d76dc04b75a25c946384bd2
2024-01-29 13:43:29 -05:00
tmakin b22d2237ef nx: Convert BCM firmwares to cp commands
* Google broke our ability to have targets with commas.

Change-Id: I298942d6a3cc450f48a6caca90b251b6085313f1
2024-01-29 13:43:29 -05:00
Nolen Johnson d452398bb4 nx: Account for vendor restructure
Change-Id: I880c51ec4bb435f086c36639bd4a036fd243ce1f
2024-01-29 13:43:29 -05:00
LuK1337 4142de8f36 overlay: Set a default Settings.Global.DEVICE_NAME
Change-Id: I310c1ffc581b72653783d1093d9e7ebde544bb16
2024-01-29 13:43:29 -05:00
Aaron Kling 42133b1d6d modules: Fix up names to match filenames
Initial list was copied from lsmod, which converts all dashes to
underscores. While this is valid board modules syntax, it makes build
time existance checks difficult.

Change-Id: I0db696b1c74cb654bc4c074ba1ff6440778287be
2024-01-29 13:43:29 -05:00
Aaron Kling 794230d2cd Move pci-tegra kmod load to lkm target script
cypress-fmac depends on this

Change-Id: I741796e6e657fb1f8fb753a8ea98b8c3b2143143
2024-01-29 13:43:29 -05:00
Aaron Kling 1c467699a7 Fixup audio policy for new schema requirements
The global configuration tag is now required, so uncomment the section
set the param to false.

Change-Id: I322e79b853ae65de235ea82cb818b431abcd7241
2024-01-29 13:43:29 -05:00
Nolen Johnson e80e7a2074 Move bluetooth name to bluetooth.prop
* Sadly in PRODUCT_PROPERTY_OVERRIDES this
  translates to 3 seperate props, example:

```
bluetooth.device.default_name=SHIELD
Android
TV
```

* The build system flips out when quotes are
  used.

* Can't move whole device to *.prop because we
  ifdef so many of these in tegra trees that it
  would be disgusting.

Change-Id: I4c611c64652d28f65505382db7b3e08bc6f3fabf
2024-01-29 13:43:29 -05:00
Aaron Kling e9fcb8d869 Disable FDE
Android T removed support for fde

Change-Id: If92ba08aa411d4f490db6ca7bfe4184b784c91de
2024-01-29 13:43:29 -05:00
Nolen Johnson 38aa4c57e0 nx: Explicitly disable AVB
* This allows infra to sign successfully, I hate it, but it builds,
  boots, and works fine enough as a workaround.

* The underlying issue is that this flag causes avbtool args and location
  to be set in `misc_info.txt` whereas before it was not.

Change-Id: I7bdf237ec30d692c7d8b5c626a6e761e2c1a2593
2024-01-29 13:43:29 -05:00
Nolen Johnson ae5fe736a2 nx: initfiles: Fix jc_setup delaration
Change-Id: I134d215f8958ecb9cd3f6b78456a5d34d4ab689c
2024-01-29 13:42:44 -05:00
tmakin 2ca4c3b2b4 nx: Use common atf target
* Introduced in 19.1

Change-Id: I3f1132c45ea0392ef31b0139753344267c017bf8
2024-01-29 11:58:41 -05:00
Aaron Kling f73490fc10 Convert vendor makefile inherits to includes
Some variables that need checked in the vendor makefiles are being
purged by the inherit macro.

Change-Id: I3942e953ff0fb3adfaabc7189a92bff92818de0d
2024-01-29 11:58:41 -05:00
Aaron Kling 607c394c66 Remove twrp build support
Change-Id: Ifeb70c254ac21aa60311fec50d0194bdcef80e57
2024-01-29 11:58:41 -05:00
Aaron Kling 76d396dda5 lkm: Use insmod for cypress_fmac
Since this is built out of tree, it is not included in modules.dep,
thus modprobe does not work properly.

Change-Id: I3071e641040d777f82f6f42f136540e0498b33a1
2024-01-29 11:58:41 -05:00
Aaron Kling 4876553599 Build kernel and boot stack with gcc 9.3
Change-Id: Iaa26953515e46f655f64ccbfaa3afe79eaf79dd1
2024-01-29 11:58:41 -05:00
Aaron Kling fa691ac954 Remove pbc references
This fails to initialize even on stock rel-shield-r

Change-Id: I153062cbbb5284b10f9165c1343b9788e3831bbc
2024-01-29 11:58:41 -05:00
Aaron Kling da74009f89 modules: Add devfreq pod scaling governor
Change-Id: Ib196a0d575cdb05a73fc9de6518a7f79ab96ab6b
2024-01-29 11:58:41 -05:00
Aaron Kling ba8c478824 Switch to modules.load for lkm
Change-Id: I1a44f93747c37db7faea2a54cce90bfdbdb7ae1c
2024-01-29 11:58:41 -05:00
Chenyang Zhong 66cd5b36e1 nx: Ship cgroups.json and task_profiles.json
Google's prebuilt cgroups.json and task_profiles.json for products
launched with previous API levels only covers
ro.product.first_api_level >= 28. [1]

SHEILD Android TV was launched with Lollipop (API level 21), so
schedtune and task groups are completely broken. Since the system
also checks /vendor/etc for vendor profiles, make a copy of
cgroups_28.json and task_profiles_28.json and ship them to
/vendor/etc. Profiles for previous API levels are all the same
anyway.

Test: boot and check /dev/stune/

[1] system/core/libprocessgroup/profiles/

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: I65fe622a804a720a97b43d8092cc8a37703f4b64
2024-01-29 11:58:41 -05:00
Aaron Kling 669a726748 Use gcc for kernel build
Lineage has switched to clang for kernel builds by default. The
nvidia 4.9 kernel does not build with clang.

Change-Id: Ie00632002a532a7a090d50c1951575c361244f7d
2024-01-29 11:58:41 -05:00
Aaron Kling 8f1144ee50 Update releasetools for S
The metadata struct no longer contains a field that was being set.
That field appears to have not been used for anything anyways.

Change-Id: Ie97b446efa376ec48eb6b3d3ba193b9ae7011cf0
2024-01-29 11:58:41 -05:00
tmakin ff3242a162 nx: dockservice: Refactor mode setting
This resolves blackscreen on first dock and generally
improves docking stability and res scaling.

Change-Id: I3adeaba93584d52dad036195d60f06e66324394f
2024-01-29 11:58:41 -05:00
tmakinandAaron Kling f9ca85df02 nx: Add leanback brightness slider
Uses Settings API and SeekBarPreference to allow proper brightness
setting on ATV.

Co-authored-by: Thomas Makin <halorocker89@gmail.com>
Co-authored-by: Aaron Kling <webgeek1234@gmail.com>

Change-Id: Iccdc098414bd143080f9907a99e26458ec617072
2024-01-29 11:58:33 -05:00
tmakin ebeee1d3b5 nx: devicesettings: Add leanback fragment
Change-Id: I58c06a99446767333b92b80df3bb0a4607215cc7
2024-01-29 11:54:10 -05:00
tmakin cc708f6e45 nx: devicesettings: Refactor and clean up
- Migrate static prefs to xml
- Migrate static arrays to resources
- Migrate to API 30
- Stop using deprecated APIs
- Migrate to AppCompat
- Fix formatting

Change-Id: Ie9b7ddce51ac7c6e0575eb051d76cb98ad46fa2c
2024-01-26 11:53:38 -05:00
tmakin 9979bdb8df nx: power: rework power profiles
Change-Id: I33495393f8503ed69caf1ab7769f8b80b1112c82
2024-01-25 15:54:02 -05:00
tmakin 5720f8a02f nx: releasetools: improve bootloader flash
Change-Id: Id5f6fb2ba1daa3b5724dddf2074197983f8b404c
2024-01-25 15:54:02 -05:00
tmakin 1792e1fbb9 nx: releasetools: don't flash ini
It's needed to boot anyway

Change-Id: Ie38d100b6eb0beab265e901cacc9d87be63d6239
2024-01-25 15:54:02 -05:00