赞
踩
- 05-19 06:46:05.088 4753 4753 E PackageManager: There should probably be exactly one setup wizard; found 2: matches=[ResolveInfo{1c0aa6d com.google.android.setupwizard/.SetupWizardActivity p=5 m=0x10
- 8000}, ResolveInfo{43f6a2 com.android.provision/.DefaultActivity p=1 m=0x108000}]
- 05-19 06:46:05.293 4753 4753 E System : ******************************************
- 05-19 06:46:05.294 4753 4753 E System : ************ Failure starting system services
- 05-19 06:46:05.294 4753 4753 E System : java.lang.RuntimeException: There must be exactly one installer; found [ResolveInfo{11560eb com.android.packageinstaller/.InstallStart m=0x608000}, ResolveIn
- fo{a640e48 com.google.android.packageinstaller/com.android.packageinstaller.InstallStart m=0x608000}]
- 05-19 06:46:05.294 4753 4753 E System : at com.android.server.pm.PackageManagerService.getRequiredInstallerLPr(PackageManagerService.java:3808)
- 05-19 06:46:05.294 4753 4753 E System : at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:3346)
- 05-19 06:46:05.294 4753 4753 E System : at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:2331)
- 05-19 06:46:05.294 4753 4753 E System : at com.android.server.SystemServer.startBootstrapServices(SystemServer.java:765)
- 05-19 06:46:05.294 4753 4753 E System : at com.android.server.SystemServer.run(SystemServer.java:529)
- 05-19 06:46:05.294 4753 4753 E System : at com.android.server.SystemServer.main(SystemServer.java:364)
- 05-19 06:46:05.294 4753 4753 E System : at java.lang.reflect.Method.invoke(Native Method)
- 05-19 06:46:05.294 4753 4753 E System : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
- 05-19 06:46:05.294 4753 4753 E System : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
- 05-19 06:46:05.294 4753 4753 E Zygote : System zygote died with exception
- 05-19 06:46:05.294 4753 4753 E Zygote : java.lang.RuntimeException: There must be exactly one installer; found [ResolveInfo{11560eb com.android.packageinstaller/.InstallStart m=0x608000}, ResolveIn
- fo{a640e48 com.google.android.packageinstaller/com.android.packageinstaller.InstallStart m=0x608000}]
- 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.server.pm.PackageManagerService.getRequiredInstallerLPr(PackageManagerService.java:3808)
- 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:3346)
- 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:2331)
- 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.server.SystemServer.startBootstrapServices(SystemServer.java:765)
- 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.server.SystemServer.run(SystemServer.java:529)
- 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.server.SystemServer.main(SystemServer.java:364)
- 05-19 06:46:05.294 4753 4753 E Zygote : at java.lang.reflect.Method.invoke(Native Method)
- 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
- 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
- 05-19 06:46:05.295 4753 4753 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
- 05-19 06:46:05.295 4753 4753 E AndroidRuntime: java.lang.RuntimeException: There must be exactly one installer; found [ResolveInfo{11560eb com.android.packageinstaller/.InstallStart m=0x608000}, Res
- olveInfo{a640e48 com.google.android.packageinstaller/com.android.packageinstaller.InstallStart m=0x608000}]
- 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.server.pm.PackageManagerService.getRequiredInstallerLPr(PackageManagerService.java:3808)
- 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:3346)
- 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:2331)
- 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.server.SystemServer.startBootstrapServices(SystemServer.java:765)
- 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.server.SystemServer.run(SystemServer.java:529)
- 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.server.SystemServer.main(SystemServer.java:364)
- 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
- 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
- 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
- 05-19 06:46:05.297 4753 4753 E AndroidRuntime: Error reporting crash
- 05-19 06:46:05.297 4753 4753 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'void android.app.IActivityManager.handleApplicationCrash(android.os.IBinder, androi
- d.app.ApplicationErrorReport$ParcelableCrashInfo)' on a null object reference
- 05-19 06:46:05.297 4753 4753 E AndroidRuntime: at com.android.internal.os.RuntimeInit$KillApplicationHandler.uncaughtException(RuntimeInit.java:145)
- 05-19 06:46:05.297 4753 4753 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1073)
- 05-19 06:46:05.297 4753 4753 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
- 05-19 06:46:05.297 4753 4753 E AndroidRuntime: at java.lang.Thread.dispatchUncaughtException(Thread.java:2187)
- 05-19 06:46:05.356 435 524 E flp : flp_screen_monitor_thread: Screen off
- 05-19 06:46:05.498 4658 4658 E Zygote : Exit zygote because system server (pid 4753) has terminated
- 05-19 06:46:06.597 4846 4846 E libc : Access denied finding property "persist.vendor.aee.core.direct"
- 05-19 06:46:06.645 4846 4846 E mtkaudiohalservice: Could not get passthrough implementation for android.hardware.soundtrigger@2.2::ISoundTriggerHw/default.
- 05-19 06:46:06.658 4846 4846 E mtkaudiohalservice: Could not get passthrough implementation for android.hardware.bluetooth.a2dp@1.0::IBluetoothAudioOffload/default.
- 05-19 06:46:06.697 4841 4841 E APM::Serializer: deserialize: Could not parse /odm/etc/audio_policy_configuration.xml document.
- 05-19 06:46:06.707 4841 4841 E APM::AudioPolicyEngine/Config: parse: Could not parse document /vendor/etc/audio_policy_engine_configuration.xml
在导入GMS包后跑完开机动画后一直卡住不动,通过日志分析 发现下面异常;
AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
AndroidRuntime: java.lang.RuntimeException: There must be exactly one installer; found [ResolveInfo{57e326d com.android.packageinstaller/.InstallStart m=0x608000}, ResolveInfo{766dea2 com.google.android.packageinstaller/com.android.packageinstaller.InstallStart m=0x608000}]
仔细看了一下发现是由于system app 里面存在两个 PackageInstall 一个是GooglePackageInstaller,另外一个是平台自带的 MtkPackageInstaller 或者其他的;由于平台修改了PackageInstaller 的名字,导致GooglePackageInstaller没有OVERRIDES ;
修改方法:在GMS 包里面的 gms\apps\GooglePackageInstaller\Android.mk
把多的PackageInstall 添加到 LOCAL_OVERRIDES_PACKAGES
LOCAL_OVERRIDES_PACKAGES := PackageInstaller MtkPackageInstaller
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。