-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathadbshellpy_libroot.py
More file actions
33 lines (33 loc) · 1.39 KB
/
Copy pathadbshellpy_libroot.py
File metadata and controls
33 lines (33 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# adbshellpy_libroot
# By : 神郭
# Version : 0.6.0 Stable
import sys,os,zipfile,urllib.request
try:from adbshell import errexit,update,checkinternet,clear,ParseArguments,adbcommand,install,changes,github,version,builddate,who,nowdevice
except:from adbshell_alpha import errexit,update,checkinternet,clear,ParseArguments,adbcommand,install,changes,github,version,builddate,who,nowdevice
class adbshellpyinformation:
branch=None
try:from adbshell_alpha import adbfile
except:from adbshell import adbfile
uselinuxpkgmanagertoinstalladb=None
aapt=None
adb=adbcommand(nowdevice)
def Activate_KFMark():
'快否激活'
url='https://hub.fastgit.org/aifou-kfmark/KFMARK/releases/download/1.5/daemon'
if os.path.exists('daemon')==False:
print('未检测到快否启动实例:daemon,正在为您下载中...')
try:urllib.request.urlretrieve(url,'daemon')
except:
print('E:下载失败!')
return
adb.push('daemon','/data/local/tmp')
adb.shell('chmod 777 /data/local/tmp/daemon')
adb.shell('"./data/local/tmp/daemon &"')
def home():
print('''
___________________________ADBSystemROOTTOOLBOX__________________________________
ROOT玩机专区
___________________________ADBSystemROOTTOOLBOX__________________________________
''')