- 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
- 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
- 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
- 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
* 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
- do not flash logos (users often replace)
- do not suppoort upgrades from older versions (didn't work
anyway)
- properly set new uboot rev
- use MUCH more readable structure
Change-Id: I18390cb5e7d50419d933baa78363bcec8324cbef
* CTC's 2018 u-boot is more feature-complete for nx for now.
* We may revisit this later.
* This remediates issues with RAM carveout, clocks
(on erista models), mod chip issues (on mariko models),
and brings us almost in-line with L4t releases for nx.
Change-Id: I622cc67acb543b6ac54c8ee7a585d88e8066606c
* Reduce crashing and other issues resulting from density
disagreements. Also, AAPT should not be set as per cuttlefish
and newer Pixel devices.
Change-Id: Ibca27b4a77c84f2e57a534da10c278c7d0f0cf91
* We will use existing disable infra instead of idc disable. In the
future we will do this based on vid/pid, but AOSP ignored the
change and no one cares enough to port it.
Change-Id: Ic09688a180502274aa5c56065b8e943227753cc3
* As per cuttlefish etc. and cypress/nxp reference, set overlays for
MAC randomization support. Also enable
WIFI_HIDL_FEATURE_DUAL_INTERFACE and
WIFI_AVOID_IFACE_RESET_MAC_CHANGE as per cypress/nxp reference.
Change-Id: I5ad1539e400d9f79fce641faf284246743b08915
Now it does not look dumb on A13.
Change-Id: I69c66fc5c7ded8b26fb16e3284b0dc0e12afbeae
(cherry picked from commit 08de3c6a3518c1c342c61a68b88b8aff3b6e0ec3)
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
* 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
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
- 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
Based on xml parsing code in NVIDIA power HAL. This allows
JoyCon proper sleep functionality to work.
Change-Id: If4d50b43ac592a22dfc02d3a13a711ac68c0b227
Set up in polling mode--trigger and event mode will need testing. Will
also require testing for generalized calib profile for max range.
Change-Id: I8e58cac0288ba8b53f3451c239c15c0a906db8d4
It's bad UX for the default res to be awful. Now, if a pref
is not found, dockservice will default to MAX_1080P_60HZ.
Change-Id: I8900f3d0819db1afcd34454cfea9b0177f9db89d
The small ~7" 16:9 displays need smaller, higher res elements,
without making TVs look terrible when docked (without forcing
wm-based dpi changes). Use 214 (~tvdpi) for density and use tvdpi
assets on atv and xhdpi assets on mobile.
Change-Id: I1d5847ef5dbb11a83e403788f4f8d757b0ec55cd
* Inputs are duplicated because the CEC HAL directly processes them while
the RC device is handled as a standard input device. This disables the
latter to stop the duplication.
Change-Id: Ifa07683b4f0509e8027630a15af6e0dbd1636452
This works together with a change to U-Boot to allow kernel and
userspace HDMI-CEC functionality to be disabled manually (or
automatically on vali). Now users who do not care about CEC do not
have to suffer from the CEC volume UI platform bug.
Change-Id: I34a89c78052193c38dc8217841a816615f135fb2
* Again, we do not plan to support vali display hacks for the
time being. If so, we will add env and do it that way.
* filter-out CEC for vali because common trees assume that unified
devices will all support CEC or none.
Change-Id: I1df0d895de870a3ebd76825fe278997e83435922
For optimal nx wifi/bt performance we want:
- nx dumped bt patchfile for tuning
- mdarcy wifi firmware for p2p support etc.
- mdarcy clm_blob for country mapping
- nx dumped wifi nvram with patched ccode for tuning
(copied to all skus)
Change-Id: I854756c89cf8b367d3f6604183f87e346689737a
We are migrating from coreboot to an ATF loader
built into hekate-ipl. This will load sc7 bins etc. along
with ATF (bl31) and U-Boot (bl33), which will chainload
kernel (as is currently the case). This also migrates to new
R2P method/driver as the new loader/ATF will stash a
copy of the bootloader in RAM so we do not have to
load a hekate payload.
Change-Id: I11e4a1810829ab3ac4c8830fd03afd6054e40bad
Completely redo DockService to:
- Work around NVIDIA hwcomposer issues
- Properly support docking
- Actually use set display preferences
Change-Id: Ic1ea73c113f291bcbe40ecd4ecca3288c88368b4
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
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