OSDN Git Service
Victor Hsieh [Mon, 14 May 2018 18:16:30 +0000 (11:16 -0700)]
Merge "When suid_dumpable == 2, set dumpable to 0 for apps"
am:
659a13121c
Change-Id: I02d210fd4d9e13a3f548411cea57a4f2e37c7481
Nicolas Geoffray [Mon, 14 May 2018 16:40:50 +0000 (09:40 -0700)]
Merge "Bugreport greylist updates."
am:
a4d61d0529
Change-Id: Iecee8399b64f8f9afb29e69aeb7218e02f4a6ab9
Treehugger Robot [Mon, 14 May 2018 16:28:51 +0000 (16:28 +0000)]
Merge "When suid_dumpable == 2, set dumpable to 0 for apps"
Pirama Arumuga Nainar [Mon, 14 May 2018 16:17:35 +0000 (16:17 +0000)]
Merge "For Win32, don't cast ssize_t while printing"
Nicolas Geoffray [Mon, 14 May 2018 15:28:35 +0000 (15:28 +0000)]
Merge "Bugreport greylist updates."
David Brazdil [Mon, 14 May 2018 12:13:26 +0000 (05:13 -0700)]
Merge "Include in hidden API dark greylist based on package name"
am:
248db48254
Change-Id: If38ba9e9743fe4615d8da6f865f69927db4be3ce
Nicolas Geoffray [Mon, 14 May 2018 10:29:56 +0000 (11:29 +0100)]
Bugreport greylist updates.
Monday edition.
Manual as it looks the tables haven't been populated yet.
bug:
79630776
bug:
79577968
bug:
79604623
Test: m
Change-Id: I569b827821ed5651afab409a66704ba61a572a7c
Merged-in: I569b827821ed5651afab409a66704ba61a572a7c
David Brazdil [Mon, 14 May 2018 10:23:10 +0000 (10:23 +0000)]
Merge "Include in hidden API dark greylist based on package name"
Myles Watson [Sat, 12 May 2018 01:09:10 +0000 (18:09 -0700)]
Merge "BluetoothManager: Continue when BLE not supported"
am:
7e8c166d8e
Change-Id: I6bacffc9d9ed18e44b2c7c70a62d6c40a2835c30
Pirama Arumuga Nainar [Fri, 11 May 2018 22:52:49 +0000 (15:52 -0700)]
For Win32, don't cast ssize_t while printing
Bug: http://b/
69933068
This is a partial revert of
https://android-review.googlesource.com/c/platform/frameworks/base/+/109433
so we can use Clang for windows cross compilation.
Clang does not allow a cast to 'signed size_t' and both Clang and
current MinGW accept a ssize_t to the '%zd' format specifier.
Test: m native-host, m native-host-cross with both MinGW and Clang
Change-Id: I5366622b91be1433f6c533c55a9ae429b57c7a27
Treehugger Robot [Fri, 11 May 2018 23:13:23 +0000 (23:13 +0000)]
Merge "BluetoothManager: Continue when BLE not supported"
Myles Watson [Fri, 11 May 2018 15:47:24 +0000 (08:47 -0700)]
BluetoothManager: Continue when BLE not supported
Bluetooth should turn on completely (without GATT) when the chip
does not support Bluetooth Low Energy.
Bug:
77495521
Test: Remove vendor/etc/permissions/android.hardware.bluetooth_le.xml
Reboot
Toggle Bluetooth
Change-Id: I9314ee473b4a5a158196bab3037b1452247ba466
fionaxu [Fri, 11 May 2018 18:52:27 +0000 (11:52 -0700)]
Merge "add install action for carrier id to system API"
am:
87a7c657bd
Change-Id: I5a3534bc791b44be092bfae2c07b2415886e4ed8
Treehugger Robot [Fri, 11 May 2018 17:36:24 +0000 (17:36 +0000)]
Merge "add install action for carrier id to system API"
Jordan Liu [Fri, 11 May 2018 17:04:19 +0000 (10:04 -0700)]
Merge "Add Carriers.APN_SET_ID and NO_SET_SET"
am:
cdb29f97db
Change-Id: I6b004476c47e105b35ec0d3884c660f6b10b8697
Jordan Liu [Fri, 11 May 2018 15:57:16 +0000 (15:57 +0000)]
Merge "Add Carriers.APN_SET_ID and NO_SET_SET"
fionaxu [Tue, 8 May 2018 18:57:53 +0000 (11:57 -0700)]
add install action for carrier id to system API
Bug:
79426800
Test: Manual
Change-Id: Icd3e9ae527dc17ab5762aa57df596f058de08d5b
(cherry picked from commit
2776ed56b846ff34e45467f7618a679049d16f3f)
Merged-in: Icd3e9ae527dc17ab5762aa57df596f058de08d5b
David Brazdil [Thu, 10 May 2018 14:50:02 +0000 (15:50 +0100)]
Include in hidden API dark greylist based on package name
Dark greylist has so far been populated with the remaining class
members of classes listed on the light greylist. This patch changes
the rule to include all remaining classes and class members in the
same package (sub-packages not included).
Bug:
64382372
Test: make -j64 out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt
Change-Id: Icf3f60f1e776f092103c612fc3995ce0e66617ea
Merged-In: Icf3f60f1e776f092103c612fc3995ce0e66617ea
(cherry picked from commit
4c3c03129ba95dccab30ba7579dc91b97843271f)
Nicolas Geoffray [Fri, 11 May 2018 12:49:06 +0000 (05:49 -0700)]
Merge "Add static analysis data."
am:
1c5811d34d
Change-Id: I0e648c528b0e8749ecd1ee22e0d156354750427b
Treehugger Robot [Fri, 11 May 2018 11:41:40 +0000 (11:41 +0000)]
Merge "Add static analysis data."
Nicolas Geoffray [Fri, 11 May 2018 10:08:01 +0000 (11:08 +0100)]
Add static analysis data.
bug:
64382372
Test: m
Change-Id: Ie0696a5eecf610165c4b9c339a789f76964a0623
Merged-in: I188a69ad05fffa69be79fec36b180fc9f76998fa
Jordan Liu [Fri, 11 May 2018 01:34:16 +0000 (18:34 -0700)]
Merge "Add documentation for what to use for SS changes"
am:
12ee7a7eec
Change-Id: Icec89d1278bd1b3cd2be8f9a2faa839d0ee1f463
Jordan Liu [Fri, 11 May 2018 00:40:20 +0000 (17:40 -0700)]
Merge "Update getIccAuthentication documentation"
am:
b11cbb9e2e
Change-Id: Ied25c5ea18797fa18d97dbe72bd8f941f148095b
Jordan Liu [Thu, 10 May 2018 23:10:08 +0000 (23:10 +0000)]
Merge "Add documentation for what to use for SS changes"
Jordan Liu [Thu, 10 May 2018 22:56:27 +0000 (22:56 +0000)]
Merge "Update getIccAuthentication documentation"
Shuo Qian [Thu, 10 May 2018 22:00:24 +0000 (15:00 -0700)]
Merge "Enhance adding subscription logs"
am:
263913016f
Change-Id: Ie8b1cf1c4e50ea1b7e9eafb59259848428484a3e
Jordan Liu [Fri, 6 Apr 2018 18:10:12 +0000 (11:10 -0700)]
Add Carriers.APN_SET_ID and NO_SET_SET
Add them as hidden for now.
Bug:
70172263
Test: TelephonyProviderTest#testApnSetId
Change-Id: Id16dd5631d327f403a7347b72ecfb27a5e298541
Merged-In: Id16dd5631d327f403a7347b72ecfb27a5e298541
Jordan Liu [Tue, 17 Apr 2018 21:43:39 +0000 (14:43 -0700)]
Add documentation for what to use for SS changes
Since the broadcast is deprecated in favor of the ServiceStateProvider,
the documentation should reflect this.
Note that the LteEarfcnRsrpBoost has not been migrated into the provider
so this also needs to happen.
Bug:
33756364
Fixes:
78188866
Test: no behavior change, ran make
Change-Id: Ia15a7408bdc79927438fa243cce77b262bbb66c4
Merged-In: Ia15a7408bdc79927438fa243cce77b262bbb66c4
Jordan Liu [Mon, 9 Apr 2018 23:33:17 +0000 (16:33 -0700)]
Update getIccAuthentication documentation
Explain what it means if the function returns null. This is based on the
spec at TS 31.102 section 7.3.1.
Bug:
74392381
Test: manual
Change-Id: Ic84d94589431109079a866027953ab9dbef103b8
Merged-In: Ic84d94589431109079a866027953ab9dbef103b8
Shuo Qian [Thu, 10 May 2018 20:56:06 +0000 (20:56 +0000)]
Merge "Enhance adding subscription logs"
Victor Hsieh [Thu, 10 May 2018 19:16:22 +0000 (12:16 -0700)]
When suid_dumpable == 2, set dumpable to 0 for apps
Core dumps for zygote children are expected to be disabled in CTS, but
on system like Chrome OS, suid_dumpable is 2, thus not compliant with
CTS. This patch sets dumpable to 0 for apps when suid_dumpable is 2.
Test: atest \
android.permission.cts.FileSystemPermissionTest#testAllBlockDevicesAreSecure \
android.os.cts.SecurityFeaturesTest#testPrctlDumpable \
android.seccomp.cts.SeccompHostJUnit4DeviceTest#testCTSSyscallBlocked
Bug:
62379607
Bug:
79094505
Change-Id: Ida43b16590dca1e85a0f9549c779e38c00bc6a0c
sqian [Tue, 8 May 2018 21:11:11 +0000 (14:11 -0700)]
Enhance adding subscription logs
Bug:
79428110
Test: Manual
Change-Id: Ie77128f447ad0628336b2af38344d2d7a07f1eab
Merged-In: Ie77128f447ad0628336b2af38344d2d7a07f1eab
(cherry picked from commit
a77d9d7f2a733c67b471086f95fa3f7c70d6c1dc)
David Brazdil [Thu, 10 May 2018 17:57:38 +0000 (10:57 -0700)]
Merge "Greylist hidden methods for exempting trusted test code"
am:
2a661bff82
Change-Id: Ifccc5e3a86ee91fbaa05553823f6f2348c7dc890
David Brazdil [Thu, 10 May 2018 15:46:56 +0000 (15:46 +0000)]
Merge "Greylist hidden methods for exempting trusted test code"
Remi NGUYEN VAN [Thu, 10 May 2018 01:35:47 +0000 (18:35 -0700)]
Merge "Fix android.net.SSLTest"
am:
ef43ea3238
Change-Id: If877193c05bf6b932aceacc93b27241e619a21b2
Jack He [Thu, 10 May 2018 01:32:38 +0000 (18:32 -0700)]
Merge "Bluetooth: Update grey list to match hidden API change"
am:
97047fd725
Change-Id: I8695f1daf535f27833a2ec82e81b82c599e1496f
Calin Juravle [Thu, 10 May 2018 00:37:42 +0000 (17:37 -0700)]
Merge "Properly prepare system server profiles"
am:
15b9558018
Change-Id: I83070dd881f164e8d458925274b2fb41851b1ae5
Remi NGUYEN VAN [Thu, 10 May 2018 00:11:21 +0000 (00:11 +0000)]
Merge "Fix android.net.SSLTest"
Treehugger Robot [Wed, 9 May 2018 23:26:23 +0000 (23:26 +0000)]
Merge "Bluetooth: Update grey list to match hidden API change"
Calin Juravle [Wed, 9 May 2018 23:25:53 +0000 (16:25 -0700)]
Merge "Make system server profiling an explicit runtime intent"
am:
232011c7d9
Change-Id: I07e6b4f0e75ff96bda3d5ce5acf6b9ea1f999325
Calin Juravle [Wed, 9 May 2018 22:12:42 +0000 (22:12 +0000)]
Merge "Properly prepare system server profiles"
Calin Juravle [Wed, 9 May 2018 22:12:07 +0000 (22:12 +0000)]
Merge "Make system server profiling an explicit runtime intent"
android-build-prod (mdb) [Wed, 9 May 2018 19:19:06 +0000 (12:19 -0700)]
Merge "AudioService: Do not disconnect SCO started externally"
am:
391d919622
Change-Id: Iebcdb6d451755993cfee81250721a03b0f378edf
android-build-prod (mdb) [Wed, 9 May 2018 17:52:34 +0000 (17:52 +0000)]
Merge "AudioService: Do not disconnect SCO started externally"
Tyler Gunn [Wed, 9 May 2018 17:35:20 +0000 (10:35 -0700)]
Merge "Make TelecomManager#endCall a public API."
am:
d63982cc03
Change-Id: Iea39f42a96cb004cf69caaf5ba732d3b14060336
David Brazdil [Wed, 9 May 2018 17:02:03 +0000 (18:02 +0100)]
Greylist hidden methods for exempting trusted test code
Bug:
64382372
Test: N/A
Change-Id: I8bcc3d23d0b942e70a16a9d28ea0d21ce4fe75a2
Tyler Gunn [Wed, 9 May 2018 16:22:44 +0000 (16:22 +0000)]
Merge "Make TelecomManager#endCall a public API."
David Brazdil [Wed, 9 May 2018 16:10:31 +0000 (09:10 -0700)]
Merge changes I8b20e03c,Id1ef4ab5,Ie34adb8b
am:
6982bf4bde
Change-Id: If80460dad9656f1bdad492a951f1e7247799e7b1
David Brazdil [Wed, 9 May 2018 14:51:37 +0000 (07:51 -0700)]
Merge "Revert^2 "Fix signature of recently changed methods""
am:
3a603777ba
Change-Id: I3997c82d48b94118a11928ec10e664acc6607fd3
David Brazdil [Wed, 9 May 2018 13:58:50 +0000 (13:58 +0000)]
Merge changes I8b20e03c,Id1ef4ab5,Ie34adb8b
* changes:
Manualy blacklist certain hidden APIs
Populate hidden API dark greylist
Refactor build rules for hidden API lists
David Brazdil [Wed, 9 May 2018 13:40:55 +0000 (06:40 -0700)]
[automerger skipped] Merge "Revert "Fix signature of recently changed methods""
am:
89a4b96b9c -s ours
Change-Id: I4f5c4d87f419cafc44b6f93a24a29720db744d06
David Brazdil [Wed, 9 May 2018 12:42:30 +0000 (12:42 +0000)]
Merge "Revert^2 "Fix signature of recently changed methods""
David Brazdil [Wed, 9 May 2018 12:35:20 +0000 (12:35 +0000)]
Revert^2 "Fix signature of recently changed methods"
This reverts commit
29b92c610a61f88ebf25e764994b70d61bc3cea8.
Merge the CL again, this time without a Merged-In flag which
prevented it from merging into the internal tree.
Change-Id: Ie1b9de8c45cb174437fa4acdd78e6cdd4b660623
David Brazdil [Wed, 9 May 2018 12:32:28 +0000 (12:32 +0000)]
Merge "Revert "Fix signature of recently changed methods""
David Brazdil [Wed, 9 May 2018 12:27:27 +0000 (12:27 +0000)]
Revert "Fix signature of recently changed methods"
This reverts commit
ca930d166ec2b3d20a8abc03aaabb7874a6c7745.
Reason for revert: the Merged-In tag conflicts with
a cherry-pick into AOSP
Merged-In: Id50db88f4ff36069b0f392c81dd9d90c24cd2206
Change-Id: If284ac4957cf84f0acc118f232f6acf476e05b98
David Brazdil [Wed, 9 May 2018 10:54:32 +0000 (03:54 -0700)]
[automerger skipped] Merge "Fix signature of recently changed methods"
am:
4b2f7576a0 -s ours
Change-Id: Ib0085e2a127a1b70be98b66b898b7fa04741f512
David Brazdil [Wed, 9 May 2018 10:07:11 +0000 (03:07 -0700)]
Merge changes from topic "hiddenapi-cherrypick"
am:
b54f2acc72
Change-Id: I378f50fd4f6290518fd9a39d4c4eb1e972e3d60e
David Brazdil [Wed, 9 May 2018 10:02:48 +0000 (03:02 -0700)]
Populate hidden API light greylist for AOSP
am:
cfeb1c8b88
Change-Id: If2dae23b6e06339f0f6d214bb7d4cd3abb8d13a8
David Brazdil [Wed, 9 May 2018 09:58:08 +0000 (02:58 -0700)]
Add presubmit hook for hidden API lists.
am:
2200a1b83b
Change-Id: Ic12ae5fba32e9df9e7f31910593e07690f47c35d
Mathew Inwood [Wed, 9 May 2018 09:52:35 +0000 (02:52 -0700)]
Fix typo in comments.
am:
40f67c52bb
Change-Id: I0727a3755f5fb46c5d4d43bed9f1628c82f5190d
Mathew Inwood [Wed, 9 May 2018 09:45:54 +0000 (02:45 -0700)]
Treat hidden API exemptions as whitelist.
am:
5449fc727f
Change-Id: I878f1582ee7b5d0f52425be796b4dfcef789a96d
David Brazdil [Wed, 9 May 2018 09:43:46 +0000 (09:43 +0000)]
Merge "Fix signature of recently changed methods"
Mathew Inwood [Wed, 9 May 2018 09:38:34 +0000 (02:38 -0700)]
Replace ALL_LISTS policy with JUST_WARN.
am:
a4ba0e442a
Change-Id: I423212d16d0c453f31ae6e82f8333d5b633ed78b
David Brazdil [Wed, 9 May 2018 09:10:18 +0000 (10:10 +0100)]
Fix signature of recently changed methods
BluetoothHeadset methods startScoUsingVirtualVoiceCall and
stopScoUsingVirtualVoiceCall recently changed their signature.
Fix this in the hiddenapi-light-greylist.txt to unblock the build.
Test: make out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
Merged-In: Id50db88f4ff36069b0f392c81dd9d90c24cd2206
Change-Id: I295886b0cd35936d0b8c1a8e4a9b9c5054dda001
David Brazdil [Tue, 8 May 2018 15:49:02 +0000 (16:49 +0100)]
Manualy blacklist certain hidden APIs
Previous CL introduced the concept of populating the dark greylist
with remaining members of classes on the light greylist. This breaks
the assumption that some methods/fields will always remain blacklisted.
Introduce a new file which forces their blacklisting and adjust the
build rules accordingly.
Bug:
64382372
Test: make out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
Merged-In: I8b20e03c50f4027a24d2a6081bedb08bc8a34011
Change-Id: I8b20e03c50f4027a24d2a6081bedb08bc8a34011
(cherry picked from commit
4b34f79a35a6602962ed1df1accd9d6ea6e41e77)
David Brazdil [Tue, 8 May 2018 14:28:31 +0000 (15:28 +0100)]
Populate hidden API dark greylist
This patch will iterate over all classes in the light greylist and
add the remaining (currently blacklisted) class members into the
dark greylist. This is meant to mitigate the impact of the feature
on legacy apps, in case their hidden API uses have not been detected
by our analyses. The dark greylist entries will be available to apps
targeting pre-P SDK versions, but blocked for apps targeting P or later.
Bug:
64382372
Test: make out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt
Merged-In: Id1ef4ab523b3b4d1333b5fbf2b3e6622ef2be607
Change-Id: Id1ef4ab523b3b4d1333b5fbf2b3e6622ef2be607
(cherry picked from commit
185f00e6677cea3fb135648f4a19d22dec54bbb5)
David Brazdil [Tue, 8 May 2018 14:04:20 +0000 (15:04 +0100)]
Refactor build rules for hidden API lists
The build rules were getting messy and too difficult to extend.
Extract assertions into own functions, create shared variables.
Bug:
64382372
Test: make out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
Merged-In: Ie34adb8b5349b30daa2e9e4976d285f6d9711f0e
Change-Id: Ie34adb8b5349b30daa2e9e4976d285f6d9711f0e
(cherry picked from commit
721bc8e6a8b1350c62b4a570f523541d1ce1124a)
David Brazdil [Wed, 9 May 2018 08:10:19 +0000 (08:10 +0000)]
Merge changes from topic "hiddenapi-cherrypick"
* changes:
Enable hidden API blacklist in AOSP
Populate hidden API light greylist for AOSP
Add presubmit hook for hidden API lists.
Fix typo in comments.
Treat hidden API exemptions as whitelist.
Replace ALL_LISTS policy with JUST_WARN.
Calin Juravle [Wed, 9 May 2018 03:39:02 +0000 (20:39 -0700)]
Merge "Process "dalvik.vm.profilebootimage" system property"
am:
dc3fe53d4f
Change-Id: I1ea3abc828c4fa3fc5359f7c63664084f31d9eb7
Jack He [Tue, 8 May 2018 21:51:07 +0000 (14:51 -0700)]
AudioService: Do not disconnect SCO started externally
* AudioService should not disconnect Bluetooth SCO if it is started
externally
* When SCO has already started externally, all SCO connection attempts
through AudioManager API will fail with SCO_AUDIO_STATE_DISCONNECTED
intent
* Remove SCO_STATE_DEACTIVATE_EXT_REQ state since AudioService could no
longer disconnect SCO audio that is started externally
* Change SCO_STATE_* values so that they are consecutive
Bug:
79407565
Test: With Bluetooth HFP device connected:
Test1: make a outgoing call
Test2: make VoIP call during cellular call
Test3: make a VoIP call during another VoIP call
Change-Id: I1e0a10aeb0eac59d4826f9defa595aebd85f534c
(cherry picked from commit
33c3a17113ee93bfd4575241cc15e78afc300f0e)
Jack He [Wed, 9 May 2018 02:35:31 +0000 (19:35 -0700)]
Bluetooth: Update grey list to match hidden API change
* startScoUsingVirtualVoiceCall() and stopScoUsingVirtualVoiceCall()
no longer takes arguments
Bug:
76114959
Test: build only, no functional change
Change-Id: I16e5345bbfaa5d42490122a4330673e1152f687f
Remi NGUYEN VAN [Wed, 9 May 2018 02:33:38 +0000 (19:33 -0700)]
Merge "Add NETWORK_BYPASS_PRIVATE_DNS permission"
am:
50e7fe7831
Change-Id: I368bbdf5b222eba7d0d300ced640639531f51482
Calin Juravle [Wed, 9 May 2018 01:55:51 +0000 (01:55 +0000)]
Merge "Process "dalvik.vm.profilebootimage" system property"
android-build-prod (mdb) [Wed, 9 May 2018 01:37:29 +0000 (18:37 -0700)]
Merge "Bluetooth: Fix HFP SCO logic and documentation"
am:
9c4593243c
Change-Id: I86b54d8d05be040eb2273e83f25201e0f2b005a1
Remi NGUYEN VAN [Wed, 9 May 2018 01:29:34 +0000 (01:29 +0000)]
Merge "Add NETWORK_BYPASS_PRIVATE_DNS permission"
android-build-prod (mdb) [Wed, 9 May 2018 00:25:12 +0000 (00:25 +0000)]
Merge "Bluetooth: Fix HFP SCO logic and documentation"
android-build-prod (mdb) [Tue, 8 May 2018 23:27:07 +0000 (16:27 -0700)]
Merge "Update the Open Mobile API version"
am:
cf54a958db
Change-Id: If5f611b074e3ee855d58878688333d1031e6fa93
android-build-prod (mdb) [Tue, 8 May 2018 22:22:13 +0000 (22:22 +0000)]
Merge "Update the Open Mobile API version"
Calin Juravle [Tue, 8 May 2018 19:42:30 +0000 (12:42 -0700)]
Process "dalvik.vm.profilebootimage" system property
Read the profile boot image property and pass the appropriate flags to the
android runtime.
Test: build, flash and check properties
Bug:
73313191
Change-Id: Ie972e2eb693678d268e707b9e892c97dd7dd061b
Tyler Gunn [Wed, 2 May 2018 20:23:48 +0000 (13:23 -0700)]
Make TelecomManager#endCall a public API.
A broad category of apps such as wearable companion apps and call blocking
apps rely on the ability to reject a ringing call.
Previously this was achieved using a broken TelephonyManager API which
lacked permission checks.
To support these applications, removing the @hide attribute on the existing
TelecomManager#endCall API so that apps with the existing
ANSWER_PHONE_CALLS permission can reject ringing calls and end ongoing
calls. Logically if an app has permission to answer a call, it should be
able to end it.
Test: Created test app to verify API permission checks.
Test: Added new CTS tests to cover this API.
Bug:
78290258
Merged-In: Ic6527969793ebe05eb9c5fa8205558ae788ea572
Change-Id: Ic6527969793ebe05eb9c5fa8205558ae788ea572
David Brazdil [Sat, 5 May 2018 10:43:29 +0000 (11:43 +0100)]
Enable hidden API blacklist in AOSP
The CL copies the build rule for hidden API lists from the internal
tree to AOSP. This is not a cherry-pick but it will make the rules
the same in all the branches. As a result, the blacklist becomes
enabled in AOSP.
Test: make
Merged-In: I8757a66bf625388e6f6419714ef5bba7af5d93ea
Change-Id: I567c10dc8e833aa0a6775ab91f2ce9553b0dd8df
David Brazdil [Tue, 8 May 2018 11:40:31 +0000 (12:40 +0100)]
Populate hidden API light greylist for AOSP
This patch adds the light greylist and vendor list source files from
the internal tree, intersected with the full list of private APIs
in AOSP. This is a prerequisite for enabling the blacklist.
The CL is not merged into internal master.
Test: N/A
Change-Id: I41442574fff6894cd1cb004abc5101210cfb86ba
Merged-In: I8757a66bf625388e6f6419714ef5bba7af5d93ea
David Brazdil [Sat, 5 May 2018 11:07:38 +0000 (12:07 +0100)]
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: Icc124fd8ceb3f001a9c11bbf40e0a111910c6b39
(cherry picked from commit
e5dc64d4281dd9f38c2b585202e26ae4278fcfc5)
Mathew Inwood [Fri, 6 Apr 2018 12:53:45 +0000 (13:53 +0100)]
Fix typo in comments.
Keep the nitpickers happy.
Test: m
Bug:
77517571
Merged-In: I70374c05df3e366b5a0ce3bbb103dce28f48d4b8
Change-Id: I70374c05df3e366b5a0ce3bbb103dce28f48d4b8
(cherry picked from commit
5e986dccfd96876d9e07bf779237b10bf9985b28)
Mathew Inwood [Thu, 5 Apr 2018 12:56:39 +0000 (13:56 +0100)]
Treat hidden API exemptions as whitelist.
Update docs accordingly.
Test: m
Bug:
64382372
Merged-In: Ief8daf3badeb046b0461a3ebcd289e242d559070
Change-Id: Ief8daf3badeb046b0461a3ebcd289e242d559070
(cherry picked from commit
33d5138e132561d6c3c02fc0e265aa3c158f6798)
Mathew Inwood [Thu, 5 Apr 2018 14:44:20 +0000 (15:44 +0100)]
Replace ALL_LISTS policy with JUST_WARN.
It seems pretty unlikely that we'd ever want to disallow access to the
light greylist in P, since doing do would break do many apps. We don't need
this policy here as an opt-in for apps now, since the StrictMode work will
achieve the same thing.
Instead, make a "just warn" policy which allows access to all APIs, but
leaves the detection and logging logic in place. This gives us the option
of disabling enforcement, but still gathering logs to find out which apps
use which APIs.
Bug:
77517571
Test: Boot device
Test: Hardcode policy of HIDDEN_API_ENFORCEMENT_JUST_WARN and verify log
Merged-In: I588f347716a79ac5887b74763c8afc16b3be699b
Change-Id: I588f347716a79ac5887b74763c8afc16b3be699b
(cherry picked from commit
a6d02fb1041bf19161fd4d74bcf5a1cd87495245)
Remi NGUYEN VAN [Tue, 8 May 2018 09:00:59 +0000 (02:00 -0700)]
Merge "Fix testRegisterUsageCallback"
am:
d0b9f983d6
Change-Id: I7ec1e3a05971e8e0448289e3c3f979fd7dcfe144
Remi NGUYEN VAN [Tue, 8 May 2018 07:55:42 +0000 (07:55 +0000)]
Merge "Fix testRegisterUsageCallback"
Remi NGUYEN VAN [Tue, 8 May 2018 02:23:56 +0000 (11:23 +0900)]
Fix android.net.SSLTest
The test is failing because of lack of visibility (IllegalAccessError).
Also rename it to match the tested class, migrate to JUnit4, and remove
an old test that is unused (suppressed), relies on third-party servers
and is not a proper unit test (would try to make real network requests).
Test: test now passes
Change-Id: I5032a056df83d4f572d89860b52bd85a1993d9dc
Remi NGUYEN VAN [Tue, 8 May 2018 05:24:56 +0000 (22:24 -0700)]
Merge "Fix testUidPoliciesToString"
am:
c8613f9965
Change-Id: I3ec2fd01ca55ef63d0bfe0cec48854f852c736cc
Remi NGUYEN VAN [Tue, 8 May 2018 04:13:07 +0000 (04:13 +0000)]
Merge "Fix testUidPoliciesToString"
Remi NGUYEN VAN [Wed, 25 Apr 2018 08:46:10 +0000 (17:46 +0900)]
Add NETWORK_BYPASS_PRIVATE_DNS permission
Have the captive portal app and the MMS service use this new permission
to bypass private DNS.
This cherry-pick does not have the TODO and #SystemApi comments
deemed unnecessary in the original change.
Bug: b/
78494660
Test: manual: captive portal login works
Merged-In: I0d3429faddc0509781c896608039e4143cb1e8fd
Merged-In: I77bec89592c594392e94da001f1e3992543b23ec
(cherry-pick of I0a4a8d0105becf6957fd44099bd84eca51e6716f, manual merge)
Change-Id: I041d123ccd9bb1af730a97707cce9003b552cffa
android-build-prod (mdb) [Tue, 8 May 2018 01:13:01 +0000 (18:13 -0700)]
Merge "Convert android.test.runner.stubs to Soong"
am:
6fa8d06c78
Change-Id: I35d8b4836e58092a2c9158c493af8653e7ffb021
android-build-prod (mdb) [Mon, 7 May 2018 23:50:18 +0000 (23:50 +0000)]
Merge "Convert android.test.runner.stubs to Soong"
android-build-prod (mdb) [Mon, 7 May 2018 21:22:49 +0000 (14:22 -0700)]
Merge "Move SettingsLib tests and EasterEgg to aapt2."
am:
846fbd0806
Change-Id: I4d616697988a569b53d0dec1e4b674e455ae1307
android-build-prod (mdb) [Mon, 7 May 2018 20:05:54 +0000 (20:05 +0000)]
Merge "Move SettingsLib tests and EasterEgg to aapt2."
Jack He [Thu, 3 May 2018 02:10:56 +0000 (19:10 -0700)]
Bluetooth: Fix HFP SCO logic and documentation
AudioService:
* Call setBtScoActiveDevice and setBluetoothScoOn both in AudioService's
broadcast receiver so that these two methods must be triggerred in
the same sequence as ACTIVE_DEVICE_CHANGED and AUDIO_STATE_CHANGED
intents are sent and we no longer need to handle race condition by
synchronously checking active device in setBluetoothScoOn
* Default sco audio mode when no headset is active should be virtual
voice call, as many HFP devices do not accept SCO audio without an
ongoing call
* Synchronize checkScoAudioState() method with mScoClients
* Add helper functions connectBluetoothScoHelper and
disconnectBluetoothScoHelper to call various SCO setup and tear down
methods based on sco audio mode
* Try raw, virtual call, and voice recognition mode when disconnecting
externally started SCO
* Add new sco state SCO_STATE_DEACTIVATING to allow back to back calling
of startBluetoothSco and stopBluetoothSco
Audio Manager:
* Modified AudioManager logic so that removed devices callback is called
before newly added devices
BluetoothHeadset:
* Modified BluetoothHeadset so that start and stop SCO using virtual
voice call no longer need a parameter and will use active device by
default
* Modified documentation around various sco mangement APIs to match
their expected behaviors
Bug:
76114959
Test: VoIP calls sanity test cases
Change-Id: Id50db88f4ff36069b0f392c81dd9d90c24cd2206
(cherry picked from commit
89f979849a5cf2fa4e16d4f24ab41409f16a9956)
Colin Cross [Mon, 7 May 2018 19:26:15 +0000 (12:26 -0700)]
Merge changes from topic "soong_support_libs"
am:
3e20d23cf7
Change-Id: Iafd7255c47e296f3054466c35af8e19a6566879f
Aurimas Liutikas [Mon, 7 May 2018 19:21:45 +0000 (12:21 -0700)]
Migrate PrintSpooler to aapt2.
am:
d6c9658d99
Change-Id: I64afdc062304c04a8f28d56cad0d4b32ba3c9d10
Alan Viverette [Mon, 7 May 2018 19:16:58 +0000 (12:16 -0700)]
Migrate to AAPT2
am:
2789e544f1
Change-Id: I2b506b69bb0822cd22d38516e65896e74495a689