Commit Graph
497 Commits
Author SHA1 Message Date
Nolen Johnson e626f797ea nx: Adapt to libbt migration to blueprint
Change-Id: I1acc5a1ed5eb18608980c02af719fcc08d0cfeeb
2025-09-17 06:21:59 +00:00
Aaron Kling b92e042d1b Convert TARGET_TEGRA_KERNEL to TARGET_KERNEL_VERSION
There was no common kernel version flag when this was first added, now
there is. So change all references to use the common name.

Change-Id: I661d558df18e7055b2f83424c8987dfa8a83bb19
2025-08-26 00:06:00 -04:00
Nolen Johnson c23c4e2f4d nx: Fix default fingerprint setting
Change-Id: I26d1b373ca3c352554b9aa3623486a92abd30375
2025-07-28 20:43:36 -04:00
Bruno Martins 4f580a1cf9 nx: Set vendor init lib via soong config
Change-Id: I8f7e6b987bee58dbf09ca9ad7cfd5a7e99e19c3b
2025-07-23 02:06:37 -04:00
Nolen Johnson 357517637f fixup! Partially revert "nx: Update fingerprint to 9.2.0"
Change-Id: I4bfc2d886882bcee70a7a0629f69bc81b46a9dea
2025-06-23 03:40:58 +00:00
tmakin a131ab0feb Partially revert "nx: Update fingerprint to 9.2.0"
Reason for revert: Breaks GFN to set to foster_e.

Change-Id: Ie457f80c10bc52dd6fb4ced38bf133cc308a3fcb
2025-06-22 23:33:56 -04:00
Michael Bestas 99594f7725 nx: overlay: Remove deprecated networkAttributes
Change-Id: Ieda947e283cde11cf74a01dc1b438e1deeb902c9
2025-06-16 22:57:55 -04:00
Nolen Johnson 847415a15b nx: Update fingerprint from 9.2.1
Change-Id: I0130fe6d470d4516f30c36a53cf59cc9b5764018
2025-05-07 20:51:41 -04:00
tmakinandNolen Johnson eb832942c1 jc_setup: update for 15
- Add back service
- Add HID attributes
- Add key attributes
- Add sepolicy
- Associate the script w/ the bluetooth group to
  avoid DAC overrides

* Sadly there is no clean way to have a vendor HAL
  accessing mnt_vendor_file to write to bluetooth
  configs @ /data/misc w/o triggering neverallows.
* Not gonna enable neverallows for for this, so just
  making the domain permissive until/if someone cares.

* Note: MAYBE a vendor HAL could read it from mnt_vendor_file
  and expose it to a system_ext app, which then could use the
  undocumented auto-pairing API to do this, but man, IDC.

Co-Authored-By: Nolen Johnson <johnsonnolen@mgmail.com>
Change-Id: Ibc092c1b60e886e1089bdea1014d0c606e0365d0
2025-04-25 23:59:33 -04:00
tmakin f1ddf3d100 jc_setup: update bash path
Change-Id: I05b3b4e57969f3343f56493227f73f8dd4ff96f9
2025-04-21 22:55:10 +00:00
Nolen Johnson 7163db3f03 nx: Don't build resize2fs_static
* We don't use this after dynamic partitions.

Change-Id: I3febe149a4ae5ee32b77f93870f310b3f27b48eb
2025-04-16 17:58:01 -04:00
azkali 54ae156e4b uscript: improve ddr200 detection and enabling
Change-Id: Id7560735b1140fe3d6e99cfff352d62f04481b7e
2025-04-14 00:33:12 +00:00
tmakin e382abde29 fixup! nx: allow bootloader-passed oc
Tell DockService to allow perfmode scaling in handheld when prop
passed by bootloader.

Change-Id: I1174e89717cca8b596418a9662bf194f5d220a32
2025-04-08 04:33:56 +00:00
tmakin 43d30991c7 nx: allow bootloader-passed oc
- Update uscript to check oc, max cpu and gpu freqs
- Update init to poke node to allow max scaling

Perf mode on perfmgr already allows full kernel scaling, so this
will just allow that to rise to max.

A better impl later may involve editing the json to have higher
game profiles etc, but for now this is more than fine.

Change-Id: I669fa523944dc0a99c2c9d6a6360593ee0a4bd8c
2025-04-01 20:52:22 +00:00
Nolen Johnson 43b4abc90c nx: Include intel sensors-iio namespace
Change-Id: Icd5edb80afb7eea1b4d246aba1fc399f03e561f3
2025-03-31 14:03:22 -04:00
tmakin dfd251ad63 nx: only build nx power rc if cpl enabled
Change-Id: Ia484dba2638c06aac8c1bdb18d261b2e99a80c28
2025-03-12 15:50:21 +00:00
tmakin e103676281 nx: up switch lite dpi to 192
Max with landscape supported. Lite is way smaller.

