Mathew Inwood
e5dc64d428
Add presubmit hook for hidden API lists.
...
Check that they're sorted as expected and contain no duplicates.
The sort order now uses:
$ LC_COLLATE=C sort -f
So that non-alphanumeric characters are not ignored, giving a more
intuitive sort order. the '-f' means ignore case.
Also sort the existing lists accordingly.
Test: repo upload
Bug: 64382372
Merged-In: I52b884da33a9a46455df6747a215683d9d3c3218
Change-Id: I4cdd3bc5c11be91a9a3f678580af49ac67f3c968
2018-04-24 15:15:13 +01:00
David Brazdil
1b0c0a3e52
Add more hidden APIs to light greylist
...
Bug: 78242776
Test: make
Merged-In: I3e1f6acd805ca73509a896066a336432f29d0c87
Change-Id: Ieb2eb62201a6f270afd76ae3f6e5ca6226dd57a6
2018-04-24 10:49:59 +00:00
Nicolas Geoffray
005964ce2f
Add light grey APIs.
...
bug: 78142888
Test: m
Change-Id: If251bd9af25a636946ef965baee354b1b9067bf5
2018-04-23 17:49:02 +01:00
Mathew Inwood
54e0be0d25
Merge "Light greylist additions." into pi-dev
2018-04-23 15:57:27 +00:00
Mathew Inwood
56efac3483
Light greylist additions.
...
These are scraped from bugreports attached to numerous bugs. They all
related to reflective API accesses (not linking).
Test: m
Bug: 64382372
Bug: 33010617
Bug: 62090571
Bug: 69061609
Bug: 73554018
Bug: 73741036
Bug: 74234537
Bug: 74240254
Bug: 76097575
Bug: 76134480
Bug: 76231474
Bug: 76390527
Bug: 77154412
Bug: 77289927
Bug: 77319364
Bug: 77481479
Bug: 77675425
Bug: 77735374
Bug: 78045614
Bug: 78242776
Bug: 78322423
Bug: 78436746
Bug: 78437951
Bug: 78438371
Change-Id: Ibe00e41e7c8cb4e79a245a41fc50a1744266ecb5
2018-04-23 15:03:00 +01:00
Nicolas Geoffray
35bd79484b
Add more light grey APIs.
...
bug: 64382372
Test: m
Change-Id: I1d36c4d1087e8b9a184487ede4f567e778e1589e
2018-04-23 13:54:50 +01:00
David Brazdil
519249f472
Merge "Greylist test API for CtsSliceTestCases" into pi-dev
2018-04-23 10:51:14 +00:00
Nicolas Geoffray
d60512c0d9
Merge "Add light grey APIs." into pi-dev
2018-04-23 10:42:17 +00:00
David Brazdil
52a1106086
Greylist test API for CtsSliceTestCases
...
The test invokes two hidden methods inside a ContentProvider.
Since we cannot exempt those, add the two methods to light greylist
until they are made @TestApi.
Bug: 64382372
Test: run cts --module CtsSliceTestCases
Change-Id: I9bc0c23282c1744f4b93b9d84fcdd022f70859c2
2018-04-23 10:41:32 +00:00
Nicolas Geoffray
1f4d564713
Merge "Add java.io.File fields to light grey." into pi-dev
2018-04-23 10:33:39 +00:00
Nicolas Geoffray
afc5b242d1
Merge "Add camera APIs to light grey." into pi-dev
2018-04-23 10:30:01 +00:00
Nicolas Geoffray
144d5acdf5
Merge "Add light grey APIs." into pi-dev
2018-04-23 10:23:09 +00:00
Nicolas Geoffray
bbfe498aef
Merge "Add APIs to light grey." into pi-dev
2018-04-23 08:58:24 +00:00
Nicolas Geoffray
d7b98e1033
Merge "Add SELinux->getFileContext to light grey." into pi-dev
2018-04-23 08:57:07 +00:00
Nicolas Geoffray
b6f9d40495
Merge "Light grey some APIs." into pi-dev
2018-04-23 08:56:52 +00:00
Nicolas Geoffray
20da3941ef
Light grey some APIs.
...
bug: 64382372
Test: m
Change-Id: I95fc5850ddfab08715bdbe4f2457965638d4a5d7
2018-04-20 15:40:58 +01:00
Nicolas Geoffray
f3fb2f7d0a
Add SELinux->getFileContext to light grey.
...
bug: 64382372
Test: m
Change-Id: Ifd5c3f3aeb6f87c93a1022667121f2f448f1cb90
2018-04-20 14:20:30 +01:00
Nicolas Geoffray
503ead0ef0
Add camera APIs to light grey.
...
bug: 64382372
Test: m
Change-Id: I610725a1d37d23fc482a985f1237864b72630ce0
2018-04-20 14:04:08 +01:00
Nicolas Geoffray
9e5aad63a7
Add java.io.File fields to light grey.
...
bug: 64382372
bug: 78024111
Test: m
Change-Id: Iaa330f261d31a2f1cb5b8e3351b09af6a30567ae
2018-04-20 14:02:39 +01:00
Nicolas Geoffray
55ca4d33fe
Add light grey APIs.
...
bug: 64382372
Test: m
Change-Id: If15820dda1c985dc8d367d211732611d0a56bd26
2018-04-20 13:16:18 +01:00
Nicolas Geoffray
1fcc87cf62
Add light grey APIs.
...
bug: 64382372
Test: m
Change-Id: I7c064a3af390a76f419176b1306328fcba8041d7
2018-04-20 13:12:46 +01:00
Nicolas Geoffray
44f0c14885
Add APIs to light grey.
...
bug: 64382372
Test: m
Change-Id: I340be61396fa7736c305333e02a54591e416286b
2018-04-20 13:08:19 +01:00
David Brazdil
9aa2a33cf3
Merge "Add intrinsics on light greylist" into pi-dev
2018-04-20 10:45:26 +00:00
Nicolas Geoffray
75d3d96084
Merge "Light grey java.net.HttpCookie fields." into pi-dev
2018-04-20 09:37:36 +00:00
Nicolas Geoffray
2c321ccd7e
Merge "Add some widget APIS to light grey." into pi-dev
2018-04-20 09:37:06 +00:00
David Brazdil
622b852670
Add intrinsics on light greylist
...
Put intrinsics which are hidden API on light greylist. These were
implicitly considered white so far, so we would not have seen warnings
about their uses and should greylist them for P.
Note that these have been greylisted before in CL
I8fba27a529a83751ab27859b1c1b791ab85786cf but the CL was reverted.
Bug: 64382372
Test: make
Change-Id: I21fe58d244b8b43bf4ddeab556c805d256c13512
2018-04-19 15:50:38 +01:00
Nicolas Geoffray
9c603f7f58
Add some widget APIS to light grey.
...
bug: 78045614
Test: m
Change-Id: I77c7059e55a3504173f29c0cf263b77f5ecb8012
2018-04-19 15:48:47 +01:00
Nicolas Geoffray
6e067d0d81
Light grey java.net.HttpCookie fields.
...
bug: 78182056
bug: 77925754
Test: m
Change-Id: I930ad319e8477ac93ab19632565e3696317053e1
2018-04-19 14:29:50 +00:00
David Brazdil
b7f1777d0a
Merge "Add one more hidden API to light greylist" into pi-dev
2018-04-19 12:59:40 +00:00
David Brazdil
2339132f79
Add one more hidden API to light greylist
...
Bug: 78229662
Test: make
Change-Id: I603e48d795d6d805f46389f9edbd81ffd6c66696
2018-04-19 11:00:41 +01:00
Nicolas Geoffray
9e38dfaec4
Add UUID->leastSigBits to light grey.
...
bug: 78125653
Test: m
Change-Id: I0fd8fd1711505e14a0de33db509c7472a2c38d8c
2018-04-18 17:12:34 +01:00
David Brazdil
b914565f6a
Merge changes I9876ff6b,Iccd7c1c1 into pi-dev
...
* changes:
Add more hidden API on light greylist
Add Thread.contextClassLoader to hidden API light greylist
2018-04-18 15:48:50 +00:00
David Brazdil
6644a0ec4f
Merge "Delete hiddenapi-blacklist.txt file" into pi-dev
2018-04-18 15:35:39 +00:00
David Brazdil
a74badbe26
Merge "Sort hiddenapi-light-greylist.txt" into pi-dev
2018-04-18 15:35:07 +00:00
Nicolas Geoffray
b1b2e0e92c
Merge "Add UUID->mostSigBits to light grey." into pi-dev
2018-04-18 13:58:04 +00:00
Nicolas Geoffray
7ed8513166
Merge "Add Landroid/app/LoadedApk;->mLibDir:Ljava/lang/String; to light grey." into pi-dev
2018-04-18 13:57:48 +00:00
David Brazdil
df15897b07
Add more hidden API on light greylist
...
Bug: 78210188
Bug: 78182899
Test: make
Change-Id: I9876ff6bc9477f51d6a5ba9370c6a1742210f86a
2018-04-18 14:22:03 +01:00
David Brazdil
06b59756fa
Delete hiddenapi-blacklist.txt file
...
The file is empty and not used, and its presence confuses people.
Remove it.
Bug: 64382372
Test: make
Change-Id: I8646a78b96d81dd38e5c58460d354430babd9d53
2018-04-18 13:37:45 +01:00
David Brazdil
02795c946f
Sort hiddenapi-light-greylist.txt
...
Previous CL Ide42eacc8db4e403432ddd9d952495dda85db0ac left it
unsorted which makes it difficult to programatically add new APIs.
Bug: 64382372
Test: make
Change-Id: Iff35925d9ad64d8a98e59c1b8c4094d59a1c3a3c
2018-04-18 13:37:45 +01:00
David Brazdil
eb73af62fb
Add Thread.contextClassLoader to hidden API light greylist
...
Bug: 78145123
Test: make
Change-Id: Iccd7c1c167c77c6bced619735114452e80a086f0
2018-04-18 13:37:45 +01:00
Nicolas Geoffray
30236b78ab
Add new light greylist APIs.
...
bug: 78027167
Test: m
Change-Id: I6b9ef6534e1a0f50aac19909c04640b4b1f581ca
2018-04-18 10:56:32 +01:00
Nicolas Geoffray
ba199f56ca
Merge "Add Landroid/app/IActivityManager;->getConfiguration() to light grey." into pi-dev
2018-04-18 09:28:20 +00:00
Nicolas Geoffray
a8527b9cb1
Merge "Light grey android.media.MediaScanner.isNoMediaPath" into pi-dev
2018-04-18 08:30:33 +00:00
Nicolas Geoffray
6ca3856df6
Add Landroid/app/IActivityManager;->getConfiguration() to light grey.
...
bug: 77327058
Test: m
Change-Id: I86d891e21c729a54450c8a92493303683152c07c
2018-04-18 09:21:34 +01:00
Nicolas Geoffray
494752c416
Add Landroid/app/LoadedApk;->mLibDir:Ljava/lang/String; to light grey.
...
bug: 77912446
Test: m
Change-Id: I81502667117a0584d150dc48d612a6a559dc3537
2018-04-18 08:59:15 +01:00
Pavlin Radoslavov
c442b64ab1
Add A2DP Codec config hidden APIs to the greylist
...
Bug: 78187319
Test: Code compilation
Change-Id: Ide42eacc8db4e403432ddd9d952495dda85db0ac
2018-04-17 14:35:19 -07:00
Nicolas Geoffray
1d93ccb98c
Light grey android.media.MediaScanner.isNoMediaPath
...
bug: 78027167
Test: m
Change-Id: I9bd853608a5c4ee98d39920f6157f97bf796c708
2018-04-17 16:23:47 +01:00
Nicolas Geoffray
6a56aad5a2
Add UUID->mostSigBits to light grey.
...
bug: 78125653
Test: m
Change-Id: Idff199d30071336b761a5d6c50812361c560ac85
2018-04-17 15:12:33 +01:00
Artem Iglikov
d1a7b7d43a
Greylist getMandatoryBackupTransport
...
Bug: 77997957
Test: n/a
Change-Id: Ieccdd978960c00b6bef6ebe375fa388c0d186684
2018-04-17 12:09:36 +01:00
TreeHugger Robot
15d35c1274
Merge "Fixed power manager CTS test." into pi-dev
2018-04-17 10:39:30 +00:00