[Android 實作問題]How about running root privilege in Android OS
(Dickson, 2012-02-22 21:08)
1樓
I have a question about running some unit test program (shell script program, *.sh) which need root privilege in Android OS (terminal emulator). Those unit test programs are developed to test the kernel drivers and device.
Normally, the file system in Android OS are mounted with read-only and also have no setuid tool provided. Users could not run the program which need root privilege.
How do we make the shell script program to be run by users properly in Android OS (terminal emulator)? Or install some toolkits to get the root privilege before running the program.
But those test programs are not run on 模擬器and don’t use “adb shell” to start the terminal mode. They should be run on the released Android target platform (“user” version, not “eng” version) and provide to users for testing their devices.
I could not do the “mount” and “chmod 4755 xxxx” command in the Android target platform (terminal) due to permission denied.
I have a question about running some unit test program (shell script program, *.sh) which need root privilege in Android OS (terminal emulator). Those unit test programs are developed to test the kernel drivers and device.
Normally, the file system in Android OS are mounted with read-only and also have no setuid tool provided. Users could not run the program which need root privilege.
How do we make the shell script program to be run by users properly in Android OS (terminal emulator)? Or install some toolkits to get the root privilege before running the program.
Thanks for Tr. Jarey’s rapid response.
But those test programs are not run on 模擬器and don’t use “adb shell” to start the terminal mode. They should be run on the released Android target platform (“user” version, not “eng” version) and provide to users for testing their devices.
I could not do the “mount” and “chmod 4755 xxxx” command in the Android target platform (terminal) due to permission denied.