mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-15 05:21:13 +01:00
Make am work on Android Q
This commit is contained in:
parent
8c27084086
commit
a082c63849
1 changed files with 5 additions and 0 deletions
|
|
@ -108,6 +108,11 @@ public final class BackgroundJob {
|
||||||
// EXTERNAL_STORAGE is needed for /system/bin/am to work on at least
|
// EXTERNAL_STORAGE is needed for /system/bin/am to work on at least
|
||||||
// Samsung S7 - see https://plus.google.com/110070148244138185604/posts/gp8Lk3aCGp3.
|
// Samsung S7 - see https://plus.google.com/110070148244138185604/posts/gp8Lk3aCGp3.
|
||||||
environment.add("EXTERNAL_STORAGE=" + System.getenv("EXTERNAL_STORAGE"));
|
environment.add("EXTERNAL_STORAGE=" + System.getenv("EXTERNAL_STORAGE"));
|
||||||
|
String androidRuntimeRoot = System.getenv("ANDROID_RUNTIME_ROOT");
|
||||||
|
// ANDROID_RUNTIME_ROOT is required for `am` to run on Android Q
|
||||||
|
if (androidRuntimeRoot != null) {
|
||||||
|
environment.add("ANDROID_RUNTIME_ROOT=" + androidRuntimeRoot);
|
||||||
|
}
|
||||||
if (failSafe) {
|
if (failSafe) {
|
||||||
// Keep the default path so that system binaries can be used in the failsafe session.
|
// Keep the default path so that system binaries can be used in the failsafe session.
|
||||||
environment.add("PATH= " + System.getenv("PATH"));
|
environment.add("PATH= " + System.getenv("PATH"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue