Commit Graph

31 Commits

Author SHA1 Message Date
Pierre-Hugues Husson 0a0d3a10b2 Add persist.sys.phh.restart_ril to automatically restart MTK RIL. Also toggling it on will restart QC RIL 2020-12-29 20:27:25 +01:00
Pierre-Hugues Husson 843c0ec80a Add persist.sys.phh.backlight.scale to control brightness scale from treble app 2020-12-06 00:58:01 +01:00
Harshit Jain dcf70913db
treble: vndk: restart the surfaceflinger
* not surfacecflinger
2020-10-04 12:30:36 +05:30
Pierre-Hugues Husson 78f5247606 Fix A2DP on some Qualcomm Q vendors by disable A2DP offload harder
Also there is a mismatch between framework which expects property to be
false/true and treble app setting it to 0/1
2020-10-02 20:04:12 +02:00
Pierre-Hugues Husson 0ced2d3486 Fix dynamic ro.sf.lcd_density being ignored
On Qualcomm devices, ro.sf.lcd_density is set by a shell script in
/vendor, which will be called after surfaceflinger is started.
Thus surfaceflinger won't read any value, and will consider the default
value which is 213.

To fix this, restart surfaceflinger when ro.sf.lcd_density is changed.
2020-09-27 20:00:44 +02:00
Pierre-Hugues Husson 0359b91442 Add persist.sys.phh.vsmart.dt2w for vsmart double-tap-to-wake 2020-06-01 19:29:55 +02:00
Pierre-Hugues Husson 0ae6b5b05c Add properties to use vendor audio policy, and to disable audio effects 2020-05-03 18:05:30 +02:00
Pierre-Hugues Husson 62dcebdd7f Don't use exec_background, it doesnt exist in a-only oreo devices. Not being background is okay here 2020-04-28 16:55:40 +02:00
Pierre-Hugues Husson a8c3c6124b Add persist.sys.phh.no_vendor_overlay property to ignore vendor overlay 2020-04-05 00:55:24 +02:00
Michael Cheah 1db7e1e1fe
Move Oppo props into phh-prop-handler.sh 2020-03-26 22:41:24 +08:00
Michael Cheah 510e1c01d9
[xiaomi] Use persist.sys.phh.xiaomi.dt2w prop to control DT2W 2020-03-26 09:44:58 +08:00
Pierre-Hugues Husson 552f710be1 Add persist.sys.phh.oppo.usbotg to toggle usb otg on Oppo/Realme devices 2020-03-01 18:17:18 +01:00
Pierre-Hugues Husson 17a2cc66f3 Add props to control Oppo touchpanel
This is needed because /proc/touchpanel is u:object_r:proc:s0
We can't have our own genfscon on it, because we might hit conflicts
2020-02-21 18:02:41 +01:00
Pierre-Hugues Husson 60c6c8f9ed Reset LD_PRELOAD. Mediatek puts annoying non-working libcoredump in there, ignore it 2019-12-04 20:38:40 +01:00
Pierre-Hugues Husson d93868102c Stop setting LD_CONFIG_FILE, with apex, multiple config files might be used. Instead use bionic overload from ro.vndk.version 2019-09-12 20:47:53 +02:00
Pierre-Hugues Husson f2b061da52 Add persist.sys.phh.mainkeys property to persist qemu.hw.mainkeys 2019-08-22 00:22:51 +02:00
Pierre-Hugues Husson 97c4452e48 Also chown /data/misc/wifi/hostapd.conf
It has been seen on some devices (Huawei Y6) that the file is created by
something else than us to wifi:wifi, which means treble_app can't change
that file.
2018-12-27 10:46:21 +01:00
Pierre-Hugues Husson 57ba266b91 Ugly: Give TrebleApp write accesss to wifi configuration file
As part of O/O-MR1 vendor support for hostapd, an in-app IHostapd
implementation has been done. This needs to write to
/data/misc/wifi/hostapd.conf
/data/misc/wifi is originally in P writable only by wifi/wifi.
There is no easy way to gain "wifi" group access (though can be done
through platform.xml) from an app.
At the moment, all services requiring access to /data/misc/wifi are
running user "wifi", so this change is okay for the moment.
2018-09-19 10:39:47 +02:00
Pierre-Hugues Husson 515a55ee1d Delete Huawei Quickcharge init.rc scripts. It is now handled by Treble app 2018-09-17 14:09:30 +02:00
Pierre-Hugues Husson aea19262a0 Rename service-claner to phh-on-boot and move bootctl mark-boot-successful to phh-on-boot and add a conditional start 2018-07-18 23:48:33 +02:00
Dil3mm4 db80eb1c21 Differentiate QC values for HI6250 and HI36x0 platform (#18)
The previous set values are not compatible over HI6250 platform.
They were causing thermal issues.
This differentiation is needed to avoid the "hot-pan" occurrence.
Tested on ANE-LX1.
2018-07-09 08:29:30 +02:00
Pierre-Hugues Husson b01b148356 Mark slot as succesfully booted on boot completed
Fixes #55
2018-06-06 23:47:14 +02:00
Pierre-Hugues Husson 63b2403f9f Enable Huawei fast/quick charge. Thanks @Flex1911 and @OldDroid 2018-05-19 15:49:45 +02:00
Pierre-Hugues Husson 1959f79e53 Set service-cleaner as oneshot 2018-05-17 22:20:52 +02:00
Pierre-Hugues Husson 6eaf501e68 Include service-cleaner.sh which kills looping services 30s after boot 2018-05-14 17:25:03 +02:00
Pierre-Hugues Husson f1811092e6 [WIP] Edit android version/security patch based on boot.img 2018-04-10 18:35:44 +02:00
Pierre-Hugues Husson 25d7b4c539 Resize /system in boot
Is it really safe?
Tested on Allview V3 Viper and Huawei Mate 9
2018-04-03 00:13:48 +02:00
Pierre-Hugues Husson 1e27cc1157 Override vendor's usb_audio_policy_configuration
Android 8.1 added the support for new type of USB Audio devices
(USB_HEADSET, instead of old USB_DEVICE)
Some older USB devices got converted to this USB_HEADSET while still
using the old protocol.
There is no driver change needed, but the audio policy needs to be
changed.
Since vendors are simply using AOSP usb_audio_policy_configuration
Override it by ourself.
2018-04-01 00:30:31 +02:00
Pierre-Hugues Husson 8a07d2c495 Auto detect vndk based on vendor SELinux policy 2018-02-16 22:41:03 +01:00
Pierre-Hugues Husson fb368c6aaa Add known mtk device 2018-02-14 23:06:31 +01:00
Pierre-Hugues Husson 5fcaeb3f82 Make vndk versioned 2018-02-14 22:06:04 +01:00