5,605,026 Members 34,515 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][XPOSED] MotoMagnetOff - Disable magnet sensor

Tip us?
 
blade_
Old
#21  
blade_'s Avatar
Senior Member
Thanks Meter 50
Posts: 590
Join Date: Jan 2012
Location: Salonica
@dubidu ,installed,but doesnt seems to work..i forgot to do something?
 
dubidu
Old
#22  
Senior Member - OP
Thanks Meter 106
Posts: 198
Join Date: Apr 2006
Location: UK
Did you install the Xposed framework first?
If so, it should appear in the list of modules.
 
neol23
Old
#23  
neol23's Avatar
Senior Member
Thanks Meter 242
Posts: 945
Join Date: May 2011
Location: Sofia
Does not work on note 2014 edition as well . I want so badly to disable screen on/off when I open/close my book cover... Any other suggestions?
Ne0L23™
Go to work, get married, make some kids, pay ur taxes, pay ur bills, watch ur TV, follow fashion, act normal,
OBEY THE LAW, and repeat...
I AM FREE!!!
 
blade_
Old
#24  
blade_'s Avatar
Senior Member
Thanks Meter 50
Posts: 590
Join Date: Jan 2012
Location: Salonica
Quote:
Originally Posted by dubidu View Post
Did you install the Xposed framework first?
If so, it should appear in the list of modules.
of course

but doesnt seems to work
 
dubidu
Old
#25  
Senior Member - OP
Thanks Meter 106
Posts: 198
Join Date: Apr 2006
Location: UK
Quote:
Originally Posted by blade_ View Post
of course

but doesnt seems to work
What do you get in the xposed log?
 
blade_
Old
#26  
blade_'s Avatar
Senior Member
Thanks Meter 50
Posts: 590
Join Date: Jan 2012
Location: Salonica
Quote:
Originally Posted by dubidu View Post
What do you get in the xposed log?
Code:
-----------------
Feb 11, 2014 2:23:25 PM UTC
Loading Xposed v42 (for Zygote)...
-----------------
Feb 11, 2014 2:25:33 PM UTC
Loading Xposed v42 (for Zygote)...
Loading modules from /data/app/com.ceco.gm2.gravitybox-2.apk
  Loading class com.ceco.gm2.gravitybox.GravityBox
GB:Hardware: mt6589
GB:Product: 09_v89_jbla828_hd
GB:Device manufacturer: M派皇族
GB:Device brand: M派皇族
GB:Device model: N9000
GB:Device type: phone
GB:Is MTK device: true
GB:Is Xperia device: false
GB:Has Lenovo custom UI: false
GB:Has telephony support: true
GB:Has Gemini support: true
GB:Android SDK: 17
GB:Android Release: 4.3
GB:ROM: N9000_hd_20131119
GB:PatchMasterKey: Patching MasterKey vulnerabilities
GB:NfcTile: Error getting state of NfcAdapter: java.lang.UnsupportedOperationException
de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.android.launcher3.DynamicGrid
	at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:52)
	at com.ceco.gm2.gravitybox.ModLauncher.init(ModLauncher.java:61)
	at com.ceco.gm2.gravitybox.GravityBox.handleLoadPackage(GravityBox.java:259)
	at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:20)
	at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:34)
	at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:70)
	at de.robv.android.xposed.XposedBridge$2.beforeHookedMethod(XposedBridge.java:202)
	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:527)
	at android.app.ActivityThread.handleBindApplication(Native Method)
	at android.app.ActivityThread.access$1300(ActivityThread.java:156)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1400)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:153)
	at android.app.ActivityThread.main(ActivityThread.java:5297)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:126)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: com.android.launcher3.DynamicGrid
	at java.lang.Class.classForName(Native Method)
	at java.lang.Class.forName(Class.java:217)
	at external.org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:823)
	at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:50)
	... 19 more
Caused by: java.lang.NoClassDefFoundError: com/android/launcher3/DynamicGrid
	... 23 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.launcher3.DynamicGrid" on path: DexPathList[dexElements=[zip file "/system/app/QuickSearchBox.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
	... 23 more
