当前位置:   article > 正文

合入GMS 开机错误_there should probably be exactly one setup wizard

there should probably be exactly one setup wizard
  1. 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
  2. 8000}, ResolveInfo{43f6a2 com.android.provision/.DefaultActivity p=1 m=0x108000}]
  3. 05-19 06:46:05.293 4753 4753 E System : ******************************************
  4. 05-19 06:46:05.294 4753 4753 E System : ************ Failure starting system services
  5. 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
  6. fo{a640e48 com.google.android.packageinstaller/com.android.packageinstaller.InstallStart m=0x608000}]
  7. 05-19 06:46:05.294 4753 4753 E System : at com.android.server.pm.PackageManagerService.getRequiredInstallerLPr(PackageManagerService.java:3808)
  8. 05-19 06:46:05.294 4753 4753 E System : at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:3346)
  9. 05-19 06:46:05.294 4753 4753 E System : at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:2331)
  10. 05-19 06:46:05.294 4753 4753 E System : at com.android.server.SystemServer.startBootstrapServices(SystemServer.java:765)
  11. 05-19 06:46:05.294 4753 4753 E System : at com.android.server.SystemServer.run(SystemServer.java:529)
  12. 05-19 06:46:05.294 4753 4753 E System : at com.android.server.SystemServer.main(SystemServer.java:364)
  13. 05-19 06:46:05.294 4753 4753 E System : at java.lang.reflect.Method.invoke(Native Method)
  14. 05-19 06:46:05.294 4753 4753 E System : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
  15. 05-19 06:46:05.294 4753 4753 E System : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
  16. 05-19 06:46:05.294 4753 4753 E Zygote : System zygote died with exception
  17. 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
  18. fo{a640e48 com.google.android.packageinstaller/com.android.packageinstaller.InstallStart m=0x608000}]
  19. 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.server.pm.PackageManagerService.getRequiredInstallerLPr(PackageManagerService.java:3808)
  20. 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:3346)
  21. 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:2331)
  22. 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.server.SystemServer.startBootstrapServices(SystemServer.java:765)
  23. 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.server.SystemServer.run(SystemServer.java:529)
  24. 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.server.SystemServer.main(SystemServer.java:364)
  25. 05-19 06:46:05.294 4753 4753 E Zygote : at java.lang.reflect.Method.invoke(Native Method)
  26. 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
  27. 05-19 06:46:05.294 4753 4753 E Zygote : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
  28. 05-19 06:46:05.295 4753 4753 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
  29. 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
  30. olveInfo{a640e48 com.google.android.packageinstaller/com.android.packageinstaller.InstallStart m=0x608000}]
  31. 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.server.pm.PackageManagerService.getRequiredInstallerLPr(PackageManagerService.java:3808)
  32. 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:3346)
  33. 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:2331)
  34. 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.server.SystemServer.startBootstrapServices(SystemServer.java:765)
  35. 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.server.SystemServer.run(SystemServer.java:529)
  36. 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.server.SystemServer.main(SystemServer.java:364)
  37. 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
  38. 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
  39. 05-19 06:46:05.295 4753 4753 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
  40. 05-19 06:46:05.297 4753 4753 E AndroidRuntime: Error reporting crash
  41. 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
  42. d.app.ApplicationErrorReport$ParcelableCrashInfo)' on a null object reference
  43. 05-19 06:46:05.297 4753 4753 E AndroidRuntime: at com.android.internal.os.RuntimeInit$KillApplicationHandler.uncaughtException(RuntimeInit.java:145)
  44. 05-19 06:46:05.297 4753 4753 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1073)
  45. 05-19 06:46:05.297 4753 4753 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
  46. 05-19 06:46:05.297 4753 4753 E AndroidRuntime: at java.lang.Thread.dispatchUncaughtException(Thread.java:2187)
  47. 05-19 06:46:05.356 435 524 E flp : flp_screen_monitor_thread: Screen off
  48. 05-19 06:46:05.498 4658 4658 E Zygote : Exit zygote because system server (pid 4753) has terminated
  49. 05-19 06:46:06.597 4846 4846 E libc : Access denied finding property "persist.vendor.aee.core.direct"
  50. 05-19 06:46:06.645 4846 4846 E mtkaudiohalservice: Could not get passthrough implementation for android.hardware.soundtrigger@2.2::ISoundTriggerHw/default.
  51. 05-19 06:46:06.658 4846 4846 E mtkaudiohalservice: Could not get passthrough implementation for android.hardware.bluetooth.a2dp@1.0::IBluetoothAudioOffload/default.
  52. 05-19 06:46:06.697 4841 4841 E APM::Serializer: deserialize: Could not parse /odm/etc/audio_policy_configuration.xml document.
  53. 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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/679925
推荐阅读
相关标签
  

闽ICP备14008679号