Run emulator on Android 11 (R)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Run emulator on Android 11 (R)

Nguyễn Trung Thành
Dear all,

I am trying to get source code from master from to build. With few adjustment I can build this source code. However, emulator isn't started as well. I check logcat and there are some errors. 

Here is error:
08-27 08:04:46.366   718   718 D SystemServerTiming: MakePackageManagerServiceReady took to complete: 205ms
08-27 08:04:46.366   718   718 E Zygote  : System zygote died with exception
08-27 08:04:46.366   718   718 E Zygote  : java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.android.car.developeroptions: android.permission.READ_PRIVILEGED_PHONE_STATE}
08-27 08:04:46.366   718   718 E Zygote  : at com.android.server.pm.permission.PermissionManagerService.systemReady(PermissionManagerService.java:2983)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.server.pm.permission.PermissionManagerService.access$100(PermissionManagerService.java:122)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.server.pm.permission.PermissionManagerService$PermissionManagerServiceInternalImpl.systemReady(PermissionManagerService.java:3044)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.server.pm.PackageManagerService.systemReady(PackageManagerService.java:21192)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.server.SystemServer.startOtherServices(SystemServer.java:2035)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.server.SystemServer.run(SystemServer.java:536)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.server.SystemServer.main(SystemServer.java:362)
08-27 08:04:46.366   718   718 E Zygote  : at java.lang.reflect.Method.invoke(Native Method)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:906)
08-27 08:04:46.366   718   718 D AndroidRuntime: Shutting down VM
08-27 08:04:46.366   718   718 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
08-27 08:04:46.366   718   718 E AndroidRuntime: java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.android.car.developeroptions: android.permission.READ_PRIVILEGED_PHONE_STATE}
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.server.pm.permission.PermissionManagerService.systemReady(PermissionManagerService.java:2983)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.server.pm.permission.PermissionManagerService.access$100(PermissionManagerService.java:122)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.server.pm.permission.PermissionManagerService$PermissionManagerServiceInternalImpl.systemReady(PermissionManagerService.java:3044)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.server.pm.PackageManagerService.systemReady(PackageManagerService.java:21192)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.server.SystemServer.startOtherServices(SystemServer.java:2035)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.server.SystemServer.run(SystemServer.java:536)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.server.SystemServer.main(SystemServer.java:362)
08-27 08:04:46.366   718   718 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:906)
08-27 08:04:46.367   718   718 I DropBoxManagerService: add tag=system_server_crash isTagEnabled=true flags=0x2

I see something relate to READ_PRIVILEGED_PHONE_STATE  but I don't know how to fix it.
Could you help me to check the problem?

Best regards,
Thanh

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/c5a936a9-00b4-4650-ab45-25d1c4735a7bn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Run emulator on Android 11 (R)

Glenn Kasten
Preview source code is incomplete and for reference only, and is not intended to be buildable or fully executable.

On Friday, August 28, 2020 at 11:49:48 AM UTC-7, Nguyễn Trung Thành wrote:
Dear all,

I am trying to get source code from master from to build. With few adjustment I can build this source code. However, emulator isn't started as well. I check logcat and there are some errors. 

Here is error:
08-27 08:04:46.366   718   718 D SystemServerTiming: MakePackageManagerServiceReady took to complete: 205ms
08-27 08:04:46.366   718   718 E Zygote  : System zygote died with exception
08-27 08:04:46.366   718   718 E Zygote  : java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.android.car.developeroptions: android.permission.READ_PRIVILEGED_PHONE_STATE}
08-27 08:04:46.366   718   718 E Zygote  : at com.android.server.pm.permission.PermissionManagerService.systemReady(PermissionManagerService.java:2983)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.server.pm.permission.PermissionManagerService.access$100(PermissionManagerService.java:122)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.server.pm.permission.PermissionManagerService$PermissionManagerServiceInternalImpl.systemReady(PermissionManagerService.java:3044)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.server.pm.PackageManagerService.systemReady(PackageManagerService.java:21192)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.server.SystemServer.startOtherServices(SystemServer.java:2035)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.server.SystemServer.run(SystemServer.java:536)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.server.SystemServer.main(SystemServer.java:362)
08-27 08:04:46.366   718   718 E Zygote  : at java.lang.reflect.Method.invoke(Native Method)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
08-27 08:04:46.366   718   718 E Zygote  : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:906)
08-27 08:04:46.366   718   718 D AndroidRuntime: Shutting down VM
08-27 08:04:46.366   718   718 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
08-27 08:04:46.366   718   718 E AndroidRuntime: java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.android.car.developeroptions: android.permission.READ_PRIVILEGED_PHONE_STATE}
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.server.pm.permission.PermissionManagerService.systemReady(PermissionManagerService.java:2983)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.server.pm.permission.PermissionManagerService.access$100(PermissionManagerService.java:122)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.server.pm.permission.PermissionManagerService$PermissionManagerServiceInternalImpl.systemReady(PermissionManagerService.java:3044)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.server.pm.PackageManagerService.systemReady(PackageManagerService.java:21192)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.server.SystemServer.startOtherServices(SystemServer.java:2035)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.server.SystemServer.run(SystemServer.java:536)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.server.SystemServer.main(SystemServer.java:362)
08-27 08:04:46.366   718   718 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
08-27 08:04:46.366   718   718 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:906)
08-27 08:04:46.367   718   718 I DropBoxManagerService: add tag=system_server_crash isTagEnabled=true flags=0x2

I see something relate to READ_PRIVILEGED_PHONE_STATE  but I don't know how to fix it.
Could you help me to check the problem?

Best regards,
Thanh

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/6fefca37-85f8-4020-bdeb-159c5cedcfc8o%40googlegroups.com.