Go to file
Tyler Nijmeh c1c1e8600b Disable broken led:torch_2 trigger on Mi A2 / Mi 6X
At the moment, both led:switch_1 and led:torch_2 are both linked to the
front facing camera torch. Xiaomi's stock Pie vendor for devices jasmine
and wayne (Mi A2 and Mi 6X, respectively) mistakingly hooks these nodes
incorrectly, causing the front facing camera torch to default to a
brightness level of 90. However, after a single photo is taken, the
torch turns off temporarily until either A) the camera is closed and
reopened or B) the camera app requests the flash to trigger.

To circumvent the issue with Xiaomi's stock pie vendor blobs, we can
disable the led:torch_2 trigger, and allow led:switch_1 to handle it.

Test: Run the desired command on boot and observe the default front
facing camera torch state.

Test: Ensure Snapchat and Open Camera default to flash being disabled
for the front facing camera torch.

Signed-off-by: Tyler Nijmeh <tylernij@gmail.com>
2019-04-22 16:20:05 -07:00
bluetooth P WIP 2018-08-07 13:09:49 +02:00
cmds Add few debug commands 2019-03-31 19:41:09 +02:00
environ Create folder before creating rc file 2018-03-04 22:24:18 +01:00
files Switch from ASSIST to VOICE_ASSIST 2019-03-20 23:57:06 +01:00
fixSPL [WIP] Edit android version/security patch based on boot.img 2018-04-10 18:35:44 +02:00
huawei_charger Fix bug 2019-01-14 17:09:57 +00:00
nfc Create libnfc-nci-huawei.conf 2019-01-04 14:01:44 +00:00
overlay Dehardcode status_bar_height in NoCutout overlay 2019-02-05 00:46:07 +01:00
overlay-gapps/frameworks/base/core/res/res/values Include some framework-res overrides for gapps 2018-06-11 22:41:14 +02:00
phhgsi_a64_a Be compatible with AOSP master BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE 2019-01-17 15:49:46 +01:00
phhgsi_arm64_a Be compatible with AOSP master BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE 2019-01-17 15:49:46 +01:00
phhgsi_arm64_ab Be compatible with AOSP master BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE 2019-01-17 15:49:46 +01:00
phhgsi_arm_a Decrease system partition size for arm_a images so it fits in for more devices 2019-04-18 21:42:11 +02:00
phhgsi_arm_ab Be compatible with AOSP master BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE 2019-01-17 15:49:46 +01:00
sepolicy Allow treble_app to set camera-HAL related properties 2019-03-20 23:57:06 +01:00
su Add su option 2017-12-19 13:08:26 +01:00
twrp Update twrp.sh OTA with xz and sparse image support 2018-12-09 23:24:26 +01:00
.gitignore Include gitignore to ignore generated files 2018-05-27 13:52:16 +02:00
aex.mk create AEX makefile 2018-11-18 19:43:10 +01:00
base-pre.mk Includes a base-pre.mk for pre-pending COPY_FILES 2017-12-30 18:53:40 +01:00
base.mk Include sim toolkit app 2019-03-14 12:59:54 +01:00
board-base.mk Declare framework-side hostapd (will be done by treble app) 2018-09-18 16:44:06 +02:00
carbon.mk Include carbon support 2018-03-03 19:50:47 +01:00
empty I need an empty system file for later mount bind 2018-05-14 13:36:26 +02:00
empty-permission.xml [opengapps] Don't set google experimental camera features 2018-05-26 00:28:46 +02:00
framework_manifest.xml Declare framework-side hostapd (will be done by treble app) 2018-09-18 16:44:06 +02:00
gapps-go.mk Don't dexpreopt gapps-go 2018-05-17 23:32:26 +02:00
gapps.mk https://github.com/phhusson/device_phh_treble/pull/39 2018-09-18 17:38:36 +02:00
generate.sh Add phhgsi_a64_a for arm32 devices with 64bits binder 2018-11-18 22:36:00 +01:00
havoc.mk Fix common.mk path 2019-01-13 13:20:08 +05:30
interfaces.xml typo 2018-09-18 16:25:34 +02:00
ld.config.26.txt HACK: Allow access to 27 sphal on vndk 26. system will try to load 27's android.hidl.memory instead of 26's 2018-08-19 12:35:34 +02:00
ld.config.27.txt P WIP 2018-08-07 12:49:42 +02:00
lineage.mk Update lineage.mk for LineageOS 16.0 2018-08-28 08:45:01 +02:00
phh-on-boot.sh shellcheck 2019-03-04 21:54:48 +01:00
README Include a README 2017-12-17 18:14:40 +01:00
rr.mk [rr] Include SEPolicy 2018-03-22 22:47:23 +01:00
rw-system.sh Disable broken led:torch_2 trigger on Mi A2 / Mi 6X 2019-04-22 16:20:05 -07:00
system.prop Enable nightmode overlay by default 2018-05-01 23:38:34 +02:00
vndk-detect Remove mtk/ussd fix from vndk-detect. It is plain wrong (property doesnt exist) 2019-03-31 17:37:37 +02:00
vndk.rc Also chown /data/misc/wifi/hostapd.conf 2018-12-27 10:46:21 +01:00

You'll need to call generate.sh in this folder to generate the Makefiles to build the Treble targets