summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2017-11-15 16:28:01 -0800
committerCalin Juravle <calin@google.com>2017-11-30 15:36:33 -0800
commitb4236711af8950402a1947de807d4220eed0f2da (patch)
treec83b8d6b7d5c4489ceaf814cf4b7330a5b8cad69 /tools/aapt2/java/JavaClassGenerator.cpp
parentd5d79a9f0d5fc62c6d2a110ec2b0d16513336b27 (diff)
Fix package install flow w.r.t. dexopt
Calling dexopt before the applicationInfo gets the uid is wrong. Dexopt needs to be able to set the GID of the odex file to the UserHandle.getSharedAppGid(pkg.applicationInfo.uid) and that is possible only with a valid uid. Move the dexopt logic after installNewPackageLIF/replacePackageLIF to ensure that we get a valid uid. Bug: 69331247 Test: adb install & check the GID of the compiler artifacts (cherry picked from commit c6540daf8388ce1ebd2e4157ec70b9651ae14b4f) Merged-In: I2434a1a0b9015091a9af2009b3f785b7a16e1256 Change-Id: I80504f434e1507f30f366d1122224ff959bec4a1
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions