Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 27fd0c30 authored by Diogo Ferreira's avatar Diogo Ferreira Committed by Steve Kondik
Browse files

services: devicepolicy: Restore backup service as system

Restoring the backup service must be performed by either system
or root otherwise it will cause a SecurityException. This patch
clears the uid, performs the call as system and then restores it.

Fixes the following CTS tests:

com.android.cts.devicepolicy.CustomDeviceOwnerTest
  -- testOwnerChangedBroadcast
  -- testSilentPackageInstall

com.android.cts.devicepolicy.DeviceOwnerTest
  -- testCaCertManagement
  -- testCannotSetDeviceOwnerAgain
  -- testDeviceOwnerSetup
  -- testKeyManagement
  -- testLockTask
  -- testSystemUpdatePolicy
  -- testWifiConfigLockdown

com.android.cts.devicepolicy.MixedDeviceOwnerTest
  -- testAccountManagement
  -- testApplicationRestrictions
  -- testDelegatedCertInstaller
  -- testPermissionGrant
  -- testPermissionGrantPreMApp
  -- testPermissionMixedPolicies
  -- testPermissionPolicy
  -- testPermissionPrompts
  -- testPersistentIntentResolving
  -- testScreenCaptureDisabled

Change-Id: Ia26222f1fece14217554459c42679f82f7ceb980
parent c224db64
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment