Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Security Exception: package is frozen

Tags:

android

Has anyone seen this error before? App crashes immediately upon opening because it can't start the default Activity.

Failure starting process com.xyz
                                                java.lang.SecurityException: Package com.xyz is currently frozen!
                                                    at com.android.server.pm.PackageManagerService.checkPackageStartable(PackageManagerService.java:3610)
                                                    at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:3791)
                                                    at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:3751)
                                                    at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:3640)
                                                    at com.android.server.am.ActivityStackSupervisor.startSpecificActivityLocked(ActivityStackSupervisor.java:1582)
                                                    at com.android.server.am.ActivityStack.resumeTopActivityInnerLocked(ActivityStack.java:2663)
                                                    at com.android.server.am.ActivityStack.resumeTopActivityUncheckedLocked(ActivityStack.java:2215)
                                                    at com.android.server.am.ActivityStackSupervisor.resumeFocusedStackTopActivityLocked(ActivityStackSupervisor.java:2066)
                                                    at com.android.server.am.ActivityStackSupervisor.resumeFocusedStackTopActivityLocked(ActivityStackSupervisor.java:2056)
                                                    at com.android.server.am.ActivityManagerService.handleAppDiedLocked(ActivityManagerService.java:5270)
                                                    at com.android.server.am.ActivityManagerService.removeProcessLocked(ActivityManagerService.java:6645)
                                                    at com.android.server.am.ActivityManagerService.killPackageProcessesLocked(ActivityManagerService.java:6289)
                                                    at com.android.server.am.ActivityManagerService.forceStopPackageLocked(ActivityManagerService.java:6421)
                                                    at com.android.server.am.ActivityManagerService$MainHandler.handleMessage(ActivityManagerService.java:2079)
                                                    at android.os.Handler.dispatchMessage(Handler.java:105)
                                                    at android.os.Looper.loop(Looper.java:164)
                                                    at android.os.HandlerThread.run(HandlerThread.java:65)
like image 999
Marty Miller Avatar asked Dec 04 '17 22:12

Marty Miller


1 Answers

Your app maybe running into a "Frozen Frame" (see here: https://developer.android.com/topic/performance/vitals/frozen.html). This basically occurs if some part of your frame in your app takes longer than 700ms to load. I would suggest looking at the Android Vitals to see what is causing your app to hang. Perhaps you have an infinite loop somewhere. Also, check to see if there are any other error messages besides this one.

like image 185
Janac Meena Avatar answered Nov 16 '22 15:11

Janac Meena