571475 Commits

Author SHA1 Message Date
Richard Neal
fef805fb72 Merge "Update CZ premium SMS codes" 2021-08-04 10:33:25 +00:00
Xin Li
318e6456f4 Merge "Rename T to Tiramisu" 2021-08-04 08:27:34 +00:00
Treehugger Robot
a9042d5af5 Merge "DO NOT MERGE - Merge RQ3A.210805.001.A1." 2021-08-04 01:05:56 +00:00
Yifan Hong
7f2ce931d0 Merge "PairDevice to structured Parcelable." 2021-08-03 23:32:27 +00:00
Xin Li
300c70d676 DO NOT MERGE - Merge RQ3A.210805.001.A1.
Bug: 192585466
Merged-In: Ibcfeef30c8cb88e244561cac99c034981b84ed80
Change-Id: I0dee74b1878f1baac52794efc6036a732240f8f3
2021-08-03 16:06:55 -07:00
Yifan Hong
08fdaa25cb AdbService sends callback on adb debugging enabled / disabled.
Test: pass
Bug: 190867939
Change-Id: Ieebe78e01bec948a1475d1c74a84b95e275fa48e
2021-08-03 14:17:10 -07:00
Yifan Hong
a623e99230 IAdbManager.getPairDevices returns FingerprintAndPairDevice[].
Map is not supported in C++ backend. To compile IAdbManager in C++,
Map is translated into a list of key, value tuples.

Test: pass
Bug: 194829333
Change-Id: I92e3ad29e8a2bfbab3756d2ef5a2db76ba3cc3d9
2021-08-03 14:17:07 -07:00
Yifan Hong
882a6e20b6 PairDevice to structured Parcelable.
Bug: 194829333
Test: pass
Change-Id: I0b44555403113a7f68c865b33b87a85a6847cf21
2021-08-03 14:17:03 -07:00
Yen-Jen Wang
68d79b074c Correct comments
PacProxyInstaller had been renamed to PacProxyService
so any comments that refer to it should be updated
accordingly.

Bug: 194984075
Test: refine comments only
Change-Id: I5d8ed07e804471cfcbcc80eca908b18f6557cf79
2021-08-03 19:41:14 +08:00
Chih-hung Hsieh
4e6598eef7 Merge "Remove system-headers, minimize unwanted warnings." 2021-08-03 01:02:45 +00:00
Jooyung Han
a54768b010 Merge "APK signature verification: use FileChannel#size" 2021-08-03 00:18:57 +00:00
Jooyung Han
c65e303681 APK signature verification: use FileChannel#size
RandomAccessFile#length returns 0 for block devices while
FileChannel#size returns the correct size.

APK signature verification utils should work with block-device zip files
when Android is running as a guest OS and APK/APEX files are passed via
block devices.

This is a follow-up of 1257f1505cb2ac75b6959e16d195c7c4bac8ee06.

Bug: 193592496
Bug: 192366904
Test: FrameworksServicesTests
Merged-In: I3015fc30574c36c18c0d0c9ae7453d33a1349927
Change-Id: I3015fc30574c36c18c0d0c9ae7453d33a1349927
(cherry picked from commit 310edbe3c7202581bf10b6a621a287b297d73261)
2021-08-03 01:26:54 +09:00
Etienne Ruffieux
6a646db625 Adding module permission for SubscriptionManager
Adding module SystemApi to SubscriptionManager functions
used by Bluetooth to add SUBSCRIPTION_TYPE_REMOTE_SIM.

Tag: #feature
Bug: 190441152
Test: Manual
Change-Id: Ia2c8609524027c5ec448c1d1eb1f58dd7b3db5de
2021-08-02 08:57:04 +00:00
Ugo Yu
86a7fe21b1 Broadcast Bluetooth state to OFF properly
In current logic, we broadcast Bluetooth state OFF at BLE_ON state.
However, if Bluetooth gets crashed, we won't have the chance to send OFF
intent as we never get to BLE_ON.

This change makes the BluetoothManagerService skips the OFF intent only
if the previous state is a BLE state.

