java - Android install apk without asking user permission -
i building app kiosk mode purposes. device not rooted. app device administrator (android.permission.bind_device_admin) . want app able download , direct install other apks onto tablet without asking permission.
at moment using android downloadmanager download apk: then:
intent intent = new intent(intent.action_view); intent.setdataandtype(uri.fromfile(new file(filepath)), "application/vnd.android.package-archive"); intent.setflags(intent.flag_activity_new_task); // without flag android returned intent error! downloadmanageractivity.this.startactivity(intent);
to install apk. bring popup confirmation. theer away direct install apk after has been downloaded? thanks
update:
i came across post: https://paulononaka.wordpress.com/2011/07/02/how-to-install-a-application-in-background-on-android/
but not work , limited.
there no way install apk without popup confirmation. by-design security feature. phone vendors samsung offer options safe or knox allow installing without prompt, requires additional permissions , these technologies not available across android devices.
Comments
Post a Comment