linux下安卓刷机脚本

linux下安卓刷机脚本

0x00 前几天尝试了下在linux下刷安卓,写出来做学习交流。fastboot 暴力刷机。

0x01 flash_all.sh

(代码如下:)

[plain] view plain copy

1.echo "ido Fastboot Tool Ver 4.0"

2.

3.fastboot $* getvar product 2>&1 | grep "^product: ido"

4.

5.if [ $? -ne 0 ] ; then echo "Missmatching image and device"; exit 1; fi

6.fastboot $* flash partition `dirname $0`/images/gpt_both0.bin

7.fastboot $* flash tz `dirname $0`/images/tz.mbn

8.fastboot $* flash sbl1 `dirname $0`/images/sbl1.mbn

9.fastboot $* flash rpm `dirname $0`/images/rpm.mbn

10.fastboot $* flash aboot `dirname $0`/images/emmc_appsboot.mbn

11.fastboot $* flash hyp `dirname $0`/images/hyp.mbn

12.

13.fastboot $* flash tzbak `dirname $0`/images/tz.mbn

14.fastboot $* flash sbl1bak `dirname $0`/images/sbl1.mbn

15.fastboot $* flash rpmbak `dirname $0`/images/rpm.mbn

16.fastboot $* flash abootbak `dirname $0`/images/emmc_appsboot.mbn

17.fastboot $* flash hypbak `dirname $0`/images/hyp.mbn

18.

19.fastboot $* erase boot

20.fastboot $* flash modem `dirname $0`/images/NON-HLOS.bin

21.fastboot $* flash system `dirname $0`/images/system.img

22.fastboot $* flash cache `dirname $0`/images/cache.img

23.fastboot $* flash userdata `dirname $0`/images/userdata.img

24.fastboot $* flash recovery `dirname $0`/images/recovery.img

25.fastboot $* flash boot `dirname $0`/images/boot.img

26.

27.fastboot $* flash misc `dirname $0`/images/misc.img

28.fastboot $* flash splash `dirname $0`/images/splash.img

29.fastboot $* flash cust `dirname $0`/images/cust.img

30.fastboot $* reboot

清空所有数据。

0x02 flash_all_except_data_storage.sh

(代码如下:)

[plain]

1.echo "ido Fastboot Tool Ver 4.0"

2.

3.fastboot $* getvar product 2>&1 | grep "^product: ido"

4.

5.if [ $? -ne 0 ] ; then echo "Missmatching image and device"; exit 1; fi

6.fastboot $* flash partition `dirname $0`/images/gpt_both0.bin

7.fastboot $* flash tz `dirname $0`/images/tz.mbn

8.fastboot $* flash sbl1 `dirname $0`/images/sbl1.mbn

9.fastboot $* flash rpm `dirname $0`/images/rpm.mbn

10.fastboot $* flash aboot `dirname $0`/images/emmc_appsboot.mbn

11.fastboot $* flash hyp `dirname $0`/images/hyp.mbn

12.

13.fastboot $* flash tzbak `dirname $0`/images/tz.mbn

14.fastboot $* flash sbl1bak `dirname $0`/images/sbl1.mbn

15.fastboot $* flash rpmbak `dirname $0`/images/rpm.mbn

16.fastboot $* flash abootbak `dirname $0`/images/emmc_appsboot.mbn

17.fastboot $* flash hypbak `dirname $0`/images/hyp.mbn

18.

19.fastboot $* erase boot

20.fastboot $* flash modem `dirname $0`/images/NON-HLOS.bin

21.fastboot $* flash system `dirname $0`/images/system.img

22.fastboot $* flash cache `dirname $0`/images/cache.img

23.

24.fastboot $* flash recovery `dirname $0`/images/recovery.img

