Commit Graph

688204 Commits

Author SHA1 Message Date
Jaegeuk Kim
c30d209f5f Keep the fsck log in /dev/fscklogs/fsck for bug report
Let's keep the log for bug report.

Bug: 230637147
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I4392c8b6d0332a18ea9302bdf53f902fde6d03dd
2022-05-02 15:09:49 -07:00
Treehugger Robot
416502831f Merge "Fixes UMS.getPreCreatedUserLU() to ignore partial pre-created users." 2022-04-29 21:27:29 +00:00
Felipe Leme
03d7a23d36 Merge "Cleanup user data when user stopped" 2022-04-29 19:40:05 +00:00
Kiwon Park
dd570fd0a6 Merge "Log TelephonyAnomalyDetected event from AnomalyReporter" 2022-04-29 18:53:48 +00:00
Felipe Leme
8cce6d422b Fixes UMS.getPreCreatedUserLU() to ignore partial pre-created users.
Test: atest android.car.cts.PreCreateUsersHostTest#testAppPermissionsPreCreatedUserPackages # on automotive
Fixes: 229814265

Change-Id: I7c6b90e2c4af5ff0482c5445c1986d389e6a6610
Merged-In: I7c6b90e2c4af5ff0482c5445c1986d389e6a6610
(cherry picked from commit f173defe6e)
2022-04-29 09:32:08 -07:00
Miguel Aranda
14fff66fa2 Merge "Even more libcore benchmark tests." 2022-04-29 09:22:12 +00:00
Lucas Lin
c45eb2877a Merge changes from topics "CATEGORY_ERROR_IKE", "CATEGORY_ERROR_NETWORK", "CATEGORY_ERROR_USER_DEACTIVATED", "CATEGORY_EVENT_ALWAYS_ON_STATE_CHANGED"
* changes:
  Send VPN manager event when there is a network error
  Send VPN manager event when there is an IkeProtocolException
  Send VPN manager event when VPN is deactivated
  Send VPN manager event when VPN always-on status is changed
2022-04-29 08:13:51 +00:00
lucaslin
64eaff5dba Send VPN manager event when there is a network error
Bug: 191413541
Test: atest FrameworksNetTests:VpnTest
Change-Id: I767e23750ccf12c0c787a3ec23d4a520dc5bb570
2022-04-29 01:58:56 +00:00
lucaslin
4e1f12986a Send VPN manager event when there is an IkeProtocolException
Bug: 191413541
Test: atest FrameworksNetTests:VpnTest
Change-Id: Iff00d1f2728d36b23d58bda122f02d7676f49323
2022-04-29 01:48:02 +00:00
lucaslin
3f5bf1f059 Send VPN manager event when VPN is deactivated
Bug: 191413541
Test: atest FrameworksNetTests:VpnTest
Change-Id: I35fc360204f0227a969ff2b12a4c47f701a55a9c
2022-04-29 01:45:45 +00:00
lucaslin
48ed354751 Send VPN manager event when VPN always-on status is changed
Bug: 225010642
Test: atest FrameworksNetTests:VpnTest
Change-Id: I8d5fb7fdc4ba5e62d272a5b74466e45e1fc051af
2022-04-29 01:45:33 +00:00
sz656r
454b6c590f Cleanup user data when user stopped
1. During the quick user switch, the user status is changed from
   STATE_STOPPING to STATE_BOOTING, the process android.process.core
   (ContactsProvider2) was not closed, but the AccountManagerService
   cleanup the user in stopping stage.

2. When the user is switched back, the old ContactsProvider2
   process was used, but the client doesn't have the listener
   registered for AccountManager any more.

3. This causes the ContactsProvider reloaded again when the phone
   is connected, then duplicated contacts will show on the screen.

4. Solution is cleaning up the user data in onUserStopped.

Test: manual verification

Bug: 224818967

