OSDN Git Service

AAPT2: Embed version of framework an app was compiled against.
authorAdam Lesinski <adamlesinski@google.com>
Mon, 4 Dec 2017 21:46:23 +0000 (13:46 -0800)
committerAdam Lesinski <adamlesinski@google.com>
Tue, 5 Dec 2017 01:19:44 +0000 (17:19 -0800)
commitc6284379a5dde6bc5927409eff292db2f0add578
treebe8da8977f7e1ae3339b9e6fd4dd4d60e80a19c1
parent36f46a87317be9c568649c423011b37e18698013
AAPT2: Embed version of framework an app was compiled against.

This change injects the 'android:compileSdkVersion' and
'android:compileSdkVersionCodename' into an app's AndroidManifest.xml,
whose values are dervied from the version name and version code of the
framework AndroidManifest.xml that is being linked against.

Bug: 63388434
Test: make aapt2_tests
Change-Id: I7b607192ecb337307c4bcb5770e7f716c6d4c9d2
tools/aapt2/cmd/Link.cpp
tools/aapt2/link/ManifestFixer.cpp
tools/aapt2/link/ManifestFixer.h
tools/aapt2/link/ManifestFixer_test.cpp
tools/aapt2/process/SymbolTable.h
tools/aapt2/xml/XmlDom.cpp
tools/aapt2/xml/XmlDom.h