[Q] Order of operations...? (root + fix) - ONE Q&A, Help & Troubleshooting

Quick background: I had a battery status software issue. Opo tech support gave me a fix for it. The fix wiped the phone and removed root access. I knew it would wipe the phone but they told me that it would not remove root access, and nothing they said after that point was helpful. I am able to get root access again, but am fairly certain the wipe involved in unlocking the bootloader removed the fix they gave me. What I would like to know is how to apply the fix while maintaining root access. Or to root after applying it without removing it.
I am on the latest ota update, 11.0-XNPH05Q and only have the fix applied currently.
If anyone has a good idea of what I need to alter to get this working I would greatly appreciate the input.
It isn't as simple as removing the "oem lock" command is it?
The fix consisted of 2 batch files:
Batch file 1:
MENTION=279333]ECHO[/MENTION] off
fastboot oem unlock
fastboot reboot-bootloader
sleep 5
Batch file 2:
MENTION=279333]ECHO[/MENTION] off
echo ######### This patch is Created by ONEPLUS Technical Support. #######
echo ###### This patch should only be used for ONEPLUS ONE 64GB Global Version. ######
@ECHO off
fastboot erase persist
fastboot flash persist persist.img
fastboot erase reserve4
fastboot flash reserve4 reserve4.img
fastboot erase oppostanvbk
fastboot flash oppostanvbk static_nvbk.bin
fastboot flash boot boot.img
fastboot flash userdata userdata_64g.img
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
fastboot flash modem NON-HLOS.bin
fastboot flash sbl1 sbl1.mbn
fastboot flash dbi sdi.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot flash rpm rpm.mbn
fastboot flash tz tz.mbn
fastboot flash LOGO logo.bin
fastboot oem lock
fastboot reboot
echo It is done Now
pause

The fix hasn't actually done anything apart from a simple erase and reflash of the partitions on your phone. Unlocking the bootloader again won't remove the fix. The wipe that occurs during the bootloader unlock performs a factory reset, which basically just erases any user data, not system data or any other partition on the device. So go ahead and unlock again, but, you will lose your user data in the process obviously.

Wonderful, thanks for the help!

Related

OnePlus one stuck on android screen

Hello everyone,
I was attempting to downgrade to 25R from the latest update. I was rooted and and TWPR and was following the guide from this link: http://forum.xda-developers.com/oneplus-one/orig-development/discussion-cyanogenmod-11s-t2840305
I had backups but everything got erased and I have nothing to flash from internal storage. I no longer have a custom recovery or a root or an OS on the phone and thats why its stuck at the android screen.
Can anyone help me with this? I would like to put the phone back to 25R.
UPDATE: I was able to install custom recovery. I don't know what to do from this point. I have a 25R zip file but when I try to flash that, it fails.
Thanks,
Sal
I take it you can get to fastboot (bootloader) mode? If so, it'll be straight-forward doing it that way.
Get the CM11S zip you want and extract the contents. Put the OPO into fast boot mode and open your command line.
Then do each command manually (copy/paste):
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
fastboot flash modem NON-HLOS.bin
fastboot flash sbl1 sbl1.mbn
fastboot flash dbi sdi.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot flash rpm rpm.mbn
fastboot flash tz tz.mbn
fastboot flash LOGO logo.bin
fastboot reboot
Source: http://forum.xda-developers.com/showthread.php?t=2770535
Worked for me and others when I was flashing in and out of ROMs.

Help please

