• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Device Admin Issue in Android 10-ResolveInfo ActivityInfo

We are currently using Device Admin application in Android 9 OS devices successfully and it is redirect to a Object reference error related to "ResolveInfo ActivityInfo" when we restart the Android 10 devices.Is there any way to solve this issue?

We are using below in Device Admin app main activity

foreach (var appResolve in ObtainListOfApplicationIntalled(this))
//foreach (ResolveInfo appResolve in ObtainListOfApplicationIntalled(this))
{
packagename = appResolve.ActivityInfo.PackageName;
//disable all
if (whitelisted.Contains(packagename) == false)
{
devicePolicyManager.SetApplicationHidden(demoDeviceAdmin, packagename, true);
}
}

  • view
 
Last edited:
Back
Top Bottom