Bug: 189271317
Test: manual
Change-Id: I3936766ab8bdd45d59550dacb64bdc0323bb424d
Merged-In: I3936766ab8bdd45d59550dacb64bdc0323bb424d
2021-07-30 22:09:38 +00:00
Aaron Huang
d8fed88f2d Use bindServiceAsUser to bind PacService and ProxyService
PacService and ProxyService should be running on system user.
Use bindServiceAsUser with UserHandle.SYSTEM to start the
services.

Bug: 192114565
Test: CtsNetTestCases:PacProxyManagerTest on target aosp_cf_x86_auto
Change-Id: I88d1bfa1e482a072674f0b96dda027aa1f92d93f
2021-07-30 14:31:01 +08:00
lucaslin
4396c1b244 Fix Ikev2 vpn cannot establish through startLegacyVpn()
Settings will also call startLegacyVpn() to bring up Ikev2 VPN,
so it's needed to add a vpn type check in startLegacyVpn().
Otherwise, UnsupportedOperationException will be thrown when
Settings tries to bring up Ikev2 VPN.

Bug: 191937302
Bug: 188749090
Bug: 189808606
Test: 1. make gts && gts-tradefed
      2. run gts --module GtsNetworkStackHostTestCases
Change-Id: I752c39bd1bf953a11bdf62e6f02f99f48fef23c4
Merged-In: I752c39bd1bf953a11bdf62e6f02f99f48fef23c4
2021-07-30 06:25:21 +00:00
lucaslin
3eb2a54e31 Throw UnsupportedOperationException if startLegacyVpn is called
Legacy VPN is deprecated starting from Android S. So this API
shouldn't be called if the initial SDK version of device is
Android S+. Otherwise, UnsupportedOperationException will be
thrown.

Bug: 189808606
Test: 1. make gts && gts-tradefed
      2. run gts --module GtsNetworkStackHostTestCases
Change-Id: I00f49555bbbc8ccf270056f0e4d1bfdd927ef26d
Merged-In: I00f49555bbbc8ccf270056f0e4d1bfdd927ef26d
2021-07-30 14:15:38 +08:00
Chalard Jean
67f0eebdfa Merge "Fix: ConnectivityManager methods crashing with SecurityException" 2021-07-30 05:28:33 +00:00
Junyu Lai
2963649fe4 Merge changes Ib048c18b,Ie7694a63
* changes:
  Add debug log for tracking NPE of mMobileIfaces
  Fix mMobileIfaces is not protected by lock
2021-07-30 02:13:25 +00:00
Martin Brabham
400c21483c Merge "Add implementation for IRK to parcelable functions." 2021-07-29 20:50:35 +00:00
Martin Brabham
60b797bd5c Add implementation for IRK to parcelable functions.
Bug: 194432570
Test: Manual test app; nRF connect
Tag: #feature
Change-Id: I54ac5e5f105d155a2d2fc826bf1f64cf34573ff9
2021-07-29 09:42:37 -07:00
Yi Kong
6f1a606d73 Merge "Add TRIGGER_SHELL_PROFCOLLECT_UPLOAD permission" 2021-07-29 08:27:33 +00:00
Chalard Jean
249be21013 Fix: ConnectivityManager methods crashing with SecurityException
Starting in R, some methods in ConnectivityManager like
getNetworkCapabilities started passing the package name from
the context stored in CM to check that the package is really
whom it pretends to be. Unfortunately, in some cases, the
context contains package "android" for an app, and since the
app is not the system, the check fails and crashes the app.

It seems the culprit is updateHttpProxy, which is called by
ProcessList when the PROXY_CHANGE_ACTION broadcast is sent.
If this happens to run between the time the process is created
and the activity thread is "bound", then the mInitialApplication
member is not set, and updateHttpProxy uses a system context.
Since ConnectivityManager caches the context forever in a
static, this leads to subsequent legitimate calls crashing.

Setting the proxy can be deffered until such a time that the
app is bound, as it can't run any code before then. The member
is never reset to null, so it's guaranteed to be non-null at
bind time.

An alternative would be to post a runnable on the handler
thread if the member is null to try again later. This
could however run the lambda a considerable number of times
as binding can be delayed, and risks causing an infinite loop
if some invariants are changed in the future.

