官方的DontKillMyApp应用程序在这里-即使您不拥有Pixel,也可以使应用程序最终正常运行。
帮助您设置电话后台任务,即使您现在不看屏幕,您的应用程序最终也可以为您工作。
查看您的手机状况如何,并使用DontKillMyApp基准测试不同的设置。
特征:
•DKMA基准测试:衡量手机杀死后台应用程序的积极程度
•指南:获取可行的步骤来克服大多数后台流程限制
•做出改变:通过与dontkillmyapp.com分享基准测试报告,帮助智能手机保持智能
DontKillMyApp是一个基准测试工具,可以查看您的手机对后台处理的支持程度。您可以在设置手机之前进行测量,然后再次阅读设置指南和基准测试,以了解手机在后台闲置了多少。
您可以通过该应用程序将报告分享给dontkillmyapp.com网站的维护者,他们可以对其进行编译并根据该得分得出总体否定分数。
基准如何运作? (技术!)
该应用程序通过唤醒锁启动前台服务,并在主线程,自定义线程执行程序上安排重复性任务,并安排常规警报(AlarmManager.setExactAndAllowWhileIdle)。然后,它计算已执行与预期。而已!
有关更多详细信息,请检查代码。该应用程序是开放源代码,可通过https://github.com/urbandroid-team/dontkillmy-app获得
特别感谢Doki(github.com/doubledotlabs/doki)。
The official DontKillMyApp app is here - make apps finally work properly even if you do not own a Pixel.
Helps you set up your phone background tasks so that your apps can finally work for YOU even when not looking at the screen right now.
See how is your phone doing and test different settings with DontKillMyApp benchmark.
Features:
• DKMA benchmark: Measure how aggressively is your phone killing background apps
• Guides: Get actionable steps to overcome most background process restrictions
• Make a change:️Help smartphones stay smart by sharing your benchmark report to dontkillmyapp.com
DontKillMyApp is a benchmark tool to see how well does your phone support background processing. You can measure before setting up your phone, then go through the setup guides and benchmark again to see how much has your phone been slacking in the background.
You can share your report through the app to the maintainers of the dontkillmyapp.com website who compile it and base the overall negative score on it.
How does the benchmark work? (Technical!)
The app starts a foreground service with a wake lock and schedules repetitive task on the main thread, a custom thread executor and schedules regular alarms (AlarmManager.setExactAndAllowWhileIdle). Then it calculates executed vs. expected. That's it!
For more details check the code. The app is open source available it https://github.com/urbandroid-team/dontkillmy-app
Special thanks to Doki (github.com/doubledotlabs/doki).