Hide Installed app icon in android -
i have scenario in have hide few installed apps icon did try best didn't problem think following code work root devices only.
componentname componenttodisable = new componentname("com.androidbird.lmkt", "com.androidbird.lmkt.splashscreen"); getpackagemanager().setcomponentenabledsetting( componenttodisable, packagemanager.component_enabled_state_disabled, packagemanager.dont_kill_app);
logcat:
fatal exception: main java.lang.runtimeexception: unable start activity componentinfo{com.androidbird.lmkt/com.androidbird.lmkt.splashscreen}: java.lang.securityexception: permission denial: attempt change component state pid=18338, uid=10165, package uid=10140 @ android.app.activitythread.performlaunchactivity(activitythread.java:2325) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2377) @ android.app.activitythread.access$600(activitythread.java:167) @ android.app.activitythread$h.handlemessage(activitythread.java:1356) @ android.os.handler.dispatchmessage(handler.java:99) @ android.os.looper.loop(looper.java:153) @ android.app.activitythread.main(activitythread.java:5341) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:511) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:929) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:696) @ dalvik.system.nativestart.main(native method) caused by: java.lang.securityexception: permission denial: attempt change component state pid=18338, uid=10165, package uid=10140 @ android.os.parcel.readexception(parcel.java:1425) @ android.os.parcel.readexception(parcel.java:1379) @ android.content.pm.ipackagemanager$stub$proxy.setcomponentenabledsetting(ipackagemanager.java:2573) @ android.app.applicationpackagemanager.setcomponentenabledsetting(applicationpackagemanager.java:1250) com.androidbird.dashboard.mainactivity.oncreate(mainactivity.java:64) @ android.app.activity.performcreate(activity.java:5125) @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1081) @ android.app.activitythread.performlaunchactivity(activitythread.java:2289)
securityexception: permission denial: attempt change component state pid=18338, uid=10165, package uid=10140
you cant hide other application ... need root access... can hide app icon
Comments
Post a Comment