把打包好的apk放到pda设备上,然后正常安装会 提示应用未安装, 然后通过adb查看日志 发现
0-14 22:29:01.595 I/PackageManager( 1432): ==============Install PKG: com.google.android.packageinstaller ================
10-14 22:29:01.595 D/PMUtils ( 1432): allowInstall marketPKG: com.google.android.packageinstaller installPKG: com.android.simple
10-14 22:29:01.595 D/PMUtils ( 1432): Forbid Install Android App
10-14 22:29:01.596 W/PackageManager( 1432): Failed parse during installPackageLI
10-14 22:29:01.596 W/PackageManager( 1432): android.content.pm.PackageParser$PackageParserException: Forbid AOSP App
10-14 22:29:01.596 W/PackageManager( 1432): at com.android.server.pm.PackageManagerService.installPackageLI(PackageManagerService.java:15544)
10-14 22:29:01.596 W/PackageManager( 1432): at com.android.server.pm.PackageManagerService.installPackageTracedLI(PackageManagerService.java:15257)
10-14 22:29:01.596 W/PackageManager( 1432): at com.android.server.pm.PackageManagerService.-wrap26(PackageManagerService.java)
10-14 22:29:01.596 W/PackageManager( 1432): at com.android.server.pm.PackageManagerService$12.run(PackageManagerService.java:12748)
10-14 22:29:01.596 W/PackageManager( 1432): at android.os.Handler.handleCallback(Handler.java:751)
10-14 22:29:01.596 W/PackageManager( 1432): at android.os.Handler.dispatchMessage(Handler.java:95)
10-14 22:29:01.596 W/PackageManager( 1432): at android.os.Looper.loop(Looper.java:154)
10-14 22:29:01.596 W/PackageManager( 1432): at android.os.HandlerThread.run(HandlerThread.java:61)
10-14 22:29:01.596 W/PackageManager( 1432): at com.android.server.ServiceThread.run(ServiceThread.java:46)
0 个回复