kenshin33 / boot-unlocker-gnex

Automatically exported from code.google.com/p/boot-unlocker-gnex
Apache License 2.0
2 stars 0 forks source link

First root access causes multiple requests or times out. #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Uninstall app.
2. Reinstall app.
3. Run app.

What is the expected output? What do you see instead?
Should see _one_ prompt from Superuser or SuperSU for root access.  Program 
should wait gracefully for access to be granted.  Instead sometimes remains 
blank and must be clicked before access request dialog appears.  App may 
timeout requesting access, or request access more that once during startup.

Quitting the app, launching Superuser or SuperSU and granting access to 
BootUnlocker in settings fixes the problem: it will launch correctly the next 
time.

Please use labels and text to provide additional information.
This may be a result of exec()ing su on the main thread to check bootloader 
status.

Original issue reported on code.google.com by jmason...@gmail.com on 24 Jun 2012 at 4:43

GoogleCodeExporter commented 9 years ago

Original comment by jmason...@gmail.com on 24 Jun 2012 at 4:45

GoogleCodeExporter commented 9 years ago

Original comment by supp...@jmason888.com on 25 Jun 2012 at 5:02

GoogleCodeExporter commented 9 years ago
Fixed by running su on an AsyncTask

Original comment by jmason...@gmail.com on 25 Jun 2012 at 5:59