25.fastboot $* flash boot `di

linux下安卓刷机,linux下安卓刷机脚本相关推荐

  1. iphone7运行linux,iPhone 7成新一代刷机神机!继安卓后,又成功运行Linux

    iPhone 7成新一代刷机神机!继安卓后,又成功运行Linux 2020年04月27日 14:32作者:NJNR205编辑:陈惺惺文章出处:泡泡网原创 分享 4月27日消息,据外媒报道,继前段时间i ...

  2. linux用mame玩游戏,Ubuntu下用kxmame运行精彩的街机游戏

    闲得无聊,试试在Ubuntu玩一下那些经典的街机游戏,搜了下论坛,一般是用gxmame,先看看"添加/删除"里有没有,查找"gxmame",没有,倒是有个kxm ...

  3. Linux下如何判断服务器是虚拟机还是物理机?

    有时候我们拿到一台设备,因为不是自己的,不清楚是虚拟机还是物理机,那想判断是虚拟机还是物理机怎么办呢?在linux下提供一些命令可查看是物理机还是虚拟机,例如:lscpu.systemd-detect ...

  4. linux使用ping命令ping本机,Linux下使用ping命令判断网络的好坏

    简介 在Linux系统里面如果想判断网络的好坏,脑海中蹦出的第一个命令就是ping了. ping命令基本是最常用的网络命令,它可以用来测试与目标主机的连通性. ping通过发送ICMP ECHO_RE ...

  5. 安卓盒子刷rec linux启动,常见电视或盒子进入Recovery模式的方法汇总

    智能电视或盒子出现故障时,我们比较常用的一个操作就是进入Recovery模式(工厂模式),但是很多用户并不知道具体如何操作,下面就看看以下教程吧! 一.创维 进入Recovery模式需要用到遥控的快捷 ...

  6. 安卓手机安装Linux双系统,【12-31】关于安卓手机实现双系统原理及其方法

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 众所周知,Windows系统的电脑可以实现双系统,Mac的苹果电脑也可以实现双系统,那么手机是否也可以实现双系统呢?答案是肯定的,当然Windows跟Ma ...

  7. windows远程android传输文件,电脑(Linux/Windows)使用SSH远程登录安卓(Android)手机实现无线传输和管理文件(图文详解)-Go语言中文社区...

    电脑(Linux/Windows系统)使用SSH远程登录安卓(Android)手机实现无线传输和管理文件(图文详解) 温馨提示 本文只针对安卓(Android)手机!iPhone或者WP的手机用户,请 ...

  8. 用Linux Deploy让安卓手机成为Linux服务器

    安卓是基于Linux的,那么是不是可以把安卓手机当服务器用呢?那么我的树莓派是不是可以丢了呢~ 一开始想找直接将Linux系统刷到手机上,不过难度太大了而且据说很难适配,那这条路走不通了 那么能不能直 ...

  9. 网络盒子android系统版本怎样刷机,咪咕盒子MG100强制刷机rom固件安卓系统包_刷机教程...

    现在的网络盒子很多,当属中国移动最多,但是用户在刷机的时候,有时候只看型号就盲目的找包就开刷 其实这是错误的,因为主板改板较快,批次不同也就意味着安卓刷机包也有不同,所以建议不要盲目的去刷! 下面我来 ...

  10. 乐视1s 安装android6,乐视X500(1S) 安卓6.0最终 魅族Flyme6刷机包 最新6.7.12.29R 紫火20180510更新...

    本包是乐视X500/X501(乐1S)适配版,属于安卓6.0系列Flyme6.7.12.29R版本,是魅族全新制作的一个版本,更直接的内容设计,更全面的安全保护,更强大的智能思维引擎. 刷机之前请删除 ...

最新文章

  1. python申请内存函数_Python Ctypes c函数的内存分配
  2. 如何去除矩阵中的NaN元素
  3. windows和linux下的spice客户端使用方法
  4. 淘宝评价网----类反淘宝联盟上线
  5. 1-2 输出N个数的平方和立方值
  6. 知道圆心半径取圆上的经纬度_作为一名台球高手,你应该知道的事
  7. 计算机函数left的用法,excel中的left函数怎么使用呢?
  8. LWIP_STM32_ENC28J60_NETCONN_TCP_CLIENT(4)
  9. 构建之法 前三章读后感
  10. 新闻本身具有数量大、更新快、冗余度高
  11. linux 命令(7) df
  12. linux 深度美化,deepin15(Linux) 美化终端 安装zsh+oh-my-zsh及其配置和插件
  13. eclipse下载及安装教程
  14. Excel学习日记:L9-图表制作-柱状图
  15. C盘系统文件提示损坏怎么办?系统文件损坏怎么修复
  16. 蚂蚁金服十年自研分布式中间件,成就世界级新金融科技平台
  17. 中国电子学会C++软件编程一级—六级历年真题模拟题题库260题及参考答案第六版 (星卯教育)TB
  18. 如何禁止搜索引擎收录WordPress站点某个分类的文章?
  19. Delphi惹谁了?
  20. Paper Reading - 基础系列 - 常用评价指标 ROC、PR、mAP

热门文章

  1. 解决easy ui 1.4datebox控件不能清空的问题
  2. Tomcat,servlet以及netty之间的简单区别
  3. java日志分级概要
  4. 【转】cron表达式详解
  5. 字节码指令之同步控制指令
  6. 正则全攻略使用手册,你确定不进来看看吗
  7. 同一域内部署多台notes server
  8. Grafana 安装和使用
  9. Rsync结合Inotify 实时同步配置
  10. unique path 阶梯