See also b/73572062 and ag/4056059

Bug: 155549446
Bug: 189360509
Test: ActivityThreadTest FrameworksNetTests NetworkStackTests
Test: Manually set a proxy, observe the broadcast being sent and
      apps not crashing
Change-Id: I956f76be2e0a1a675576511fb394d7ed4354b28a
Merged-In: I956f76be2e0a1a675576511fb394d7ed4354b28a
2021-07-29 13:18:54 +09:00
Keun-young Park
9f6b05e6fb Merge "update broadcast radio owner" 2021-07-28 18:19:28 +00:00
Jakub Pawlowski
b0c01df940 Merge "Prevent create bond for null MAC address" 2021-07-28 17:57:59 +00:00
Etienne Ruffieux
84abea03d6 Prevent create bond for null MAC address
Tag: #feature
Bug: 193702115
Test: atest BluetoothInstrumentationTests
Change-Id: I5684f00cf4a567a899c958b94af22ccf5067b476
2021-07-28 17:57:35 +00:00
Yi Kong
9251bc5127 Add TRIGGER_SHELL_PROFCOLLECT_UPLOAD permission
This will be used to restrict only the system server shall be allowed to
trigger profcollect upload in shell.

Test: manual
Bug: 183487233
Bug: 194155753
Change-Id: I469fe5f9a0559dde8b887591cfe12c72c104f1d4
2021-07-28 21:11:14 +08:00
Treehugger Robot
adcff13790 Merge "profcollectd: Avoid hard-coding Betterbug name" 2021-07-28 12:11:58 +00:00
Keun young Park
80965a848c update broadcast radio owner
Bug: 194818704
Test: NA
Change-Id: Ic3632f3151fbedd296e7c904c1a47880a6ce3cdd
2021-07-27 18:13:39 -07:00
Mingming Cai
1a34337955 Merge "Fix CQI range in CellSignalStrengthNr" 2021-07-27 21:15:02 +00:00
Rahul Sabnis
8070a302cc Merge "Added filegroup mms with packages/apps/Bluetooth visibility" 2021-07-27 20:50:31 +00:00
Chih-Hung Hsieh
69df09d4d0 Remove system-headers, minimize unwanted warnings.
* If necessary, use --header-filter to select warnings
  in owned header files for each module.

Change-Id: I5a2a52a4f78661b60a8375fbcc46bd5bad92ae60
Test: make with WITH_TIDY=1
2021-07-27 11:49:11 -07:00
Meng Wang
4d8663cb84 Merge "Lazily load bitmap of SubscriptionInfo" 2021-07-27 18:30:21 +00:00
Etienne Ruffieux
6c63f985ee Added filegroup mms with packages/apps/Bluetooth visibility
Added all java sources under telephony/common/com/google/
android/mms as filegroup with packages/apps/Bluetooth
visibility in order to remove unsupported usage calls
outside Bluetooth.

Tag: #feature
Bug: 190441152
Test: atest BluetoothInstrumentationTests
Change-Id: I662f5a6e17d753259bf6056dddac7062bb65733e
2021-07-27 09:18:44 +00:00
Mingming Cai
ff513f9856 Fix CQI range in CellSignalStrengthNr
bug: 194634718
Test: make
Change-Id: I784f2930999871b6bb90f4e17a2ba694da35126a
Merged-In: I784f2930999871b6bb90f4e17a2ba694da35126a
(cherry picked from commit 9ee4e9bbe9915ef3067a8d204c106d384d92fdeb)
2021-07-26 21:50:56 -07:00
Meng Wang
ba8227eb45 Lazily load bitmap of SubscriptionInfo
Bug: 194251398
Test: manual - see the bug
Change-Id: I0af239e1befeff8d4f00a27bc9679eb0b4849500
Merged-In: I0af239e1befeff8d4f00a27bc9679eb0b4849500
(cherry picked from commit 0e0a12ccf38c946f2ec09ab7f75901207b2f7325)
2021-07-26 21:06:33 -07:00
Tianjie Xu
4eaa49eeb6 Merge "Add a system API UpdateEngine to switch the slot back and forth" 2021-07-27 02:03:10 +00:00
Lucas Dupin
103308ad5d Merge "Update boot animation owners" 2021-07-26 22:05:17 +00:00
Tianjie Xu
5c8dce3ada Merge "Add owner file for UpdateEngine" 2021-07-26 21:14:06 +00:00
Lucas Dupin
273227d1ac Update boot animation owners
Test: none
Bug: 190093578
Change-Id: Id83d1ff6bbec63ec94402260a29c3ddcbf0ae414
2021-07-26 18:59:27 +00:00
Suren Baghdasaryan
9af29add1f Merge "ActivityManagerService: report current and max thrashing levels" 2021-07-26 17:47:59 +00:00
Treehugger Robot
eb7dfa2f5f Merge "Mark classes as final that have final destructors" 2021-07-26 16:52:08 +00:00
Colin Cross
1bb97985f0 Rename T to Tiramisu
PLATFORM_VERSION_CODENAME is being updated from T to Tiramisu.

