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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -