Ejemplo n.º 1
0
Archivo: uia.py Proyecto: sungj521/QT4i
 def uninstall(self, bundle_id):
     '''卸载设备上的APP
     
     :param bundle_id: 要卸载的APP的Bundle_ID, 例如"tencent.com.sng.test.gn"
     :type bundle_id: str
     :returns: boolean -- if uninstall app successfully, False if not
     '''
     dt = DT()
     return dt.uninstall(bundle_id, self.udid)
Ejemplo n.º 2
0
 def uninstall(self, bundle_id):
     '''通过udid指定设备卸载指定bundle_id的APP
     
     :param bundle_id: APP的bundle_id,例如"tencent.com.sng.test.gn"
     :type bundle_id: str
     :returns: boolean -- if uninstall app successfully, False if not
     '''
     dt = DT()
     if dt.uninstall(bundle_id, self.udid):
         return True
     raise RuntimeError("uninstall error: %s" % dt.uninstall_error.encode('utf8'))