Skip to content

app: Add UIJ permissions and battery exemption helper - #282

Merged
ravindu644 merged 1 commit into
ravindu644:devfrom
kenway214:main
Aug 17, 2026
Merged

app: Add UIJ permissions and battery exemption helper#282
ravindu644 merged 1 commit into
ravindu644:devfrom
kenway214:main

Conversation

@kenway214

Copy link
Copy Markdown
Contributor

Change-Id: I11f2b38936a1772d8338f675e04843903126414d

Change-Id: I11f2b38936a1772d8338f675e04843903126414d
@kenway214

kenway214 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

on new source downloadmanager delegates foreground-visible downloads to jobscheduler as user-initiated jobs (uij / uidt).
because droidspaces was missing android.permission.RUN_USER_INITIATED_JOBS and FOREGROUND_SERVICE_DATA_SYNC in its androidmanifest.xml, jobscheduler treated the job as an unprivileged background job.when jobscheduler started downloadjobservice, params.getnetwork() returned null.
in realsystemfacade.java, getnetwork(params) returned params.getnetwork() directly with no fallback.
downloadthread.java then immediately threw stoprequestexception(status_waiting_for_network, "no network associated with requesting uid") and kept rescheduling the job in a loop (status 190), causing rootfs repo downloads to stay stuck at 0%.

@ravindu644
ravindu644 changed the base branch from main to dev August 17, 2026 06:28
@ravindu644
ravindu644 merged commit 5e2e137 into ravindu644:dev Aug 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants