fix am on Android R

This commit is contained in:
Leonid Pliushch 2020-06-19 22:13:16 +03:00
parent 2224d917a3
commit 8d302aa9fe
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with 2 additions and 0 deletions

View File

@ -148,6 +148,8 @@ public final class BackgroundJob {
// Samsung S7 - see https://plus.google.com/110070148244138185604/posts/gp8Lk3aCGp3.
environment.add("EXTERNAL_STORAGE=" + System.getenv("EXTERNAL_STORAGE"));
// ANDROID_RUNTIME_ROOT and ANDROID_TZDATA_ROOT are required for `am` to run on Android Q
addToEnvIfPresent(environment, "ANDROID_ART_ROOT");
addToEnvIfPresent(environment, "ANDROID_I18N_ROOT");
addToEnvIfPresent(environment, "ANDROID_RUNTIME_ROOT");
addToEnvIfPresent(environment, "ANDROID_TZDATA_ROOT");
if (failSafe) {