Environment: already has the root permission of Android system, our apk is boot start
Test: Copy the 2 identical versions below the system System/app directory
The ADB root #获取root权限, provided that the root permission has been opened, namely: Debug compiled Android system adb remount # will write the system directory to ADB push c:/test_1_v1.apk/system/ The app #版本号为1, then restart, and then perform the following steps
ADB push C:/test_2_v1.apk/system/app #版本号仍然为1
found that when 2 versions exist at the same time, the same can be started, normal operation!
So now let's take a look at the different version numbers.
The ADB root #获取root权限, provided that the root permission has been opened, namely: Debug compiled Android system adb remount # will write the system directory to ADB push c:/test_1_v1.apk/system/ #版本号为1 The app, then restart, and then follow the steps below for adb push C:/test_2_v2.apk/system/app #版本号为2
The system executes the APK package with version number 1. , when the test_1_v1.apk is removed and restarted again, the APK package with version number 2 will be executed, so it will not cause any conflicts. But notice that the previous version was deleted
Android Development System/app Directory below has multiple duplicate package name APK, will not conflict