Commit Graph

2898 Commits

Author SHA1 Message Date
Yi Jin
4f9c968aba Rename, see ag/3642615
Bug: 72474563
Test: manual
Change-Id: I894a2075e4e5bc56703e1f4d181f9ff2a3fc70ef
2018-02-26 16:32:05 -08:00
TreeHugger Robot
5b4225dedc Merge "Filter window trace data by WindowContainerProto.visible" 2018-02-07 18:19:01 +00:00
Vishnu Nair
3163272774 Filter window trace data by WindowContainerProto.visible
Bug: 64831661
Test: npm run dev
Change-Id: Icf991804ea8c89b990c1056a27ce1a3c23851ecb
2018-02-07 07:54:55 -08:00
TreeHugger Robot
57bda6c8d1 Merge "Update winscope proto lookup path" 2018-02-07 03:16:16 +00:00
Vishnu Nair
62d93dd1b2 Update winscope proto lookup path
- fix build issue caused by recent privacy proto extensions

Test: npm rum dev
Bug: 64831661
Change-Id: Iae08d10a4de82a5cbe2d7561c4b8884f78d96399
2018-02-06 14:40:42 -08:00
Scott Lobdell
300c54efb4 Parallelize diffing of projects
Test: ./android/development/tools/repo_diff/repo_diff_android.py -u persistent-https://googleplex-android.git.corp.google.com/platform/manifest -b “master-security-release” -r persistent-https://googleplex-android.git.corp.google.com/platform/manifest -a “master”
Change-Id: I55b1cddf81cb8d1f5c6427ee2e131c7a766b36cf
2018-02-06 10:20:23 -08:00
Tor Norbye
d2bb51b97b Merge "Remove metalava: has been moved to separate git repository" 2018-02-01 08:02:42 +00:00
changho.shin
ddd40c718d Merge "Support 'uses-permission.*' case" am: 3f7d731fbd am: 52e32a5337
am: ae1d226c04

Change-Id: I46108d61c62f8d3832837421db3a48122882fb5e
2018-01-31 03:01:29 +00:00
Tor Norbye
afa122ead5 Remove metalava: has been moved to separate git repository
Ditto for the older "extract" tool which is replaced by metalava.

Change-Id: Ie1dbbe3632abe2cd56e86ee83e49731ead6e64fc
2018-01-30 11:28:31 +00:00
changho.shin
b7efebb0bb Support 'uses-permission.*' case
Some applications declare their privileged permission as 'uses-permission-sdk-23(m)',
not 'uses-permission'. Adding '.*' to current regex expression to cover all the cases.

Test: python development/tools/privapp_permissions/privapp_permissions.py

Change-Id: I1ea8c9361bb53035481418631b34607ffecb238c
Signed-off-by: changho.shin <changho.shin@lge.com>
2018-01-30 12:37:11 +09:00
markdr
9066da53f5 Made privapp_permissions.py more dynamic.
This was done largely so automation can make use of
privapp-permissions.xml generation.

Privapp_permissions.py no longer requires the build environment
to be setup. Instead, system files can be pulled from a connected
device, and aapt & adb can be set via the commandline. Otherwise,
they will default to the environment's default aapt/adb.

Priv-apps and the permission lists can be queried from the device
using command flags as well, removing the need for an Android
image to be built locally.

Bug: None
Test: Diff between previous privapp_permissions output and the
      output for these changes was empty for the following runs:

      ./old_privapp_permissions.py
      vs
      ./new_privapp_permissions.py [-d && -s SERIAL]
      ./new_privapp_permissions.py --aapt /path/to/aapt

      ./old_privapp_permissions.py /path/to.apk
      vs
      ./new_privapp_permissions.py /path/to.apk
      ./new_privapp_permissions.py device:/path/to/apk

Change-Id: Ifaf35607d38c1d74111fd2f05628c0192fc791cb
2018-01-26 14:31:33 -08:00
markdr
59cd83b6f2 Fixed a failure when retreiving an error message.
Bug: None
Test: privapp_permissions.py -s ... test.apk
Change-Id: I1b83b38a9af6dd5448f6d3b423d5168bb50db154
2018-01-26 13:13:17 -08:00
TreeHugger Robot
396f99cf38 Merge "Made privapp_permissions.py more dynamic." 2018-01-23 20:19:22 +00:00
markdr
4f676ff63f Made privapp_permissions.py more dynamic.
This was done largely so automation can make use of
privapp-permissions.xml generation.

Privapp_permissions.py no longer requires the build environment
to be setup. Instead, system files can be pulled from a connected
device, and aapt & adb can be set via the commandline. Otherwise,
they will default to the environment's default aapt/adb.

Priv-apps and the permission lists can be queried from the device
using command flags as well, removing the need for an Android
image to be built locally.

Bug: None
Test: Diff between previous privapp_permissions output and the
      output for these changes was empty for the following runs:

      ./old_privapp_permissions.py
      vs
      ./new_privapp_permissions.py [-d && -s SERIAL]
      ./new_privapp_permissions.py --aapt /path/to/aapt

      ./old_privapp_permissions.py /path/to.apk
      vs
      ./new_privapp_permissions.py /path/to.apk
      ./new_privapp_permissions.py device:/path/to/apk

Change-Id: Ifaf35607d38c1d74111fd2f05628c0192fc791cb
2018-01-22 13:12:18 -08:00
Tor Norbye
b19d4e9d48 Metalava: support names in APIs
This CL adds support for names in APIs: In Kotlin,
all parameter names are part of the API. In Java,
formal API parameter names can be specified with
@ParameterName("<name>"). Metalava now tracks this,
and in signature files, public parameter names
are included in signatures; in stubs, parameter
names (whether public or not) are always used but
the public name if specified will win.

This CL also adds enforcement of parameters in
signature file comparisons (you cannot remove or
change a parameter in an API), and when running
with --check-compatibility, all API change warnings
are turned into errors.

Some misc other bug fixes and cleanup.

Test: Unit tests included.
Change-Id: I0cfe0741f325812328cd643d51a2b1e9d644cc21
2018-01-17 21:23:51 -08:00
Tor Norbye
72c834e184 Update metalava library dependency version to 3.1.0-alpha08
Change-Id: I62c1706a7808aee42c774810ef078b37ae1c2ce6
2018-01-16 15:14:20 -08:00
Tor Norbye
56001c29f3 Merge "Initial version of Metalava." 2018-01-16 22:20:45 +00:00
Tor Norbye
9216bf6613 Initial version of Metalava.
For full information, read README.md.

Test: Unit tests included
Change-Id: If3696b09d61dd6781f579f39a957635c61a91ff0
2018-01-16 12:23:14 -08:00
Logan Chien
690899995a Merge "idegen: Add compatibility for custom out directory" am: ba6d87d125 am: 92e433e88d
am: 59605d4b36

Change-Id: I434554e710311bd6a43089f8191648d5adc8c17b
2018-01-05 01:52:40 +00:00
Logan Chien
ba6d87d125 Merge "idegen: Add compatibility for custom out directory" 2018-01-05 01:41:06 +00:00
Vishnu Nair
76ff5a145b Display default proto values and enum values as string
Bug: 64831661
Test: npm run dev
Change-Id: Iacde523b3b308dfcef878c9cfbcc758c6a664858
2018-01-03 11:10:58 -08:00
Adrian Roos
77d8a397f3 winscope: fix build configuration
Allows building a single file containing all resources, without breaking
the developer mode, and without having to disable minifying.

Bug: 64831661
Test: yarn run dev; yarn run build
Change-Id: Ifc18a776a3a2fba19be6bbb21713741e5dc27223
2017-12-29 16:28:37 +01:00
Vishnu Nair
f60b79fdc2 Fix proto file paths
Bug: 64831661
Test:  npm run dev
Change-Id: I2283175b50d96de7859b3e80de6228f55d766e67
2017-12-28 11:18:46 -08:00
Christian Oder
644f60e93c idegen: Add compatibility for custom out directory
At the moment the script looks for the jar iside the out dir.
However, if the our dir is set to a different directory via OUT_DIR_COMMON_BASE
the script does not notice that, and errors out saying a build is
needed.

This commits checks if the OUT_DIR_COMMON_BASE is set, then searches the jar in the proper path.
If OUT_DIR_COMMON_BASE is unset, search in "out" like it did before.

Test: Build with OUT_DIR_COMMON_BASE set and unset and verify idegen works in both cases.

Change-Id: Icfcf41af13139bd81f8589bb900debe5ee616022
2017-12-22 12:44:03 +00:00
TreeHugger Robot
763c085bee Merge "Winscope Initial Commit" 2017-12-20 00:48:17 +00:00
Vishnu Nair
46babab973 Winscope Initial Commit
Bug: 64831661
Test: none

Change-Id: I395f5b7d602101811f3450be96990447f145c2ab
2017-12-19 15:15:30 -08:00
Elliott Hughes
03137f4e96 Merge "Remove dead cruft." am: e9ba970f2d am: 9cfa0a80e1
am: d543c9c5ee

Change-Id: I70ebe9ea11e9c49138aa422685a99ddef4972ba9
2017-12-15 01:05:12 +00:00
Elliott Hughes
845a06bac4 Remove dead cruft.
These must have been added internal in the same release cycle that we
moved this to bootable/recovery in AOSP. They're there now.

Bug: N/A
Test: N/A
Change-Id: Id79a0e87e7cb6c03d01a0e3816a58838771411f2
2017-12-14 12:57:53 -08:00
Xin Li
b8d81aed6c Merge commit '514a23836bc263e729c89b4c1ec60912a7cb6765' from
oc-mr1-dev-plus-aosp-without-vendor into stage-aosp-master

Change-Id: I9c96b666efe553d2bc51fca5b9ca5d29c45be083
2017-11-14 11:47:59 -08:00
Chih-Hung Hsieh
f62f99c766 Merge "Use -Werror in development/tools/line_endings" am: f1ce8d402c am: e8c304609b
am: 1d6acda9de

Change-Id: I4060c75001e6d7418ba2b3c71a9e830681a0487b
2017-11-04 04:30:37 +00:00
Chih-Hung Hsieh
1d6acda9de Merge "Use -Werror in development/tools/line_endings" am: f1ce8d402c
am: e8c304609b

Change-Id: I90ce6c37a23a059e2510cf7cdc46654c9456e5cc
2017-11-04 04:28:04 +00:00
Treehugger Robot
f1ce8d402c Merge "Use -Werror in development/tools/line_endings" 2017-11-04 04:22:19 +00:00
Chih-Hung Hsieh
859c3abdb9 Merge "Use -Werror in development/tools/etc1tool" am: 0fb565459f am: 77e8b704ef
am: 4e90055272

Change-Id: I550c7db43024ae74258f3bb7bea1ec67a8df04b7
2017-11-04 04:21:36 +00:00
Chih-Hung Hsieh
4e90055272 Merge "Use -Werror in development/tools/etc1tool" am: 0fb565459f
am: 77e8b704ef

Change-Id: I84720e1e41c70cf3176e59d5a6457fbd64a20578
2017-11-04 04:19:30 +00:00
Chih-Hung Hsieh
4944813847 Use -Werror in development/tools/etc1tool
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I4403d4e304a662f51a1a239f415cc11d97d33a33
2017-10-31 14:54:46 -07:00
Chih-Hung Hsieh
266197aff9 Use -Werror in development/tools/line_endings
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I22e5122f9ebcb0ea063683656fc2a801edf251cd
2017-10-31 09:57:35 -07:00
Chih-Hung Hsieh
64fb92956b Merge "Use -Werror in development" am: 14b2eeb009 am: cee88a6a9a
am: a38ca6bb58

