예제 #1
0
 def install(self):
     """Install webview."""
     android.adb_shell('setprop persist.sys.webview.vmsize %s' %
                       SYSTEM_WEBVIEW_VMSIZE_BYTES)
     android.adb_shell('stop')
     android.adb_shell('rm -rf %s' % ' '.join(SYSTEM_WEBVIEW_DIRS))
     android.adb_shell('start')
     android.uninstall(SYSTEM_WEBVIEW_PACKAGE)
     android.uninstall(self.testcase.android_package_name)
     android.install(
         os.path.join(os.path.dirname(self.binary_path),
                      SYSTEM_WEBVIEW_APK))
     android.install(self.binary_path)
예제 #2
0
 def install(self):
     """Instal chrome on Android."""
     android.uninstall(self.testcase.android_package_name)
     android.install(self.binary_path)