Call ExternalStorageService#freeCache from
PackageManagerService#freestorage via StorageManagerInternal
to free any cache held by ExternalStorageService under low storage
conditions.
Test: m
Bug: 170481432
Change-Id: Iaee2262705f4c99fb9e46875e321dcbbae841824
First step of moving LocationTimeZoneProvider from the
com.android.location.provider API surface to system API.
This copies / renames various APIs, generally dropping "Location" from
the name to try to generalize them. The
com/android/server/location/timezone classes have been updated
to use the new classes but the names have been left for now as they are
an internal detail and it's not clear which would be "location specific"
and which might be general.
Bug: 175633818
Test: build / treehugger
Change-Id: Ied2b43336ef80d2b4ed2eba8849ea1976145df8d
These should mirror IccConstants usage for consistency.
Test: Manual build and flash
Bug: 170653527
Change-Id: I5ff335eeae99cd5b6f8ebfb809c826843d6abd77
IME can use this method to redo spell checking after it has learned a
new user dictionary word.
Bug: 166304720
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: I956cd46f25bb77b7e1a6a3e1478c0d7efa1a056a
Currently when debug layer apk is not installed, GraphicsEnvironment
logs the message and proceeds, which results in null pointer access
crash when later trying to access primaryAbi. Avoid null access by an
early return statement.
Bug: N/A
Test: specify not installed debug layer apk and no crash
Change-Id: I4f3b86b0a8cfff4fc608b3a59ebf0872db0465ff
Merged-In: I4f3b86b0a8cfff4fc608b3a59ebf0872db0465ff
(cherry picked from commit c5c17e66ba)
Currently when debug layer apk is not installed, GraphicsEnvironment
logs the message and proceeds, which results in null pointer access
crash when later trying to access primaryAbi. Avoid null access by an
early return statement.
Bug: b/175699044
Test: specify not installed debug layer apk and no crash
Change-Id: I4f3b86b0a8cfff4fc608b3a59ebf0872db0465ff
Merged-In: I4f3b86b0a8cfff4fc608b3a59ebf0872db0465ff
(cherry picked from commit c5c17e66ba)
1. Change manageUser to be setup on current user
2. add pre condition check for headless system user mode: disallows setup when current user is system user 0 and only allows device owner to be set on user 0
3. Changes method name and adds param names
To verify:
1. Install TestDPC app: https://github.com/googlesamples/android-testdpc
2. make sure device is unprovisioned
adb shell dumpsys device_policy
2'. deprovion if needed
adb shell settings put global device_provisioned 0 && adb shell rm /data/system/device_owner_2.xml /data/system/device_policies.xml
3. make sure deivce_amdmin feature is available
adb shell pm list features | grep "admin"
3'. install feature if needed
adb push frameworks/native/data/etc/android.software.device_admin.xml
/vendor/etc/permissions/
4. run
adb shell dpm set-device-owner --user 0 com.afwsamples.testdpc/com.afwsamples.testdpc.DeviceAdminReceiver
5. verify with
adb shell dumpsys device_policy
6. try to set on user 10 will fail
adb shell dpm set-device-owner --user 10 com.afwsamples.testdpc/com.afwsamples.testdpc.DeviceAdminReceiver
6. switch to user 0, repeat 4. It shall fail.
Bug: 170333009
Bug: 174610623
Test: manual with steps above
Change-Id: Iaa46032fa6487d792f7bde5de5ff6e55b9c36432
If the parameter "packageName" is invalid, such as null or
empty string for package name, an IllegalArgumentException is thrown.
In PackageInstallerSession.transfer(packageName), in order to let
the throwing exception more close to the real situation, we throw
IllegalStateException rather than IllegalArgumentException when
one file isn't closed or the state is wrong.
Test: atest InstallSessionTransferTest
Bug: 158804946
Change-Id: Ib0a3e8dc19b829c7382791e622e0b86ee8b387e8
Unlike getUuid that returns fsUuid, this returns the 'converted'
fsUuid. This means that for the default internal storage:
- fsUuid = null
- uuid = UUID_DEFAUlT
Test: atest StorageManagerTest#testGetPrimaryVolume
Bug: 170481432
Change-Id: I4c590e5536326e5c2a0b62520f9853de680027ae
SystemApi complains:
error: Constant field names must be named with only upper case characters:
`android.hardware.hdmi.HdmiControlManager#HDMI_CEC_VERSION_1_4_b`,
should be `HDMI__CEC__VERSION_1_4_B`
Bug: 174731501
Bug: 172637440
Test: atest com.google.android.gts.hdmicec.HdmiControlManagerHostTest
Change-Id: Ia1bfdb44e704c99fa574663f658a2173f6b48d21