Change-Id: I2ad9578e5185253478dd28c5b9e24ba539149036
2017-10-28 00:29:04 +00:00
Chih-Hung Hsieh
a38ca6bb58 Merge "Use -Werror in development" am: 14b2eeb009
am: cee88a6a9a

Change-Id: I04f10d5d80f6ca8c58ad5ba609b95ba98507b250
2017-10-27 23:57:58 +00:00
Chih-Hung Hsieh
62f253dc80 Use -Werror in development
* Fix/suppress existing warnings.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Iacc9052f81e6fe7e8a10b00a6fcea912a7d636d3
2017-10-27 14:43:17 -07:00
bohu
9fdedf9df7 emulator: merge oc-emu-dev development project
BUG: 64401460

Change-Id: I3fdce5c8aeb4fccb52d04f5da69807da9c86d57a
Merged-In: I3fdce5c8aeb4fccb52d04f5da69807da9c86d57a
Merged-In: I9f757a14d9bb59db2e6c62f4a4c83a4373b7b4d6
2017-10-26 22:08:12 -07:00
Colin Cross
97e10dc66f Merge "Convert development/tools to Android.bp" am: 5f3caed3a7 am: 6f3ae7994a
am: 08d7d58b5b

Change-Id: I7193770faed4c37be27e9629d70809059e608061
2017-10-27 00:23:43 +00:00
Colin Cross
08d7d58b5b Merge "Convert development/tools to Android.bp" am: 5f3caed3a7
am: 6f3ae7994a

Change-Id: Ib4b7924a708f88c38c4f2686bbba3486751f8579
2017-10-27 00:17:35 +00:00
Colin Cross
6d7b346407 Convert development/tools to Android.bp
See build/soong/README.md for more information

Also moves rmtypedefs to use the guava prebuilt from
prebuilts/misc/common.

Test: m checkbuild
Change-Id: I9298967275ca40f8d50841b204cd40612a8a5f56
2017-10-24 16:15:15 -07:00
Fyodor Kupolov
f72358b9ff Handle deny-permission
Do not require to whitelist permissions that are already explicitly denied
using a new <deny-permission> tag

Bug: 64693550
Test: manual
Change-Id: Ic7a65f0f10bffa98b62d196dd6606ea74e40e911
2017-10-09 12:38:07 -07:00
Po-Chien Hsueh
13b293925c Merge changes from topic "repo_diff" am: 8ee1187ef5 am: a158515008
am: 21101d94e4

Change-Id: I6fa28e8fc16fda86c18a3a6454a85e99808f94f0
2017-09-28 17:36:39 +00:00
Po-Chien Hsueh
a158515008 Merge changes from topic "repo_diff"
am: 8ee1187ef5

Change-Id: I9e93bc660f32bca7b903acafd44ca4e86d6df37c
2017-09-28 17:31:38 +00:00
Po-Chien Hsueh
79a7b0e8f4 Check project path to make sure it actully exists
Some old projects might be removed for some reason, especially
the downstream ones. It should be fine to just skip analysing them
because people have stopped working on them.

Test: run the script against an old release
Change-Id: I563905565c4c502036159fce6a386bba13ba25ea
2017-09-28 17:15:08 +08:00
Po-Chien Hsueh
95ca7ccb84 Add option --ignore_error_during_sync
Some old SHA1 might be invalid when we use this tool.
Ignore these projects and keep going on.

Test: run the script against an old release
Change-Id: I5c89911759de6d122052e841eef0b016fa8b1422
2017-09-28 16:55:31 +08:00
Po-Chien Hsueh
f9b8f0cce0 Write results to subfolders
We are using this tools on multiple releases (tags).
Create subfolders using release names, so that results won't be
overwitten.

Test: run the script against multiple releases
Change-Id: I9a94940d630874a5b378431f20a6c1182cf11509
2017-09-28 16:55:31 +08:00
Po-Chien Hsueh
fb4ba49c20 Rename exclusions.txt in the script
The file name has been changed in a previous CL

Test: run the script
Change-Id: I7cc1b183989ae674e14e65321e09c51d5c689ad0
2017-09-28 16:55:31 +08:00