Execute the following command:
1 re-mount the/system directory so that it can read and write: Mount-o Remount,rw/dev/null/system
2 permissions to modify this file: chmod 777/system
3 Use the DD and MV commands to copy files to the system:
DD if=/data/data/com.simo.simomate/lib/libpcap.so of=/system/lib/libpcap.so
mv/data/data/com.simo.simomate/lib/libpcap.so/system/lib/
Note: Some mobile phones have some common commands removed, the solution:
1, get the source code of the corresponding command in toolbox, compile and generate the command file, copy it to the/system/bin directory.
2, install BusyBox, use the busybox command, BusyBox command than the Toolbox command to enrich more
Execute in the tools directory where the emulator resides
1. Start the AVD3.0 simulator
./EMULATOR-AVD AVD3.0
2. Specify the size of the simulator storage space, not the size of the SD card, only in order to the emulator system directory push file, otherwise will report out of memory error
./emulator-partition-size 256-AVD AVD3.0
3.push a.so to System/lib directory method
(1) Enter ADB shell
./ADB Shell
(2) Exit shell
Exit
(3) System/lib directory is not writable, you need to execute remount first, make it writable
./adb remount
(4) Push file a.so to System/lib directory
./ADB Push: /.. /mydroid/out/target/product/generic/system/lib/a.so/system/lib
Add your own so library to Android/system/lib