V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yuhuan66666
V2EX  ›  Android

请问像 MyAndroidTools 这类软件是什么原理?

  •  
  •   yuhuan66666 · 2016-03-28 09:55:58 +08:00 · 6054 次点击
    这是一个创建于 2945 天前的主题,其中的信息可能已经有所发展或是发生改变。
    2 条回复    2016-03-28 13:20:29 +08:00
    honeycomb
        1
    honeycomb  
       2016-03-28 10:36:39 +08:00   ❤️ 2
    pm disable [package name](.[component name])

    例如:

    pm disable com.tencent.mm.jni.platformcomm.Alarm

    其中 com.tencent.mm 是微信的 package name

    绿色守护的 root 模式:

    am force-stop com.tencent.mm

    绿色守护的浅睡模式(强制应用进入 app standby):

    am set-inactive --user current com.tencent.mm true
    --user current 用于针对 Android 的多用户机制,可以去掉

    绿色守护的嗜睡模式(强制系统提早进入 doze)

    dumpsys battery unplug
    dumpsys deviceidle step
    绿色守护针对这个状态还有一些我不知道的做法,可以避免感知到设备运动而唤醒
    yangyaofei
        2
    yangyaofei  
       2016-03-28 13:20:29 +08:00 via Android
    看看 supersu 的日志就知道了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2611 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 04:17 · PVG 12:17 · LAX 21:17 · JFK 00:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.