de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.android.launcher3.DynamicGrid
	at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:52)
	at com.ceco.gm2.gravitybox.ModLauncher.init(ModLauncher.java:61)
	at com.ceco.gm2.gravitybox.GravityBox.handleLoadPackage(GravityBox.java:259)
	at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:20)
	at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:34)
	at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:70)
	at de.robv.android.xposed.XposedBridge$2.beforeHookedMethod(XposedBridge.java:202)
	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:527)
	at android.app.ActivityThread.handleBindApplication(Native Method)
	at android.app.ActivityThread.access$1300(ActivityThread.java:156)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1400)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:153)
	at android.app.ActivityThread.main(ActivityThread.java:5297)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:126)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: com.android.launcher3.DynamicGrid
	at java.lang.Class.classForName(Native Method)
	at java.lang.Class.forName(Class.java:217)
	at external.org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:823)
	at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:50)
	... 19 more
Caused by: java.lang.NoClassDefFoundError: com/android/launcher3/DynamicGrid
	... 23 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.launcher3.DynamicGrid" on path: DexPathList[dexElements=[zip file "/system/app/QuickSearchBox.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
	... 23 more
-----------------
Feb 11, 2014 3:24:57 PM UTC
Loading Xposed v42 (for Zygote)...
Loading modules from /data/app/com.ceco.gm2.gravitybox-2.apk
  Loading class com.ceco.gm2.gravitybox.GravityBox
GB:Hardware: mt6589
GB:Product: 09_v89_jbla828_hd
GB:Device manufacturer: M派皇族
GB:Device brand: M派皇族
GB:Device model: N9000
GB:Device type: phone
GB:Is MTK device: true
GB:Is Xperia device: false
GB:Has Lenovo custom UI: false
GB:Has telephony support: true
GB:Has Gemini support: true
GB:Android SDK: 17
GB:Android Release: 4.3
GB:ROM: N9000_hd_20131119
GB:PatchMasterKey: Patching MasterKey vulnerabilities
Loading modules from /data/app/com.dubi.xposed.magnetoff-2.apk
  Loading class com.dubi.xposed.magnetoff.MagnetOff
GB:NfcTile: Error getting state of NfcAdapter: java.lang.UnsupportedOperationException
de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.android.launcher3.DynamicGrid
	at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:52)
	at com.ceco.gm2.gravitybox.ModLauncher.init(ModLauncher.java:61)
	at com.ceco.gm2.gravitybox.GravityBox.handleLoadPackage(GravityBox.java:259)
	at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:20)
	at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:34)
	at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:70)
	at de.robv.android.xposed.XposedBridge$2.beforeHookedMethod(XposedBridge.java:202)
	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:527)
	at android.app.ActivityThread.handleBindApplication(Native Method)
	at android.app.ActivityThread.access$1300(ActivityThread.java:156)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1400)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:153)
	at android.app.ActivityThread.main(ActivityThread.java:5297)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:126)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: com.android.launcher3.DynamicGrid
	at java.lang.Class.classForName(Native Method)
	at java.lang.Class.forName(Class.java:217)
	at external.org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:823)
	at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:50)
	... 19 more
Caused by: java.lang.NoClassDefFoundError: com/android/launcher3/DynamicGrid
	... 23 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.launcher3.DynamicGrid" on path: DexPathList[dexElements=[zip file "/system/app/QuickSearchBox.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
	... 23 more
de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.android.launcher3.DynamicGrid
	at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:52)
	at com.ceco.gm2.gravitybox.ModLauncher.init(ModLauncher.java:61)
	at com.ceco.gm2.gravitybox.GravityBox.handleLoadPackage(GravityBox.java:259)
	at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:20)
	at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:34)
	at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:70)
	at de.robv.android.xposed.XposedBridge$2.beforeHookedMethod(XposedBridge.java:202)
	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:527)
	at android.app.ActivityThread.handleBindApplication(Native Method)
	at android.app.ActivityThread.access$1300(ActivityThread.java:156)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1400)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:153)
	at android.app.ActivityThread.main(ActivityThread.java:5297)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:126)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: com.android.launcher3.DynamicGrid
	at java.lang.Class.classForName(Native Method)
	at java.lang.Class.forName(Class.java:217)
	at external.org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:823)
	at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:50)
	... 19 more