So I am an idiot, and tried to tidy up my phones storage and moved all of my folders onto my desktop including backups and zips of other roms, and then like an idiot did a full wipe so now I have no OS. I can still get into recovery, is there a way to move my backups onto my phone without adb? adb has never played well on my computer so I have no idea what to do.
Flash stock with fastboot
Sent from my Oneplus One
You're gonna have to get adb working at some point mate, it's an absolute must. Why not mount an sd card via an OTG cable with TWRP and then you can flash from that.
Transmitted via Bacon
Makrilli said:
Flash stock with fastboot
Sent from my Oneplus One
Click to expand...
Click to collapse
Yeah just get this: <http>://dist01.slc.cyngn.com/factory/bacon/cm-11.0-XNPH33R-bacon-signed-fastboot.zip and unpack it to <directory>
Boot the phone with power+VolumeUP
cd with your terminal to <directory> and ensure, that fastboot is in your PATH environment and run:
Code:
fastboot flash boot boot.img
fastboot flash userdata userdata_64G.img
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
fastboot flash modem NON-HLOS.bin
fastboot flash sbl1 sbl1.mbn
fastboot flash dbi sdi.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot flash rpm rpm.mbn
fastboot flash tz tz.mbn
fastboot flash LOGO logo.bin
fastboot reboot
OR, just follow the guide in my signature as I've scripted it all so you don't have to type everything in

plz help I'm stuck at fastboot

Can anyone plz help me?
Searched all over the web
Can't find any solution
Recently I mistakenly flashed d802 ROM on my d800
Now I'm stuck at fastboot
And when I try to flash boot.IMG or laf.IMG
Fastboot sends the IMG and says OKAY
But writing process never ends :\
What shud I do?
sayedmurteza.muttahary said:
Can anyone plz help me?
Searched all over the web
Can't find any solution
Recently I mistakenly flashed d802 ROM on my d800
Now I'm stuck at fastboot
And when I try to flash boot.IMG or laf.IMG
Fastboot sends the IMG and says OKAY
But writing process never ends :\
What shud I do?
Click to expand...
Click to collapse
First try
fastboot devices
it shoul give you
? fastboot
thenk try fastboot reboot
If phone reboots you are good to go.
then type
Code:
fastboot erase recovery
then flash your factory images(the D800 firmware you have installed when your phone is working condition) one by one.
download these files here
aboot
boot
dbi
laf
rpm
sbl1
tz
rename them as friendly name
like
11-laf.img to laf.img
4-aboot.img to aboot.img
and so on
use commands like this on by one
Code:
fastboot erase aboot
fastboot flash aboot aboot.img
fastboot erase boot
fastboot flash boot boot.img
fastboot erase dbi
fastboot flash dbi dbi.img
fastboot erase laf
fastboot flash laf laf.img
fastboot erase rpm
fastboot flash rpm rpm.img
fastboot erase sbl1
fastboot flash sbl1 sbl1.img
fastboot erase tz
fastboot flash tz tz.img
then
fastboot reboot
hold power button and completely turn off your device.
then pres Volume up and insert the usb cable
your phone should boot up in download mode.
then
Follow this guide
go with kitkat one
Let me know what you get
hack_er4 said:
First try
fastboot devices
it shoul give you
? fastboot
thenk try fastboot reboot
If phone reboots you are good to go.
then type
Code:
fastboot erase recovery
then flash your factory images(the D800 firmware you have installed when your phone is working condition) one by one.
download these files here
aboot
boot
dbi
laf
rpm
sbl1
tz
rename them as friendly name
like
11-laf.img to laf.img
4-aboot.img to aboot.img
and so on
use commands like this on by one
Code:
fastboot erase aboot
fastboot flash aboot aboot.img
fastboot erase boot
fastboot flash boot boot.img
fastboot erase dbi
fastboot flash dbi dbi.img
fastboot erase laf
fastboot flash laf laf.img
fastboot erase rpm
fastboot flash rpm rpm.img
fastboot erase sbl1
fastboot flash sbl1 sbl1.img
fastboot erase tz
fastboot flash tz tz.img
then
fastboot reboot
hold power button and completely turn off your device.
then pres Volume up and insert the usb cable
your phone should boot up in download mode.
then
Follow this guide
go with kitkat one
Let me know what you get
Click to expand...
Click to collapse
First thanks for replying
I tried fastboot devices and it gave me ? fastboot and it's good
but when i try fastboot reboot it says rebooting... and device doesn't reboot :\
Any Idea?
sayedmurteza.muttahary said:
First thanks for replying
I tried fastboot devices and it gave me ? fastboot and it's good
but when i try fastboot reboot it says rebooting... and device doesn't reboot :\
Any Idea?
Click to expand...
Click to collapse
this mean fastboot is not working for you.
please check drivers and check device manger
check for your device what does it say?

