Using ADB to install APK via wifi

Source: Internet
Author: User

When installing, use ADB install xxx.apk
When you want to retain some program information and use overwrite installation, ADB-R install xxx.apk
When the package is uninstalled, use ADB uninstall com.xxx.xxx.apk (note that the package name must be used)

Question 1:
The following error occurs when overwrite is used: failure [install_parse_failed_inconsistent_certificates]
The reason is that because the APK signature is incorrect, unlike the existing program signature in the previous pad, the solution is that the installation cannot be overwritten,
You must first uninstall the existing program and then reinstall it. In this way, the original configuration of some programs will not be seen, and backup is required.

Question 2:
After the original program is uninstalled, the following error occurs when executing the installation statement: failure [install_failed_shared_user_incompatible]
The reason is that the previous program may be a group and share the same user ID. The new program conflicts with the original program.
Check whether all files are uninstalled. Ensure that all files are uninstalled and reinstall them.

Question 3:
Use
ADB pull/data/xxxx/xxx. DB./user/temp
Or use
ADB push./user/temp/xxx. DB/data/xxxx
Insufficient permissions may occur. Pad has been cracked.
(Lenove pad is also used. It is different from the usual cracking when using ADB shell.
After entering the shell, the root permission is not obtained directly, but is obtained only after Su,
When you exit, if the current permission is to run exit by the root user, then return to the general permission, and then execute exit to exit shell)
Is it because of incomplete cracking? Or is it because you need to set some permissions on the pad ??
In addition, any other cracked pad can successfully execute the preceding statement.
You have also tried chmod 777/data/xxxx to change the folder permission, but there is still no way to pull or push.
Due to time constraints, I decided to back up the file to/sdcard first.
When CP is used, it is found that there is no way to directly use CP. Originally, busybox was used for copying.
Enter ADB shell and run busybox CP/data/xxxx/xxx. DB/sdcard/tmp/xxx. DB
This is done. However, the above issue of pull or push is still unsolved. I don't know which one can tell the reason?

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.