Commit Graph
284 Commits
Author SHA1 Message Date
tmakin df1c423111 nx: devicesettings: Customize appearance
- new icon
- new banner
- adjust strings etc.
- show in all launcher

Change-Id: I615fdce801a45929e119ac895615d7c83f845871
2024-01-25 15:54:02 -05:00
tmakin 837547077c nx: devicesettings: Update fan profiles
Change-Id: I410c7c38869dfa9ee321f31e54ee02926035f7b2
2024-01-25 15:54:02 -05:00
tmakin 6ff57aca6a nx: devicesettings: Refactor dockservice
Completely redo DockService to:
- Work around NVIDIA hwcomposer issues
- Properly support docking
- Actually use set display preferences

Change-Id: Ic1ea73c113f291bcbe40ecd4ecca3288c88368b4
2024-01-25 15:54:02 -05:00
tmakin c48f464980 nx: devicesettings: Guard display settings for vali
vali does not have display out, and we will not support hw hacks
at the moment. This could change, in which case we will add env
in bootloader and set prop from cmdline for hdmi display.

Change-Id: I769b8ed1d1efcc4e4aae57697c632352c98eb55a
2024-01-25 15:54:02 -05:00
tmakin 8a7d0fb861 nx: devicesettings: Rename performance category
Change-Id: I6a688813e0e862fbe250ece1c5dfcda338808428
2024-01-25 15:54:02 -05:00
tmakin 0bcbb773ae nx: devicesettings: Add OLED panel preference
* Adds selection for Samsung OLED panel modes.

Change-Id: Ifd90e764deb8b481b81c04911e8680a4bb577ac6
2024-01-25 15:54:02 -05:00
de575ce4ac nx: devicesettings: Initial NX specific version
This is a squash of the following loosely kept history:

```
Rename device settings, override the common version, and build it

Change-Id: Ifff795f77ccc299d284eed56b050dfd59c8563a3

Set display resolution, disable HW overlays and unlock screen automatically when docked

devicesettings: Add power profiles support and cleanup scaling

Code cleanup and fix docked display size setting

devicesettings: Add DPI scaling

Always disable HW Overlays

Properly handle multiple external displays rather than hardcoding ID

devicesettings: Add fan profile support

Remove internal display dpi scaling

Add nice devicesettings icon

devicesettings: Fix atv scaling by restoring past resolution on undock

devicesettings: Fix icon colour and reset power profile on unlock

Expose DeviceSettings in leanback launcher

In the future a leanback variant should be made.

DockService: Updates to support ATV display handling

devicesettings: Add HWC wake rotation workaround

Remove HW overlays workaround from DockService and use prop instead

devicesettings: Add fan coefficient setting for perf profiles
Change-Id: Idf524a50ac96e1adc299b109be9319f6cc161cd9

Cleanup DockService

dockservice: update log statements

- Adds log statement on entering HDMI disconnected block
- Changes display index logging from error to information
```

Co-authored-by: Thomas Makin <halorocker89@gmail.com>
Co-authored-by: CTCaer <ctcaer@gmail.com>
Co-authored-by: Billy Laws <blaws05@gmail.com>
Co-authored-by: Aaron Kling <webgeek1234@gmail.com>
Change-Id: I0013b598431c7ec28e95de92343f4aa25b9ee5e5
2024-01-25 15:54:02 -05:00
Aaron Kling d088f2f0c3 nx: Import devicesettings from tegra-common 9c7025b
This is a baseline to modify

Change-Id: Ifaf5309ec0e2a15626571b667d567bc514082cad
2024-01-25 15:54:02 -05:00
tmakin 1148c4d66d nx: initfiles: Deduplicate overridden/nonexistant entries
Change-Id: Ic670d7fe13deafee03d3d48185ce61b9bc745451
2024-01-25 15:54:02 -05:00
tmakin b6aebdc198 nx: bt: set 200ms patchfile settlement time
For some reason bcm fw patchfiles take way too long to load, at
least on nx and some other reference devices. 200ms seems to be
the standard as per reference devices in bcm libbt, and this
rectifies bt issues with bcm bt on nx.

Change-Id: Ifccb1129f6ac2e183490a608fafc1b230d4ece0d
2024-01-25 15:54:02 -05:00
tmakin c8e8bed19d nx: rro: WifiOverlay: Enable associated_network_selection
* Associated net selection should be fine

