aravindsagar / SmartLockScreen

Repository for collaborating on our BTP.
Apache License 2.0
21 stars 4 forks source link

FC on LG G3 on Lollipop #7

Open swindelljd opened 9 years ago

swindelljd commented 9 years ago

Here is the stack trace built and run using the lollipop_compat branch: java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:300) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355) at java.util.concurrent.FutureTask.setException(FutureTask.java:222) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference at android.os.Parcel.readException(Parcel.java:1546) at android.os.Parcel.readException(Parcel.java:1493) at android.app.admin.IDevicePolicyManager$Stub$Proxy.resetPassword(IDevicePolicyManager.java:2544) at android.app.admin.DevicePolicyManager.resetPassword(DevicePolicyManager.java:1354) at com.pvsagar.smartlockscreen.receivers.AdminActions.changePassword(AdminActions.java:94) at com.pvsagar.smartlockscreen.baseclasses.Passphrase.setAsCurrentPassword(Passphrase.java:147) at com.pvsagar.smartlockscreen.services.BaseService$SetPassphraseAsyncTask.doInBackground(BaseService.java:535) at com.pvsagar.smartlockscreen.services.BaseService$SetPassphraseAsyncTask.doInBackground(BaseService.java:530) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237)             at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)             at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)             at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)             at java.lang.Thread.run(Thread.java:818)

To fix I changed code at com.pvsagar.smartlockscreen.receivers.AdminActions.changePassword(AdminActions.java:94) from mDPM.resetPassword(null, 0); to mDPM.resetPassword("", 0);

I did try the original code "mDPM.resetPassword(password, 0);" but that also caused a FC.

aravindsagar commented 9 years ago

Can you try the latest build?

swindelljd commented 9 years ago

Sorry, I totally missed this message. I have switched to a G4 running 5.1 which is a lot more stable from the smartlock perspective so I was seeing how that worked out. I'll download the latest build and give it a try and let you know.