fastboot-mobile Android手机端Fastboot命令库

从 Android 手机上刷机、解锁、搞定 Fastboot 命令?fastboot-mobile这库就挺香的。支持 Kotlin 写的,接口清晰,调用也不麻烦,关键是直接用手机发命令,连电脑都省了。

USB OTG 的支持,是它最大的亮点。只要你手里的设备支持 OTG,接上另一台待刷的设备,就能直接通过手机操控对方,比如执行fastboot flash,刷个 recovery 什么的,方便。

库是用Kotlin写的,语法上简洁又现代,比如空安全啥的不用多说,写起来也舒服。整体结构不复杂,适合快速集成到现有的 APP 里,适合搞一个自己的设备维护工具。

应用场景还挺多,像售后工程师、ROM 开发者,甚至你是那种喜欢倒腾系统的玩家,都能用得上。你可以在没有电脑的地方,直接用手机升级别的设备系统,或者救砖,挺实用。

注意哦,设备要支持 OTG 才行,线也别太差,劣质线连不上。建议操作前检查下设备连接状态,可以用fastboot devices测试下是否识别。

如果你常需要用 Fastboot 命令,又想省掉开电脑那一步,fastboot-mobile真的值得一试。配合一个 UI 界面,搞一个手机端刷机助手,也不是梦。

zip
fastboot-mobile-master.zip 预估大小:63个文件
folder
fastboot-mobile-master 文件夹
file
.gitignore 370B
folder
sample 文件夹
file
.gitignore 7B
file
build.gradle 2KB
folder
src 文件夹
folder
main 文件夹
file
AndroidManifest.xml 1KB
folder
res 文件夹
folder
mipmap-xhdpi 文件夹
file
ic_launcher_round.png 7KB
file
ic_launcher.png 4KB
folder
mipmap-mdpi 文件夹
file
ic_launcher_round.png 3KB
file
ic_launcher.png 2KB
folder
layout 文件夹
file
main_fragment.xml 1KB
file
fragment_device_details.xml 2KB
file
main_activity.xml 1KB
file
item_fastboot_device.xml 2KB
folder
mipmap-xxhdpi 文件夹
file
ic_launcher_round.png 10KB
file
ic_launcher.png 6KB
folder
drawable 文件夹
file
ic_launcher_background.xml 5KB
folder
mipmap-anydpi-v26 文件夹
file
ic_launcher_round.xml 879B
file
ic_launcher.xml 879B
folder
drawable-v24 文件夹
file
ic_launcher_foreground.xml 2KB
folder
mipmap-hdpi 文件夹
file
ic_launcher_round.png 5KB
file
ic_launcher.png 3KB
folder
mipmap-xxxhdpi 文件夹
file
ic_launcher_round.png 15KB
file
ic_launcher.png 9KB
folder
navigation 文件夹
file
nav_graph.xml 2KB
folder
values 文件夹
file
strings.xml 689B
file
colors.xml 821B
file
styles.xml 974B
folder
java 文件夹
folder
com 文件夹
folder
google 文件夹
folder
android 文件夹
folder
fastbootmobile 文件夹
folder
sample 文件夹
folder
data 文件夹
file
FastbootDevice.kt 1KB
file
FastbootDeviceDataSource.kt 3KB
file
FastbootDeviceAdapter.kt 3KB
file
MainActivity.kt 1KB
folder
ui 文件夹
file
OnFastbootDeviceItemClickListener.kt 860B
folder
devicedetails 文件夹
file
DeviceDetailsFragment.kt 2KB
file
DeviceDetailsViewModel.kt 2KB
folder
main 文件夹
file
MainViewModel.kt 1KB
file
MainFragment.kt 3KB
file
proguard-rules.pro 1KB
file
settings.gradle 622B
file
build.gradle 1KB
file
gradlew 5KB
file
CONTRIBUTING.md 1KB
file
LICENSE 11KB
file
README.md 1KB
file
gradlew.bat 2KB
file
gradle.properties 1KB
folder
gradle 文件夹
folder
wrapper 文件夹
file
gradle-wrapper.properties 806B
file
gradle-wrapper.jar 52KB
folder
lib 文件夹
file
.gitignore 7B
file
build.gradle 1KB
folder
src 文件夹
folder
main 文件夹
file
AndroidManifest.xml 1KB
folder
res 文件夹
folder
xml 文件夹
file
device_filter.xml 733B
folder
values 文件夹
file
strings.xml 689B
folder
java 文件夹
folder
com 文件夹
folder
google 文件夹
folder
android 文件夹
folder
fastbootmobile 文件夹
file
FastbootInitProvider.kt 2KB
folder
transport 文件夹
file
UsbTransport.kt 2KB
file
Transport.kt 875B
file
FastbootDeviceManagerListener.kt 915B
file
FastbootDeviceContext.kt 1KB
file
FastbootCommand.kt 1KB
file
FastbootMobile.kt 1KB
file
UsbDeviceManager.kt 4KB
file
FastbootDeviceManager.kt 5KB
file
UsbDeviceManagerListener.kt 997B
file
FastbootResponse.kt 1KB
file
proguard-rules.pro 1KB
...
zip 文件大小:170.99KB