From dd8fdd6f3ddc382d3d2a1aff61352f71ac8cb834 Mon Sep 17 00:00:00 2001 From: Max Weffers Date: Fri, 12 Jul 2019 19:06:07 +0200 Subject: [PATCH] clover: Add camera model setup to init *needed to get device name in taken photos --- rootdir/etc/init.device.rc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rootdir/etc/init.device.rc b/rootdir/etc/init.device.rc index cfa660c..3c35b10 100644 --- a/rootdir/etc/init.device.rc +++ b/rootdir/etc/init.device.rc @@ -31,7 +31,7 @@ on property:persist.sys.fp.vendor=none mount none /dev/null /vendor/etc/permissions/com.fingerprints.extension.xml bind mount none /dev/null /vendor/app/FingerprintExtensionService/FingerprintExtensionService.apk bind stop vendor.fps_hal - + on property:ro.vendor.radio.noril=yes mount none /dev/null /system/app/CarrierDefaultApp/CarrierDefaultApp.apk bind mount none /dev/null /system/app/messaging/messaging.apk bind @@ -40,21 +40,25 @@ on property:ro.vendor.radio.noril=yes mount none /dev/null /system/priv-app/CallLogBackup/CallLogBackup.apk bind mount none /dev/null /system/priv-app/CellBroadcastReceiver/CellBroadcastReceiver.apk bind mount none /dev/null /system/priv-app/EmergencyInfo/EmergencyInfo.apk bind - + # Set max charge current on property:sys.incall=true write /sys/class/power_supply/battery/constant_charge_current_max 500000 on property:sys.incall=false write /sys/class/power_supply/battery/constant_charge_current_max 1000000 - + on boot start macaddress_setup # Set permission for double tap to wake support chmod 0660 /proc/touchscreen/enable_dt2w chown system system /proc/touchscreen/enable_dt2w - + +# Camera ID + setprop persist.vendor.camera.exif.model "Mi PAD 4" + setprop persist.sys.exif.model "Mi PAD 4" + service macaddress_setup /vendor/bin/sh /vendor/bin/init.macaddress_setup.sh class main user root