Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.x #1

Open
wants to merge 3 commits into
base: sid
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
*.so.*
*.dll
*.dylib

/build
/CMakeFiles
# Qt-es
object_script.*.Release
object_script.*.Debug
Expand Down
Binary file added 1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]

[requires]
python_version = "3.7"
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
# XTCToolBox
A Phone and Watch ToolBox.
# XTCToolBox 2.0

## 1.注意事项

本软件采用Python3.7+PyQt5开发,请在运行之前准备好开发环境

### 2.编译运行
#### 1.安装Python
这个就不用讲解了吧
#### 2.安装PyQt5,win10toast,requests,rich,pyinstaller。

```bash
pip3 install PyQt5 win10toast requests rich pyinstaller -i https://pypi.tuna.tsinghua.edu.cn/simple
```
如果已经安装过,可以忽略。
#### 3.打包
可以先直接运行,测试是否正常。

```bash
python3 main.py
```
打包命令:

```bash
pyinstaller -D -W -i ajfj2-yrv0f-002.ico main.py
```
之后就可以在dist文件夹查看文件并且运行了。
程序运行需要自备adb工具包,我自用ubuntu,这样安装:

```bash
sudo apt install adb
```
其他linux发行版自己去找对应版本的adb安装教程吧


Binary file added ajfj2-yrv0f-002.ico
Binary file not shown.
1 change: 1 addition & 0 deletions color.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
color 07
99 changes: 99 additions & 0 deletions connect.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'connect.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(684, 432)
font = QtGui.QFont()
font.setFamily("MiSans")
Form.setFont(font)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/img/img/连接.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
Form.setWindowIcon(icon)
self.tabWidget = QtWidgets.QTabWidget(Form)
self.tabWidget.setGeometry(QtCore.QRect(20, 20, 641, 401))
self.tabWidget.setObjectName("tabWidget")
self.tab = QtWidgets.QWidget()
self.tab.setObjectName("tab")
self.label = QtWidgets.QLabel(self.tab)
self.label.setGeometry(QtCore.QRect(10, 20, 271, 41))
font = QtGui.QFont()
font.setFamily("MiSans")
font.setPointSize(12)
self.label.setFont(font)
self.label.setObjectName("label")
self.commandLinkButton = QtWidgets.QCommandLinkButton(self.tab)
self.commandLinkButton.setGeometry(QtCore.QRect(20, 100, 601, 51))
font = QtGui.QFont()
font.setFamily("MiSans")
font.setPointSize(9)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.commandLinkButton.setFont(font)
self.commandLinkButton.setStyleSheet("font: 9pt \"MiSans\";\n"
"image: url(:/img/img/检测.png);")
self.commandLinkButton.setObjectName("commandLinkButton")
self.pushButton = QtWidgets.QPushButton(self.tab)
self.pushButton.setGeometry(QtCore.QRect(450, 300, 181, 51))
self.pushButton.setObjectName("pushButton")
self.calendarWidget = QtWidgets.QCalendarWidget(self.tab)
self.calendarWidget.setGeometry(QtCore.QRect(0, 160, 431, 211))
self.calendarWidget.setObjectName("calendarWidget")
self.tabWidget.addTab(self.tab, "")
self.tab_2 = QtWidgets.QWidget()
self.tab_2.setObjectName("tab_2")
self.lineEdit = QtWidgets.QLineEdit(self.tab_2)
self.lineEdit.setGeometry(QtCore.QRect(20, 30, 351, 41))
self.lineEdit.setInputMask("")
self.lineEdit.setObjectName("lineEdit")
self.pushButton_2 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_2.setGeometry(QtCore.QRect(380, 30, 121, 51))
self.pushButton_2.setObjectName("pushButton_2")
self.pushButton_3 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_3.setGeometry(QtCore.QRect(450, 310, 181, 51))
self.pushButton_3.setObjectName("pushButton_3")
self.calendarWidget_2 = QtWidgets.QCalendarWidget(self.tab_2)
self.calendarWidget_2.setGeometry(QtCore.QRect(10, 140, 431, 211))
self.calendarWidget_2.setObjectName("calendarWidget_2")
self.tabWidget.addTab(self.tab_2, "")
self.tab_3 = QtWidgets.QWidget()
self.tab_3.setObjectName("tab_3")
self.tabWidget.addTab(self.tab_3, "")

self.retranslateUi(Form)
self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(Form)

