I want to flash a custom Rom but my SD Slot is Brocken.
Can i flash with Flash tool?
If you are using TWRP? Send the ROM to the device.
Activate ADB sideload via TWRP and "adb sideload xxx-yyy-zzzz.zip/img" from CLI/CMD
Or, extract the image from zip/xz and "fastboot flash system xxx-yyy-zzz.img" from CLI/CMD
How to Flash GSIs through Fastboot
I'M NOT AT ALL RECOMMENDING Y'ALL TO TRY THIS OUT ! CUSTOM ROMS WILL COME SOON WHICH IS FAR BETTER THAN GSIs PLEASE FOLLOW THIS GUIDE AT YOUR OWN RISK !, THIS GUIDE MIGHT BE THE SAME FOR MOST DEVICES BUT IM SPECIFICALLY MAKING THIS FOR G40...
forum.xda-developers.com
KJOz68 said:
If you are using TWRP? Send the ROM to the device.
Activate ADB sideload via TWRP and "adb sideload xxx-yyy-zzzz.zip/img" from CLI/CMD
Or, extract the image from zip/xz and "fastboot flash system xxx-yyy-zzz.img" from CLI/CMD
How to Flash GSIs through Fastboot
I'M NOT AT ALL RECOMMENDING Y'ALL TO TRY THIS OUT ! CUSTOM ROMS WILL COME SOON WHICH IS FAR BETTER THAN GSIs PLEASE FOLLOW THIS GUIDE AT YOUR OWN RISK !, THIS GUIDE MIGHT BE THE SAME FOR MOST DEVICES BUT IM SPECIFICALLY MAKING THIS FOR G40...
forum.xda-developers.com
Click to expand...
Click to collapse
Thx, do know any Instructions. I tried that yesterday, but I don't really know how it works.
when i extract lineage 14.1 i have a boot.img and system.new.dat
is system dat the same like img?
Code:
C:\platform-tools>adb sideload lineage.zip
adb server version (39) doesn't match this client (41); killing...
* daemon started successfully
adb: sideload connection failed: no devices/emulators found
adb: trying pre-KitKat sideload method...
adb: pre-KitKat sideload connection failed: no devices/emulators found
C:\platform-tools>
It works, thx for help.
Excellent. Glad you've figured it out!!
Related
Can someone help me?
I was in CWM and formatted the /system and /data folders and I missed everything that was on my phone storage.
I have the CWM 6.0.4.3 and I can't mound USB storage by CWM to try to copy the flashable ROM.
:crying:
Use the sideload or the push command.
For the sideload, you have the option in recovery (if this option there isn't, flash the twrp recovery) and type from pc:
Code:
adb sideload name_of_rom.zip
Or try to push it:
Code:
adb push name_of_file.zip /sdcard/
Tell me if you have some prob
Can we do a hangout? I am coelhooliveirar
What mode do I need to set on the phone before doing this ADB command?
Guich said:
Use the sideload or the push command.
For the sideload, you have the option in recovery (if this option there isn't, flash the twrp recovery) and type from pc:
Code:
adb sideload name_of_rom.zip
Or try to push it:
Code:
adb push name_of_file.zip /sdcard/
Tell me if you have some prob
Click to expand...
Click to collapse
OK, I choose Install from Sideload
I heard the USB connection sound on my laptop but when I do the adb sideload command it says I have no device connected to ADB
Guich said:
Use the sideload or the push command.
For the sideload, you have the option in recovery (if this option there isn't, flash the twrp recovery) and type from pc:
Code:
adb sideload name_of_rom.zip
Or try to push it:
Code:
adb push name_of_file.zip /sdcard/
Tell me if you have some prob
Click to expand...
Click to collapse
Hey so i'm having the same problem just when i try to do add sideload it says "error:device not found". I've tried fastboot flashing it but then it my phone freezes and it never completes it. Can anyone help?
sideload with All-In-One Toolkit
The All In One Kit doesnt work too... :'(
xnobex said:
sideload with All-In-One Toolkit
Click to expand...
Click to collapse
SOLVED!!
First, repair the ADB Driver with the ADB Driver installer: http://adbdriver.com/downloads/
Put the phone on recovery
Choose install from Sideload
Send the ROM zip file to the Sideload.
Guich said:
Use the sideload or the push command.
For the sideload, you have the option in recovery (if this option there isn't, flash the twrp recovery) and type from pc:
Code:
adb sideload name_of_rom.zip
Or try to push it:
Code:
adb push name_of_file.zip /sdcard/
Tell me if you have some prob
Click to expand...
Click to collapse
Hello! I'm new to the community and I wanted to first of all say thank you for giving me some hope. After I typed in the:
"adb push my_file.zip /sdcard/"
It says
* daemon not running. starting it now on port 5037 *
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
Do you know how to fix this?
coelhooliveirar said:
SOLVED!!
First, repair the ADB Driver with the ADB Driver installer: http://adbdriver.com/downloads/
Put the phone on recovery
Choose install from Sideload
Send the ROM zip file to the Sideload.
Click to expand...
Click to collapse
Fala brother! Ia te ajudar mas já vi que conseguiu! hehehe
That´s it! espero que não tenha perdido muita coisa importante quando deu os Wipes...
Doshman said:
Hey so i'm having the same problem just when i try to do add sideload it says "error:device not found". I've tried fastboot flashing it but then it my phone freezes and it never completes it. Can anyone help?
Click to expand...
Click to collapse
Change your adb.exe
Use the link of the OP or this
simpiemair said:
Hello! I'm new to the community and I wanted to first of all say thank you for giving me some hope. After I typed in the:
"adb push my_file.zip /sdcard/"
It says
* daemon not running. starting it now on port 5037 *
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
Do you know how to fix this?
Click to expand...
Click to collapse
Fix adb
Fix the ADB using this utility on your computer: ADB Driver Installer
http://adbdriver.com/downloads/
Guich said:
Change your adb.exe
Use the link of the OP or this
Fix adb
Click to expand...
Click to collapse
Guich said:
Change your adb.exe
Use the link of the OP
Fix adb
Click to expand...
Click to collapse
Hey guys! If anyone was wondering I fixed it. Not through ADB but I used an older version of the HTC Tool Kit. Version 1. Push it through the thing there and it might work for you.
hello everyone
i have tried to install the twrp on my m7 but when i use the command ""fastboot flash recovery name.img"
it says
fastboot flash recovery twrp.img
error: cannot load 'twrp.img'
i also have some problem when i use other command like "adb reboot bootloader"
adb server is out of date. killing...
ADB server didn't ACK
* failed to start daemon *
error:
can someone help me pleas ?
1. download latest adb/fastboot drivers/apps/whatchamacallits.
2. are you in the correct path of where the .img file is?
3. Has your phone been prepped to accept a custom recovery?
93zx7 said:
1. download latest adb/fastboot drivers/apps/whatchamacallits.
2. are you in the correct path of where the .img file is?
3. Has your phone been prepped to accept a custom recovery?
Click to expand...
Click to collapse
1 i cant find it I looked in a lot of forum
I have downloaded and installed the adb setup 1.4.3 I thought it was the latest version
2 I open the cmd in the folder where is my img
Should I put this folder somewhere speciale ?
I have watched a lot of tutorial on YouTube and no one's was telling me to put it in a special place
3 yes my phone is debugged and the bootloader is unlocked and I have a good cable
ADB Drivers: https://adb.clockworkmod.com/
No special location needed. Try redownloading the img file and reflashing after installing the adb drivers from CWM website
sorry if this is the wrong place...this is my problem
I got an old tablet off someone that i want to bring back to life, its an ares 8, model #NXA8QC116. unfortunately the sd card slot is broken so using it is out of the question..I have TWRP 3.0.2 on it and im trying to flash SU to it via "adb sideload."
when in system using "adb devices" it shows the device as well as in recovery mode, but when i try to use the sideload feature in TWRP i get a "ADB sideload failed no devices/emulators found error..if i try "adb devices here it does not show a device..im not sure if this is the problem. Also i cant FLASH SU BECAUSE IT IS NOT SHOWING UP IN twrp nor are any other zips which ive read is because of the encryption is still enabled? i have the disable encryption .zip but cant flash that eaither due to my same problem of .zips not showing up.
All the device drivers and adb+fastboot are setup properly as far as i can tell but i get the error no matter what i do.
my questions are..
1. is there and OTHER method i can use to flash SU.zip or the decryption.zip file without the use of an SD card?
2. does anyone have any ideas on how i can go about fixing the no devices/emulators found error while in sideload mode?
thank you very much for your anticipated reply!
1. is there any OTHER way to flash SU using
Things are changing with the advent of project treble and seamless updates. OnePlus will no longer release ROMs flashable via recovery (either stock or twrp) because is no more needed. The updates will be done on the slot not used for example if you are using slot a the update will be installed on slot b and the slot b will be set as default. If you brick and you are in bootloop how you can restore the rom? You can't with Stock ROM you have, because the zip can be only installed via Update Engine, so what can you do? Flash a stock rom via fastboot. I have extracted all images from the stock zip and i have made a new zip with the Fastboot ROM with a flash-all.bat included. This will work only if your bootloader is unlocked. This will erase all your data and will wipe your internal storage.
HOW TO FLASH
This version is only for not branded devices
Download the zip;
Unpack the zip in a folder;
Reboot the OnePlus 6T in fastboot mode (Power and volume-);
Connect the OnePlus 6T to PC;
Run flash-all.bat flasher you need;
Wait until the process end;
The phone will automatically reboot.
FLASHER ADVANCED GUIDE
flash-all-partitions-fastboot.bat : this .bat will flash all possible partitions through fastboot (Except persist) , there are some criticals partitions that can't be flashed through fastboot;
flash-only-persist.bat : this .bat will flash only persist partition in fastboot mode (This is good for people that have problems with sensor);
flash-all-partitions-recovery-criticals.bat : this .bat will boot the twrp and will flash criticals partitions, use this carefully;
flash-system-boot-vendor.bat : this .bat is the same of older flash-all.bat and so it will flash only vendor, system and boot;
flash-all-partitions.bat : this .bat will run flash-all-partitions-fastboot.bat , then flash-only-persist.bat and then flash-all-partitions-recovery-criticals.bat .
Now usually the one needed is only the first "flash-all-partitions-fastboot.bat" but if you are badly bricked i recommend to use flash-all-partitions.bat .
DOWNLOAD
All roms on AFH: https://www.androidfilehost.com/?w=files&flid=284914
All roms on Sourceforge: https://sourceforge.net/projects/fastbootroms/files/OnePlus 6T
BRANDED PHONE
GUIDE: https://forum.xda-developers.com/on...-t-mobile-oneplus-6t-to-t3865966/post78131430
T-Mobile OnePlus 6T Internationa ROM: https://www.androidfilehost.com/?fid=11410963190603845445
MANUAL FLASH: Windows - OSX - Linux
If you want to manual flash these roms these are the commands (you need to extract images.zip before proceed)
Fastboot Partitions:
Code:
fastboot flash aop_a aop.img
fastboot flash aop_b aop.img
fastboot flash bluetooth_a bluetooth.img
fastboot flash bluetooth_b bluetooth.img
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
fastboot flash dsp_a dsp.img
fastboot flash dsp_b dsp.img
fastboot flash dtbo_a dtbo.img
fastboot flash dtbo_b dtbo.img
fastboot flash fw_4j1ed_a fw_4j1ed.img
fastboot flash fw_4j1ed_b fw_4j1ed.img
fastboot flash fw_4u1ea_a fw_4u1ea.img
fastboot flash fw_4u1ea_b fw_4u1ea.img
fastboot flash modem_a modem.img
fastboot flash modem_b modem.img
fastboot flash oem_stanvbk oem_stanvbk.img
fastboot flash qupfw_a qupfw.img
fastboot flash qupfw_b qupfw.img
fastboot flash storsec_a storsec.img
fastboot flash storsec_b storsec.img
fastboot flash system_a system.img
fastboot flash system_b system.img
fastboot flash vbmeta_a vbmeta.img
fastboot flash vbmeta_b vbmeta.img
fastboot flash vendor_a vendor.img
fastboot flash vendor_b vendor.img
fastboot flash LOGO_a LOGO.img
fastboot flash LOGO_b LOGO.img
If you need also persist partition, this is the command:
Code:
fastboot flash persist persist.img
Criticals Partitions, for these you need to boot the TWRP:
Code:
fastboot boot TWRP.img
When you are in TWRP you need to run these commands to push and flash all criticals partitions:
Code:
adb push abl.img /sdcard/abl.img
adb shell dd if=/sdcard/abl.img of=/dev/block/bootdevice/by-name/abl_a
adb shell dd if=/sdcard/abl.img of=/dev/block/bootdevice/by-name/abl_b
adb push cmnlib.img /sdcard/cmnlib.img
adb shell dd if=/sdcard/cmnlib.img of=/dev/block/bootdevice/by-name/cmnlib_a
adb shell dd if=/sdcard/cmnlib.img of=/dev/block/bootdevice/by-name/cmnlib_b
adb push cmnlib64.img /sdcard/cmnlib64.img
adb shell dd if=/sdcard/cmnlib64.img of=/dev/block/bootdevice/by-name/cmnlib64_a
adb shell dd if=/sdcard/cmnlib64.img of=/dev/block/bootdevice/by-name/cmnlib64_b
adb push devcfg.img /sdcard/devcfg.img
adb shell dd if=/sdcard/devcfg.img of=/dev/block/bootdevice/by-name/devcfg_a
adb shell dd if=/sdcard/devcfg.img of=/dev/block/bootdevice/by-name/devcfg_b
adb push hyp.img /sdcard/hyp.img
adb shell dd if=/sdcard/hyp.img of=/dev/block/bootdevice/by-name/hyp_a
adb shell dd if=/sdcard/hyp.img of=/dev/block/bootdevice/by-name/hyp_b
adb push keymaster.img /sdcard/keymaster.img
adb shell dd if=/sdcard/keymaster.img of=/dev/block/bootdevice/by-name/keymaster_a
adb shell dd if=/sdcard/keymaster.img of=/dev/block/bootdevice/by-name/keymaster_b
adb push xbl.img /sdcard/xbl.img
adb shell dd if=/sdcard/xbl.img of=/dev/block/bootdevice/by-name/xbl_a
adb shell dd if=/sdcard/xbl.img of=/dev/block/bootdevice/by-name/xbl_b
adb push xbl_config.img /sdcard/xbl_config.img
adb shell dd if=/sdcard/xbl_config.img of=/dev/block/bootdevice/by-name/xbl_config_a
adb shell dd if=/sdcard/xbl_config.img of=/dev/block/bootdevice/by-name/xbl_config_b
REMEMBER
"Invalid sparce file format at header magic" is not an error, you need to wait a bit when you see that string, just wait.
These ROMs can't be used to update or downgrade your phone but just to restore your phone, so don't use them to come back to oreo or to update from oreo to pie.
If you want to rebrand your phone from HydrogenOS to OxygenOS you can follow this guide: Rebrand Guide
If you want you can use also my tool to flash Factory Images, unlock bootloader, flash twrp or to understand if the device is recognized: https://toolaio.tk/
Thanks to @SaiBork for first time tested
If you got some problems like write error or no partition, check this: https://forum.xda-developers.com/showpost.php?p=76658555&postcount=34
Thanks to @Dark Nightmare for T-Mobile Rom Version
DONATE LINK
If you want to support this and others my projects please consider making a donation, thanks.
If you are unable to use pools or moneybox, you can also make a normal donation, all private donations will be added in the moneybox:
Thanks Mister :good:
Great work, thx
This is great work. Thanks!
If anyone has the T-Mobile firmware or OTA captured, please post it.
Would it be wise to extract the zip to the 6T prior to rooting just in case something goes wrong?
shizat63 said:
Would it be wise to extract the zip to the 6T prior to rooting just in case something goes wrong?
Click to expand...
Click to collapse
This fastboot rom are completely stock rom, not modified
mauronofrio said:
This fastboot rom are completely stock rom, not modified
Click to expand...
Click to collapse
Right.
So before rooting the device, would it be good to copy the images from this zip to a dir on the 6T in case something goes wrong with the rooting process? For example if Magisk or TWRP mess something up, and the 6T is in a bootloop.
Or are the images in the zip only for flashing from your PC to the 6T? So it would be of no use to have the images sitting on the 6T as a backup.
Hello. after flashing with flash-all.bat, my 6T just boots to the bootloader unlocked warning and stays there. I don't know what to do next.
EDIT: Nevermind, after trying again it worked.
shizat63 said:
Right.
So before rooting the device, would it be good to copy the images from this zip to a dir on the 6T in case something goes wrong with the rooting process? For example if Magisk or TWRP mess something up, and the 6T is in a bootloop.
Or are the images in the zip only for flashing from your PC to the 6T? So it would be of no use to have the images sitting on the 6T as a backup.
Click to expand...
Click to collapse
Actually there is not a twrp that support decryption so if you also have the images on the phone you can't flash it in twrp mode. At this moment these roms can be only flashed through fastboot with a pc
Seoyoon said:
Hello. after flashing with flash-all.bat, my 6T just boots to the bootloader unlocked warning and stays there. I don't know what to do next.
EDIT: Nevermind, after trying again it worked.
Click to expand...
Click to collapse
Perfect:good:
thank you thank you thank you OP! Nearly bricked my phone while trying to install root (something got messed up with TWRP) and I couldn't even get out of bootloader into recovery. I just got my phone a few hours ago, that would have been sad
nhshah7 said:
thank you thank you thank you OP! Nearly bricked my phone while trying to install root (something got messed up with TWRP) and I couldn't even get out of bootloader into recovery. I just got my phone a few hours ago, that would have been sad
Click to expand...
Click to collapse
Perfect:good:
If you want to support this and others my projects please consider making a donation, thanks.
After using flash-all.bat I'm getting the "Your device is corrupt" red error message on boot. I can skip by pressing power twice and phone boots normally.
I see people with 6 had to use MSM download tool to get rid of the error.
Is there any solution for 6T?
nhshah7 said:
thank you thank you thank you OP! Nearly bricked my phone while trying to install root (something got messed up with TWRP) and I couldn't even get out of bootloader into recovery. I just got my phone a few hours ago, that would have been sad
Click to expand...
Click to collapse
Just for the sake of your sanity in the future, if you can get to bootloader and device files are available, you can always get it up and running. I learned that very quickly way back in the day
iaTa said:
After using flash-all.bat I'm getting the "Your device is corrupt" red error message on boot. I can skip by pressing power twice and phone boots normally.
I see people with 6 had to use MSM download tool to get rid of the error.
Is there any solution for 6T?
Click to expand...
Click to collapse
Only msm tool i think
Well same situation here got boot loop trying to root then after install using flashall.bat now I can't get a VOLTE and now I complete lost signal but when I swap my sim card to sim slot 2 everything work...kinda weir but does anyone know how to fix it?
_BГ@ckθut said:
Well same situation here got boot loop trying to root then after install using flashall.bat now I can't get a VOLTE and now I complete lost signal but when I swap my sim card to sim slot 2 everything work...kinda weir but does anyone know how to fix it?
Click to expand...
Click to collapse
Did you have a branded version?
mauronofrio said:
Did you have a branded version?
Click to expand...
Click to collapse
Oh I has unlock one from on plus website and use it on Verizon...is that what u mean...sorry I'm new to OP device
Edit: I try to do fastboot flash modem A and B also factory reset but seem not work...
_BГ@ckθut said:
Oh I has unlock one from on plus website and use it on Verizon...is that what u mean...sorry I'm new to OP device
Click to expand...
Click to collapse
Branded version are different, they have a particoular partitions for volte, i think the only.method to solve your problem is to find another person with the same branded device and make a partitions backup that you can restore
mauronofrio said:
Branded version are different, they have a particoular partitions for volte, i think the only.method to solve your problem is to find another person with the same branded device and make a partitions backup that you can restore
Click to expand...
Click to collapse
So how do I make that? Do I need provide any information or anything?
Hello,
I purchased my Nubia Red Magic 3 CN ROM today. Before doing root, I'd like to backup boot, system from the phone unit itself using
Code:
adb pull
During on fastboot, connected on PC, I tried the command
Code:
adb shell ls /dev/block/bootdevice/by-name/*
but it says
Code:
error: no devices/emulators found
I just tried the command thinking it will work on most android phones.
what
Code:
adb shell ls
should I use?
I would just unpack the CN Rom boot, recovery, and system.img all there. Global ROM you have to for we have no Twrp or other custom recovery, for which one has to patch boot.img with Magisk then flash over in fastboot to root.
SuperDroidMe said:
I would just unpack the CN Rom boot, recovery, and system.img all there. Global ROM you have to for we have no Twrp or other custom recovery, for which one has to patch boot.img with Magisk then flash over in fastboot to root.
Click to expand...
Click to collapse
True I read that also somewhere. But for system, you need to unpack the system.new.dat.br
Found some helpful threads here on xda on how to unpack it.
The first one is brotli by trzpro
https://forum.xda-developers.com/android/help/tut-how-to-convert-dat-br-to-dat-t3723926
after unpacking it, you need to convert it to img
https://forum.xda-developers.com/an.../how-to-conver-lollipop-dat-files-to-t2978952
replying here for easy future reference