Change-Id: I90f9702701ad9cfac5492787baf5799268d07064
2025-03-09 02:23:33 +00:00
Nolen Johnson 4a4f46d7a5 nx: Set surface flinger properties
* Pulled relevant ones from modern QCOM.

Change-Id: Icdca52d9a0dba44170b81286fc5bb398d25d95b3
2025-03-09 02:17:10 +00:00
Nolen Johnson b953d8c717 nx: chown DC node for devicesettings
* Broke turn screen off while docked toggle.

Change-Id: Ide62a1d0ca00d8f10bdfaeec181008f5fd755837
2025-02-19 23:29:27 -05:00
tmakin 4f6079836b nx: devicesettings: refactor and add joycon settings
- Refactor common fragment bits into new file
- Toggle analog trigger emu
- Full Nintendo controller button remapping
- Don't show OLED prefs on non-OLED
- Optimize gets and data loads

Change-Id: I331977aea35f7097cad0a8c2a644207a9dac6c03
2025-02-14 12:52:37 -05:00
tmakin 6fe016e60e nx: migrate to perfmgr OSS power HAL
- Exercise greater control over hinting, power profiles, specific
  behavior, etc.
- Better support in the future vs maintaining phs
- Totally nuke nvcpl to remove variables in display handling and
  power profiles

Change-Id: If9076248fcacfdc8165bd814ad78786134997b97
2025-02-14 12:52:37 -05:00
tmakin d33f7e37f9 overlay: add power profile and map
Change-Id: I3da47fddd00ac173771132473aa254db161a7274
2025-02-12 20:26:21 +00:00
tmakin 399806b7cb nx: vintf: add compat matrix and reorg
- move manifest to folder
- add compat matrix entry for joycond stable aidl

Change-Id: Id02ee8d8424b609f42b9500d1c506db70c4a807e
2025-02-12 20:26:08 +00:00
Nolen Johnson bf154979e9 nx: sepolicy: Let dockservice find services it uses
Change-Id: I58b3b052896414201b4c5ef5e8f7834ca5a38acd
2025-02-12 20:25:51 +00:00
Nolen Johnson 2b1fadbc0d nx: sepolicy: Move joycond property labels to its repo
Change-Id: Ie534e944c004cdebd33b72491684f012728f3252
2025-02-12 17:17:30 +00:00
Nolen Johnson 0d678776fe nx: Update fingerprint to 9.2.0
* Also stop overriding foster FP with a weird hybrid, it
  breaks things that require GMS certified FP on ATV, and
  we have a standing exception for AML devkits (not shipped
  with Android officially) to use "latest platform reference
  device FP", so doing that using foster_e.

Change-Id: I3a5ab78a91f48b4fddced5395d7f7316e615cc63
2025-02-09 16:39:50 +00:00
Nolen Johnson d1f61417d8 Uprev vendor security patch to match 9.2.0
Change-Id: I3e0501fcceea90f663ec490aa06ded233261b6f6
2025-02-09 16:39:50 +00:00
Nolen Johnson 69a1d13d73 nx: sepolicy: Interact with hwservicemanager correctly
Change-Id: I6ecd6eb23b8257cc63934bd6226f7a038424e9a7
2025-01-21 17:47:00 -05:00
Nolen Johnson f541dc12ed nx: build: Fix bootloader rules for target-files target
Change-Id: I98e348e1724d0a2e8548759e8e6f3c896cbd6942
2025-01-20 17:12:56 -05:00
Nolen Johnson b72f1d8eb5 nx: Fetch nx HOS FW and bl33 blobs using external source type
Change-Id: Ifbfcfd9c60ea759d6366dcf5cd5d09341b42d65c
2025-01-11 00:48:01 -05:00
Nolen Johnson d06e04e1c3 nx: Copy NVRAM per SKU
Change-Id: Ic65d55d1d85d479da63ec933473b39fc85c1c7ee
2025-01-10 15:20:22 -05:00
Nolen Johnson 94baa3e14c nx: Move init.lkm.rc to copy-files
Change-Id: I742fce5a9a50de9dd5c35ecfac7404eec45f0733
2025-01-10 15:20:22 -05:00
Aaron KlingandNolen Johnson 6e973e6835 vendor: Use copy-files for firmware targets and bootfiles
* Don't even copy bootfiles, just stuff them in RADIO for
  infra to grab.
* Kill top level Android.mk while we're here.

