Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    R818安卓10 熄屏后 app总被杀死

    其它全志芯片讨论区
    2
    3
    2804
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lovesosoi LV 2 last edited by

      R818安卓10 熄屏后 app总被杀死
      如题,熄屏是不能取消的,在熄屏的过程中 就会app 被kill掉,给了 电池等权限了 ,但是不是很有效果,还是会被kill,但是插入usb 到电脑就不会出现这个现象,有什么方式可以避免么

      T 1 Reply Last reply Reply Quote Share 0
      • T
        TEVET LV 7 @lovesosoi last edited by

        @lovesosoi
        是深度睡眠了。
        要从内核上直接下狠手绕过的话,你就这样:

        diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c
        index 2d0c99b3f..3ba378ed0 100644
        --- a/kernel/power/suspend.c
        +++ b/kernel/power/suspend.c
        @@ -566,7 +566,7 @@ static void pm_suspend_marker(char *annotation)
        int pm_suspend(suspend_state_t state)
        {
        int error;

        •   return 0;
            if (state <= PM_SUSPEND_ON || state >= PM_SUSPEND_MAX)
                    return -EINVAL;
          
        T 1 Reply Last reply Reply Quote Share 0
        • T
          TEVET LV 7 @TEVET last edited by

          @tevet 也不对,没注意看你说的, 你时息屏过程中APP 挂了, 而不是灭屏后不能用。
          那看来…… 等楼下大佬回复。

          1 Reply Last reply Reply Quote Share 0
          • 1 / 1
          • First post
            Last post

          Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

          行为准则 | 用户协议 | 隐私权政策