Bug fix
This commit is contained in:
parent
87ea90c8bf
commit
71f67b709a
1
amt.py
1
amt.py
|
@ -2,7 +2,6 @@
|
|||
"""
|
||||
Code to interact with an android device using ADB
|
||||
Written by Kevin Rode
|
||||
Last Updated Sep 28 2019
|
||||
"""
|
||||
import sys
|
||||
from helpers import root
|
||||
|
|
|
@ -28,9 +28,7 @@ def twrp_download(d):
|
|||
if "twrp" in file:
|
||||
found = 1
|
||||
if found != 1:
|
||||
cpu = d.shell('cat /proc/cpuinfo | grep Hardware')
|
||||
cpu = cpu.replace(" ", "")
|
||||
cpu = re.sub(r'(.+:)', '', cpu)
|
||||
cpu = d.shell('getprop ro.product.board')
|
||||
r = requests.get('https://dl.twrp.me/'+cpu)
|
||||
tree = html.fromstring(r.text)
|
||||
urls = tree.xpath('//a/@href')
|
||||
|
|
Reference in New Issue
Block a user