def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "连接设备"))
self.label.setText(_translate("Form", "请在插入设备之后进行检测"))
self.commandLinkButton.setText(_translate("Form", "检测"))
self.pushButton.setText(_translate("Form", "重启ADB服务"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Form", "有线连接"))
self.lineEdit.setPlaceholderText(_translate("Form", "在这里输入你要连接设备的IP地址"))
self.pushButton_2.setText(_translate("Form", "启动连接"))
self.pushButton_3.setText(_translate("Form", "重启ADB服务"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("Form", "无线连接"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("Form", "无线转有线"))
import main_rc
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()#MainWindow由启动类型确定,可自行更改,接下来都是这样
ui = Ui_Form()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())
178 changes: 178 additions & 0 deletions connect.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>684</width>
<height>432</height>
</rect>
</property>
<property name="font">
<font>
<family>MiSans</family>
</font>
</property>
<property name="windowTitle">
<string>连接设备</string>
</property>
<property name="windowIcon">
<iconset resource="main.qrc">
<normaloff>:/img/img/连接.png</normaloff>:/img/img/连接.png</iconset>
</property>
<widget class="QTabWidget" name="tabWidget">
<property name="geometry">
<rect>
<x>20</x>
<y>20</y>
<width>641</width>
<height>401</height>
</rect>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>有线连接</string>
</attribute>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>271</width>
<height>41</height>
</rect>
</property>
<property name="font">
<font>
<family>MiSans</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>请在插入设备之后进行检测</string>
</property>
</widget>
<widget class="QCommandLinkButton" name="commandLinkButton">
<property name="geometry">
<rect>
<x>20</x>
<y>100</y>
<width>601</width>
<height>51</height>
</rect>
</property>
<property name="font">
<font>
<family>MiSans</family>
<pointsize>9</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">font: 9pt &quot;MiSans&quot;;
image: url(:/img/img/检测.png);</string>
</property>
<property name="text">
<string>检测</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>450</x>
<y>300</y>
<width>181</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>重启ADB服务</string>
</property>
</widget>
<widget class="QCalendarWidget" name="calendarWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>160</y>
<width>431</width>
<height>211</height>
</rect>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>无线连接</string>
</attribute>
<widget class="QLineEdit" name="lineEdit">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>351</width>
<height>41</height>
</rect>
</property>
<property name="inputMask">
<string/>
</property>
<property name="placeholderText">
<string>在这里输入你要连接设备的IP地址</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_2">
<property name="geometry">
<rect>
<x>380</x>
<y>30</y>
<width>121</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>启动连接</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_3">
<property name="geometry">
<rect>
<x>450</x>
<y>310</y>
<width>181</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>重启ADB服务</string>
</property>
</widget>
<widget class="QCalendarWidget" name="calendarWidget_2">
<property name="geometry">
<rect>
<x>10</x>
<y>140</y>
<width>431</width>
<height>211</height>
</rect>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_3">
<attribute name="title">
<string>无线转有线</string>
</attribute>
</widget>
</widget>
</widget>
<resources>
<include location="main.qrc"/>
</resources>
<connections/>
</ui>
Binary file added demo.mp4
Binary file not shown.
Empty file added downloads.txt
Empty file.
Binary file added hh.mp4
Binary file not shown.
Binary file added img/工具箱.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/应用管理.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/截图.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/手表.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/文件夹.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/更新.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/检测.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/视频.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/设置.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/连接.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/退出程序.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions installapps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'installapps.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(564, 148)
font = QtGui.QFont()
font.setFamily("MiSans")
Form.setFont(font)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/img/img/应用管理.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
Form.setWindowIcon(icon)
self.lineEdit = QtWidgets.QLineEdit(Form)
self.lineEdit.setGeometry(QtCore.QRect(60, 30, 291, 31))
self.lineEdit.setObjectName("lineEdit")
self.pushButton = QtWidgets.QPushButton(Form)
self.pushButton.setGeometry(QtCore.QRect(380, 30, 111, 41))
self.pushButton.setObjectName("pushButton")
self.pushButton_2 = QtWidgets.QPushButton(Form)
self.pushButton_2.setGeometry(QtCore.QRect(80, 80, 111, 41))
self.pushButton_2.setObjectName("pushButton_2")

self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)

def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "安装软件"))
self.lineEdit.setPlaceholderText(_translate("Form", "输入apk文件路径"))
self.pushButton.setText(_translate("Form", "启动安装"))
self.pushButton_2.setText(_translate("Form", "选择文件"))
import main_rc
Loading