summaryrefslogtreecommitdiff
path: root/test/MultiDex
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2018-10-25 17:24:38 +0000
committerDavid Brazdil <dbrazdil@google.com>2018-10-25 17:25:17 +0000
commitfe3a979f6214e2ea94a9aed4c573c6a6f64c7096 (patch)
treeb31c1748dcd30a5bf76c2186b4c0124fb18b9dd6 /test/MultiDex
parentd9a0437b0d6cb1438bf21284a2502cbfe293db06 (diff)
Revert^2: Add dex item for hiddenapi flags
Move hiddenapi access flags to own data section so as to: (a) increase amount of information stored per method/field (b) use encoding which can be supported long-term. The dex item is implemented as: - array of offsets indexed by class def index - streams of uleb-128 encoded flags. Offsets in array point to the beginning of the flags stream for the given class def. Flags are encoded in the same order as fields and methods are encoded in class data. Zero offset means that the class either does not have class data, or all of its flags are zero. The patch updates: (a) libdexfile with data structure declarations and accessor methods, (b) hiddenapi tool to create the new item from hiddenapi lists and insert it into the given dex file, (c) dexlayout to copy the flags into compact dex, (d) dex file verifier to verify the item. It also removes skipping of verification for boot class path dex files as those now pass DexFileVerifier, and removes the need for removing the flags for JVMTI. The size increase is 450 KB. This reverts commit d9a0437b0d6cb1438bf21284a2502cbfe293db06. Test: phone boots Test: m test-art Change-Id: I224bf1b587529f36ea00a666680c4e4c8ca16a42
Diffstat (limited to 'test/MultiDex')
0 files changed, 0 insertions, 0 deletions