From de7a703077cfbb86e8863ffd6ae46c493055fd6b Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Fri, 13 Apr 2018 23:47:21 -0500 Subject: [PATCH] added wipe --- adb.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adb.py b/adb.py index 3b1018c..5864b4a 100644 --- a/adb.py +++ b/adb.py @@ -158,7 +158,10 @@ class device: self.adb("shell","twrp","backup",options,name) phone_dir = "/data/media/0/TWRP/BACKUPS/{serial}/{name}".format(serial = self.serial,name = name) self.move(phone_dir,filename) - + + def wipe(partition): + self.adb("shell","twrp","wipe",partition) + def unlock_phone(self,pin): self.send_keycode('power') self.send_keycode('space')