- Convert method declarations to thunk symbols if thunk information
exists.
- Add a test case and reference dumps for virtual inheritance.
Bug: 80671888
Test: ./tests/test.py
Change-Id: I55ecbd7c8b0f5b0f534d81e6c6967f99ffd1d42e
This CL only affects the SDK.
It reverts commit 91967398ad
and then updates the packaging source for android.jar to
the metalava jar.
It also packages the extracted annotations, annotations.zip.
Test: Manually built various apps with android.jar file
as well as some binary verification with javap
Bug: 78245848
Change-Id: I5614a7f5af11d12c99cf0275ae0a88d97cc0bbc7
(cherry-picked from f13bb3dab6)
Switching from remote to extended-remote allows the program being
debugged to be restarted like a normal non-remote program.
Test: Used gdbclient debugging ICU things for a while, restarted often
Bug: None
Change-Id: Ia295749b9aa86727479d760d7c743f98a06fa6d4
Starting in VNDK snapshot v28 (P), prebuilts built for 32-bit
binder interface are isolated in separate 'binder32' subdirectory
under prebuilts/vndk/v{VER}/{ARCH}/. All other prebuilts are
assumed to use 64-bit binder interface.
To differentiate prebuilts per binder bitness, the following
changes are made:
1) a new 'binder32bit' property added to the Android.bp files
autogenerated for the vndk_prebuilt_shared soong module
2) new phony modules, vndk_v{ver}_{arch}_binder32, defined for
32-bit binder prebuilts,
3) 'binder32' suffix added to the prebuilt versioned name,
e.g. libfoo.vndk.{ver}.{arch}.binder32.vendor
Test: python gen_buildfiles.py 28 -vv
Test: python gen_buildfiles.py 27 -vv
Bug: 78279738
Change-Id: I283fe25a34d3381d13097ede34c428c83dffe11e
This commit adds a missing `__init__.py` to `ninja/tests`, so that
unit test discovery can find unit tests without any arguments.
Test: sourcedr/ninja/tests/run_tests.sh
Change-Id: I6077d014f33ccb176bf2138e3a0035c871c8eead
`string.decode('mutf-8')` converts `bytes` into `str` in Python 3. On
the other hand, `string.decode('mutf-8')` converts `str` to `unicode` in
Python 2. However, finding a `str` object in a set of `unicode`
objects may lead to false negatives.
This commit fixes the problem by encoding strings into `utf-8` after
decoding from `mutf-8`.
Bug: 110450167
Test: ./tests/run.py
Change-Id: Ifa6e97fffb5f364d0488cc98b6c59fbf4fb7869f
This commit adds a manifest split analysis tool. This tool classifies
the Android.bp modules into 3 categories (i.e. system-only modules,
vendor-only modules, and both-side module) and list the git repositories
that define modules in two or more categories.
Test: analyze_manifest_split.py \
-m ${ANDROID_BUILD_TOP}/.repo/manifest.xml \
-b ${ANDROID_BUILD_TOP}/Android.bp
Change-Id: I74c4acc3cac8fc2795cbc03806e71685e1910818
The previous CL silently ignores all dex strings that cannot be decoded
with Modified UTF-8 decoder. However, bad unicode encodings are
usually a good indicator that the dex file format is changed. Thus,
this commit separates invalid surrogates as special cases and only
ignore those dex strings. Exceptions for other invalid encodings are
propagated after this CL.
Bug: 110450167
Test: ./tests/run.py
Change-Id: I61fd754eab76f0b9eb3c58ac7f48321258e46514
This commit lifts the decoding logic from DexFileReader. After this
commit, DexFileReader simply returns modified UTF-8 so that the user can
decide whether to decode it or not.
Bug: 110450167
Test: ./tests/run.py
Change-Id: I71bdc5e20553a17e9eab3eac597648e397e99730
Previously the --local option assumed the local dir to be DIST_DIR.
Since in the actual use case, the branch where the VNDK snapshot is
built is different from the branch where this VNDK snapshot is
uploaded to, allow the user to specify the local dir as a command
line parameter.
Test: python update.py --local=<path to local dir> 28 -vv
Bug: 78279738
Change-Id: I98a86296076994c951b98457ef47c384d4cc940c
Revisions in a *-release branch include merge CLs that merge
*-dev to *-release. These revisions will not be in the source
of a GPL git project, so in these cases need to extract the parent
revision of the merge commit.
Test: python check_gpl_license.py --branch pi-release --build
<bid> 27 -vv
Bug: 78279738
Change-Id: I2950b56605b9af39c3ab012ae7a1ad407942d419
This commit add an access check in _enumerate_path() so that soft links
that cannot be resolved on host can be ignored.
Bug: 80459974
Test: vndk_definition_tool.py check-dep --check-apk \
--system ${ANDROID_PRODUCT_OUT}/system \
--vendor ${ANDROID_PRODUCT_OUT}/vendor
Change-Id: I0b0b793784b005139a62c5a48a5bd8f48cdd55c3
Implicit rules are being deprecated, so explicitly specify which targets
to apply the pattern rules against.
Test: build-aosp_arm.ninja is identical before/after
Change-Id: I0b902dbbfa7a70abcdcce5ea1954e9e4fad25367
This commit renames `process` to `proc` to eliminate an undefined
variable in the except clause.
Test: pylint repo_pull.py
Change-Id: Ie0d350f2c2e0b0e3eed037227dd15839e460d44e