Caused by: java.lang.NoClassDefFoundError: com/android/launcher3/DynamicGrid
	... 23 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.launcher3.DynamicGrid" on path: DexPathList[dexElements=[zip file "/system/app/QuickSearchBox.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
	... 23 more
de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.android.launcher3.DynamicGrid
	at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:52)
	at com.ceco.gm2.gravitybox.ModLauncher.init(ModLauncher.java:61)
	at com.ceco.gm2.gravitybox.GravityBox.handleLoadPackage(GravityBox.java:259)
	at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:20)
	at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:34)
	at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:70)
	at de.robv.android.xposed.XposedBridge$2.beforeHookedMethod(XposedBridge.java:202)
	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:527)
	at android.app.ActivityThread.handleBindApplication(Native Method)
	at android.app.ActivityThread.access$1300(ActivityThread.java:156)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1400)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:153)
	at android.app.ActivityThread.main(ActivityThread.java:5297)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:126)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: com.android.launcher3.DynamicGrid
	at java.lang.Class.classForName(Native Method)
	at java.lang.Class.forName(Class.java:217)
	at external.org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:823)
	at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:50)
	... 19 more
Caused by: java.lang.NoClassDefFoundError: com/android/launcher3/DynamicGrid
	... 23 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.launcher3.DynamicGrid" on path: DexPathList[dexElements=[zip file "/system/app/QuickSearchBox.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
	... 23 more
 
dubidu
Old
(Last edited by dubidu; 11th February 2014 at 10:00 PM.)
#27  
Senior Member - OP
Thanks Meter 106
Posts: 198
Join Date: Apr 2006
Location: UK
Quote:
Originally Posted by blade_ View Post
Code:
-----------------
Feb 11, 2014 2:23:25 PM UTC
Loading Xposed v42 (for Zygote)...
-----------------
Feb 11, 2014 2:25:33 PM UTC
....
GB:PatchMasterKey: Patching MasterKey vulnerabilities
Loading modules from /data/app/com.dubi.xposed.magnetoff-2.apk
  Loading class com.dubi.xposed.magnetoff.MagnetOff
GB:NfcTile: Error getting state of NfcAdapter: java.lang.UnsupportedOperationException
.....

There are lots of errors in there, but not by the MagnetOff module.

Try this one:
http://tinyurl.com/qbpjv22/MotoMagnetOff_0.apk

It is the first version I wrote which completly removes the "applyLidSwitchState()" method rather than switch off the "mLidControlsSleep" property
 
neol23
Old
#28  
neol23's Avatar
Senior Member
Thanks Meter 242
Posts: 945
Join Date: May 2011
Location: Sofia
Quote:
Originally Posted by dubidu View Post
There are lots of errors in there, but not by the MagnetOff module.

Try this one:
http://tinyurl.com/qbpjv22/MotoMagnetOff_0.apk

It is the first version I wrote which completly removes the "applyLidSwitchState()" method rather than switch off the "mLidControlsSleep" property
Sorry did not worked as well on samsung galaxy note 2014 edition .
Ne0L23™
Go to work, get married, make some kids, pay ur taxes, pay ur bills, watch ur TV, follow fashion, act normal,
OBEY THE LAW, and repeat...
I AM FREE!!!
 
Mazer.one
Old
(Last edited by Mazer.one; 16th February 2014 at 07:32 PM.)
#29  
Mazer.one's Avatar
Recognized Themer
Thanks Meter 880
Posts: 616
Join Date: Jul 2010
Location: ...

 
DONATE TO ME
Quote:
Originally Posted by GianniAraujo View Post
Does anyone know a way to do the opposite to fix the screen not turning off on custom roms
It works fine with cm11 by @dhacker29 , now the screen turn off when i close the flip case. You must install and disable the module.




Thanks to dubidu .

Envoyé de mon Moto G en utilisant Tapatalk
The Following 2 Users Say Thank You to Mazer.one For This Useful Post: [ Click to Expand ]
 
DeJe63
Old
#30  
Senior Member
Thanks Meter 34
Posts: 267
Join Date: May 2012
@dubidu, could you make a version which completely disables all automatic wakeup/sleep actions for magetic sensor?

Tags
magnet xposed disable cover
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes