summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2011-10-07 18:47:07 -0700
committerThe Android Automerger <android-build@android.com>2011-10-09 13:42:48 -0700
commitd92ea704d8d56f603facab8271408e4595ed8b04 (patch)
tree463641bf096b2ff177d87a989d3ed2add046faa1
parent9baacecf3512cd6123c04ed29e6bd6df5146dbd4 (diff)
downloaddevice_samsung_tuna-d92ea704d8d56f603facab8271408e4595ed8b04.zip
device_samsung_tuna-d92ea704d8d56f603facab8271408e4595ed8b04.tar.gz
device_samsung_tuna-d92ea704d8d56f603facab8271408e4595ed8b04.tar.bz2
tuna: enable off mode based on property
If property persist.sys.tuna.off_mode is 1, enable off mode. To enable off mode: adb root adb shell setprop persist.sys.tuna.off_mode 1 Change-Id: I01ce285dd2bd42b41b0432e142a6d63442ca7479
-rwxr-xr-xinit.tuna.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.tuna.rc b/init.tuna.rc
index 5a071d3..d3bb9cf 100755
--- a/init.tuna.rc
+++ b/init.tuna.rc
@@ -100,6 +100,9 @@ on fs
chmod 0660 /sys/bus/usb/devices/usb1/power/control
chown radio radio /sys/bus/usb/devices/usb1/power/control
+on property:persist.sys.tuna.off_mode=*
+ write /d/pm_debug/enable_off_mode $persist.sys.tuna.off_mode
+
service fRom /system/bin/fRom \
-x /data/misc/camera/R5_MVEN003_LD2_ND0_IR0_SH0_FL1_SVEN003_DCCID1044 \
-d /dev/mtd/mtd0