CloseFile / android-permissions

Automatically exported from code.google.com/p/android-permissions
0 stars 0 forks source link

reboot-button in app not working #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
if i touch the reboot-button in the app, i get an confirmation-dialog, but the 
phone does not reboot
@htc-desire, root + s-off

Original issue reported on code.google.com by schmidtl...@gmail.com on 28 Jun 2011 at 5:07

GoogleCodeExporter commented 8 years ago
just added the logfile.

Original comment by schmidtl...@gmail.com on 28 Jun 2011 at 5:17

Attachments:

GoogleCodeExporter commented 8 years ago
What happens if you type "reboot" in a terminal application with root?

Original comment by Stericso...@gmail.com on 28 Jul 2011 at 4:46

GoogleCodeExporter commented 8 years ago
I can confirm Issue 8, but finally found a workaround!

HTC Desire, official RUU 2.3.3 + root + s-off

Typing "reboot" in a terminal application with root...
$ reboot
not permited!             [permited or permitted???]
$ su
# reboot
not permited!
# ls -l /system/bin/reboot
-rwsr-sr-x root shell 5604
#

In the main program Description, you mention that "What's happening is the app 
is making the changes but the phone is restoring the permissions on each boot". 
I have confirmed with HTC Desire 2.3.3, that this is not the case at all. The 
problem lies only in the subsequent stock shutdown procedure after the 
permission changes and not in the booting procedure. That means that there is a 
workaround for all of us that have problems using the included reboot option: 
Shutting down or rebooting the system just once by other means than the stock 
option... In that case, the changes become persistent...

You also mention that "You must reboot before these changes take place". Maybe 
you should inform that you have to reboot from within the application, or else, 
stock rebooting can probably restore the permissions.

WORKAROUND
----------
If the Reboot button in the app does not reboot the system, try to reboot 
otherwise. DO NOT USE the stock Power options menu because during stock 
shutdown procedure, while the [@ Shutting down...] dialog box is displayed, the 
permissions are restored back to the previous values. Try using any rebooting 
application which works with your phone. You will notice that the system shuts 
down in a couple of seconds, not waiting for the [@ Shutting down...] 
procedure. It does not matter whether you select hot reboot, normal reboot or 
shutdown from these applications. The changes become persistent anyway. The 
only thing to avoid is using the stock option to shutdown the system.

If you cannot find any restarting application working, after setting the 
desired permissions, remove the battery from your device when it is idle (not 
the best option though)...

Specifically for HTC Desire 2.3.3, there are some free applications in the 
Android Market which seem to work fine. Obviously, these applications use a 
different approach to reboot the system. Some of these applications are 
(alphabetically listed) "LiGux Tools 2.0 by LiGux Core Team", "Quick Boot 
(Reboot) 4.1 by Sirius Applications", "Quick Reboot 1.0 by Rob0rz". Most of the 
other applications seem to fail to work with HTC Desire 2.3.3, including 
(alphabetically listed) "AnReboot 1.3 by TRUSTUDIO", "Easy Reboot 1.9.6 by 
Potente", "EzBoot (Reboot) 1.69 by Lfaudm", "Fast Reboot (no ads) 1.24 by 
DroidGram", "Fast Reboot 1.0 by JiangyouLife", "Quick Shutdown 1.0 by Rob0rz", 
"System Toolbox 2.2.9.1 by Potente".

Waiting for a Stericson reboot patch (while already using this excellent piece 
of software)...

Maybe you could include an extra option in the Advanced Options menu, opting 
for a customized rebooting procedure instead of the included one, so users that 
have reboot problems can link the Reboot button to a working application / 
shortcut / shell command.

MAIN SCREEN REFRESHING ISSUE
----------------------------
After changing the status of some permissions and returning to the main screen, 
it would be nice to refresh the permissions list with these changes. You now 
have to exit the program and reload it again to refresh the main screen, which 
is quite disturbing. Of course, a final reboot is mandatory, but in the mean 
while, you could browse the list and change more permissions for more 
applications, going back and forward a lot of times until you could be 
satisfied with the final result and decide to reboot to make the permission 
changes effective.

Also, exiting the application should inform for the pending rebooting and give 
a final rebooting option.

Thank you for this excellent piece of software. Keep up the good work.

Please give any feedback...

Original comment by loko...@gmail.com on 17 Sep 2011 at 10:12

GoogleCodeExporter commented 8 years ago
I am going to implement this solution, thanks for the great tip!

Original comment by Stericso...@gmail.com on 6 Nov 2011 at 11:30

GoogleCodeExporter commented 8 years ago
The reboot button is going to be eliminated, I have worked out a solution that 
works with the normal restarting the phone or rebooting the phone.

Original comment by StericDr...@gmail.com on 5 Jan 2012 at 5:39

GoogleCodeExporter commented 8 years ago

Original comment by Stericso...@gmail.com on 7 Jan 2012 at 2:06