Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Auto fix settings permissions #627

Closed
28Black opened this issue Sep 6, 2013 · 97 comments
Closed

Auto fix settings permissions #627

28Black opened this issue Sep 6, 2013 · 97 comments

Comments

@28Black
Copy link
Contributor

28Black commented Sep 6, 2013

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?!

@M66B
Copy link
Owner

M66B commented Sep 6, 2013

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.

@28Black
Copy link
Contributor Author

28Black commented Sep 6, 2013

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.

@M66B
Copy link
Owner

M66B commented Sep 6, 2013

For the logcat, see the FAQ, question #22
https://github.com/M66B/XPrivacy#frequently-asked-questions

@28Black
Copy link
Contributor Author

28Black commented Sep 6, 2013

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 ;)

@28Black
Copy link
Contributor Author

28Black commented Sep 6, 2013

I cant upload a txt here, so i'll send you the locat on XDA

@M66B
Copy link
Owner

M66B commented Sep 6, 2013

Try using Dropbox or a similar service.

@28Black
Copy link
Contributor Author

28Black commented Sep 6, 2013

@28Black
Copy link
Contributor Author

28Black commented Sep 6, 2013

I have to work now, hopefully you can find sth and fix ist :)
See you later.

@28Black
Copy link
Contributor Author

28Black commented Sep 6, 2013

Any news according this issue?

@M66B
Copy link
Owner

M66B commented Sep 6, 2013

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.

@M66B M66B closed this as completed Sep 6, 2013
@28Black
Copy link
Contributor Author

28Black commented Sep 6, 2013

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 ;)

@M66B
Copy link
Owner

M66B commented Sep 6, 2013

Yes 'fixing' the permissions is most probably the problem.
Try to clear XPrivacy data.

@M66B M66B reopened this Sep 6, 2013
@M66B
Copy link
Owner

M66B commented Sep 6, 2013

I will add some code to the next release to auto fix this permissions (I have changed the title of this issue accordingly).

@28Black
Copy link
Contributor Author

28Black commented Sep 6, 2013

Would clearing the data fix the problem if its caused by "fixing permissions"?

@M66B
Copy link
Owner

M66B commented Sep 6, 2013

Yes.

@M66B
Copy link
Owner

M66B commented Sep 6, 2013

You can also try to change the permissions manually.

@28Black
Copy link
Contributor Author

28Black commented Sep 6, 2013

Well I dont know how to do it manually.
I'll try to export the settings, delete the data, import the settings! Ok?

@M66B
Copy link
Owner

M66B commented Sep 6, 2013

Export/import will not work, since XPrivacy cannot read the restrictions.
Try:

