Comparison between Android ADB push and ADB install (two ways to install APK)

Source: Internet
Author: User
Average, AndrodApplication ProgramThere are two installation methods: 1. push the APK file of the application to your mobile phone and run the following command: ADB push xxxx.apk/system/app.2. install xxxx.apk with ADB. 3. comparison between the two and precautions: 1) Disadvantages of the first method:. will overwrite the corresponding APK in the original system, so it is best to back up a copy first, use the following command: ADB pull/system/APP/xxxx.apk/home/B. sometimes, the following error message is displayed: failed to copy'/home/soundrecorder.apk 'to'/system/APP/soundrecorder.apk ': Read-Only file system is obvious, the/system/APP directory is read-only and files cannot be pushed to this directory. Solution: Install the SDK directly, as shown in the following code: ADB install-r/home/soundrecorder.apk // Note:-r indicates that this is mandatory, the application is installed in the/data/local/tmp/directory. 2) In the second method, the device does not save the APK file. If you delete this application later, you need to find the corresponding APK to install it.

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.