Add your own so library to Android/system/lib

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.