adb shell su chmod 664 /data/data/biz.bokhorst.xprivacy/shared_prefs/*

@28Black
Copy link
Contributor Author

28Black commented Sep 6, 2013

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!

@28Black
Copy link
Contributor Author

28Black commented Sep 6, 2013

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

@28Black
Copy link
Contributor Author

28Black commented Sep 6, 2013

Update2: Freezed and rebooted again...
The memory isnt the problem, there were 80+ mb.

@28Black
Copy link
Contributor Author

28Black commented Sep 6, 2013

Update3:
Now I did exactly what you told me I cleared all its data (no restriction was there), but the problem still occurs.

Disabling XPrivacy in the Xposed Installer solves the issue, but this cant be a solution! ;)

@28Black
Copy link
Contributor Author

28Black commented Sep 6, 2013

Ok @M66B , the phone is running now for ~40 min without problems (XPrivacy disabled in the XPosed Installer)
With XPrivacy enabled, it doesn't live for more than 5 minutes! 👎

@M66B
Copy link
Owner

M66B commented Sep 6, 2013

Try to create a log from the boot loop from your PC, post a link here with the exact time of reboot and I will take another look.

@M66B M66B closed this as completed in 7db17fe Sep 7, 2013
@28Black
Copy link
Contributor Author

28Black commented Sep 7, 2013

Hi @M66B ,

I'm going crazy! It seems just as if the problem does not occur when the phone is connected via USB debugging.
I have made an observation. If the phone is not connected via USB debugging, the problem occurs shortly after the "media scan" has finished.
Maybe that will help you further ...

@M66B
Copy link
Owner

M66B commented Sep 7, 2013

Try to create a log from the boot loop from your PC, post a link here with the exact time of reboot and I will take another look.

@28Black
Copy link
Contributor Author

28Black commented Sep 7, 2013

Hooray!
Finally the error occurred while connected via USB debugging!
The log could be a little bit longer, because I had to wait a bit.
The error occurred at approximately >11:38 (local time).

Here is the logcat: --> PM on XDA

@smiledexter
Copy link
Contributor

try to find the problem, don now when you install xprivacy like you said, yet not break, we'll see below, I'll try to extract benefits. It may be that this is related to some point permissions. Breakage because the phone only when you use it when it stays in position during the night, problems exist. Once you start to exercise, they occasionally come up restart. There is no easy to find the problem, because it gets ever.

@smiledexter
Copy link
Contributor

Something happens between these two actions, probably logcat at the time the information is no longer able to record phone breakage.

Because of the time and just for.

09-14 18:34:57.858 D/PowerManagerService(5879): setCPUModeMAX= ondemand mode success
09-14 18:36:08.148 W/Watchdog(5879): No process is given for creating tombstones on framework reboot.

@M66B
Copy link
Owner

M66B commented Sep 15, 2013

@smiledexter try to uninstall XPrivacy, reboot, install version 1.9.21, do not apply restrictions yet, reboot.

@smiledexter
Copy link
Contributor

Already done that, does not help. Now continue reboots.

@smiledexter
Copy link
Contributor

Carried out a full logcat from the computer. I did everything they could, please let us see in detail what happened in the logs.

Posted by PrintScreen 5, one with a fatal error. Other 4 PrintScreen Embed this show the last seconds before the restart, catlog suspension soon iskart rebooting the phone.

FATAL ERROR: https://docs.google.com/file/d/0B9sv6okJiG6ZUGhxZkl3Tmw5ZVE/edit?usp=sharing

Other error with logcat online:
1-4: https://docs.google.com/file/d/0B9sv6okJiG6ZNWNmaFJxajZDb2M/edit?usp=sharing
2-4: https://docs.google.com/file/d/0B9sv6okJiG6ZUlk1S3lkby1UaEk/edit?usp=sharing
3-4: https://docs.google.com/file/d/0B9sv6okJiG6ZY2V1MklrMVdUVnc/edit?usp=sharing
4-4 (last until reboot): https://docs.google.com/file/d/0B9sv6okJiG6ZVDJUQjlwUWNwZXc/edit?usp=sharing

and attach a logcat done with a computer:
with time: https://docs.google.com/file/d/0B9sv6okJiG6ZcjdfbFdRQ1dJekU/edit?usp=sharing
without time: https://docs.google.com/file/d/0B9sv6okJiG6ZSGN5T0xfMEJSNHM/edit?usp=sharing

Nothing more I can not make the mistake of setting it everything they could help it what ideas should be sufficient to determine the cause, especially reviewed the PrintScreen. I lose heart, waiting for your news.

@M66B
Copy link
Owner

M66B commented Sep 15, 2013

All the errors seems not related to XPrivacy.
The log files are large, so it is difficult to search for something.
There are no critical XPrivacy errors reported.
The log file with time is nice, but it would be better to know the time where it went wrong.

@smiledexter
Copy link
Contributor

HMMM, this is why well with the 1.8.3 version?

@M66B
Copy link
Owner

M66B commented Sep 15, 2013

I don't know.

@smiledexter
Copy link
Contributor

okay, I'll try to look for, after seeing googleje many people are facing fatal error 6, could succeed in what you find.

@smiledexter
Copy link
Contributor

someone is causing errors, which leads fatal error, fatal error occurs about 10-15 seconds, resulting in overloaded phone

@M66B
Copy link
Owner

M66B commented Sep 15, 2013

Not every fatal error is fatal.
You can check if the error is there too when XPrivacy is not enabed.

@M66B
Copy link
Owner

M66B commented Sep 15, 2013

Also make sure not one of the restrictions is causing this.

@smiledexter
Copy link
Contributor

This is not so easy to catch error, it happens Ramdom :)

@smiledexter
Copy link
Contributor

here you may be right.

/Also make sure not one of the restrictions is Causing this./

@smiledexter
Copy link
Contributor

these errors can lead to?

E/ActivityThread( 2181): Failed to find provider info for biz.bokhorst.xprivacy.provider

@M66B
Copy link
Owner

M66B commented Sep 15, 2013

That is pretty fatal, but that is more an Android then an XPrivacy problem.
My best guess your ROM is buggy.
Maybe it is time to try another ROM, like CyanogenMod.

@smiledexter
Copy link
Contributor

Because the problem is not easy to find, we test each version humiliating soon breakage phone. With Version 1.9.11 BETA! breakage downgrade to 1.9.9. It will be hard, but I find the exact version of the breakage, and joint efforts are trying to fix the error.

@smiledexter
Copy link
Contributor

I probably made ​​a mistake since version 1.9 began to break up, it seems to be a higher version of the report soon to test before a stable degrading

@smiledexter
Copy link
Contributor

from evening testing 1.9.9 everything is ok, still testing

@smiledexter
Copy link
Contributor

do not be angry that I am quarrelsome, I want your product to be a great

@M66B
Copy link
Owner

M66B commented Sep 16, 2013

I am not angry, I like to find this issue too.
What you are doing is good: try each XPrivacy version and find which version caused the problem.
Try each version without any restrictions, to make sure the restrictions are not the cause.
So, uninstall XPrivacy, reboot, install next higher version, reboot.

@smiledexter
Copy link
Contributor

Ok

@smiledexter
Copy link
Contributor

New knowledge, the phone freezes and then starts the following elements:

I/Xposed ( 1976): -----------------
I/Xposed ( 1976): 2013.09.16 15:34:51 UTC
I/Xposed ( 1976): Loading Xposed (for com.android.commands.am.Am)...
I/Xposed ( 1976): Loading modules from /data/app/biz.bokhorst.xprivacy-1.apk
I/Xposed ( 1976): Loading class biz.bokhorst.xprivacy.XPrivacy

phone is still suspended, after 70 seconds reboots.

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

attached, and the logarithm of the total at 55 seconds before the restart, and when within 15 seconds after the phone has become incapacitated

@smiledexter
Copy link
Contributor

In addition, the break up and the restriction is not on.

@M66B
Copy link
Owner

M66B commented Sep 16, 2013

My best guess: your device has not enough resources to process loading of XPrivacy (memory, CPU) or maybe there is a bug in Xposed or in your ROM. In any case, seen from XPrivacy there is little I can do if the XPrivacy software (class) is not loaded correctly.

Maybe there is some more info the the log file of Xposed.
It should be in the folder /data/xposed

@smiledexter
Copy link
Contributor

Xpripacy i can integrate small-scale log, tap the boot with more action? This will clearly Xprivacy what works when it is released. Do not forget that the protection is already active in is and only then after some minutes it is the act that occurs in the description. Now, after all, I am writing from LG and Xprivacy works but sometime it stops and the log will show what I wrote.

@smiledexter
Copy link
Contributor

Xprivacy Enable debug log, maybe this is what will show :)

@M66B
Copy link
Owner

M66B commented Sep 16, 2013

XPrivacy will log any warning and error, even if logging is disabled, so that won't bring any news.

@smiledexter
Copy link
Contributor

Surprisingly, 1.9.25 version works stably, have broken the 1 time in 15 hours, and I do not know for what because I could not see this log

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants