Marshmallow: java.lang.ClassNotFoundException: com.android.internal.widget.LockPatternUtil
Closed this issue · 5 comments
Hi there, just clean flashed my phone to the latest Xposed (v84) and Candy SiX release - and this module seems to have stopped working.
Sorry I'm not sure what to make of the error log file, but would this be an issue of the module or xposed, or ROM?
Attached is the xposed error log:
xposed_error_20160516_174703.log.txt
The LockPatternUtils.java file on the Candy SiX repo:
https://github.com/CandyRoms/frameworks_base/blob/c6/core/java/com/android/internal/widget/LockPatternUtils.java
I love the module and would love to see it working again.
Happy to provide more information - or please kindly suggest what I can try.
Thanks!
Hi, from what I can read in the logs, we're looking for a class called com.android.internal.widget.LockPatternUtil
, but not com.android.internal.widget.LockPatternUtils
like the class you linked to in the CandyRoms repo.
Yep, this seems to be the error.
I am not sure: is there a method in Xposed to check if a class exists? Maybe then we can create a helper method to try our set of possible class names to find out the correct classname?
@lucasr93 I think one way is to wrap the Class.forName()
method in a try
/catch
block and catch ClassNotFoundException
. I'm not very familiar with the XPosed framework's helper methods, but I can imagine there would be one that does something similar to what I've just described.
is there a method in Xposed to check if a class exists?
Same problem on OxygenOS 2.1.0 (OnePlus Two). The findClassIfExists approach results in a tombstone crash dump.