Android system by default only the data directory is readable, and other directories are read-only, so do a
Some software debugging, you need to transfer library files or binary files to these directories, below I will introduce how to modify the text
Folder to avoid the need to recompile Android source code.
1 Console modifications
First of all, we want to enter the highest access to Android, when the default is not the highest permissions, in the terminal input SU This life
Order, you can see the $ programming # number as shown in.
Then we take the system folder as an example, first go to the Data folder, create a new hello.c file, we taste
Try copying the hello.c file to the Sbin folder in the root directory, and you will find the Read-only files system displayed, specifically
Such as
Entering the Sbin directory will find a hello.c file, such as
However, there are some problems, only the data directory and the system directory can be saved, the other restarts will not
The
2 adb modifications
The above is said to operate in the HyperTerminal, the bottom of the simple to receive the operation of the ADB command, here is not
All in one, the third chapter of the user manual has detailed ADB use documentation.
#adb Shell
#su
#mount-O rw,remount/
#exit
More information: http://topeetboard.com/More about: https://arm-board.taobao.com/
itop-Development Board-android-System Modify folder permissions use document