René's URL Explorer Experiment


Title: GitHub - morankj/HelloDaemon: Android 服务保活/常驻 (Android service daemon using JobScheduler)

Open Graph Title: GitHub - morankj/HelloDaemon: Android 服务保活/常驻 (Android service daemon using JobScheduler)

X Title: GitHub - morankj/HelloDaemon: Android 服务保活/常驻 (Android service daemon using JobScheduler)

Description: Android 服务保活/常驻 (Android service daemon using JobScheduler) - morankj/HelloDaemon

Open Graph Description: Android 服务保活/常驻 (Android service daemon using JobScheduler) - morankj/HelloDaemon

X Description: Android 服务保活/常驻 (Android service daemon using JobScheduler) - morankj/HelloDaemon

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:66e32216-09bc-0e27-3220-6cceca200802
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id860A:34F01F:8919BC:BD0BB3:69775949
html-safe-nonce01bd6baa93681fc6d3e84234fe8109d550f674cefc0728034508a43071fb8803
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjBBOjM0RjAxRjo4OTE5QkM6QkQwQkIzOjY5Nzc1OTQ5IiwidmlzaXRvcl9pZCI6IjY0NDcwMDg3MjIxMTQyNzE1NjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac006ff3b1ee65ff424a3bc0c3ac1646d9b0108218a9ea9b3a2f68f3fbd6d7905f
hovercard-subject-tagrepository:203337691
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/morankj/HelloDaemon
twitter:imagehttps://opengraph.githubassets.com/cf1f86ef41cd8c07bb759b518a90ce736d210852a0bfc64d74c9099909220bac/morankj/HelloDaemon
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cf1f86ef41cd8c07bb759b518a90ce736d210852a0bfc64d74c9099909220bac/morankj/HelloDaemon
og:image:altAndroid 服务保活/常驻 (Android service daemon using JobScheduler) - morankj/HelloDaemon
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3310064f35a62c06a4024ba37f41c06836f39376a095c2dfd2c4b693c34965be
turbo-cache-controlno-preview
go-importgithub.com/morankj/HelloDaemon git https://github.com/morankj/HelloDaemon.git
octolytics-dimension-user_id51740974
octolytics-dimension-user_loginmorankj
octolytics-dimension-repository_id203337691
octolytics-dimension-repository_nwomorankj/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
release67d5f8d1d53c3cc4f49fc3bb8029933c3dc219e6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/morankj/HelloDaemon#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmorankj%2FHelloDaemon
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmorankj%2FHelloDaemon
Sign up https://patch-diff.githubusercontent.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=morankj%2FHelloDaemon
Reloadhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon
Reloadhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon
Reloadhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon
morankj https://patch-diff.githubusercontent.com/morankj
HelloDaemonhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon
xingda920813/HelloDaemonhttps://patch-diff.githubusercontent.com/xingda920813/HelloDaemon
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fmorankj%2FHelloDaemon
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2Fmorankj%2FHelloDaemon
Star 0 https://patch-diff.githubusercontent.com/login?return_to=%2Fmorankj%2FHelloDaemon
MIT license https://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/LICENSE
0 stars https://patch-diff.githubusercontent.com/morankj/HelloDaemon/stargazers
445 forks https://patch-diff.githubusercontent.com/morankj/HelloDaemon/forks
Branches https://patch-diff.githubusercontent.com/morankj/HelloDaemon/branches
Tags https://patch-diff.githubusercontent.com/morankj/HelloDaemon/tags
Activity https://patch-diff.githubusercontent.com/morankj/HelloDaemon/activity
Star https://patch-diff.githubusercontent.com/login?return_to=%2Fmorankj%2FHelloDaemon
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fmorankj%2FHelloDaemon
Code https://patch-diff.githubusercontent.com/morankj/HelloDaemon
Pull requests 0 https://patch-diff.githubusercontent.com/morankj/HelloDaemon/pulls
Actions https://patch-diff.githubusercontent.com/morankj/HelloDaemon/actions
Projects 0 https://patch-diff.githubusercontent.com/morankj/HelloDaemon/projects
Security 0 https://patch-diff.githubusercontent.com/morankj/HelloDaemon/security
Insights https://patch-diff.githubusercontent.com/morankj/HelloDaemon/pulse
Code https://patch-diff.githubusercontent.com/morankj/HelloDaemon
Pull requests https://patch-diff.githubusercontent.com/morankj/HelloDaemon/pulls
Actions https://patch-diff.githubusercontent.com/morankj/HelloDaemon/actions
Projects https://patch-diff.githubusercontent.com/morankj/HelloDaemon/projects
Security https://patch-diff.githubusercontent.com/morankj/HelloDaemon/security
Insights https://patch-diff.githubusercontent.com/morankj/HelloDaemon/pulse
Brancheshttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/branches
Tagshttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/tags
https://patch-diff.githubusercontent.com/morankj/HelloDaemon/branches
https://patch-diff.githubusercontent.com/morankj/HelloDaemon/tags
142 Commitshttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/commits/master/
https://patch-diff.githubusercontent.com/morankj/HelloDaemon/commits/master/
.ideahttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/tree/master/.idea
.ideahttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/tree/master/.idea
gradle/wrapperhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/tree/master/gradle/wrapper
gradle/wrapperhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/tree/master/gradle/wrapper
hellodaemonhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/tree/master/hellodaemon
hellodaemonhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/tree/master/hellodaemon
samplehttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/tree/master/sample
samplehttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/tree/master/sample
.gitignorehttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/.gitignore
.gitignorehttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/.gitignore
LICENSEhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/LICENSE
LICENSEhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/LICENSE
README.mdhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/README.md
README.mdhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/README.md
build.gradlehttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/build.gradle
build.gradlehttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/build.gradle
gradle.propertieshttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/gradle.properties
gradle.propertieshttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/gradle.properties
gradlewhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/gradlew
gradlewhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/gradlew
gradlew.bathttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/gradlew.bat
gradlew.bathttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/gradlew.bat
settings.gradlehttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/settings.gradle
settings.gradlehttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/blob/master/settings.gradle
READMEhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon
MIT licensehttps://patch-diff.githubusercontent.com/morankj/HelloDaemon
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#hellodaemon
https://996.icu
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#android-服务保活常驻-android-service-daemon
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#建议只在app的核心功能需要保活常驻时使用
https://patch-diff.githubusercontent.com/morankj/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://patch-diff.githubusercontent.com/morankj/HelloDaemon#实现了上面-2-个链接中的大多数保活思路-
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#1-将service设置为前台服务而不显示通知
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#2-在-service-的-onstartcommand-方法里返回-start_sticky
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#3-覆盖-service-的-ondestroyontaskremoved-方法-保存数据到磁盘-然后重新拉起服务
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#4-监听-8-种系统广播-
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#5-开启守护服务--定时检查服务是否在运行如果不在运行就拉起来
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#6-守护-service-组件的启用状态-使其不被-mat-等工具禁用
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#增加实现-
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#-守护服务--android-50-及以上版本使用-jobscheduler效果比-alarmmanager-好
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#-使用定时-observable--避免-android-定制系统-jobscheduler--alarmmanager-唤醒间隔不稳定的情况
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#-增加停止服务并取消定时唤醒的快捷方法
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#-增加在不需要服务运行时取消-job--alarm--subscription-的快捷方法-广播-action
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#-增强对国产机型的适配--防止华为机型按返回键回到桌面再锁屏后几秒钟进程被杀
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#-用-intent-跳转
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#-守护服务和broadcastreceiver运行在watch子进程中与主进程分离
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#-工作服务运行在主进程中免去与服务通信需使用aidl或其他ipc方式的麻烦
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#-做了防止重复启动service的处理可以任意调用startserviceintent-i
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#-在子线程中运行定时任务处理了运行前检查和销毁时保存的问题
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#引入
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#1-添加二进制
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#2-继承-absworkservice-实现-6-个抽象方法
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#3-自定义-application
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#4-api-说明
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#启动-service
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#停止-service
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#处理白名单
https://patch-diff.githubusercontent.com/morankj/HelloDaemon#为节省用户的电量-当不再需要服务运行时-可以调用-absworkservicecanceljobalarmsub-取消定时唤醒的-job--alarm--subscription-并调用-stopservice-停止服务
Readme https://patch-diff.githubusercontent.com/morankj/HelloDaemon#readme-ov-file
MIT license https://patch-diff.githubusercontent.com/morankj/HelloDaemon#MIT-1-ov-file
Please reload this pagehttps://patch-diff.githubusercontent.com/morankj/HelloDaemon
Activityhttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/activity
Custom propertieshttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/custom-properties
0 starshttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/stargazers
0 watchinghttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/watchers
0 forkshttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/forks
Report repository https://patch-diff.githubusercontent.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fmorankj%2FHelloDaemon&report=morankj+%28user%29
Releaseshttps://patch-diff.githubusercontent.com/morankj/HelloDaemon/releases
Packages 0https://patch-diff.githubusercontent.com/orgs/morankj/packages?repo_name=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.