Android获取第三方应用的占用大小,包括缓存、数据、应用大小

上传者: shaoenxiao | 上传时间: 2019-12-21 21:03:45 | 文件大小: 157KB | 文件类型: zip
Android通过IPackageStatsObserver.aidl 、PackageStats.aidl两个AIDL文件获取第三方应用的占用大小,包括缓存、数据、应用大小,经验证和手机设置里面显示的大小完全一致。。。。。。如果还需要其他比如清除缓存之类的功能的话均可根据情况自己实现(反射)

文件下载

资源详情

[{"title":"( 49 个子文件 157KB ) Android获取第三方应用的占用大小,包括缓存、数据、应用大小","children":[{"title":"AppDemo","children":[{"title":"gradlew <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 16B </span>","children":null,"spread":false},{"title":".idea","children":[{"title":"libraries","children":[{"title":"com_android_support_constraint_constraint_layout_solver_1_1_2_jar.xml <span style='color:#111;'> 425B </span>","children":null,"spread":false},{"title":"com_android_support_support_v4_22_2_1.xml <span style='color:#111;'> 968B </span>","children":null,"spread":false},{"title":"com_android_support_support_annotations_22_2_1_jar.xml <span style='color:#111;'> 716B </span>","children":null,"spread":false},{"title":"com_android_support_appcompat_v7_22_2_1.xml <span style='color:#111;'> 812B </span>","children":null,"spread":false},{"title":"com_android_support_constraint_constraint_layout_1_1_2.xml <span style='color:#111;'> 501B </span>","children":null,"spread":false}],"spread":true},{"title":"runConfigurations.xml <span style='color:#111;'> 564B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 5.59KB </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 170.90KB </span>","children":null,"spread":false},{"title":"markdown-navigator","children":[{"title":"profiles_settings.xml <span style='color:#111;'> 106B </span>","children":null,"spread":false}],"spread":true},{"title":"gradle.xml <span style='color:#111;'> 626B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 351B </span>","children":null,"spread":false}],"spread":true},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 236B </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 52.38KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"AppDemo.iml <span style='color:#111;'> 861B </span>","children":null,"spread":false},{"title":"local.properties <span style='color:#111;'> 435B </span>","children":null,"spread":false},{"title":"gradlew.bat <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 747B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 127B </span>","children":null,"spread":false},{"title":"app","children":[{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"xiao","children":[{"title":"shaoen","children":[{"title":"com","children":[{"title":"appdemo","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 773B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"xiao","children":[{"title":"shaoen","children":[{"title":"com","children":[{"title":"appdemo","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 417B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 832B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.03KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 15.16KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.46KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 6.93KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-anydpi-v26","children":[{"title":"ic_launcher.xml <span style='color:#111;'> 274B </span>","children":null,"spread":false},{"title":"ic_launcher_round.xml <span style='color:#111;'> 274B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable","children":[{"title":"ic_launcher_background.xml <span style='color:#111;'> 4.83KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 815B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-v24","children":[{"title":"ic_launcher_foreground.xml <span style='color:#111;'> 1.87KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'> 214B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 394B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 6.31KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 10.43KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"aidl","children":[{"title":"android","children":[{"title":"content","children":[{"title":"pm","children":[{"title":"IPackageStatsObserver.aidl <span style='color:#111;'> 1.00KB </span>","children":null,"spread":false},{"title":"PackageStats.aidl <span style='color:#111;'> 736B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"xiao","children":[{"title":"shaoen","children":[{"title":"com","children":[{"title":"appdemo","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"xiao","children":[{"title":"shaoen","children":[{"title":"com","children":[{"title":"appdemo","children":[{"title":"MainActivity.java <span style='color:#111;'> 4.52KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"libs","children":null,"spread":false},{"title":"app.iml <span style='color:#111;'> 9.06KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 8B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 780B </span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 772B </span>","children":null,"spread":false}],"spread":true},{"title":"build.gradle <span style='color:#111;'> 573B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • 独孤侠客 :
    可用,不错的
    2019-09-18
  • damifeng :
    很好,可以获取到别的app的缓存大小
    2018-12-03

免责申明

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