Bug: 186121492
Bug: 194055070
Test: m checkbuild
Change-Id: I6882018a916dc1c71abc442068cb54fb9c42ff3c
Merged-In: I6882018a916dc1c71abc442068cb54fb9c42ff3c
(cherry picked from commit ff02f9a70ed9fa7cb3114f22db5290a316be661e)
2021-07-26 09:42:17 -07:00
Junyu Lai
d01d83654b Add debug log for tracking NPE of mMobileIfaces
Test: TH
Bug: 192758557
Change-Id: Ib048c18b1c64627de5a9d2b04d10e084a014ff64
2021-07-26 09:16:59 +00:00
Junyu Lai
14946edca3 Fix mMobileIfaces is not protected by lock
Currently, mMobileIfaces is accessed from multiple threads, and
should be protected from concurrent accessing. However, since the
variable could be accessed frequently, holding the mStatsLock
would make this be blocked by network stats I/O operations.
Thus, protect the variable by making it volatile.

Test: Wifi on/off stress test
Bug: 192758557
Change-Id: Ie7694a63f5203ee7c83830ca13d97219b7949fd7
2021-07-26 09:16:35 +00:00
Tianjie
dcbd9ea138 Add owner file for UpdateEngine
Test: th
Change-Id: I50c775874cb9ad54f049e415b6fb68ec29d7f1c8
2021-07-23 17:15:43 -07:00
Benedict Wong
3923c3acc6 Merge "Shorten safe mode timer in VCN test mode" 2021-07-23 23:25:46 +00:00
Benedict Wong
5985f02af9 Shorten safe mode timer in VCN test mode
This change reduces the time required to test VCN safe mode in CTS, in
order to meet the 30s CTS quality bar

Bug: 193482882
Test: atest --iterations 10 android.net.vcn.cts.VcnManagerTest
Original-Change: googleplex-android-review.git.corp.google.com/15375749
Change-Id: Ibbf7132d45a7a0e5554b74fda6b3e309ee2d9c44
Merged-In: Ibbf7132d45a7a0e5554b74fda6b3e309ee2d9c44
2021-07-23 21:35:10 +00:00
Suren Baghdasaryan
ee9cea7f92 ActivityManagerService: report current and max thrashing levels
Add thrashing and maxThrashing fields in LMK_KILL_OCCURRED report.

Bug: 194433891
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I016d95a9b2ba4b6f4ca814be1456cec59f4834da
Merged-In: I016d95a9b2ba4b6f4ca814be1456cec59f4834da
2021-07-23 12:08:35 -07:00
Liz Kammer
a4ddfbe33b Mark classes as final that have final destructors
Having a final destructor prevents the class from being inherited from,
adding the designation final to the class makes this behavior more
explicit. This is required to re-enable the error for
-Wno-final-dtor-non-final-class.

Test: m
Merged-In: Ia3126d30e19edfd17f7c8da368e9763ca5501e84
Change-Id: Id1d7c607af9cca0109e1f763052894cf179f4af1
2021-07-23 17:21:11 +00:00