Co-Authored-By: Nolen Johnson <johnsonnolen@gmail.com>
Change-Id: I7ebe10120133df83d95f6b182f89ea3149bf60c8
2025-01-10 15:20:22 -05:00
Aaron KlingandNolen Johnson b42da2fd3f Move bootloader build rules to build tasks
Co-Authored-By: Nolen Johnson <johnsonnolen@gmail.com>
Change-Id: Iaa2d4cbfcb094b962a1af4528ade6e8e201fb49b
2025-01-10 15:20:22 -05:00
Aaron Kling 63153b162b vendor: Move public libraries to tegra-common
Change-Id: I03370a071b40e12c72c96b17510abea193351f07
2025-01-09 18:21:57 -05:00
Nolen Johnson ccb3179a68 nx: sepolicy: Move most joycon sepolicy to joycond repo
Change-Id: I31849a6fac9fe92a9df95d76e94b37f7ad9fefeb
2025-01-01 18:59:12 -05:00
tmakin 4fc70f7291 nx: include joycond sepolicy if present
Change-Id: I217f7d0eb4c4777c4419240dd6f08dcbe3a4c332
2025-01-01 17:45:14 +00:00
tmakin b18d1a7b5d Reapply "nx: Upgrade to new AIDL joycond"
This reverts commit 3c04625a26.

Change-Id: If64bc65eccbffee94e1b648f40fb7e4186e8adde
2025-01-01 17:44:44 +00:00
tmakin 67911b6d99 nx: powerhal: remove useless xml
Change-Id: Ie1450957bf1ddda688561648dbee6498a33c36fd
2025-01-01 17:44:44 +00:00
Nolen Johnson 00c6c20499 nx: sepolicy: Allow hal_health_default to access sysfs
* Ew but JoyCon re-attach isn't labeled in time.

Change-Id: I7239e8f6ab9d0aa63263b1f4b8941e1a684c290e
2025-01-01 17:44:17 +00:00
Nolen Johnson 161cdb09aa nx: sepolicy: Label new vendor joycond properties
Change-Id: I3abbab8205df9b4440598b209f951f63d9a68d01
2025-01-01 17:43:57 +00:00
Nolen Johnson e98c608435 nx: sepolicy: More sepolicy
Change-Id: I00608fe126b8c7ccb42933a53173fbbf0922db56
2025-01-01 17:43:22 +00:00
CTCaer 618307b822 uscript: match L4T in function and style
Enhancements:
- Allow invalid panel
- Add popular clone panels
- Add check for L4T-Loader version
- Add sanity check for super partition
- Add ddr200_mode option
- Apply USB3 recovery WAR unconditionally
- Misc. logic fixes
- Add comments

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

Change-Id: I7bd9d7204d172bb13dedda160e8385a6411b2206
(cherry picked from commit f1705ff1520b1376677e32943150ce9060e7d271)
2024-12-26 17:57:24 +00:00
Kelvin Zhang 23411a7ac1 nx: Explicitly set as an non-AB target
We will be changing AB to be the default, existing non-AB targets
need to explicitly set AB_OTA_UPDATER to false

Test: th
Change-Id: I86a76296937a6abab1b4495cd66a35144348aafd
2024-12-12 05:34:50 +00:00
tmakin a73113a66f nx: Opt-out of forced 1080p scaling
* This has not been mandated by Google since S and since they fixed
  density scaling, UI looks better with properly scaling interface.

Change-Id: Id1eb10b3f0c2b03ac6401bdfb00ba68036de91ef
2024-11-17 20:53:11 +00:00
Nolen Johnson 461cc984f3 nx: Stop telling the user if USB3 is enabled
* We enable it by default per wiki, so don't
  confuse the user with something that could
  be taken as an error.

Change-Id: Ibbfe236481a057729f6f65cfb563a7ea73a611ff
2024-11-11 21:38:26 +00:00
Nolen Johnson 30df168f83 nx: Flash bootloader unconditionally
* We can't update boot.scr without updating the prebuilt BL33,
  which sucks. So, unconditionally flash.

Change-Id: I9c4267d03e8743ca73ef86c4ead6e838dc98af6b
2024-11-11 21:35:36 +00:00
Nolen Johnson 910d42854d nx: Correct if logic in uscript
Change-Id: I27d76534d7fe0a4502156993d246334c3d910699
2024-11-11 21:13:52 +00:00
Nolen Johnson 941897b035 nx: Fix joycon_ini parsing error
* Check isn't needed really, doesn't return 0.

Change-Id: I4947cb98e100d73a1fa8ffed570efb1b82c71db3
2024-11-11 19:23:13 +00:00
tmakin e4541322f5 nx: rework bcm makefile again
We really only need one.
TODO: see if Nintendo ships per-sku ones at some point? Doubt it.

Change-Id: Ia3a67729bd89cb08651c8c0804e1f24fc649d7d9
2024-10-31 15:34:54 -04:00