Change-Id: I26bac99eafe61e8ebe05999c7fcaec333c0ac4df
2024-01-25 15:54:02 -05:00
tmakin 1f7ae2abc5 nx: bootfiles: Compile uscript inline
Change-Id: Ib2cdfa323d35c0e33a190b7b6b8bf720ba29806b
2024-01-25 15:54:02 -05:00
tmakin c985f15d27 nx: Import and build boot-files
* 00-android - Used to configure the hekate boot menu.
* *.bmp - Displayed by hekate in the boot menu.

Change-Id: I01016e166c5dfc4b5f50a4d1a81b8f5f3b47a8ae
2024-01-25 15:54:02 -05:00
Billy Laws 222288f085 nx: Add upstream brcmfmac support
Change-Id: I75d23cac951610f23c3a6f8f7a9e0dea573de243
2024-01-25 15:54:02 -05:00
c9d5a295bd nx: lkm_loader: Remove irrelevant modules/guards
* We don't care about other nv devices.

Co-authored-by: Nolen Johnson <johnsonnolen@gmail.com>
Co-authored-by: Thomas Makin <halorocker89@gmail.com>
Co-authored-by: Billy Laws <blaws05@gmail.com>
Change-Id: Ib2f7711c87df2b25d8497eebdb9e71975566a3ab
2024-01-25 15:54:02 -05:00
tmakin 3d240e46cc nx: hwc: Work around broken hwcomposer impl
NVIDIA's hwcomposer implementation has a number of crippling issues
which we manually work around.

* It completely breaks down when default rotation is anything but 0,
so the DTB has been modified so HWC treats the display as being in
portrait (natural rotation of the panel). SurfaceFlinger now handles
the default orientation settings (ORIENTATION_270) and lock screen
rotation has been enabled previously via overlay.

* It lacks proper display duplication, so pending an OSS docking
handler service, `stb_mode` has been enabled to attempt to replicate
stock Switch behavior. NOTE: at the moment, the 2nd display out shows
as rotated 1080p.

Change-Id: Ic7d46ed0c61c9aea44faf2e91bd102f9d7360fde
2024-01-25 15:54:02 -05:00
Nolen Johnson d9498d6ff0 nx: recovery: Set density to HDPI
* This fixes DPI issues in recovery.

Change-Id: Id0b79882ca6ae480e3e5eeec5ee9c764d783e6b5
2024-01-25 15:54:02 -05:00
Nolen Johnson 6c9de6e896 nx: Statically set USB ConfigFS properties
* These won't vary per model.
* Also alphabetize.

Change-Id: Ie4f57c469ff49fcde35fc63b3f91180320ec2340
2024-01-25 15:54:02 -05:00
Nolen Johnson 594315bd7e nx: Inherit proper shipping API via makefile
* We don't have multiple shipping API's, so set
  the lowest common denominator for blobs/kernel.

Change-Id: I69248774df49c42253ef967df057f467625bb5b1
2024-01-25 15:54:02 -05:00
tmakin 5147f676ae nx: Set secureos prop to default to sw gatekeeper
* We have no TLK to interact with here.

Change-Id: Icae71062246b448f483f63368aa6b2adf4760a42
2024-01-25 15:54:02 -05:00
Nolen Johnson 1c517026bb nx: Disable MSD audio
* We don't support it.

Change-Id: I528c5bb6a8589796e2ece6c6b6e5352c2c3da883
2024-01-25 15:54:01 -05:00
tmakin e18af28bdb nx: media: Tailor codecs
- update policy configuration based on latest aosp
- remove secure decode entries for nx

Change-Id: I1160e9e192059fc6a8428ed9e6161e719d3b0896
2024-01-25 15:01:11 -05:00
Billy Laws ea7bef805a nx: audio: Wire up headset input audio policy
Change-Id: I93739c853430437211f9be39ddd531b7d24fd68f
2024-01-25 14:56:46 -05:00
Nolen Johnson 878f432e06 nx: Remove wifi_scan_config
* Used for blake and nvwifi support, which we
  don't include on nx.

Change-Id: Idce7243ccbe9f380700680c5b2d47d51dfde1237
2024-01-25 14:56:46 -05:00
Nolen Johnson f126e4a849 nx: Inherit 7-inch dalvik-head instead of 10-inch
* We're closer to a 7-inch tablet.

Change-Id: I7961697b565fd415b0c87c49c62bb2fe65374a65
2024-01-25 14:56:46 -05:00
Nolen Johnson c043f8fde0 nx: Inherit loki_foster_e_common instead of loki_e_common
* We don't need `update_js_touch_fw.sh` which is the only
  thing housed in `init.loki_e_common.rc`.

