如何获得root权限获取华为 如何获得root权限获取( 二 )


安装Magisk面具,获取root权限,刷入手机永久生效3用到材料/工具:
ADB工具套件Magisk-23.apk面具适用本手机的boot.img镜像Smart Phone Flash Tool一、在手机上安装Magisk-23.apk面具:adb install c:/tmp/Magisk-23.apk
C:tmpMtk_Droid_Tool_v2.5.3adbadb devicesadb server is out of date.killing...ADB server didnt ACK* failed to start daemon *error: unknown host serviceC:tmpMtk_Droid_Tool_v2.5.3adbadb kill-serverC:tmpMtk_Droid_Tool_v2.5.3adbadb devices* daemon not running. starting it now on port 5037 ** daemon started successfully *List of devices attached8T8HBIZSBU9PCM4SdeviceC:tmpMtk_Droid_Tool_v2.5.3adbadb install c:/tmp/Magisk-23.apk5517 KB/s (6874374 bytes in 1.216s)pkg: /data/local/tmp/Magisk-23.apkSuccess手机上已经可以看到面具图标了:
二、将boot.img拷到手机上
三、打开Magisk,利用它处理原boot.img后产生一个新的启动镜像,无root权限时“当前”处显示“无法获取”
选择之前拷贝到手机的boot.img:
开始处理:
生产了一个新的启动文件:magisk_patched-23000_AeWJI.img
四、通过adb命令fastboot flash boot magisk_patched-23000_AeWJI.img将此启动镜像刷入手机时由于权限原因常常不成功,此时可用SP Flash Tool刷机方式写入
c:tmpfastbootfastboot flash boot magisk_patched-23000_AeWJI.imgSending boot (7310 KB)OKAY [0.722s]Writing bootFAILED (remote: download for partition boot is not allowed)fastboot: error: Command failed选中手机对应的scatter.txt文件:
“boot处选中新产生的启动文件 magisk_patched-23000_AeWJI.img:
点击“下载”,手机关机状态连接上USB线,等待成功:
“当前”处已经显示“23.0”版本号,表示已获root权限:
相关要点可参考:
手机安装magisk获ROOT权限,无须第三方recoveryGIONEE金立旧手机黑屏、不开机,SP FLASH TOOL刷机解决