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

Use wakelock for batch operations #1683

Closed
M66B opened this issue May 24, 2014 · 5 comments
Closed

Use wakelock for batch operations #1683

M66B opened this issue May 24, 2014 · 5 comments

Comments

@M66B
Copy link
Owner

M66B commented May 24, 2014

To keep the processor running and to prevent the lowmem killer from killing an operation that runs too long.

@an0n981
Copy link
Contributor

an0n981 commented May 25, 2014

Nice. Currently my nightly backup takes almost 2 hrs. Will there be a test version for this?

@M66B
Copy link
Owner Author

M66B commented May 25, 2014

Yes, why not: http://www.xprivacy.eu/XPrivacy_2.0.25-2.apk
Please let me know if it speed things up.

@an0n981
Copy link
Contributor

an0n981 commented May 25, 2014

Worked perfectly.

Wakelocks (requires root / system app on Android 4.4+)

XPrivacy.Export (biz.bokhorst.xprivacy.XPrivacy): 3 m 7 s (187 s) Count:1 10.4%

After the export the device went right back into deep sleep

@M66B
Copy link
Owner Author

M66B commented May 26, 2014

Wakelocks should work fine on KitKat.
Only reading battery stats by for example wakelock detector requires root.

@an0n981
Copy link
Contributor

an0n981 commented May 26, 2014

Of course. I just pasted the results from Better Battery Stats (which warns that root is needed to read the wake locks) to show that the wake lock worked and was properly released.

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

2 participants