Change-Id: I8fb44e0e66ff73c055a548d57ff3d45ecc213f71
2022-04-28 23:22:54 +00:00
Colin Cross
b61b9e11b4 Merge "Update SysUI to be compatible with latest Jetpack libraries" 2022-04-28 22:11:00 +00:00
Kiwon Park
9d5b78ae7e Log TelephonyAnomalyDetected event from AnomalyReporter
Bug: 188462677
Test: inspected atoms after triggering anomaly
Change-Id: Ic3d8a6fd5c7942214278ea8812dffd8c5b8362a3
(cherry picked from commit a5fa37dd1b)
Merged-In: Ic3d8a6fd5c7942214278ea8812dffd8c5b8362a3
2022-04-28 18:17:05 +00:00
Eric Biggers
9f5d4a5b83 Merge "Zygote: clean up comment for isolateAppData()" 2022-04-28 17:47:55 +00:00
Ganesh Olekar
bde2853623 Merge "Update owners for Permissions & Privacy" 2022-04-28 17:11:58 +00:00
Treehugger Robot
72c2c6e07a Merge "speech: Add andreaambu@ to OWNERS" 2022-04-28 17:11:02 +00:00
Vinh Tran
ac9b99119c Merge "Remove sdk_version if platform_apis is set" 2022-04-28 13:42:59 +00:00
Andrea Ambu
b2694bfd02 speech: Add andreaambu@ to OWNERS
Test: n/a

