Auto fix settings permissions
Hi @M66B
I recently installed XPrivacy on the phone from my mother (LG Optimus L7 (P700), Android 4.1.2). Of cause the latest version of XPrivacy and XPosed Framework. Am I right that I don't need to flash the fix anymore?
So right after the start (~ 1- 2 mins later) the phone freezes for a minute and then reboots. Every time. When I disable the XPrivacy module, everything works fine - so I guess its related to your app.
I tried to record a logcat, but oddly the freeze and reboot doesn't occur when the Phone is connected to the PC ... So I checked the "Debug Log" in the settings of XPrivacy. But now i have no clue where this log has been saved?!
XPrivacy logs in the logcat, like most other applications. Did you check if this problem also exists when XPrivacy is disabled? Did you check if this problem also exists when Xposed is disabled? You can use the XPrivacy remover if needed: http://d-h.st/l9p Without log it is difficult / impossible to find the problem.
XPrivacy logs in the logcat, like most other applications. -> Ok, where is it stored? Did you check if this problem also exists when XPrivacy is disabled? -> As i said before, the problem is only present if XPrivacy is enabled. Disabling it solves it (right after the reboot). So it must be a problem caused by XPrivacy. Info: No system app is restricted! ///Did you check if this problem also exists when Xposed is disabled? ///You can use the XPrivacy remover if needed: http://d-h.st/l9p
///Without log it is difficult / impossible to find the problem.
For the logcat, see the FAQ, question #22 https://github.com/M66B/XPrivacy#frequently-asked-questions
I know how to make it, I just thought that XPrivacy would store it on the SD card if I select this option! Ill try to record a logcat with an app ;)
I cant upload a txt here, so i'll send you the locat on XDA
Try using Dropbox or a similar service.
https://app.box.com/s/5kglfvdqq09oro1sklq5
I have to work now, hopefully you can find sth and fix ist :) See you later.
Any news according this issue?
Did you 'fix' permissions with your recovery?
09-06 11:11:33.209 W/XPrivacy( 2227): Attempt to read preferences file ...
This is a sign of out of memory:
09-06 11:13:30.809 W/XPrivacy/XTelephonyManager( 706): cursor is null
I don't think this is caused by a bug in XPrivacy. Try clearing the data of XPrivacy and watch your memory usage.
Yes I fixed the permissions ;) Is it a problem?
Out of memory? That wouldn't be so good. I'll try clearing XPrivacys data now ;)
Yes 'fixing' the permissions is most probably the problem. Try to clear XPrivacy data.
I will add some code to the next release to auto fix this permissions (I have changed the title of this issue accordingly).
Would clearing the data fix the problem if its caused by "fixing permissions"?
Yes.
You can also try to change the permissions manually.
Well I dont know how to do it manually. I'll try to export the settings, delete the data, import the settings! Ok?
Export/import will not work, since XPrivacy cannot read the restrictions. Try:
adb shell su chmod 664 /data/data/biz.bokhorst.xprivacy/shared_prefs/*
To late ;) but its not a problem my mom doesnt have that much apps installed ;) I'll set up the restrictions now and keep you uptodate!
Update1: Importing my settings and restrictions (!) worked finde! ;) (I connected the phone with usb debugging and c&p the exported settings from .xprivacy to the root of my sd card. Then i imported it successfully