首页 移动开发 Android     /    AndroidPackageInstaller源代码(静默安装参考)

AndroidPackageInstaller源代码(静默安装参考)

上传者: richerz | 上传时间:2023/11/25 15:19:41 | 文件大小:194KB | 文件类型:zip
AndroidPackageInstaller源代码(静默安装参考)
近日想实现静默安装(不提示用户),网上搜文章大多提到一个方法PackageManager.install,这是个非公开方法,它的用法是借鉴了内置应用packageInstaller,跳过Activity提示用户,直接调用核心方法。
用Git下载Android源码较麻烦,也很大,特把这一部分的源码打包给大家。
本软件ID:4145269

文件下载

资源详情

[{"title":"(76个子文件194KB)AndroidPackageInstaller源代码(静默安装参考)","children":[{"title":"android-platform_packages_apps_packageinstaller-668cc01","children":[{"title":"AndroidManifest.xml <span style='color:#111;'>2.88KB</span>","children":null,"spread":false},{"title":"res","children":[{"title":"values-lv","children":[{"title":"strings.xml <span style='color:#111;'>7.34KB</span>","children":null,"spread":false}],"spread":true},{"title":"values-el","children":[{"title":"strings.xml <span style='color:#111;'>9.13KB</span>","children":null,"spread":false}],"spread":true},{"title":"values-sr","children":[{"title":"strings.xml <span style='color:#111;'>8.79KB</span>","children":null,"spread":false}],"spread":true},{"title":"values-tl","children":[{"title":"strings.xml <span style='color:#111;'>7.18KB</span>","children":null,"spread":false}],"spread":true},{"title":"values-sl","children":[{"title":"strings.xml <span style='color:#111;'>7.01KB</span>","children":null,"spread":false}],"spread":true},{"title":"values-sv","children":[{"title":"strings.xml <span style='color:#111;'>6.92KB</span>","children":null,"spread":false}],"spread":true},{"title":"values-sk","children":[{"title":"strings.xml <span style='color:#111;'>7.25KB</span>","children":null,"spread":false}],"spread":true},{"title":"values-es-rUS","children":[{"title":"strings.xml <span style='color:#111;'>7.22KB</span>","children":null,"spread":false}],"spread":true},{"title":"values-iw","children":[{"title":"strings.xml <span style='color:#111;'>7.41KB</span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"install_start.xml <span style='color:#111;'>1.29KB</span>","children":null,"spread":false},{"title":"uninstall_confirm.xml <span style='color:#111;'>4.43KB</span>","children":null,"spread":false},{"title":"op_progress.xml <span style='color:#111;'>4.52KB</span>","children":null,"spread":false},{"title":"install_confirm.xml <span style='color:#111;'>4.93KB</span>","children":null,"spread":false},{"title":"app_details.xml <span style='color:#111;'>2.53KB</span>","children":null,"spread":false},{"title":"uninstall_progress.xml <span style='color:#111;'>4.43KB</span>","children":null,"spread":false}],"spread":true},{"title":"values-th","children":[{"title":"strings.xml <span style='color:#111;'>10.14KB</span>","children":null,"spread":false}],"spread":true},{"title":"values-fr","children":[{"title":"strings.xml <span style='color:#111;'>7.42KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-zh-rTW","children":[{"title":"strings.xml <span style='color:#111;'>6.80KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-nl","children":[{"title":"strings.xml <span style='color:#111;'>7.07KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-cs","children":[{"title":"strings.xml <span style='color:#111;'>7.12KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-vi","children":[{"title":"strings.xml <span style='color:#111;'>7.56KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-hi","children":[{"title":"strings.xml <span style='color:#111;'>10.20KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-hr","children":[{"title":"strings.xml <span style='color:#111;'>7.14KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-af","children":[{"title":"strings.xml <span style='color:#111;'>7.06KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-ms","children":[{"title":"strings.xml <span style='color:#111;'>6.94KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-uk","children":[{"title":"strings.xml <span style='color:#111;'>8.24KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-be","children":[{"title":"strings.xml <span style='color:#111;'>8.60KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-ko","children":[{"title":"strings.xml <span style='color:#111;'>7.51KB</span>","children":null,"spread":false}],"spread":false},{"title":"drawable","children":[{"title":"ic_result_status.xml <span style='color:#111;'>952B</span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_success.png <span style='color:#111;'>505B</span>","children":null,"spread":false},{"title":"ic_fail.png <span style='color:#111;'>594B</span>","children":null,"spread":false}],"spread":false},{"title":"values-ja","children":[{"title":"strings.xml <span style='color:#111;'>8.13KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-it","children":[{"title":"strings.xml <span style='color:#111;'>7.08KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-pl","children":[{"title":"strings.xml <span style='color:#111;'>7.14KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-en-rGB","children":[{"title":"strings.xml <span style='color:#111;'>6.90KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-pt-rPT","children":[{"title":"strings.xml <span style='color:#111;'>7.13KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-ar","children":[{"title":"strings.xml <span style='color:#111;'>7.83KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-nb","children":[{"title":"strings.xml <span style='color:#111;'>7.00KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-in","children":[{"title":"strings.xml <span style='color:#111;'>6.87KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-hu","children":[{"title":"strings.xml <span style='color:#111;'>7.17KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-tr","children":[{"title":"strings.xml <span style='color:#111;'>6.98KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-et","children":[{"title":"strings.xml <span style='color:#111;'>6.84KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-am","children":[{"title":"strings.xml <span style='color:#111;'>7.70KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-ru","children":[{"title":"strings.xml <span style='color:#111;'>8.51KB</span>","children":null,"spread":false}],"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_success.png <span style='color:#111;'>651B</span>","children":null,"spread":false},{"title":"ic_fail.png <span style='color:#111;'>707B</span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_success.png <span style='color:#111;'>820B</span>","children":null,"spread":false},{"title":"ic_fail.png <span style='color:#111;'>947B</span>","children":null,"spread":false}],"spread":false},{"title":"values-es","children":[{"title":"strings.xml <span style='color:#111;'>7.23KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-zh-rCN","children":[{"title":"strings.xml <span style='color:#111;'>6.69KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-de","children":[{"title":"strings.xml <span style='color:#111;'>7.17KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-sw","children":[{"title":"strings.xml <span style='color:#111;'>6.92KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-ro","children":[{"title":"strings.xml <span style='color:#111;'>7.26KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-bg","children":[{"title":"strings.xml <span style='color:#111;'>8.77KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-rm","children":[{"title":"strings.xml <span style='color:#111;'>6.65KB</span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'>8.08KB</span>","children":null,"spread":false},{"title":"colors.xml <span style='color:#111;'>792B</span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'>844B</span>","children":null,"spread":false}],"spread":false},{"title":"values-fa","children":[{"title":"strings.xml <span style='color:#111;'>8.04KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-da","children":[{"title":"strings.xml <span style='color:#111;'>7.01KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-pt","children":[{"title":"strings.xml <span style='color:#111;'>7.12KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-fi","children":[{"title":"strings.xml <span style='color:#111;'>6.99KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-lt","children":[{"title":"strings.xml <span style='color:#111;'>6.91KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-zu","children":[{"title":"strings.xml <span style='color:#111;'>7.03KB</span>","children":null,"spread":false}],"spread":false},{"title":"values-ca","children":[{"title":"strings.xml <span style='color:#111;'>7.25KB</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"android","children":[{"title":"packageinstaller","children":[{"title":"UninstallerActivity.java <span style='color:#111;'>7.93KB</span>","children":null,"spread":false},{"title":"UninstallAppProgress.java <span style='color:#111;'>7.22KB</span>","children":null,"spread":false},{"title":"RemoveReceiver.java <span style='color:#111;'>1.50KB</span>","children":null,"spread":false},{"title":"InstallAppProgress.java <span style='color:#111;'>11.09KB</span>","children":null,"spread":false},{"title":"PackageUtil.java <span style='color:#111;'>7.45KB</span>","children":null,"spread":false},{"title":"PackageInstallerActivity.java <span style='color:#111;'>16.23KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"CleanSpec.mk <span style='color:#111;'>2.17KB</span>","children":null,"spread":false},{"title":"NOTICE <span style='color:#111;'>10.44KB</span>","children":null,"spread":false},{"title":"MODULE_LICENSE_APACHE2 <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"Android.mk <span style='color:#111;'>227B</span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • kobewangbo:
    参考了一下,后来用了其他方法2016-11-12
  • zwc8697:
    不错的资源,很实用2016-04-14
  • 风中的故乡:
    有所参考还行!2015-12-07
  • bai403082090:
    作用不大,需要root才能静默操作2015-07-21
  • 娃娃鸭:
    要Root才能静默下载2015-05-13

免责申明

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