Change-Id: Id3bb4ec310573d822ed87fb7d86532349df2c21f
2022-04-28 14:40:10 +01:00
Miguel
2030cb4041 Even more libcore benchmark tests.
Test: atest TestName
Change-Id: I547d8347dade1f66164acbfbacd2936fa0664b95
2022-04-28 10:51:51 +00:00
Nikita Ioffe
df27cf8d48 Merge "Add CtsShimPrivUpgrade to shim.v2_apk_in_apex_upgrades" 2022-04-28 09:16:15 +00:00
Ganesh Olekar
4925ac514e Update owners for Permissions & Privacy
Change-Id: I6969331309fa9908c2fd9bfc4762c58d7dcc9a2a
2022-04-27 23:14:42 +00:00
Eric Biggers
5473b318d2 Zygote: clean up comment for isolateAppData()
This comment has several inaccuracies, such as saying that tmpfs is
mounted on /mnt/expand (it's actually /mnt/expand/$volume/user{,_de}),
and referring to DE storage when CE storage is meant.  Fix these
inaccuracies, and rework it to explain more clearly what's going on.

Change-Id: I97106f1c2551906c12a96f17934db9253a7fe605
2022-04-27 22:20:25 +00:00
Kalesh Singh
d7145d4c0f Merge "Add experiment flag namespace for Multi-Gen LRU" 2022-04-27 21:10:53 +00:00
Treehugger Robot
2f48177cbe Merge changes from topic "227137943"
* changes:
  Implement getInterfaceHash/Version (USB)
  Support IUsb AIDL interface
2022-04-27 16:21:29 +00:00
Lucas Lin
0a4fd7e9ea Merge changes I4bfaf79a,I8711187e
* changes:
  Ensure IkeV2VpnRunnerCallback is always called by the mExecutor thread
  Add equals() & hashCode() for VpnProfileState
2022-04-27 15:34:15 +00:00
Vinh Tran
160172d92d Remove sdk_version if platform_apis is set
This CL is to make `android_test` and `android_test_helper_app` more consistent with documentation which suggests sdk_version must be empty if platform_apis is set.

https://cs.android.com/android/platform/superproject/+/master:build/soong/java/base.go;bpv=1;bpt=1;l=211?gsn=Platform_apis&gs=kythe%3A%2F%2Fandroid.googlesource.com%2Fplatform%2Fsuperproject%3Flang%3Dgo%3Fpath%3Dbuild%2Fsoong%2Fjava%23field%2520DeviceProperties.Platform_apis

Next step:
* Add validation to error when both `sdk_version` and `platform_apis` are set. WIP: aosp/2065270

Test: The affected test modules are FramefworksCoreTests, BugreportManagerTestCases, FrameworksCorePackageInstallerSessionsTests , and PackageManagerServiceHostTests. Some tests in FrameworksCorePackageInstallerSessionsTests and PackageManagerServiceHostTests fail but this CL doesn't produce any regression from the last known build. In other words, the last known build also has the same test failures.
Bug: 219755537
Change-Id: I50405b37b7454a78f1dbd240380d2e98b8bb34b2
2022-04-27 11:23:53 -04:00
Nikita Ioffe
c6c98bdf5c Add CtsShimPrivUpgrade to shim.v2_apk_in_apex_upgrades
The v2_apk_in_apex_upgrades APEX shim will be useful for testing fixes
for apk-in-apex caching bug.

Test: m com.android.apex.cts.shim.v2_apk_in_apex_upgrades
Bug: 225435110
Change-Id: I5d2270b8341c0405bf256c417acff4279c6b8754
2022-04-27 14:04:38 +01:00
Steven Moreland
e91347a53b Implement getInterfaceHash/Version (USB)
As these interfaces get frozen, java services
implementing the interfaces are required to implement getInterfaceHash
and getInterfaceVersion [1]

[1]
https://source.android.com/devices/architecture/aidl/stable-aidl#new-meta-interface-methods

Bug: 190577319
Test: m
Change-Id: I00ced32a26fd1af7bc8cc23749d92ae90d5a5a0f
Merged-In: I00ced32a26fd1af7bc8cc23749d92ae90d5a5a0f
(cherry picked from commit 1b46333208)
2022-04-26 16:05:53 +08:00
Badhri Jagan Sridharan
b09d68a2ea Support IUsb AIDL interface
UsbPortManager is made to support both AIDL & HIDL interface until
HIDL is deprecated eventually. UsbPortHal abstract class is defined
which the UsbPortManager grabs an instance of from UsbPortHalInstance
method to talk to the Hal implementation process. UsbPortHalInstance
queries the underlying hal implementation and instantiates UsbPortHal
with either UsbPortHidl or UsbPortAidl based on the IUsb interface
implemented by HAL implementation.

go/iusb-aidl-migrate.

Bug: 200993386
Bug: 199357330
Bug: 211677613
Bug: 213312081
Bug: 199358576
Test: Manually tested through UI.
CTS-Coverage-Bug: 215019881
Change-Id: I246fd6e5bee8138d3ad3b6994665a1d4788c8789
Merged-In: I246fd6e5bee8138d3ad3b6994665a1d4788c8789
(cherry picked from commit bbfa92e694)
2022-04-26 16:04:13 +08:00
Colin Cross
2a3aa26b06 Merge "Add UpsideDownCake to aapt2 codenames and android.os.Build" 2022-04-26 01:15:38 +00:00
Suren Baghdasaryan
75eb24817b Merge "Treat failure to create a process group as fatal" 2022-04-25 17:05:29 +00:00
Treehugger Robot
5ec8916af2 Merge "Advise use of InputDeviceListener when using pointer capture" 2022-04-25 16:01:08 +00:00
lucaslin
5401c8667d Ensure IkeV2VpnRunnerCallback is always called by the mExecutor thread
Bug: 229799060
Test: atest FrameworksNetTests:VpnTest
      atest CtsNetTestCases:Ikev2VpnTest
Change-Id: I4bfaf79abaad3cec6f6629fb8bc885a4916a820b
2022-04-25 22:19:38 +08:00
Prabir Pradhan
98e54bb941 Advise use of InputDeviceListener when using pointer capture
InputDevices can be reconfigured when pointer capture changes, but the
app will be notified via InputManager when the updated device
information is available. This races with the onPointerCaptureChange
callback, so advise the use of InputDeviceListener in the pointer
capture documentation for developers to get around this.

Bug: 226425883
Test: None
Change-Id: I7aeb23722dc40b8fd37cb9667a4f23a336e8b5f1
Merged-In: I7aeb23722dc40b8fd37cb9667a4f23a336e8b5f1
2022-04-25 11:53:49 +00:00
lucaslin
c867675e38 Add equals() & hashCode() for VpnProfileState
Bug: 225010642
Test: atest FrameworksNetTests:VpnTest
Change-Id: I8711187e690385866fa681c3fe5fccdf353ac30b
2022-04-25 16:14:58 +08:00
Alan Viverette
cfb0e9a1ba Update SysUI to be compatible with latest Jetpack libraries
Nullability updates.

Bug: 214255490
Test: manual
Change-Id: I9e793fb569f1bd6568b951d908d483fb4acfcd8c
Merged-In: I9e793fb569f1bd6568b951d908d483fb4acfcd8c
(cherry picked from commit b39a197e9e)
2022-04-22 15:45:51 -07:00
Treehugger Robot
8f721b9229 Merge "Fix KNOWN_CODENAMES javadoc to mention that all codenames are there." 2022-04-22 19:52:05 +00:00
Suren Baghdasaryan
d01f170598 Treat failure to create a process group as fatal
During process startup, system creates a process group and places the
new process in it. If process group creation fails for some reason, the
new child process will stay in its parent's group. This poses danger
when the child is being frozen because the whole group is affected and
its parent is being frozen as well. Considering that the parent of an
app is Zygote, freezing it leads to the device becoming unusable.
Fix this by treating group creation failure as a fatal error which would
prevent the app from starting. When system_server fails to create a
process group, it will throw an exception that's not caught and will
self-destruct.

Bug: 227395690
Test: fake group creation failure and confirm app failure to start
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ib34b4a100c65a9a2705aaef8e7e32322fbedc531
2022-04-22 16:51:02 +00:00
Jeff Sharkey
25976ab7be Merge "Add OWNERS coverage for dump methods for public USB classes" 2022-04-22 16:48:34 +00:00
Colin Cross
b0b0bb9882 Add UpsideDownCake to aapt2 codenames and android.os.Build
Bug: 219519679
Test: m checkbuild
Change-Id: I2b668d1cd875657b27a1d52bda21f238d7020862
Merged-In: I2b668d1cd875657b27a1d52bda21f238d7020862
(cherry picked from commit d27566da4c)
2022-04-22 09:17:01 -07:00
satayev
337762d9c6 Fix KNOWN_CODENAMES javadoc to mention that all codenames are there.
Bug: 220153433
Test: atest BuildTest
Change-Id: I93cade7cb11e34557445b74d1e1841508061d616
Merged-In: I93cade7cb11e34557445b74d1e1841508061d616
(cherry picked from commit 82d33f26f9)
2022-04-22 09:17:01 -07:00
Yi-yo Chiang
0f8d10381a Merge "DSU: Only try to install on sdcard if the filesystem in use is vfat" 2022-04-22 15:18:14 +00:00
Jay Aliomer
5b1ff7891b Merge "Dark Theme "TURN ON UNTIL SUNRISE" is not retained after reboot" 2022-04-22 15:14:57 +00:00
Aaron Huang
e441813c5f Merge "Have NetworkPolicyManagerService listen onLinkPropertiesChanged callback" 2022-04-22 15:06:34 +00:00
Songchun Fan
1a1ed211b6 Merge "Add the compile reason for the forceDexOpt method." 2022-04-22 13:40:24 +00:00
Sameer Zalke
3847d7ed9a Dark Theme "TURN ON UNTIL SUNRISE" is not retained after reboot
Dark theme "TURN ON UNTIL SUNRISE"/MODE_NIGHT_AUTO is not kept after
reboot. The reason is that TwilightState will takes time to update
so lastState will be null in updateConfigurationLocked().
This lead to a reset of mComputedNightMode and mOverrideNightModeOn.

This is a special bug for "TURN ON UNTIL SUNRISE"/MODE_NIGHT_AUTO,
the other ones work fine and should not be touched, if we do not
treat this as a special case we break the other ones.

Test: Select "TURN ON UNTIL SUNRISE" in Dark Theme and reboot.
Bug: 229228293
Change-Id: Ie32a6ddbbf03fa43ee6dd5e35b3c35ec03e58e0e
2022-04-22 11:15:12 +00:00
Lucas Lin
54a348cf84 Merge changes I7fd4b6da,Ia36d7944,If7eb7e0e
* changes:
  Modify javadoc for some extra values of VpnManager event
  Add toString() for VpnProfileState
  Move mSessionKey into Ikev2VpnRunner and make it to be a final var
2022-04-22 08:59:24 +00:00
Treehugger Robot
2abd02381f Merge "javaObjectForIBinder: warn rets global and local" 2022-04-22 01:30:45 +00:00
lucaslin
4b6b7987a1 Modify javadoc for some extra values of VpnManager event
The underlying network, NetworkCapabilities and LinkProperties
are not necessary to send to VPN app since the purpose of
CATEGORY_EVENT_DEACTIVATED_BY_USER and
CATEGORY_EVENT_ALWAYS_ON_STATE_CHANGED are to notify VPN
app that VPN is deactivated by the user or VPN always-on
status is changed.

Bug: 191413541
Test: Javadoc only changes.
Change-Id: I7fd4b6dad1a4363336f03c217e635fc45bcd0ab6
2022-04-22 09:28:28 +08:00