Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

use better way to disable magnetic dock detection

Change-Id: I5a4ef85fa21a9a7da1ec9d466858c77f02e5a826
  • Loading branch information...
commit efb363d3e5f191c6ae99e3496f41fd840a164f45 1 parent 3328ada
Pavel authored December 28, 2012
2  MmParts/src/com/cyanogenmod/mmparts/SettingsActivity.java
@@ -22,7 +22,7 @@
22 22
 
23 23
     private static final String DOCK_OBSERVER_OFF_PREF = "pref_dock_observer_off";
24 24
 
25  
-    private static final String DOCK_OBSERVER_OFF_PERSIST_PROP = "persist.sys.dock_observer_off";
  25
+    private static final String DOCK_OBSERVER_OFF_PERSIST_PROP = "persist.sys.halleffect_input_off";
26 26
 
27 27
     private static final String DOCK_OBSERVER_OFF_DEFAULT = "0";
28 28
 
6  rootfs/init.mapphone_umts.rc
@@ -317,6 +317,12 @@ on property:persist.sys.qtouch_num=4
317 317
 on property:persist.sys.qtouch_num=5
318 318
     write /proc/qtouch/num_touch 5
319 319
 
  320
+on property:persist.sys.halleffect_input_off=1
  321
+    exec /system/bin/rmmod bu52014hfv.ko
  322
+
  323
+on property:persist.sys.halleffect_input_off=0
  324
+    insmod /system/lib/modules/bu52014hfv.ko
  325
+
320 326
 # Power up to normal
321 327
 on property:tcmd.suspend=0
322 328
     class_start pre-zygote_services
2  system.prop
@@ -74,6 +74,8 @@ persist.sys.keylayout_alt=
74 74
 
75 75
 persist.sys.qtouch_num=2
76 76
 
  77
+persist.sys.halleffect_input_off=0
  78
+
77 79
 persist.sys.one_percent_batt=1
78 80
 
79 81
 ro.usb.use_custom_service=1

0 notes on commit efb363d

Please sign in to comment.
Something went wrong with that request. Please try again.