• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

DroidFlasher

Search This thread

Zorge.R

Senior Member
Feb 24, 2009
301
150
logo.png

DroidFlasher (latest build: r109)

DroidFlasher - Universal cross platform Adb/Fastboot/Recovery (TWRP) tool for any Android devices and any platforms (Windows, Mac, Linux).

DroidFlasher can:
- DroidFlasher Scripting (DFS) - plain-text format for batch job and advanced features, like automatic download and flash zip from the net, user interaction and more.
- push file to the device
- pull file from device
- install single or multiple APK
- uninstall package (keep cache option)
- backup / restore (application / settings / cache) via adb
- backup restore partition with TWRP
- flash recovery, kernel, etc, TWRP or Fastboot
- built-in binaries (adb/fastboot/mfastboot) for Mac, PC, *nix.
- work out of the box, just unpack and run (no need setup adb/fastboot).
- more to come

DroidFlasher r109 downloads:
---
Mac: DroidFlasher_r109_Mac.7z (43.6MB) - md5sum: 7e627dc7e9f65bab3685c3b2242f0654
Win: DroidFlasher_r109_Win.7z (39.9MB) - md5sum: d34e335fcf72403d29ae3d18c22885d6
*nix: DroidFlasher_r109_Nix.7z (51.3MB) - md5sum: 8fce1c52f73b9d7810cd3cd46b504d42
---

Source code: available at github under MIT License - https://github.com/ZorgeR/DroidFlasher

screenshot r107:
b7fc23995f064a6a8326b1bdb1c019a5.png
9381808287cd46c6a94f70662fc6c3e3.png

6651e49f0c3f451c9a79f812122f0177.png
4dc16bee7e2640f984bffb35c77014c8.png
video:changelog:

Code:
r100:
- initial release
r101:
- mfastboot added
r102:
- added *.DFS scripting and sideload
r103:
- added code for recovery (openrecovery, twrp)
- flash zip
- backup
- restore
- wipe (cache/data/dalvik)
- more to come...
r104:
- multiple zip flasher (without manual sorting at this time)
- flash from phone/sdcard
- layout changes
r105:
- UI update
- drag and drop for file transfer and run dfs
- tons of refactoring
- used icons: fatcow, fugue, small-n-flat
- used fonts: PT Sans, PT Sans Narrow
- dfs under hood change
- dfs file downloading command added, for example:
[CODE]dfs download "http://files.z-lab.me/mobile/Moto X/recovery/openrecovery-twrp-2.8.5.0-ghost.img"
adb reboot bootloader
fastboot flash recovery openrecovery-twrp-2.8.5.0-ghost.img
r106:
- UI fixes
r107:
- added new command -> dfs set workdir, work only in simplemode and override automaticly created working folder in this mode. If simplemode is disabled, command will be ignored.
- refactoring
- code cleaning
- UI update
r108:
- check and notify if new version available
- refactoring
- simple mode enabled by default, less dialog, all working directory will be create automatically (use: dfs set workdir, for user manually set working directory if it really need)
r109:
- added new command: dfs radiobox
- added new command: dfs show
[/code]


XDA:DevDB Information
DroidFlasher, Tool/Utility for the Moto X

Contributors
Zorge.R

Version Information
Status: Beta
Current Beta Version: r109
Beta Release Date: 2015-03-22

Created 2015-03-11
Last Updated 2015-03-26
 

Attachments

  • fe14acabd4534e0caca9aea9bb844c62.png
    fe14acabd4534e0caca9aea9bb844c62.png
    205.1 KB · Views: 1,321
  • b08122d6eb524f43ad99d63c8d1fc7ab.png
    b08122d6eb524f43ad99d63c8d1fc7ab.png
    236 KB · Views: 1,310
  • 3d038ea7dd8943c390022ea8e941cde8.png
    3d038ea7dd8943c390022ea8e941cde8.png
    220 KB · Views: 1,309
Last edited:

Zorge.R

Senior Member
Feb 24, 2009
301
150
Reserved

about *.DFS scripting:

DFS (DroidFlasherScript) is simple way for batch job with fastboot, adb, or mfastboot.
*.dfs is plaint text file with simple structure, how it's work?
- press "run *.dfs" button and select dfs file
- select working directory (where application will search files), in next window.
- wait while all jobs done.

next example show revert to stock *.dfs file for moto x (plaint text file - xt1052revery.dfs. you can choose *.txt file as well):
Code:
dfs set workdir
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
mfastboot flash system system.img
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
Just save this as text file, and run from application.

Next example show download and flashing moto x twrp:
Code:
# 1. Download recovery
# 2. Reboot to fastboot
# 3. Flash downloaded recovery

dfs download "http://files.z-lab.me/mobile/Moto X/recovery/openrecovery-twrp-2.8.5.0-ghost.img"
adb reboot bootloader
fastboot flash recovery openrecovery-twrp-2.8.5.0-ghost.img
On last stage of this dfs, you can use only name or full path to img.

You can added any adb commands, next show reboot to fastboot, before run job:
Code:
adb reboot bootloader
fastboot flash boot boot.img
fastboot flash recovery recovery.img
mfastboot flash system system.img

or you can do any other work:
Code:
adb devices -l
adb reboot bootloader
fastboot devices

also any other (fastboot/mfastboot/adb) command work, you can use it for batch work:
Code:
adb push /local /remote
fastboot oem unlock

Also for:
- "fastboot flash /local/file"
- "fastboot boot /local/file"
- "adb sideload /local/file"
- "adb push /local /remote"
- "adb pull /remote /local"
You can use in dfs file absolute path for local file or just name in working directory (DroidFlasher check if file exist with abs path, if not, will use file with this name from working directory.
For example, next code will show correctly *.dfs file, and work without issue:
Code:
fastboot flash boot boot.img
fastboot flash system /home/zorg/files/system.img
adb push my.apk /sdcard
adb push /home/zorg/downloads/mynext.apk /sdcard
boot.img and my.apk will used from working directory, system.img and mynext.apk with abs path.
Another advanced example:
Code:
dfs show exit "Recovery flasher" "Warning!" "If you press OK, recovery partition on %DEVICE_MODEL% - %DEVICE% will be rewrited!"
dfs radiobox "TWRP 2.8.6.0|Philz Touch Recovery 6.58.7" "http://files.z-lab.me/mobile/devices/%DEVICE%/twrp-2.8.6.0-%DEVICE%.img|http://files.z-lab.me/mobile/devices/%DEVICE%/philz_touch_6.58.7-%DEVICE%.img" "Recovery flasher" "Аttention!" "Choice preferred recovery:"
dfs download %RADIOBOX_RESULT%
adb reboot bootloader
dfs sleep 1
fastboot flash recovery %RADIOBOX_RESULT_FILENAME%
dfs sleep 2
dfs radiobox "Reboot to the system|Reboot to bootloader" "reboot|reboot-bootloader" "Recovery flasher" "What next?" "Make a choice:"
fastboot %RADIOBOX_RESULT%

%dialogtype% = info, error,warning, none, confirmation
Code:
dfs radiobox "txt1|txt2|txt3|txt4" "val1|val2|val3|val4" title header content
dfs show %dialogtype% title header content
Confirmation
Code:
# Recovery flashing from fastboot with choice and confirm dialog
dfs radiobox "TWRP|CWM Recovery|Phiz Touch Recovery" "http://z-lab.me/twrp/recovery.img|http://z-lab.me/cwm/recovery.img|http://z-lab.me/phiz/recovery.img" "Recovery flashing" "Make a choice" "Select preferred recovery:"
dfs download %RADIOBOXRESULT%
dfs show confirmation "FLASHING" "WARNING" "If you press OK, DroidFlasher will flash new recovery from %RADIOBOXRESULT%"
fastboot flash recovery recovery.img
Also I wont to make DFS repository, for various *.dfs files, reverting to stock for "all" device, flash cm12, and more, all with 1 click.

Also I wont to make DFS repository, for various *.dfs files, reverting to stock for "all" device, flash cm12, and more, all with 1 click.
 
Last edited:

Zorge.R

Senior Member
Feb 24, 2009
301
150
Backup and restore coding complete, and tested, worked over adb backup/restore.
Now app can backup and restore app with settings in few minutes and restore it, no reboot required.
Recommended option selected by default.
 
Last edited:

Zorge.R

Senior Member
Feb 24, 2009
301
150
Now application has build in binaries:
4268c03685ec439fb8c5e99075e39891.png


Not needed to set platform-tools directory, just press unpack binary and choose directory you want. Binary included for Mac, PC, Unix.
 
Last edited:

Zorge.R

Senior Member
Feb 24, 2009
301
150
r102:
- added *.DFS scripting and sideload
---
build will be available in few days.
---
about *.DFS scripting:
DFS (DroidFlasherScript) is simple way for batch job with fastboot, adb, or mfastboot.
*.dfs is plaint text file with simple structure, how it's work?
- press "run *.dfs" button and select dfs file
- select working directory (where application will search files), in next window.
- wait while all jobs done.

next example show revert to stock *.dfs file for moto x (plaint text file - xt1052revery.dfs. you can choose *.txt file as well):
Code:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
mfastboot flash system system.img
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear

you can added any adb commands, next show reboot to fastboot, before run job:
Code:
adb reboot bootloader
fastboot flash boot boot.img
fastboot flash recovery recovery.img
mfastboot flash system system.img

or you can do any other work:
Code:
adb devices -l
adb reboot bootloader
fastboot devices

also any other (fastboot/mfastboot/adb) command work, you can use it for batch work:
Code:
adb push /local /remote
fastboot oem unlock

Also for:
- "fastboot flash /local/file"
- "fastboot boot /local/file"
- "adb sideload /local/file"
- "adb push /local /remote"
- "adb pull /remote /local"
You can use in dfs file absolute path for local file or just name in working directory (DroidFlasher check if file exist with abs path, if not, will use file with this name from working directory.
For example, next code will show correctly *.dfs file, and work without issue:
Code:
fastboot flash boot boot.img
fastboot flash system /home/zorg/files/system.img
adb push my.apk /sdcard
adb push /home/zorg/downloads/mynext.apk /sdcard
boot.img and my.apk will used from working directory, system.img and mynext.apk with abs path.

from version r105, new command available - DFS DOWNLOAD, for example:
Code:
dfs download "http://files.z-lab.me/mobile/Moto X/recovery/openrecovery-twrp-2.8.5.0-ghost.img"
adb reboot bootloader
fastboot flash recovery openrecovery-twrp-2.8.5.0-ghost.img
On last stage of this dfs, you can use only name or full path to img.

I think to extend dfs scripting in feature:
Code:
dfs radiobox TWRP-2.8.5.0|PhilZ-Touch-6.58.7
fastboot flash RESULTS
dfs checkbox data|cache|dalvik
adb twrp wipe RESULTS

Also I wont to make DFS repository, for various *.dfs files, reverting to stock for "all" device, flash cm12, and more, all with 1 click.
 
Last edited:
  • Like
Reactions: eigen

Zorge.R

Senior Member
Feb 24, 2009
301
150
Will be awesome to see any comment about dfs, before build released.
Also to moderator, please move this thread if needed in more general forum, development, or applications, etc.
 
  • Like
Reactions: eigen

Zorge.R

Senior Member
Feb 24, 2009
301
150
r103:
- added code for recovery (openrecovery, twrp)
- flash zip
- backup
- restore
- wipe (cache/data/dalvik)
- more to come...
 
  • Like
Reactions: ejlmd

Top Liked Posts