2017年3月15日星期三

How to prevent system kill app when system asleep on android 6.0 怎样避免安卓6.0系统在锁屏后自动关闭应用

I want twilight / home button / 3g watchdog keep running, but android system kill almost apps after device sleep a while.

I tried some app running guard like: Autostart and StaY!, but it's still not working, even the guard app are have been killed.

The solution is simple but root needed,
- first backup the .apk of app you want to keep running, if you download the app from Play store, you can get the apk by App Backup Restore , then UNINSTALL the app.
- go to https://luckypatcher.co/ download Lucky Patcher, then install it.
- Open Lucky Patcher and get root access by SuperSu, then select 'rebuild and install' in bottom menu, then locate the apk file, select 'install as system app'.
- After reboot you're done, the app will keep running.

These steps are confirmed on my Samsung G5700 with android 6.0.1.


我希望 twilight / home button / 3g watchdog 在设备保持运行,但安卓系统在睡眠(锁屏)一段时间后就会关闭几乎所有应用。

我尝试了一些 App 守护程序如:Autostart and StaY!,但并没有真正起作用,而且一段时间后连守护程序本身也一同被系统关闭了。

解决方法很简单,但是需要设备已 root,
- 首先备份应用的 apk 安装包,如果你从 Play Store 下载的应用,你可以用 App Backup Restore 来备份apk 安装包,然后卸载安装的应用。
- 前往 https://luckypatcher.co/ 下载 Lucky Patcher,然后安装。
- 打开 Lucky Patcher,SuperSu 赋予其 root 权限,然后在底部菜单选择 '重建与安装',然后选择备份的 apk 安装包,选择 '安装作为系统应用'。
- 重启后即完成,此应用会一直运行。

这些步骤在搭载安卓 6.0.1 系统的三星 G5700 上验证通过。

没有评论:

发表评论