Remove WorkManager as a dependency

This commit is contained in:
topjohnwu
2021-11-04 23:39:35 -07:00
parent fca5eb083f
commit 81f57949ed
13 changed files with 96 additions and 178 deletions

View File

@ -153,7 +153,10 @@ fun genStubManifest(srcDir: File, outDir: File): String {
cmpList.add(Component(
"com.topjohnwu.magisk.ui.MainActivity",
"",
"""|<activity android:name="%s" />""".ind(2)
"""
|<activity
| android:name="%s"
| android:exported="false" />""".ind(2)
))
cmpList.add(Component(
@ -176,18 +179,19 @@ fun genStubManifest(srcDir: File, outDir: File): String {
cmpList.add(Component(
"com.topjohnwu.magisk.core.download.DownloadService",
"",
"""|<service android:name="%s" />""".ind(2)
"""
|<service
| android:name="%s"
| android:exported="false" />""".trimIndent().ind(2)
))
cmpList.add(Component(
"androidx.work.impl.background.systemjob.SystemJobService",
"com.topjohnwu.magisk.core.JobService",
"",
"""
|<service
| android:name="%s"
| android:directBootAware="false"
| android:enabled="true"
| android:exported="true"
| android:exported="false"
| android:permission="android.permission.BIND_JOB_SERVICE" />""".ind(2)
))