Android 静默安装和静默卸载(SilentInstaller)

上传者: zhouyuanjing | 上传时间: 2021-05-28 16:43:54 | 文件大小: 104KB | 文件类型: ZIP
详情见:Android 静默安装和静默卸载(系统层) http://blog.csdn.net/zhouyuanjing/article/details/78507606 安装: Intent intent = new Intent("android.intent.action.SILENT_PACKAGE_INSTALL"); intent.putExtra("silent_install_file", "/sdcard/Helloworld.apk"); intent.putExtra("silent_install_auto_start", true);//是否安装并启动 intent.putExtra("silent_install_start_clazz", "com.example.helloworld.MainActivity");//如果安装并启动,则需指定activityName sendBroadcast(intent); 卸载: Intent intent = new Intent("android.intent.action.SILENT_PACKAGE_DELETE"); intent.putExtra("silent_delete_package", "com.example.helloworld");//指定需要卸载apk的包名 sendBroadcast(intent);

文件下载

资源详情

[{"title":"( 35 个子文件 104KB ) Android 静默安装和静默卸载(SilentInstaller)","children":[{"title":"SilentInstaller","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 239B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-zh-rCN","children":[{"title":"strings.xml <span style='color:#111;'> 499B </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 543B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 213B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 692B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"android","children":[{"title":"silentinstaller","children":[{"title":"MainActivity.java <span style='color:#111;'> 241B </span>","children":null,"spread":false},{"title":"SilentInstallerService.java <span style='color:#111;'> 8.29KB </span>","children":null,"spread":false},{"title":"SilentInstallerReceiver.java <span style='color:#111;'> 1.87KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 425B </span>","children":null,"spread":false},{"title":"SilentInstallerTest","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 911B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 218B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 213B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 692B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"android","children":[{"title":"silentinstallertest","children":[{"title":"MainActivity.java <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 425B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 607B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 50.19KB </span>","children":null,"spread":false},{"title":".project <span style='color:#111;'> 822B </span>","children":null,"spread":false},{"title":"Android.mk <span style='color:#111;'> 228B </span>","children":null,"spread":false}],"spread":true},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 173B </span>","children":null,"spread":false}],"spread":true},{"title":".project <span style='color:#111;'> 818B </span>","children":null,"spread":false},{"title":"Android.mk <span style='color:#111;'> 282B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • dzhappy :
    帮朋友下的,哈哈
    2019-01-24
  • stevenluohongcai1988 :
    您好,您这个在7.0以上验证了么
    2018-05-07
  • qq_23658925 :
    您好,你这个里面的代码,我导入我的eclipse里面,PackageManager.installPackage报错是怎么回事呢,是安卓版本的问题么?
    2017-11-24

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明