1. 查看APK及其对应包名的详细信息 adb shell dumpsys package
change the apk name solution , there is no influence the TestService work.
No matter TestService.apk launch or M3_TestService.apk launch, they all run com.test.TestService
Just change apk name, the apk source code and com.test.TestService not change.
When launch apk, execute CMD as below:
adb shell dumpsys package | grep -i -e "testvision"
=====================================================
22dc072 com.test.TestService/.NotificationReceiver
com.test.TestService
[com.test.TestService]
Package [com.test.TestService] (109c50):
pkg=Package{2ed206e com.test.TestService}
codePath=/product/app/M3_TestService
resourcePath=/product/app/M3_TestService
legacyNativeLibraryDir=/product/app/M3_TestService/lib
applicationInfo=ApplicationInfo{1ec830f com.test.TestService}
dataDir=/data/user/0/com.test.TestService
PackageSetting{109c50 com.test.TestService/1000}
[com.test.TestService]
*path: /product/app/M3_TestService/M3_TestService.apk*
[com.test.TestService]
M3_TestService.apk - 217
*1970/01/01 13:13: Adding duplicate shared id: 1000 name=com.test.TestService*
======================================================