OSDN Git Service

Fix the ownership of compiler artifacts for secondary dex files
authorCalin Juravle <calin@google.com>
Wed, 15 Feb 2017 20:44:14 +0000 (12:44 -0800)
committerCalin Juravle <calin@google.com>
Thu, 2 Mar 2017 21:08:32 +0000 (13:08 -0800)
commit2289c0ac89acce109b3e93c434d86b20c5ecc1ad
tree264d870abfb133810367eb6c77ed29ca2f081093
parent2ab108c5be96768ef094591720596fbc4b7f91f7
Fix the ownership of compiler artifacts for secondary dex files

odex, vdex and art files should be owned by the app and not by system.

Test: verify odex and vdex owner:
      adb shell cmd package compile -m speed --secondary-dex -f
com.google.android.gms
      adb shell ls
/data/user/0/com.google.android.gms/app_chimera/m/00000004/oat/arm64/
-al
      -rw-r--r-- 1 u0_a17 u0_a17       5640832 2017-02-02 18:00
DynamiteModulesA_GmsCore_prodmnc_alldpi_release.odex
      -rw-r--r-- 1 u0_a17 u0_a17       3016818 2017-02-15 12:42
DynamiteModulesA_GmsCore_prodmnc_alldpi_release.vdex

Bug: 35389574
Bug: 32871170

(cherry picked from commit 944d0def1a628bcbd76056683085efd2b999fe5b)

Change-Id: I1f0d09d04807b6284d42f0cf89956322a4214d5f

Merged-In: I0650265cedcc572d43bb1fc0d0758ae43ea890b2
cmds/installd/dexopt.cpp