Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

+1 vote
Hello!
I have custom build hmdm-android. I increase versionCode and versionName and make new build. After installing the new apk version HMDM Launcher(Agent) from backend server, the Agent does not start automatically (you can start it manually). Device owner rights is set.

The com.hmdm.emuilauncherrestarter application is installed and running.
LogCat:
E Failure starting process com.hmdm.launcher
java.lang.SecurityException: Package com.hmdm.launcher is currently frozen!
at com.android.server.pm.PackageManagerService.checkPackageStartable(PackageManagerService.java:4493)
at com.android.server.am.ProcessList.startProcessLocked(ProcessList.java:1455)
at com.android.server.am.ProcessList.startProcessLocked(ProcessList.java:1851)
at com.android.server.am.ProcessList.startProcessLocked(ProcessList.java:1963)
at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:3041)
at com.android.server.am.ActivityManagerService$LocalService.startProcess(ActivityManagerService.java:18499)
at com.android.server.wm.-$$Lambda$qMFJUmfG50ZSjk7Tac67xBia0d4.accept(Unknown Source:29)
at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:353)
at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:195)
at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:86)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.os.HandlerThread.run(HandlerThread.java:67)
at com.android.server.ServiceThread.run(ServiceThread.java:44)

Please help me
by (130 points)

1 Answer

0 votes
To restart Headwind MDM launcher after updating, we use the "Launcher Restarter" app (package ID: com.hmdm.emuilauncherrestarter).

Make sure this application is included in your configuration, and the "Launcher Restarter" app is installed.

Here's the related error description: https://stackoverflow.com/questions/47643030/android-security-exception-package-is-frozen  Probably this could help you resolving the issue.
by (36.8k points)
Headwind restarter included and working. It try to restart launcher, i see ""Starting Headwind MDM Launcher!" in logcat. Forgot to say, i use Android 10. This behavior is observed on two devices. If i modify emuilauncherrestarter and leave only one function call for example
guaranteedStartHandler.postDelayed(runnable, 10000);
I see in logcat
ActivityTaskManager     system_server                        W  Background activity start [callingPackage: com.hmdm.emuilauncherrestarter; callingUid: 10074; isCallingUidForeground: false; isCallingUidPersistentSystemProcess: false; realCallingUid: 10074; isRealCallingUidForeground: false; isRealCallingUidPersistentSystemProcess: false; originatingPendingIntent: null; isBgStartWhitelisted: false; intent: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.hmdm.launcher cmp=com.hmdm.launcher/.ui.MainActivity }; callerApp: ProcessRecord{e6d0576 10096:com.hmdm.emuilauncherrestarter/u0a74}]
...