XPrivacy icon indicating copy to clipboard operation
XPrivacy copied to clipboard

LG L7 freezes and then reboots

Open smiledexter opened this issue 13 years ago • 21 comments

My phone LG L7, Android original 4.0.3

Using new versions Xprivacy sometimes reboots the phone.

This Xposed or Xprivacy problem? attach ANR, Xposed and Xprivacy logs:

CATLOG: https://docs.google.com/file/d/0B9sv6okJiG6ZYWFOZGxVTDdmbXc/edit?usp=sharing

Xposed: https://docs.google.com/file/d/0B9sv6okJiG6ZTDhWR0JwdWpTd0k/edit?usp=sharing

ANR: https://docs.google.com/file/d/0B9sv6okJiG6ZbXBza25tb20wa1E/edit?usp=sharing

About ANR: https://docs.google.com/file/d/0B9sv6okJiG6Zdk1yQjYyNkdDMHc/edit?usp=sharing

I am waiting for a decision, is around all

smiledexter avatar Sep 19 '13 19:09 smiledexter

Isn't this the same as investigated in detail in #627 ?

My conclusion: https://github.com/M66B/XPrivacy/issues/627#issuecomment-24523712

M66B avatar Sep 19 '13 19:09 M66B

No errors in Xposed log.

M66B avatar Sep 19 '13 19:09 M66B

ANR is also an indication of low resources.

M66B avatar Sep 19 '13 19:09 M66B

++Isn't this the same as investigated in detail in #627 ?++ Yes

smiledexter avatar Sep 19 '13 19:09 smiledexter

This is what give flight to find the mistake? That can not be that there is nothing

so quickly looked INFO?

smiledexter avatar Sep 19 '13 19:09 smiledexter

The logcat has no mention of XPrivacy at all.

My conclusion stays the same: this is not an XPrivacy problem. My best guess your device has not enough resources to run everything including XPrivacy.

M66B avatar Sep 19 '13 19:09 M66B

Also, please note @28Black solved this problem by installing another ROM. So try that.

M66B avatar Sep 19 '13 19:09 M66B

Might be a ROM issue as it works fine for so many other phones.

But maybe something to look at in the ANR:

"main" prio=5 tid=1 MONITOR
  at com.android.server.am.ActivityManagerService.unregisterReceiver(ActivityManagerService.java:~12461)
- waiting to lock <0x417a3598> (a com.android.server.am.ActivityManagerService) held by tid=10 (android.server.ServerThread) <-------- several other threads are trying to lock this object as well

"android.server.ServerThread" prio=5 tid=10 MONITOR
  at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:~14789)
  - waiting to lock <0x417a8910> (a com.android.internal.os.BatteryStatsImpl) held by tid=75 (Binder Thread #13)

"Binder Thread #13" prio=5 tid=75 MONITOR
  at com.android.server.am.ActivityManagerService.getContentProviderImpl(ActivityManagerService.java:~6057)
  - waiting to lock <0x417a3598> (a com.android.server.am.ActivityManagerService) held by tid=10 (android.server.ServerThread)

Seems like a deadlock between ServerThread and Binder Thread #13. And in the Binder Thread, the stacktrace is:

  at com.android.server.am.ActivityManagerService.getContentProvider(ActivityManagerService.java:6290)
  at android.app.ActivityThread.acquireProvider(ActivityThread.java:4025)
  at android.app.ContextImpl$ApplicationContentResolver.acquireProvider(ContextImpl.java:1725)
  at android.content.ContentResolver.acquireProvider(ContentResolver.java:939)
  at android.content.ContentResolver.query(ContentResolver.java:315)
  at biz.bokhorst.xprivacy.PrivacyManager.getRestricted(PrivacyManager.java:292)
  at biz.bokhorst.xprivacy.XHook.getRestricted(XHook.java:77)
  at biz.bokhorst.xprivacy.XTelephonyManager.isRestricted(XTelephonyManager.java:215)
  at biz.bokhorst.xprivacy.XTelephonyManager.after(XTelephonyManager.java:164)
  at biz.bokhorst.xprivacy.XPrivacy$1.afterHookedMethod(XPrivacy.java:207)
  at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:483)
  at android.telephony.TelephonyManager.getNetworkType(Native Method)
  at android.telephony.SignalStrength.getGsmLevel(SignalStrength.java:531)
  at android.telephony.SignalStrength.getLevel(SignalStrength.java:367)
  at com.android.internal.os.BatteryStatsImpl.notePhoneSignalStrengthLocked(BatteryStatsImpl.java:1936)
  at com.android.server.am.BatteryStatsService.notePhoneSignalStrength(BatteryStatsService.java:212)
  at com.android.server.TelephonyRegistry.broadcastSignalStrengthChanged(TelephonyRegistry.java:564)
  at com.android.server.TelephonyRegistry.notifySignalStrength(TelephonyRegistry.java:325)
  at com.android.internal.telephony.ITelephonyRegistry$Stub.onTransact(ITelephonyRegistry.java:95)
  at android.os.Binder.execTransact(Binder.java:341)
  at dalvik.system.NativeStart.run(Native Method)

I don't have the time to analyze this further, so I can't say whose fault this is. Maybe the ROM is doing something wrong here, or maybe it's not allowed to query for content providers with certain locks held.

rovo89 avatar Sep 19 '13 20:09 rovo89

https://github.com/M66B/XPrivacy#compatibility

M66B avatar Sep 20 '13 03:09 M66B

Was testing versions, and I found!

the 1.8.5 version works fine with the 1.8.7 version of the phone crashes and reboots.

The problem will be the following options:

Version 1.8.7 BETA! Enable Android usage date 60 seconds after boot Filter usage date for the last 24 hours Option to set network / SIM operator name

Version 1.8.6 BETA! Always lock fallback loading restriction Limit help icon size

1.8.6 version is not seen where to download. Some of these parameter probably does not work correctly and the phone crashes. Please review, I am ready to test. If you need to log, write.

smiledexter avatar Oct 01 '13 12:10 smiledexter

Phone only break when you perform any action.

smiledexter avatar Oct 01 '13 12:10 smiledexter

Here is fresh 2 crashes and restart in a row with 1.8.7 Attached logcat and ANR trace files

As I said with 1.8.5 everything is ok.

https://drive.google.com/folderview?id=0B9sv6okJiG6ZMnNIMURaeTZpMzg&usp=sharing

smiledexter avatar Oct 01 '13 13:10 smiledexter

Posted by uncut logcat 1 restart: 16:01 2 restart: 16:03

smiledexter avatar Oct 01 '13 13:10 smiledexter

Could you please try if this version fixed the problem: http://d-h.st/Ts8

M66B avatar Nov 07 '13 12:11 M66B

ok, to test

smiledexter avatar Nov 07 '13 20:11 smiledexter

Thank you for caring

smiledexter avatar Nov 07 '13 20:11 smiledexter

You're welcome. Try this version, which also seems to fix the Note 3 uninstall freeze: http://d-h.st/QGy

M66B avatar Nov 07 '13 20:11 M66B

ok

smiledexter avatar Nov 07 '13 21:11 smiledexter

Did you already test? The next beta release waits on feedback on this issue.

M66B avatar Nov 08 '13 20:11 M66B

Yes. Testing from yesterday evening. So far, works fine, I think the problem repaired. Works fine.

smiledexter avatar Nov 08 '13 21:11 smiledexter