AI手机网,短视频直播 硬改改机 一键新机 群控软件 刷机定制

 找回密码
 立即注册
搜索
查看: 1617|回复: 1

联想手机ROM zuk 系统添加APP 开机自启 APP保活 后台进程

[复制链接]
发表于 2020-7-24 19:17:02 | 显示全部楼层 |阅读模式
联想手机系统 zuk 系统开机自启  APP添加 保活 进程
https://club.lenovo.com.cn/thread-5674940-1-1.html
在你们需要保活的应用AndroidManifest.xml中添加android:sharedUserId="android.uid.system"



com.zui.apps.nondisable.xml  system\etc\nondisable\com.zui.apps.nondisable.xml

privapp-permissions-zui.xml   system\etc\permissions\privapp-permissions-zui.xml

zui_platform.xml                 system\etc\permissions\zui_platform.xml

preload.xml            system\etc\zui\perms

whitelistedapps.xml    system\etc\perf
  1.     <NetTriggerApps>  #网络触发应用程序
  2.           <AppAttributes
  3.                  PackageName="com.tencent.mm" />   
  4.     </NetTriggerApps>
复制代码

以ZuiBug2Go.apk 为例子  


  1.     <privapp-permissions package="com.zui.bugtogo">
  2.         <permission name="android.permission.BATTERY_STATS"/>
  3.         <permission name="android.permission.CHANGE_CONFIGURATION"/>
  4.         <permission name="android.permission.READ_LOGS"/>
  5.         <permission name="android.permission.READ_NETWORK_USAGE_HISTORY"/>
  6.     </privapp-permissions>
复制代码

以下以   com.android.settings  应用包为例子下面文件搜索相关包名
com.android.settings.autorun.xml      \system\etc\motorola\bgintents\com.android.settings.autorun.xml
自动隐藏运行
platform.xml     system\etc\permissions\platform.xml
These are the packages that are white-listed to be able to run as system user

This is a core platform component that needs to freely run in the background

These are the standard packages that are white-listed to always have internet
         access while in data mode, even if they aren't in the foreground.


These are the standard packages that are white-listed to always have internet
         access while in power save mode, even if they aren't in the foreground


privapp-permissions-zui.xml             system\etc\permissions\privapp-permissions-platform.xml      system\etc\permissions\
设置 privapp内的APP  Android中的各种访问权限https://www.cnblogs.com/shiwei-bai/p/4916794.html 参考地址

-----------

system\etc\zui
zui_appops_policy.xml   Android原生权限管理:AppOps   

zui_appops_whitelist.xml    Android原生权限管理:AppOps

参考例子 com.tencent.mm   微信安装后 默认全部权限都有测试










本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
发表于 2020-8-11 18:41:49 | 显示全部楼层
感谢分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

技术交流售后群

QQ|小黑屋|手机版|站点找错-建议|AI手机网 |Sitemap



GMT+8, 2024-5-10 01:44 , Processed in 0.149467 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表