Commit Graph

585 Commits

Author SHA1 Message Date
Pierre-Hugues Husson
7ef6e8769f Workaround broken OpenGL ES on old Snapdragon devices
Thanks @XavierWrz
2020-10-24 01:53:37 +02:00
Pierre-Hugues Husson
7ae4dc8425 Detect whether vendor has an hostapd by checking manifest 2020-10-24 01:53:37 +02:00
Pierre-Hugues Husson
b4deea275c Fix huawei touchscreen hal for treble app (used for glove mode) 2020-10-24 01:53:36 +02:00
Pierre-Hugues Husson
82a54a27ce Add android.hidl.manager@1.0 lib. This is used by treble app to detect hostapd presence 2020-10-24 01:53:36 +02:00
Pierre-Hugues Husson
084a5e669e Fix fingerprint gestures on huawei pie vendor 2020-10-24 01:53:36 +02:00
Pierre-Hugues Husson
daa9edcd5c Reset LD_PRELOAD. Mediatek puts annoying non-working libcoredump in there, ignore it 2020-10-24 01:53:36 +02:00
Pierre-Hugues Husson
054ec8dd01 Allow treble_app to control /dev/input/eventX (useful to enable dt2w) 2020-10-24 01:53:34 +02:00
Pierre-Hugues Husson
a484416c99 Fix fingerprint on Honor View 10 2020-10-24 01:53:34 +02:00
Pierre-Hugues Husson
f6900c679a Tell pe gapps we are a phone 2020-10-24 01:53:29 +02:00
Pierre-Hugues Husson
6a1bccc72b Simplify matching for lenovo dt2w 2020-10-24 01:53:24 +02:00
Pierre-Hugues Husson
551e1b0397 Add support for Lenovo Z5 dt2w 2020-10-24 01:53:24 +02:00
Andy CrossGate Yan
cbce8b2c2b Add privapp-permissions whitelist for PhhTrebleApp 2020-10-24 01:53:22 +02:00
Pierre-Hugues Husson
eeb6d035a9 Ignore swizzle to fix crash on Oreo PowerVR devices 2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
fec86428d8 Revert "Add qemu.hw.mainkeys as vendor legal API"
This reverts commit 9549703b4a.

Some vendors already declare this property as u:object_r:qemu_hw_mainkeys_prop:s0, so this commit prevents booting those
2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
b2612a092e trustkernel keymaster also requires whitelisted ro.product.brrand. This property has disappeared in Android 10, so set it for teed 2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
03ff840d7e Add support for pe gapps 2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
394b829b2d Set TARGET_GAPPS_ARCH 2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
b60efa57a3 Add qemu.hw.mainkeys as vendor legal API 2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
930e14013b Fix media.swcodec on a-only devices
On a-only, if init reads system/etc/init/mediaswcodec-treble.rc before
apex is available, init will see the /apex/...mediaswcodec file isn't
there and will ignore the process.
Kick-start media.swcodec service on boot when apex is ready
2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
a773b78ce5 Give lmkd ptrace capability, to bypass hidepid (AOSP uses readproc group, but I cant because of A-only) 2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
c1a8456084 Add asus-motor, to be called from cameraserver to control ZF6 cam 2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
4ae39bd367 Don't include sas stuff on non-sas target 2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
74895b6ba4 No longer needs hardcoded device, it is generated 2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
53776369f6 Revert "Fix mediacodec selinux context AOSP regression"
This reverts commit 46d65aac9b.

This segfaults secilc/init on pretty much all devices
2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
19c345be36 No need to run apexd bootstrap in su policy, it is already expected to be started by init 2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
a249c6a154 Fix mediacodec selinux context AOSP regression 2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
e722b85858 Copy O/O-MR1 behaviour of copying wpa/p2p supp config file 2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
e07f822501 Ignore device's /product partition on SaS 2020-10-24 01:53:21 +02:00
Pierre-Hugues Husson
e2d7e29a8a [vndk 26] Read liblog.so from vndk (has additional symbols required on huawei) 2020-10-24 01:53:20 +02:00
Pierre-Hugues Husson
a6a1f7c1f5 Force ro.vndk.version 26 when we detect vndk 26 2020-10-24 01:53:20 +02:00
Pierre-Hugues Husson
be34ac239b Fixed build for a-only (now called System-as-System) 2020-10-24 01:53:20 +02:00
Pierre-Hugues Husson
4e6384e759 Don't override LD_CONFIG_FILE (needed for apex with different config) 2020-10-24 01:53:20 +02:00
Pierre-Hugues Husson
33e03a825d Load zygote file (we remove the one from ramdisk in secilc) 2020-10-24 01:53:20 +02:00
Pierre-Hugues Husson
887849be62 New shiny thing broke adb again 2020-10-24 01:53:20 +02:00
Pierre-Hugues Husson
81d8ff3c0b (re)Add /bt_firmware. this is still required by 8.1 CAF devices like Razer Phone 2020-10-24 01:53:20 +02:00
Pierre-Hugues Husson
9c0a38e65b Various a-only fixes:
Create apex folder
Create mnt/storage/full
Create /product symlink
Start apex
Override zygote
2020-10-24 01:53:13 +02:00
Pierre-Hugues Husson
8243e75282 Allow tee to access rpmb (denials seen on Moto E5 preventing keymaster from working) 2020-10-24 01:53:13 +02:00
Pierre-Hugues Husson
86aa7e3ab8 also override 64b keymaster3device 2020-10-24 01:53:07 +02:00
Pierre-Hugues Husson
f51f4eb544 Remove vndk 27 config file 2020-10-24 01:53:07 +02:00
Pierre-Hugues Husson
1344e7c21a Use regenerated ld.config.26.txt (compared to automatically generated, authorize all vendor => vndk libs, and authorize vndk => runtime apex) 2020-10-24 01:53:07 +02:00
Pierre-Hugues Husson
489481fa6a Stop setting LD_CONFIG_FILE, with apex, multiple config files might be used. Instead use bionic overload from ro.vndk.version 2020-10-24 01:53:07 +02:00
Pierre-Hugues Husson
708ecb47da [temp] hardcode init.treble-environ.rc (how does that new build system work?) 2020-10-24 01:53:07 +02:00
Pierre-Hugues Husson
2e6d68e128 New products to derive from 2020-10-24 01:53:07 +02:00
Pierre-Hugues Husson
300cbd1128 Force binder32 2020-10-24 01:53:07 +02:00
Pierre-Hugues Husson
7a3a5d2740 [temp] Include treble_arm64_bvN adapted for Q 2020-10-24 01:53:07 +02:00
Pierre-Hugues Husson
df54dd1335 [temp] Set ueventd to permissive, needed to boot huawei, because it hits "unlabeled" file when trying to access some files in /firmware 2020-10-24 01:53:06 +02:00
Pierre-Hugues Husson
d28f36e873 fsck.exfat file context is now handled by aosp 2020-10-24 01:53:01 +02:00
Pierre-Hugues Husson
40e3ee55ad Allow building vndk tests 2020-10-24 01:53:01 +02:00
Pierre-Hugues Husson
cbb68ec897 Android 10 by default thinks the device cant have a lockscreen... 2020-10-24 01:53:01 +02:00
Pierre-Hugues Husson
016781fa98 tmpfs domain is no longer created by the macro 2020-10-24 01:52:50 +02:00