SIM not working after fastboot commands!!!

Hello guys,
on a One Plus One of a friend I insert in the fastboot this 2 codes:
fastboot erase modemst1
fastboot erase modemst2
because he had problems with the gps and I fixed this problem on my Moto X in this way. But after i did this his phone cannot read the sim card. I tried to reboot and to hard reset but the problem is still there. He has Cm13 no-rooted and bootloader is still locked. How can i fix this?
Welp, this is one of the partitions used to store IMEI and Modem of the device. You can try flashing a modem http://forum.xda-developers.com/oneplus-one/general/firmware-modem-oneplus-one-lollipop-t3300907 or you will have to search on the internet and find those 2 partitions from someone who has them backed up.
//edit// i found something here its only modemst1 tho http://forum.xda-developers.com/oneplus-one/general/guide-imei-efs-backup-t3252618
If i backup the file from another phone maybe the IMEI can be changed?
Jekodark said:
Hello guys,
on a One Plus One of a friend I insert in the fastboot this 2 codes:
fastboot erase modemst1
fastboot erase modemst2
because he had problems with the gps and I fixed this problem on my Moto X in this way. But after i did this his phone cannot read the sim card. I tried to reboot and to hard reset but the problem is still there. He has Cm13 no-rooted and bootloader is still locked. How can i fix this?
Click to expand...
Click to collapse
You can try unlocking his bootloader using
Code:
fastboot oem unlock
because you can't flash anything to the phone while its unlocked
Backup his stuff in internal storage (pics, vids etc) to a PC before you do the bootloader unlock
Do the commands above again
Code:
fastboot erase modemst1
fastboot erase modemst2
Then fastboot flash a modem, c6. 241
https://www.androidfilehost.com/?fid=24052804347825946
Extract and just copy paste the below commands, or alternatively use TWRP to flash it
Code:
fastboot flash modem NON-HLOS.bin
fastboot flash sbl1 sbl1.mbn
fastboot flash dbi sdi.mbn
fastboot flash rpm rpm.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot flash tz tz.mbn
fastboot flash LOGO logo.bin
fastboot flash oppostanvbk static_nvbk.bin
Reboot and see if the SIM issue persists
I solved flashing the oxygen!

Downgrading the bootloader

Hi guys!
I have got the XT1621 and i have a lot of lag when i flash a nougat firmware through fastboot
But when i install marshmallow (23.4) and i update by ota to nougat (-14) it is very smooth!!
The problem is that i updated by induced ota from -14 to -14-4 nougat
The real problem is that the bootloader updated to .05 version and i cant flash marshmallow and update by ota to -14 because it would end in hardbrick!!
What can i do to downgrade??
If i hardbricked my moto g4 with intention, could i flash the -14 bootloader blankflash file? It could be a way to downgrade the bootloader
Any other idea of what can i do?
I recall you can downgrade to MM if you wish, just do not flash the GPT and bootloader partitions. Leave them as they are. That way, you'll avoid a hard brick (but you'll need to flash the latest firmware to re-lock your device).
Of course, you'll need an unlocked bootloader for this to work, and the appropriate stock ROM (a copy is here https://mirrors.lolinet.com/firmware/moto/athene/official/RETAIL/) - I see XT1622 MPJ24.139-23.4 which matches what you had before (though I strongly recommend double checking it's the right firmware).
Then follow this guide to downgrade: https://forum.xda-developers.com/moto-g4-plus/how-to/guide-downgrade-to-marshmallow-nougat-t3515961
If you're unable to download the script that's mentioned in the guide, you may try the following fastboot commands (note the absence of the locking, GPT and bootloader commands).
Code:
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
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 reboot
This procedure will wipe your device and should revert your device to an MM baseband and system. As always, back up your data, move it off your device until you're done flashing.

Categories

Resources