Super Terminal rewrite system write permissions and possible problems

Source: Internet
Author: User

Connect to the device with adb, enter mount-o remount rw/system, and press Enter. If the apk file is deleted with rm, the following error may be reported during re-installation.

INSTALL_FAILED_UPDATE_INCOMPATIBLE

Google...

Find the cause:

Http://xusaomaiss.javaeye.com/blog/393296

When you install android apk repeatedly, you may encounter the adb install error in the following ways: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]
This is probably because you did not thoroughly perform the uninstall application in the past, but simply rm/data/app/The following apk file. One remedy is as follows:
Start the simulator and enter the menu
Settings-> applications-> mange
Applications-> select the application-> select "unistall ".
In this way, the apk can be completely deleted and re-installed.
Another method is to set/data/system/packages. delete the corresponding information of the application in xml, restart the simulator, and then install it, because after adb install, it will be in packages. add the corresponding program information in xml.

However, none of them can be used here:
1. widgets are not in the mange applications list;
2. The app information is not found in/data/system/packages. xml, and the modification is troublesome.

Find...

Http://iame.javaeye.com/blog/391455

After creating the apk (signature required), after using adb install xx.apk,
1) The apk file is stored in the/data/app/directory.
2) Add a record to/data/system/packages. xml.
3) if the database is used, a data directory used by apk is added to/data after the first running.

The following methods are available for uninstallation:
1) Elegance: You can uninstall the application by choosing settings> applications> manage applications> application Info> uninstall.
2) Delete the apk directly in the/data/app directory.
Adb shell
Cd/data/app
Rm xxx.apk

This method is not recommended. Only apk is deleted. If there are other directories in the application, such as the database directory/data/xxx/databases/, they are not cleaned up, leaving hidden risks.
3) Hidden:
Adb uninstall package-name (this is not described in the adb help document, but can be used)
What, I don't know package-name? Check whether your AndroidManifest. xml has a required attribute of package, which is specified as package-name.

In PS. android, package and application are not one thing, but they are not clearly explained. Can you understand it like this:
Package is a physical concept, and application is a logical concept in the runtime?

OK. Try:
F: "publish> adb uninstall com. anrdroid. test
Success

Deleted successfully, and then installed:
[02:48:45-battery] semi Ming sync
[02:48:45-battery] Automatic Target Mode: using device 'ht843gz03305'
[02:48:45-battery] Uploading battery.apk onto device 'ht843gz03305'
[02:48:45-battery] Installing battery.apk...
[02:48:49-battery] Success!
[02:48:49-battery] "battery" bin "battery.apk installed on device
[02:48:49-battery] Done!

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.