Write staged sessions to /data/staging.
If a session is marked as isStaged, write the package files directly on a directory named /data/staging/session_${SESSION_ID}, instead of the /data/app temporary directory. This allows us to set different SELinux policy (e.g. allowing apexd to read that directory), and to persist the data across reboots without altering the existing code. To ensure we cover existing workflows, in this CL we try as much as possible to re-use existing code to create staging directories and wire data into them. Bug: 118865310 Test: Verified that adb install --staged file.apk successfully creates a /data/staging/session_SESSION_ID/base.apk file. If --apex is passed, the file is named base.apex. Change-Id: Iacfd7cfb90b738eeb752fec3e6a4e38ea307259a
Loading
Please register or sign in to comment