Change-Id: I0025fc0fd7297af276964a73e54195cd30513be6
2024-01-25 14:56:46 -05:00
Nolen Johnson 6c436fd9d7 nx: keylayout: Remove unused pairing keycode
* 116 is the standard gpio keycode on tegra for the power button.
* Foster uses the power button to act as the pairing button.
* NX devices don't use gpio for the power button, instead wiring
  it to the max mfd. So it is safe to remove this line.

Change-Id: Ib9524e76277ec0d9d7c38e717f5486d7123535a1
2024-01-25 14:56:46 -05:00
Nolen Johnson e5c7e57635 nx: Remove button and keyboard backlight values
* We have neither.

Change-Id: I6ae419385f8aed386de1c8fd01831845b0bd55d3
2024-01-25 14:56:46 -05:00
Nolen Johnson c9ad01fab9 nx: Remove lid-wake support
* We have no lid.

Change-Id: I3fef14c8d7472009f391a3981b2d51b0b14e4da8
2024-01-25 14:56:46 -05:00
Nolen Johnson b9b546046b nx: Remove cellular support from overlays
* NX devices don't have cellular.

Change-Id: Ia8838f8afdb81eb2a7a9ca185319acbe6bba36a6
2024-01-25 14:56:46 -05:00
Nolen Johnson 28ea65e278 nx: Remove irrelevant power brick property
* Only used on Shield devices.

Change-Id: Ic91eb785d515ea19f8cc574a26506c25ff9744bc
2024-01-25 14:56:46 -05:00
Nolen Johnson e558c2d2e8 nx: Don't include NVidia Shield specific permissions or apps
Change-Id: I8430cef9a4c17822d5cba3257406d92163a40a6f
2024-01-25 14:56:46 -05:00
Nolen Johnson 958327ae98 nx: Don't build seperate recovery and OS kernels
* This is really only needed on devkits to allow
  recovery flashed to `LNX` as opposed to `SOS` to
  actually boot.

Change-Id: I238f356a0bee74ba2b6b60168d3b072ad490a796
2024-01-25 14:56:46 -05:00
Nolen Johnson 1296f86b45 nx: Drop nvcamera
* We don't need/want it.

Change-Id: I8478dd3f97d105f6e0443dee389a922789933ea0
2024-01-25 14:56:46 -05:00
Nolen Johnson 2d301eb17f nx: Remove aptX
* NX is not licensed for this feature.

Change-Id: If5c15d3e0666b6399fd197853b5fdb3b60d23fc0
2024-01-25 14:56:46 -05:00
Nolen Johnson 819888bfec nx: Drop prebuilt kernel support
* We have no compatible prebuilts to make use of.
* Make comment more accurate.

Change-Id: I1aa8ce48a251b2237d9d9edefcc53aa96d2bcc2f
2024-01-25 14:56:46 -05:00
Nolen Johnson d77796eebe nx: Remove support for EKS2
* Useless on devies without L1 keys, which `nx` devices
  clearly don't have.

Change-Id: I8e2cd27fbfe278bcc70eb35bff2d0a594b1c63f3
2024-01-25 14:56:46 -05:00
Aaron Kling 31b4eccfcb nx: Fallback to software gatekeeper/keymaster
* On nx, the tegra keymaster doesn't work, as we don't have
  a proper TEE to interact with.

Change-Id: Id71d2b02a6ea05a38928f5fe97306201513feb7f
2024-01-25 14:56:46 -05:00
Nolen Johnson 21438892c0 nx: Remove vbmeta handling
* NX has no use for a vbmeta partition, nor does it have one.

Change-Id: Ibba0d582b67ccc89ec12a6611db983cc99c6a58a
2024-01-25 14:56:46 -05:00
Nolen Johnson 8fe2b74fb6 nx: Remove 3.10 kernel conditionals
* All `nx` models use the 4.9 kernel.

Change-Id: I1eea3007a5658af6f6c733b2811d853ae4014efb
2024-01-25 14:56:46 -05:00
Nolen Johnson 13b922a5d6 nx: Remove convertible-port support
This is a squashed revert of:

Revert "Add darcy rro"

This reverts commit 6c4b0320ee.

Revert "convertiblehal: This is a device specific prebuilt, not common"

This reverts commit a72b1112d2

Only enable covertible port hal on darcy/mdarcy

This reverts commits 447e73d8a2

Add convertible port hal

