Skip to content Skip to sidebar Skip to footer

Run A Shell Command As Root On Android?

I thought it would be cool to turn the hardware button lights on when my application needs user attention so the user could get an indicator when the screen is blanked. As it turns

Solution 1:

The reason it fails it because your phone needs to be rooted.

See the Wikipedia entry for Rooting (Android OS).

It would be a major security flaw if any app on any phone could take root and do anything.

Solution 2:

If your phone has root access then you can fire shell scripts using Process and Runtime class..

Post a Comment for "Run A Shell Command As Root On Android?"