René's URL Explorer Experiment


Title: GitHub - CodeCreator2015/HelloDaemon: Android 服务保活/常驻 (Android Service Daemon Using JobScheduler) · GitHub

Open Graph Title: GitHub - CodeCreator2015/HelloDaemon: Android 服务保活/常驻 (Android Service Daemon Using JobScheduler)

X Title: GitHub - CodeCreator2015/HelloDaemon: Android 服务保活/常驻 (Android Service Daemon Using JobScheduler)

Description: Android 服务保活/常驻 (Android Service Daemon Using JobScheduler) - CodeCreator2015/HelloDaemon

Open Graph Description: Android 服务保活/常驻 (Android Service Daemon Using JobScheduler) - CodeCreator2015/HelloDaemon

X Description: Android 服务保活/常驻 (Android Service Daemon Using JobScheduler) - CodeCreator2015/HelloDaemon

Opengraph URL: https://github.com/CodeCreator2015/HelloDaemon

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:52493142-84e8-8052-ed4d-c70a73316bbd
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idA7A6:22C227:F51877:153B2D2:6A4DF1FB
html-safe-nonce892785c1132e68f166f4fd98441bd9434d26d9aa9a08c10ac1742e63067e2f7b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0E2OjIyQzIyNzpGNTE4Nzc6MTUzQjJEMjo2QTRERjFGQiIsInZpc2l0b3JfaWQiOiI5MTc5OTA2MjIyMjc4NDM5NDE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4b74f8ce5b9b615655e6f7560dd6f4443681ab1453a56f2118e449d024390293
hovercard-subject-tagrepository:76434404
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/CodeCreator2015/HelloDaemon
twitter:imagehttps://opengraph.githubassets.com/8748f7a0d161f4e956913c62e1aa0d24e8130cd18887d05e056db343d57add97/CodeCreator2015/HelloDaemon
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8748f7a0d161f4e956913c62e1aa0d24e8130cd18887d05e056db343d57add97/CodeCreator2015/HelloDaemon
og:image:altAndroid 服务保活/常驻 (Android Service Daemon Using JobScheduler) - CodeCreator2015/HelloDaemon
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566
turbo-cache-controlno-cache
go-importgithub.com/CodeCreator2015/HelloDaemon git https://github.com/CodeCreator2015/HelloDaemon.git
octolytics-dimension-user_id16306466
octolytics-dimension-user_loginCodeCreator2015
octolytics-dimension-repository_id76434404
octolytics-dimension-repository_nwoCodeCreator2015/HelloDaemon
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id65664604
octolytics-dimension-repository_parent_nwoxingda920813/HelloDaemon
octolytics-dimension-repository_network_root_id65664604
octolytics-dimension-repository_network_root_nwoxingda920813/HelloDaemon
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef4bb89367ca678f057d79b1abc45d6675b1bd5b2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/CodeCreator2015/HelloDaemon#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FCodeCreator2015%2FHelloDaemon
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FCodeCreator2015%2FHelloDaemon
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=CodeCreator2015%2FHelloDaemon
Reloadhttps://github.com/CodeCreator2015/HelloDaemon
Reloadhttps://github.com/CodeCreator2015/HelloDaemon
Reloadhttps://github.com/CodeCreator2015/HelloDaemon
CodeCreator2015 https://github.com/CodeCreator2015
HelloDaemonhttps://github.com/CodeCreator2015/HelloDaemon
xingda920813/HelloDaemonhttps://github.com/xingda920813/HelloDaemon
Notifications https://github.com/login?return_to=%2FCodeCreator2015%2FHelloDaemon
Fork 0 https://github.com/login?return_to=%2FCodeCreator2015%2FHelloDaemon
Star 0 https://github.com/login?return_to=%2FCodeCreator2015%2FHelloDaemon
Code https://github.com/CodeCreator2015/HelloDaemon
Pull requests 0 https://github.com/CodeCreator2015/HelloDaemon/pulls
Actions https://github.com/CodeCreator2015/HelloDaemon/actions
Projects https://github.com/CodeCreator2015/HelloDaemon/projects
Wiki https://github.com/CodeCreator2015/HelloDaemon/wiki
Security and quality 0 https://github.com/CodeCreator2015/HelloDaemon/security
Insights https://github.com/CodeCreator2015/HelloDaemon/pulse
Code https://github.com/CodeCreator2015/HelloDaemon
Pull requests https://github.com/CodeCreator2015/HelloDaemon/pulls
Actions https://github.com/CodeCreator2015/HelloDaemon/actions
Projects https://github.com/CodeCreator2015/HelloDaemon/projects
Wiki https://github.com/CodeCreator2015/HelloDaemon/wiki
Security and quality https://github.com/CodeCreator2015/HelloDaemon/security
Insights https://github.com/CodeCreator2015/HelloDaemon/pulse
https://github.com/CodeCreator2015/HelloDaemon
Brancheshttps://github.com/CodeCreator2015/HelloDaemon/branches
Tagshttps://github.com/CodeCreator2015/HelloDaemon/tags
https://github.com/CodeCreator2015/HelloDaemon/branches
https://github.com/CodeCreator2015/HelloDaemon/tags
56 Commitshttps://github.com/CodeCreator2015/HelloDaemon/commits/master/
https://github.com/CodeCreator2015/HelloDaemon/commits/master/
.ideahttps://github.com/CodeCreator2015/HelloDaemon/tree/master/.idea
.ideahttps://github.com/CodeCreator2015/HelloDaemon/tree/master/.idea
apphttps://github.com/CodeCreator2015/HelloDaemon/tree/master/app
apphttps://github.com/CodeCreator2015/HelloDaemon/tree/master/app
gradle/wrapperhttps://github.com/CodeCreator2015/HelloDaemon/tree/master/gradle/wrapper
gradle/wrapperhttps://github.com/CodeCreator2015/HelloDaemon/tree/master/gradle/wrapper
.gitignorehttps://github.com/CodeCreator2015/HelloDaemon/blob/master/.gitignore
.gitignorehttps://github.com/CodeCreator2015/HelloDaemon/blob/master/.gitignore
Kill.apkhttps://github.com/CodeCreator2015/HelloDaemon/blob/master/Kill.apk
Kill.apkhttps://github.com/CodeCreator2015/HelloDaemon/blob/master/Kill.apk
LICENSEhttps://github.com/CodeCreator2015/HelloDaemon/blob/master/LICENSE
LICENSEhttps://github.com/CodeCreator2015/HelloDaemon/blob/master/LICENSE
README.mdhttps://github.com/CodeCreator2015/HelloDaemon/blob/master/README.md
README.mdhttps://github.com/CodeCreator2015/HelloDaemon/blob/master/README.md
build.gradlehttps://github.com/CodeCreator2015/HelloDaemon/blob/master/build.gradle
build.gradlehttps://github.com/CodeCreator2015/HelloDaemon/blob/master/build.gradle
gradle.propertieshttps://github.com/CodeCreator2015/HelloDaemon/blob/master/gradle.properties
gradle.propertieshttps://github.com/CodeCreator2015/HelloDaemon/blob/master/gradle.properties
gradlewhttps://github.com/CodeCreator2015/HelloDaemon/blob/master/gradlew
gradlewhttps://github.com/CodeCreator2015/HelloDaemon/blob/master/gradlew
gradlew.bathttps://github.com/CodeCreator2015/HelloDaemon/blob/master/gradlew.bat
gradlew.bathttps://github.com/CodeCreator2015/HelloDaemon/blob/master/gradlew.bat
settings.gradlehttps://github.com/CodeCreator2015/HelloDaemon/blob/master/settings.gradle
settings.gradlehttps://github.com/CodeCreator2015/HelloDaemon/blob/master/settings.gradle
READMEhttps://github.com/CodeCreator2015/HelloDaemon
MIT licensehttps://github.com/CodeCreator2015/HelloDaemon
https://github.com/CodeCreator2015/HelloDaemon#hellodaemon
https://github.com/CodeCreator2015/HelloDaemon#android-服务保活常驻-android-service-daemon
https://github.com/CodeCreator2015/HelloDaemon#建议只在app的核心功能需要保活常驻时使用
https://github.com/CodeCreator2015/HelloDaemon#本示例中使用的保活方法部分来源于下面的博客和库启动前台服务而不显示通知来自于d-clock的androiddaemonservice对其他的一些非native层保活方法进行了实现
Android 进程常驻(2)----细数利用android系统机制的保活手段http://blog.csdn.net/marswin89/article/details/50890708
D-clock / AndroidDaemonServicehttps://github.com/D-clock/AndroidDaemonService
https://github.com/CodeCreator2015/HelloDaemon#实现了上面-2-个链接中的大多数保活思路-
https://github.com/CodeCreator2015/HelloDaemon#1将service设置为前台服务而不显示通知
https://github.com/CodeCreator2015/HelloDaemon#2在-service-的-onstartcommand-方法里返回-start_sticky
https://github.com/CodeCreator2015/HelloDaemon#3覆盖-service-的-ondestroyontaskremoved-方法-保存数据到磁盘-然后重新拉起服务
https://github.com/CodeCreator2015/HelloDaemon#4监听-3-种系统广播--boot_completed-connectivity_change-user_present
https://github.com/CodeCreator2015/HelloDaemon#5开启守护服务--定时检查服务是否在运行如果不在运行就拉起来
https://github.com/CodeCreator2015/HelloDaemon#6简单守护开机广播
https://github.com/CodeCreator2015/HelloDaemon#增加实现-
https://github.com/CodeCreator2015/HelloDaemon#-守护服务--android-50-及以上版本使用-jobscheduler效果比-alarmmanager-好
https://github.com/CodeCreator2015/HelloDaemon#-使用定时-observable--避免-android-定制系统-jobscheduler--alarmmanager-唤醒间隔不稳定的情况
https://github.com/CodeCreator2015/HelloDaemon#-增强对国产机型的适配--防止华为机型按返回键回到桌面再锁屏后几秒钟进程被杀
https://github.com/CodeCreator2015/HelloDaemon#-用-intent-跳转
https://github.com/CodeCreator2015/HelloDaemon#-守护服务和broadcastreceiver运行在watch子进程中与主进程分离
https://github.com/CodeCreator2015/HelloDaemon#-工作服务运行在主进程中免去与服务通信需使用aidl或其他ipc方式的麻烦
https://github.com/CodeCreator2015/HelloDaemon#-做了防止重复启动service的处理可以任意调用startserviceintent-i
https://github.com/CodeCreator2015/HelloDaemon#-在子线程中运行定时任务处理了运行前检查和销毁时保存的问题
https://github.com/CodeCreator2015/HelloDaemon#-若需要防止-cpu-休眠这里给出了-wakelock-的参考实现
Readme https://github.com/CodeCreator2015/HelloDaemon#readme-ov-file
MIT license https://github.com/CodeCreator2015/HelloDaemon#MIT-1-ov-file
Please reload this pagehttps://github.com/CodeCreator2015/HelloDaemon
Activityhttps://github.com/CodeCreator2015/HelloDaemon/activity
0 forkshttps://github.com/CodeCreator2015/HelloDaemon/forks
Report repository https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FCodeCreator2015%2FHelloDaemon&report=CodeCreator2015+%28user%29
Releaseshttps://github.com/CodeCreator2015/HelloDaemon/releases
Packages 0https://github.com/users/CodeCreator2015/packages?repo_name=HelloDaemon
Please reload this pagehttps://github.com/CodeCreator2015/HelloDaemon
Contributorshttps://github.com/CodeCreator2015/HelloDaemon/graphs/contributors
Please reload this pagehttps://github.com/CodeCreator2015/HelloDaemon
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.