Commit Graph

345520 Commits

Author SHA1 Message Date
Nicolas Geoffray
bf9db89c75 Merge "Add static analysis data."
am: 1c5811d34d

Change-Id: I0e648c528b0e8749ecd1ee22e0d156354750427b
2018-05-11 05:49:06 -07:00
Treehugger Robot
1c5811d34d Merge "Add static analysis data." 2018-05-11 11:41:40 +00:00
Nicolas Geoffray
140f065f1f Add static analysis data.
bug: 64382372
Test: m
Change-Id: Ie0696a5eecf610165c4b9c339a789f76964a0623
Merged-in: I188a69ad05fffa69be79fec36b180fc9f76998fa
2018-05-11 11:10:37 +01:00
Jordan Liu
e50905aa8f Merge "Add documentation for what to use for SS changes"
am: 12ee7a7eec

Change-Id: Icec89d1278bd1b3cd2be8f9a2faa839d0ee1f463
2018-05-10 18:34:16 -07:00
Jordan Liu
8d3e1130a4 Merge "Update getIccAuthentication documentation"
am: b11cbb9e2e

Change-Id: Ied25c5ea18797fa18d97dbe72bd8f941f148095b
2018-05-10 17:40:20 -07:00
Jordan Liu
12ee7a7eec Merge "Add documentation for what to use for SS changes" 2018-05-10 23:10:08 +00:00
Jordan Liu
b11cbb9e2e Merge "Update getIccAuthentication documentation" 2018-05-10 22:56:27 +00:00
Shuo Qian
54e464971d Merge "Enhance adding subscription logs"
am: 263913016f

Change-Id: Ie8b1cf1c4e50ea1b7e9eafb59259848428484a3e
2018-05-10 15:00:24 -07:00
Jordan Liu
8d2e3abb40 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
2018-05-10 14:28:47 -07:00
Jordan Liu
b65284004f 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
2018-05-10 14:19:09 -07:00
Shuo Qian
263913016f Merge "Enhance adding subscription logs" 2018-05-10 20:56:06 +00:00
sqian
c6aadb6e31 Enhance adding subscription logs
Bug: 79428110
Test: Manual
Change-Id: Ie77128f447ad0628336b2af38344d2d7a07f1eab
Merged-In: Ie77128f447ad0628336b2af38344d2d7a07f1eab
(cherry picked from commit a77d9d7f2a)
2018-05-10 11:58:15 -07:00
David Brazdil
de5eb7d274 Merge "Greylist hidden methods for exempting trusted test code"
am: 2a661bff82

Change-Id: Ifccc5e3a86ee91fbaa05553823f6f2348c7dc890
2018-05-10 10:57:38 -07:00
David Brazdil
2a661bff82 Merge "Greylist hidden methods for exempting trusted test code" 2018-05-10 15:46:56 +00:00
Remi NGUYEN VAN
60b828ca86 Merge "Fix android.net.SSLTest"
am: ef43ea3238

Change-Id: If877193c05bf6b932aceacc93b27241e619a21b2
2018-05-09 18:35:47 -07:00
Jack He
8dc0982b85 Merge "Bluetooth: Update grey list to match hidden API change"
am: 97047fd725

Change-Id: I8695f1daf535f27833a2ec82e81b82c599e1496f
2018-05-09 18:32:38 -07:00
Calin Juravle
35fe028c93 Merge "Properly prepare system server profiles"
am: 15b9558018

Change-Id: I83070dd881f164e8d458925274b2fb41851b1ae5
2018-05-09 17:37:42 -07:00
Remi NGUYEN VAN
ef43ea3238 Merge "Fix android.net.SSLTest" 2018-05-10 00:11:21 +00:00
Treehugger Robot
97047fd725 Merge "Bluetooth: Update grey list to match hidden API change" 2018-05-09 23:26:23 +00:00
Calin Juravle
a50afa5ebf Merge "Make system server profiling an explicit runtime intent"
am: 232011c7d9

Change-Id: I07e6b4f0e75ff96bda3d5ce5acf6b9ea1f999325
2018-05-09 16:25:53 -07:00
Calin Juravle
15b9558018 Merge "Properly prepare system server profiles" 2018-05-09 22:12:42 +00:00
Calin Juravle
232011c7d9 Merge "Make system server profiling an explicit runtime intent" 2018-05-09 22:12:07 +00:00
android-build-prod (mdb)
43a1ab277d Merge "AudioService: Do not disconnect SCO started externally"
am: 391d919622

Change-Id: Iebcdb6d451755993cfee81250721a03b0f378edf
2018-05-09 12:19:06 -07:00
android-build-prod (mdb)
391d919622 Merge "AudioService: Do not disconnect SCO started externally" 2018-05-09 17:52:34 +00:00
Tyler Gunn
939a78b470 Merge "Make TelecomManager#endCall a public API."
am: d63982cc03

