def UninstallWebViewSystemImages(device):
    """Uninstalls system images for known WebView packages."""
    print('Removing system images from %s...' % device.serial)
    system_app.RemoveSystemApps(device, WEBVIEW_PACKAGES)
    _UnlockDevice(device)
Esempio n. 2
0
 def RemoveSystemPackages(self, packages):
   system_app.RemoveSystemApps(self._device, packages)
 def testRemove(self):
     self._check_preconditions()
     system_app.RemoveSystemApps(self._device, [self.PACKAGE])
     removed_paths = self._device.GetApplicationPaths(self.PACKAGE)
     self.assertEqual([], removed_paths)