diff options
author | 2017-07-06 12:13:42 -0600 | |
---|---|---|
committer | 2017-07-06 12:15:21 -0600 | |
commit | 5f9dc424b35e4d3b03c5e7f261f421825410ea15 (patch) | |
tree | 73568debc4699e2b78ea973e582727703aac8949 /tools/bit/main.cpp | |
parent | 4f5adb9801e08f34731cfe22be3c197a5dd09ba4 (diff) |
Have bit grant permissions to installed APKs.
Otherwise unit tests fail spectacularly when they don't get the
runtime permissions that they expect.
Bug: 63391323
Test: bit FrameworksServicesTests:com.android.server.NetworkPolicyManagerServiceTest
Change-Id: I5307e0456865387ac14178268f543e2007b97096
Diffstat (limited to 'tools/bit/main.cpp')
-rw-r--r-- | tools/bit/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bit/main.cpp b/tools/bit/main.cpp index d056ba53ca84..5fb84c8b8191 100644 --- a/tools/bit/main.cpp +++ b/tools/bit/main.cpp @@ -731,7 +731,7 @@ run_phases(vector<Target*> targets, const Options& options) InstallApk& apk = installApks[i]; if (!apk.file.fileInfo.exists || apk.file.HasChanged()) { // It didn't exist before or it changed, so int needs install - err = run_adb("install", "-r", apk.file.filename.c_str(), NULL); + err = run_adb("install", "-r", "-g", apk.file.filename.c_str(), NULL); check_error(err); apk.installed = true; } else { |