Change-Id: Iea39f42a96cb004cf69caaf5ba732d3b14060336
2018-05-09 10:35:20 -07:00
David Brazdil
0e348c5013 Greylist hidden methods for exempting trusted test code
Bug: 64382372
Test: N/A
Change-Id: I8bcc3d23d0b942e70a16a9d28ea0d21ce4fe75a2
2018-05-09 18:02:03 +01:00
Tyler Gunn
d63982cc03 Merge "Make TelecomManager#endCall a public API." 2018-05-09 16:22:44 +00:00
David Brazdil
1bc3c74685 Merge changes I8b20e03c,Id1ef4ab5,Ie34adb8b
am: 6982bf4bde

Change-Id: If80460dad9656f1bdad492a951f1e7247799e7b1
2018-05-09 09:10:31 -07:00
David Brazdil
f65e9d8d36 Merge "Revert^2 "Fix signature of recently changed methods""
am: 3a603777ba

Change-Id: I3997c82d48b94118a11928ec10e664acc6607fd3
2018-05-09 07:51:37 -07:00
David Brazdil
6982bf4bde Merge changes I8b20e03c,Id1ef4ab5,Ie34adb8b
* changes:
  Manualy blacklist certain hidden APIs
  Populate hidden API dark greylist
  Refactor build rules for hidden API lists
2018-05-09 13:58:50 +00:00
David Brazdil
dbf2ef0607 [automerger skipped] Merge "Revert "Fix signature of recently changed methods""
am: 89a4b96b9c  -s ours

Change-Id: I4f5c4d87f419cafc44b6f93a24a29720db744d06
2018-05-09 06:40:55 -07:00
David Brazdil
3a603777ba Merge "Revert^2 "Fix signature of recently changed methods"" 2018-05-09 12:42:30 +00:00
David Brazdil
d575ff964b Revert^2 "Fix signature of recently changed methods"
This reverts commit 29b92c610a.

Merge the CL again, this time without a Merged-In flag which
prevented it from merging into the internal tree.

Change-Id: Ie1b9de8c45cb174437fa4acdd78e6cdd4b660623
2018-05-09 12:38:52 +00:00
David Brazdil
89a4b96b9c Merge "Revert "Fix signature of recently changed methods"" 2018-05-09 12:32:28 +00:00
David Brazdil
29b92c610a Revert "Fix signature of recently changed methods"
This reverts commit ca930d166e.

Reason for revert: the Merged-In tag conflicts with
                   a cherry-pick into AOSP

Merged-In: Id50db88f4ff36069b0f392c81dd9d90c24cd2206
Change-Id: If284ac4957cf84f0acc118f232f6acf476e05b98
2018-05-09 12:29:01 +00:00
David Brazdil
efa9288a1d [automerger skipped] Merge "Fix signature of recently changed methods"
am: 4b2f7576a0  -s ours

Change-Id: Ib0085e2a127a1b70be98b66b898b7fa04741f512
2018-05-09 03:54:32 -07:00
David Brazdil
e88607ed9d Merge changes from topic "hiddenapi-cherrypick"
am: b54f2acc72

Change-Id: I378f50fd4f6290518fd9a39d4c4eb1e972e3d60e
2018-05-09 03:07:11 -07:00
David Brazdil
fa1e30f8ac Populate hidden API light greylist for AOSP
am: cfeb1c8b88

Change-Id: If2dae23b6e06339f0f6d214bb7d4cd3abb8d13a8
2018-05-09 03:02:48 -07:00
David Brazdil
92a9dfb0f3 Add presubmit hook for hidden API lists.
am: 2200a1b83b

Change-Id: Ic12ae5fba32e9df9e7f31910593e07690f47c35d
2018-05-09 02:58:08 -07:00
Mathew Inwood
17311a32da Fix typo in comments.
am: 40f67c52bb

Change-Id: I0727a3755f5fb46c5d4d43bed9f1628c82f5190d
2018-05-09 02:52:35 -07:00
Mathew Inwood
2b5d9761d5 Treat hidden API exemptions as whitelist.
am: 5449fc727f

Change-Id: I878f1582ee7b5d0f52425be796b4dfcef789a96d
2018-05-09 02:45:54 -07:00
David Brazdil
4b2f7576a0 Merge "Fix signature of recently changed methods" 2018-05-09 09:43:46 +00:00
Mathew Inwood
71ef453a6c Replace ALL_LISTS policy with JUST_WARN.
am: a4ba0e442a

Change-Id: I423212d16d0c453f31ae6e82f8333d5b633ed78b
2018-05-09 02:38:34 -07:00
David Brazdil
ca930d166e 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
2018-05-09 10:11:54 +01:00
David Brazdil
259e1629af 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 4b34f79a35)
2018-05-09 09:33:42 +01:00
David Brazdil
6afca53da1 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 185f00e667)
2018-05-09 09:27:24 +01:00
David Brazdil
74502c7500 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 721bc8e6a8)
2018-05-09 09:24:02 +01:00
David Brazdil
b54f2acc72 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.
2018-05-09 08:10:19 +00:00
Calin Juravle
46940a604c Merge "Process "dalvik.vm.profilebootimage" system property"
am: dc3fe53d4f

Change-Id: I1ea3abc828c4fa3fc5359f7c63664084f31d9eb7
2018-05-08 20:39:02 -07:00
Jack He
469de115b3 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 33c3a17113)
2018-05-08 20:38:39 -07:00