[英]How can I auto install apk on android without market NOT system app
I get apk in server.我在服务器中获得了 apk。
and I try我尝试
File apkFile = new File("/sdcard/Download/openapk.apk");
Uri apkUri = Uri.fromFile(apkFile);
Intent webIntent = new Intent(Intent.ACTION_VIEW);
webIntent.setDataAndType(Uri.fromFile(apkFile), "application/vnd.android.package-archive");
webIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(webIntent);
this code.这段代码。 after showing under picture.
在图片下方显示后。 this code is when I click install button.
此代码是当我单击安装按钮时。 start install.
开始安装。 but I want auto install .and apk execution
但我想要自动安装 .and apk 执行
perhaps possible auto install after apk execution.也许可能会在 apk 执行后自动安装。 ?
?
Nope, not possible and it is pretty good because if it was possible, it would mean that an app could install anything on the device without asking the user...不,不可能,这很好,因为如果可能的话,这意味着应用程序可以在设备上安装任何东西而无需询问用户......
Android would be then even more insecure. Android 会更加不安全。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.