Used by darcy and mdarcy to switch one of the usb ports from host
to device mode for adb.

This reverts commit c98dc6335b

Reason: We aren't darcy.
Change-Id: I0087736ad07c98828b821f8b53894420aacb9e9b
2024-01-25 14:56:46 -05:00
Nolen Johnson 39b16e7fa7 nx: Remove netflix configurations/permissions
This is a squashed revert of:

Revert "Import Netflix permissions and properties"

This reverts commit 6982b5917a.

Revert "Allow netflix to operate in doze"

This reverts commit c7241664f9.

Revert "Set nrdp modelgroup prop based on device"

mdarcy and sif have a different value than foster and darcy

Also restrict setting netflix props and installing configs to atv
targets

This reverts commit 22912ef909

Revert "Add netflix config overlay"

This replicates the stock configs

Based on example by luca020400

This reverts commit 3e0a9c33f6

Reason: NX devices do not support Netflix on Android
Change-Id: Ifafb5a6b81567bf177ba186518bf4b2c1d7ca14a
2024-01-25 14:56:46 -05:00
Nolen Johnson 803da5646e nx: Only build DTB files relevant to nx devices
* Remove DTB custom mkbootimg in the process, as it is
  only for mdarcy/sif DTB's.

Change-Id: I3aa19c267d290bb24a0ec05d2f4add03a820a70a
2024-01-25 14:56:46 -05:00
Nolen Johnson 1adef049d8 nx: Add support for tablet style builds
* `nx_tab` build target.
* Split TV/Tablet build characteristics and DPI.

Change-Id: I1c94647bb2e43fdc04a6f33249585a24a2e310bc
2024-01-25 14:56:46 -05:00
Nolen Johnson 10e028034b nx: releasetools: Remove vestigial ro.hardware check
Change-Id: I283c7f652f8da81fdfeb96d2411cb7ad9931a07a
2024-01-25 14:56:46 -05:00
Nolen Johnson 4515e10afe nx: releasetools: Remove fuse status detection
* All nx's are fused.

Change-Id: Ifdbaebf80eeade7f6494483f90cffff673ae492e
2024-01-25 14:56:46 -05:00
Nolen Johnson 3fdb058baf nx: Adapt to new hekate bootloader setup
* Reflect Hekate partition sizes.
* Reflect latest SWR bootloader (rev6).
* Mount `hos_data` and install firmware files on install.

Change-Id: Ib097e323773f914b5d88514459ff241d35598062
2024-01-25 14:56:46 -05:00
c03875880c nx: Intial rebrand from foster
* This is a tree for all Nintendo Switch variants:
  `odin`, `modin`, `vali`, and `frig`.
* `ro.hardware` will be NX on all variants with
   `ro.hardware.sku` being set per variant by u-boot.

Changes are as follows:
* At the moment the packaged DTB is only for `odin`, more to follow.
 * Note: We may make `modin`, `vail`, and `frig` device-tree-overlays
   on the `odin` base DTB to simplify things.
* Use darcy's thermal config as it's the most lenient, and is a same SoC STB.
* Unlike `icosa_sr` previously did, we will use the BCM HAL for BT over
  BTLinux, as A2DP is tested and verified, no need to deviate.

Changes that will require follow-up commits to build out:
* Update init to reflect nx's needs - will need more work to support devices
  other than `odin`.

Removals are as follows:
* Remove all non-nx device support files.

Co-authored-by: Thomas Makin <halorocker89@gmail.com>
Co-authored-by: Billy Laws <blaws05@gmail.com>
Co-authored-by: Aaron Kling <webgeek1234@gmail.com>
Co-authored-by: CTCaer <ctcaer@gmail.com>
Co-authored-by: John Smith <nemui3353@gmail.com>
Co-authored-by: langerhans <langerhans@users.noreply.github.com>
Co-authored-by: Nolen Johnson <johnsonnolen@gmail.com>
Change-Id: I9bab4d94c6e94a9c6e2a7cf04d16c4b76c0b6ac5
2024-01-25 14:56:45 -05:00
tmakin 773c8b96c7 nvphsd: Update based on rel-shield-r
Change-Id: Iec1a69d2d967b6963902fe211cc31672fe011954
2024-01-25 14:48:06 -05:00
tmakin c202c404d1 nvaudio: Remove broken nvaudio_fx.xml
* Broken even on stock, so basically a no-op.

Change-Id: If4e0593f6ecbc8ca1102e4b618a77a4f5774c504
2024-01-25 14:47:58 -05:00