6cebc2f2ac13fcc4430d3180195694761710f9a2
This CL adds a new permission called SUGGEST_EXTERNAL_TIME that gates TimeManager.suggestExternalTime calls. The new permission is marked as 'privileged' as protection level. This could result in third party apps preinstalled on the system image to potentially get this permission. This is OK for the following reasons: - OEM coordination is needed to grant 3P apps this permission, so adding "privileged" doesn't introduce significant risk. - This permission/API doesn't guarantee that the suggested timestamp will immediately be used as the new system timestamp. The system must be configured so that the external time source has a higher priority than other time sources (e.g. GNSS) for the external time suggestion to be used. This configuration is also done by the OEM. That introduces significant roadblock for a malicious app to do anything useful with this permission. - More importantly, apps can set system time directly using TimeManager.setTime() which requires SET_TIME permission. This permission is also signature|privileged, so this change is consistent with it. Bug: 157504928, 177079827 CTS-Coverage-Bug: 182275086 Test: atest android.app.time Change-Id: I0098ab7565b647fb220d39575f0616d2a47bdc89
…
Merge "Identity Credential: API changes for Android 12" am:
40d6635701 am: 6252f82f61 am: 581bf34de0
…
Merge "Require calling package to be allowlisted for thermal mitigation." am:
fdad0e26a7 am: d3b14cf1fe am: 6176649cce
…
Merge "Remove unnecessary dependency on libcore-platform-compat-config" am:
82cd5382b7 am: e70b70a77b am: f083c90ae9
Merge "Stop ignoring classes on the classpath for stubs" am:
61e082abdb am: ab3f2d3aba am: 81bfcb40a3
…
Merge "Use stub-annotations to provide NonNull for hwbinder-stubs-docs" am:
c4b72cd7ef am: 950e51fbd4 am: 4ee9e4609f
Merge "Add auto-postsubmit test tag for frameworks/base" am:
ec14bafb25 am: 987d246395 am: c8cf0becf0
Description
No description provided
Languages
Java
73.7%
Kotlin
14%
PowerBuilder
5.8%
C++
5.2%
AIDL
1%