Related
Hi all,
found out how to root this device!
Here the steps:
Make sure you have fastboot installed on your computer: https://wiki.cyanogenmod.org/w/Fastboot
download supersu zip from here
https://download.chainfire.eu/696/supersu/
save it to your external sdcard
enable developer options (settings - about - click mutliple times on the build number).
enable OEM unlock in the developer options settings on the device.
reboot Wileyfox Swift into fastboot mode: with the device powered down, hold the Volume Up and connect USB
to unlock the boot loader, WARNING!!! This wipes your user data!!!
on your computer type
Code:
fastboot oem unlock
fastboot -i 0x2970 oem unlock-go
fastboot oem unlock-go
download latest recovery image from here
http://download.cyanogenmod.org/?device=crackling
to boot the custom recovery, on your computer type
Code:
fastboot boot <name_of_recovery>.img
OR
install recovery
Code:
fastboot flash recovery <name_of_recovery>.img
and reboot into recovery manually (remove and reinstall battery, hold volume down and power buttons.
install supersu update zip from recovery menu (choose zip from extenal SD)
reboot and enjoy root access
Thanks
I went a step forward and installed the CM nightly.
mermigas said:
Thanks
I went a step forward and installed the CM nightly.
Click to expand...
Click to collapse
Does the camera work? I tried one of the first nightlies but the camera crashed, so this was no option for me.
olli_o said:
Does the camera work? I tried one of the first nightlies but the camera crashed, so this was no option for me.
Click to expand...
Click to collapse
No problem with camera for me.
All works fine and smooth
No bugs nored
olli_o said:
4) reboot directly into recovery. Normal system boot reinstalls stock recovery.
5) install supersu update zip from recovery menu
Click to expand...
Click to collapse
When in recovery I press apply update and sd card, before i've even selected supersu, which returns:
Install failed
Installation aborted
Installation aborted
any ideas?
monethys said:
When in recovery I press apply update and sd card, before i've even selected supersu, which returns:
Install failed
Installation aborted
Installation aborted
any ideas?
Click to expand...
Click to collapse
This is stange. I modified the instructions a little, does it also happen if you follow these steps?
OTA?
Will I be able to update my phone (ota?) after the root?
I'm fine with having to reroot
rebane2001 said:
Will I be able to update my phone (ota?) after the root?
I'm fine with having to reroot
Click to expand...
Click to collapse
Incremental auto-update won't work rooted. But you can manually update. See here
Followed instructions and now have a rooted wileyfox swift thank you
olli_o said:
Hi all,
found out how to root this device!
Here the steps:
download supersu zip from here
save it to your external sdcard
enable developer options (settings - about - click mutliple times on the build number).
enable OEM unlock in the developer options settings on the device.
reboot Wileyfox Swift into fastboot mode: with the device powered down, hold the Volume Up and connect USB
to unlock the boot loader, WARNING!!! This wipes your user data!!!
on your computer type
Code:
fastboot oem unlock
fastboot -i 0x2970 oem unlock-go
fastboot oem unlock-go
download latest recovery image from here
to boot the custom recovery, on your computer type
Code:
fastboot boot <name_of_recovery>.img
install supersu update zip from recovery menu (choose zip from extenal SD)
reboot and enjoy root access
Click to expand...
Click to collapse
In case anyone has a similar issue:
I could unlock. I could install the recovery. But SuperSU was coming up with signature errors and wouldn't install. I discovered that this was because the recovery was being overwritten (I flashed it to the device because "fastboot boot..." was not working).
I could not get the device to flash the recovery then reboot to recovery without it going into normal boot first and rewriting the recovery so that I would not be able to install SU.
The solution I found for this was to take the back of the phone off.
Flash the recovery: fastboot flash recovery "recovery file name".img
Then just pull the battery.
Hold the volume down when you put the battery back in and launch the device still holding volume down.
Remember to release the power button once you see fox logo or you'll reboot again.
Now I installed SuperSU without a hitch and all is good.
Hope that helps anyone who is stuck.
Links removed from quote so as not to trigger spam bot.
Help
olli_o said:
Hi all,
found out how to root this device!
[*]download latest recovery image from here
/download.cyanogenmod.org/?device=crackling[/
[/LIST]
Click to expand...
Click to collapse
All the list from here is a nightly build. Can you give the stable mod? I'm noob so can follow it. it is very hard for me to make it work I'm still working to install the fast boot for mac. I found this:
bash <(curl -s htps:/raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh)
It seems to work when i check this command:
adb devices
BUT NOT SURE if this is safe.
Please provide link for recovery or rom which i can follow using your guide. There are many in the link above but which one is stable and i can use that all the of the system functioning.
Thank you in advance.
I hope this will help someone figure things out w/ what i did... LOL
Thanks ALL. Basically the post above helped to root my phone but its been hard for me and as mentioned in my previous post, I'm noob. So here is what i did after the fastboot issue and continue on even though i didn't know if the install is safe since my OS X was able to detect the device/phone as mentioned above.
1. On fastboot, i just use "fastboot devices" to verify my phone is connected. This command did not work "fastboot -i 0x2970 devices"
2. Then use, "fastboot oem unlock-go" and i waited about 20sec as the terminal returned that message and then it was confirmed unlocked. These commands did not work "fastboot oem unlock, fastboot -i 0x2970 oem unlock-go" my terminal just froze and did nothing.
3. Then i use this to check if it is unlocked "fastboot oem device-info"
4. Using the link on downloading the recovery, i just click all of upper part with the picture and found the .img file see below:
Swift
Wileyfox - crackling
Download Latest Nightly (this is .zip file)
Download Latest Nightly Recovery (this is the .img file which i used)
Device Wiki 2016-01-07
5. update: i did erase recovery "fastboot erase recovery"
i use two commands and both works "fastboot flash recovery cm-12.1-20160107-NIGHTLY-crackling-recovery.img"
(here is the terminal msg: target reported max download size of 268435456 bytes
sending 'recovery' (23110 KB)...
OKAY [ 0.727s]
writing 'recovery'...
OKAY [ 0.387s]
finished. total time: 1.114s)
and this "fastboot boot cm-12.1-20160107-NIGHTLY-crackling-recovery.img"
(here is the terminal msg:downloading 'boot.img'...
OKAY [ 0.727s]
booting...
OKAY [ 0.186s]
finished. total time: 0.913s)
(I LEARNED THE HARD WAY THE .img file must be IN THE SAME DIRECTORY of the fastboot - but PLEASE ASK THE EXPERTS and don't copy if i did something wrong)
6. Next should be the auto reboot that suppose to happen but it didn't. So i took " k_web9000" advice and just pull the battery off (i didn't have any choice its not doing anything... heheh).
6. To boot in Recovery - i followed this :With the device powered down, hold the Volume Down and Power buttons.
7. Next should install the SuperSU.zip file (Please make sure to use chrome since my Safari auto unzip the file and wasted so much of my time troubleshooting... i mean hours retracing my steps ...funny) Just update it and locate the sdcard and look for the .zip file
8. Then it just rebooted after the install and on the boot screen i saw 4 files that where updated.
9. Finally, i checked for the root by downloading root checker and it was verified rooted.
Now you have been noobified
A SYSTEM UPDATE POP-UP 12.1 YOG7DAS2FI Incremental about 48MB BUT DIDNT TOUCH IT, What do i need do? Can i update?
PLEASE LET ME KNOW HOW TO UPDATE TO THE LATEST ONE WITHOUT LOSING MY ROOT.
OR HOW TO INSTALL CYANOGENMOD easy way please . i can see CYANOGEN OS 12.1-YOG4PAS33J on my device
PLEASE HELP. THANKS
You cannot update whilst you are rooted.
If you want to have the latest then CM Nightly is your best option.
How to
https://wiki.cyanogenmod.org/w/Install_CM_for_crackling
How?
mermigas said:
You cannot update whilst you are rooted.
If you want to have the latest then CM Nightly is your best option.
How to
]https://wiki.cyanogenmod.org/w/Install_CM_for_crackling]
Click to expand...
Click to collapse
Thanks for the info and link!! Awesome!
" 4. In ClockworkMod Recovery, use the physical volume buttons to move up and down. On most devices, the power button is used to confirm a menu selection, but for some devices a physical home key acts as a selector. Some devices have touch enabled ClockworkMod Recovery, in which case you may be able to swipe to, or touch, menu selections.
5. Optional (Recommended): Select backup and restore to create a backup."
In the link you gave, how did they get the clockworkmod recovery? I downloaded & installed it in the google store but it say can not use due to the device not listed. All icons are grayed and i also tried TWRP same issue.
The link also pointed to the nightly build, is there a stable release, doesn't need much update, i can use daily and without the hiccups.
Lastly, if there is no clockworkmod, how do you get it backup as recommended in the link you gave and as quoted above.
Many thanks in advance.
There is only official CM recovery and back up is not possible. Use Titaniumfor back up. You can also use twrp recovery posted in general section. Nightlies are more than stable.
Something is not right...
mermigas said:
You cannot update whilst you are rooted.
If you want to have the latest then CM Nightly is your best option.
How to
https://wiki.cyanogenmod.org/w/Install_CM_for_crackling
Click to expand...
Click to collapse
i was afraid of updating coz my data might be deleted but it seems the OTA update didn't delete my data. My version now is 13.0-20160127-NIGHTLY-crackling but the downside is the google play is not present anymore. i will try install the gapp again.
i don't know if i did it right, some say you need TWRP but it works just fine w/o TWRP in updating via OTA. I also try to install TWRP but i can't get it to work, so i can backup my phone. Last option is what you suggested the titanium backup.
Please let me know if i did right and the gapp if this always going to be installed again. i will be using the same gapp file and report what happen. thanks
Report:
i tried to install gapp file but i didn't use the previous gappfile since the it needs for 6.0 android and i used arm64 but gave error:70 which is the space issue via emulated option. So i go to cyangenmod recovery>apply update> from sdcard1 and "install failed - installation aborted". I can't even see the files on my sdcard. How do you now fix this?
Also can i have the right TWRP file and instruction for Wileyfox Swift PLEASE? thanks
Something went wrong! Please help
I can't to get the gapp to installed.
I wipe everything using the cm recovery and i also was able to install TWRP recovery and it does always hangs when installing the gapp -arm64-aroma (i can choose what to install). I also reinstall 12.1 and 13 but failed again when installing any gapp even in nano version (please note that i wipe everything). in my last attempt i wipe: dalvik, system, cache, data, internal storage & android secure but nothing works to install the gapp. Btw, when i wipe from the 1st time i always get this error "e: unable to find partition size for '/recovery"
PLEASE HELP
I had a few problems doing this from Ubuntu 15.10.
1. ADB did not see the device although it worked fine on my Nexus 4 showing that adb/fastboot were configured correctly. I had to go to /home/.android and create the document 'adb_usb.ini' (right click, new document) which contains the text '0x2970'.
Once this was done I had to run the following commands
adb kill-server
adb start-server
This allowed ADB to see the device but it said that it was offline.
2. I had to create the file /etc/udev/rules.d/51-android.rules (type into terminal 'sudo nano /etc/udev/rules.d/51-android.rules') and paste in the following line, save it (ctrl+x, y, enter).
SUBSYSTEM=="usb", ATTR{idVendor}=="2970", ATTR{idProduct}=="2282", MODE="0666"
sudo service udev restart
After this ADB and fastboot recognized the device and allowed me to follow the directions posted above or on the cyanogenmod wiki.
Hope that is of some use to someone!!!
Also the Cyanogen Recovery was both unpleasant to use and caused problems trying to install GApps, I had to switch to using the unofficial TWRP recovery which worked first time and is a much better interface.
Hey do we need to unlock a bootloader before installing the custom recovery on this device? Thanks.
Hey guys,
I'm trying to root my G4 loaded with MM 6.0. I cannot get into Recovery Mode no matter what I do.
I have tried the key combo (power+down, etc) - it does nothing. If I use adb reboot recovery, I just get the dead Android guy with the exclamation in red triangle. (which is perhaps a hint as to why the key combo doesn't work.)
I followed steps to unlock the phone's bootloader via LG's dev site (success) and I've installed TWRP 3.0.2-0-H815.img but I can't get into Recovery mode. **The phone continues to work fine** and I can get it into Download Mode.
After having no success with TWRP, I thought, f*ck it, since I've gone this far, let's go with CyanogenMod instead of stock, so I installed cm-13.0-20160415-NIGHTLY-h815-recovery.img
I was also able to use adb to push CM 13 (nightly build 20160415) and Gapps (arm64 6.0 20160416) successfully to phone, but it's obviously no use since I can't get to Recovery Mode.
I'm wondering if someone can please suggest a solution or at least a next step.
When I use fastboot flash recovery twrp-3.0.2-0-h815.img it takes 0.718s 'send recovery' and 0.282s 'writing recovery'.
[solved - probably Win10's no-ask driver update policy] New problem: After going back to TWRP, fastboot devices shows nothing and my device is showing up in Device Manager as LGE Mobile USB Composite Device, whereas I specifically changed it from the LG drivers I installed to Android ADB drivers. The device doesn't even list the Android ADB driver as an available option now. WTAF?!? Maybe this is more Win10 driver-auto-update malarkey?
OS = Win10x64
Kernal = 3.10.84
Build number = MRA58K
Software version = V20d-EUR-XX
Developer options are available
USB debug is enabled
OEM unlock is enabled
I'm using the stock USB cable
Additional question - tutorials say to back up NVRAM and IMEI before doing anything risky, but I can't get those without root. How does this make sense?
EDIT: NOTE: You should be using the arm64 version of Gapps on LG G4 H815.
Thank you very much to everyone who stops in to take a look at my questions.
All the best,
Dax.
Hi
I had the same problem with Win 10 not seeing my H815 properly (same device name in Device Mgr as yours) I reverted to the older Lge drivers, 4.0.3 if I remember correctly and the phone showed up properly and I was able to use LG UP to update/downgrade etc.
Like you I have since tried to install TWRP but I cannot new get root with Kingroot 480 although it worked previously on V81520D it does not now.
Sent from my iPad using Tapatalk
try fastboot boot recovery twrp-3.0.2-0-h815.img
then tap IMG instead of ZIP (bottom) -> install img and flash the twrp img
Hi Stransky, I reinstalled the adb-setup-1.4.2.exe package which also contains drivers and now ADB will see the phone (which is good), but Fastboot still says waiting for devices (bad). Thanks!
I also changed the default driver from 'LGE Mobile ADB Interface' to 'Android ADB Interface' (as per tutorial instructions).
Hi Bender_007, thanks so much for the tip, I'll try it as soon as I can get Fastboot working again. Cheers!
Okay, so I learned ADB is for Android or Recovery mode, Fastboot is for 'HBOOT' (bootloader) mode.
As expected:
adb devices returns "List of attached devices: LGH81579d3bc56 device".
If I use the command adb reboot-bootloader, phone restarts in bootloader mode.
Then adb devices does nothing, but fastboot devices returns "79d3bc56 fastboot".
When device is in bootloader mode, it shows up in Windows Device Manager as 'Marshall London Bootloader Device'.
Bender_007, the command "fastboot boot recovery twrp-3.0.2-0-h815.img" doesn't work. It's invalid syntax. "fastboot flash recovery twrp-3.0.2-0-h815.img" works as per original post.
Any other suggestions?
Hm, put the twrp inside the same folder where your fastboot and adb are. Then start command prompt in the very same folder and type fastboot boot twrp... And that should be it. That means if everything is normal and the system is bootable.
Pardon, fastboot boot twrp(whatever the name is)
Not: fastboot boot recovery twrp..
Sent from my LG-H815 using Tapatalk
Hi Bender_007, that's exactly where the .IMG files are already. No dice. :/
May I see this via teamviewer please ? (teamviewerQS via private message)
I´ll gladly help you (if it´s in my possibilities ofc)
@daxliniere
EDIT: 21.04.2016 - we have fixed this, had a nice talk, almost a beer. It´s nice to meet new cool people , keep it up my friend
I am stuck probably on the same issue with win10. It seams like I was able to flash twrp recovery but I can't enter it. Already factory reseted it 3 times while trying to enter into custom recovery.
Any advices what to do?
madik_ said:
I am stuck probably on the same issue with win10. It seams like I was able to flash twrp recovery but I can't enter it. Already factory reseted it 3 times while trying to enter into custom recovery.
Any advices what to do?
Click to expand...
Click to collapse
The best solution there is:
1. put adb, fastboot into a directory (let´s say c:\adb), put the twrp-3......img into the same folder
2. adb reboot bootloader
3. open command prompt, cd c:\adb
4. fastboot boot twrp-3.....img (where twrp-3....img is the actual name of the twrp img)
it will boot to twrp, now you can either copy the twrp img to the phone and flash it(it will ask where to flash - tap on recovery--don´t tap on boot)
You might have to tap on zip/img toggle to enable img flashing first
should you need more help just post in here
Yep that did the trick. thank you! I was able to load recovery with the fastboot boot twrp.. but didnt realize that i can install it by the loaded twrp lol. Now I can finally confirm 2x YES and it gets me into TWRP. thanks again!
Can I make one little tip for everyone else? Follow this guide to the end: http://www.technobuzz.net/unlock-lg-g4-bootloader/
Step 1 is the easiest way to install adb, fastboot and drivers in one go.
Same problem here:
Software version = V20d-EUR-XX, Developer options are available, USB debug is enabled, OEM unlock is enabled
I can boot into recovery via bootloader: fastboot boot twrp-3.0.2-0-h815.img but:
1. had I to allow to modify system partition modifications?
2. how can I boot in recovery from system? with adb I always get the red-triangle Android on its back und with hardwarekeys after shut down the devise, I#m coming to stock recovery: factory restet no/yes
1. Yes
2. While you are in twrp just flash the twrp IMG again via twrp itself. It has the option to flash img instead of zip.
Poslano sa mog SM-G930F koristeći Tapatalk
thx, a lot...
Now im running a full system update to exsdcard and afterwards I try to "re-"install the twrp in twrp-applikation.
When i boot into recovery at the moment, the "modify-dialog" is away...
But I will see after "re-"install the twrp how it works...
---------- Post added at 03:48 PM ---------- Previous post was at 03:00 PM ----------
UPDATE:
Did it, worked!!!
on system: "adb reboot recovery" leads to twrp!
there are no hardware-key-solutions to get to recovery...
with the hardware-keys (after shutdown -> power + vol down -> release power for a second when LG-logo pops up) I get to the factory reset no/yes dialog...
On the factory reset choose yes twice. Normal for lg
Poslano sa mog SM-G930F koristeći Tapatalk
I got nervous to choose yes the second time....
sejmand said:
I got nervous to choose yes the second time....
Click to expand...
Click to collapse
Install Quick Boot from the Play Store,you can boot straight to Twrp with it
fastboot erase recovery
fastboot flash recovery xxx.img (xxx=twrp.img)
Hello,
I am still struggling with my h815 on 7.0:
I am getting the error sign with "no commands".
I cannot force it to boot to the twrp but I can flash it (unknown command):
HTML:
student:~/Downloads$ sudo fastboot flash recovery twrp.img
target reported max download size of 536870912 bytes
sending 'recovery' (32992 KB)...
OKAY [ 1.106s]
writing 'recovery'...
OKAY [ 0.931s]
finished. total time: 2.037s
student:~/Downloads$ sudo fastboot boot twrp.img
downloading 'boot.img'...
OKAY [ 1.104s]
booting...
FAILED (remote: unknown command)
finished. total time: 1.121s
using ubuntu 16.04.
Thanks for your feedback in advance.
Introduction
I'm writing this thread to summarize useful information about the BQ Aquaris X2 pro such as:
preliminary actions (adb and fastboot configuration)
unlocking the bootloader
flash a factory image
root the device (currently without TWRP)
updating the device without losing root
relocking the bootloader
I own this phone since July 2018. I started writing my notes in August 2018 in the form of a Google document (link here). I shared this document with some telegram groups and some people I know.
Now I that I think it can be more useful to summarize all my notes here on XDA so that all interested people can access it.
DISCLAIMER:
By attempting any of the processes listed in this thread you accept full responsibility for your actions. I have no responsibility about your actions.
1) Preliminary actions
1.1) Developer options, USB debugging and Unlock OEM
The first thing you need to do is to enable Developer options, USB debugging and Unlock OEM. Hence:
enable “Developer options” by hitting 7 times on the build number (Got to settings --> about phone)
enter the new menu “Developer options” and,
enable “USB debugging”
enable “Unlock OEM”
1.2) Download and configure abd and fastboot
All steps listed in this guide will require the use of Google Platform tools. I suggest the use of the one provided by Google here: https://developer.android.com/studio/releases/platform-tools.
Download the one for your operating system:
View attachment 4655394
Be sure that your terminal can access adb and fastboot from every position by configuring the PATH. I'm use to configure the PATH on the fly when I need it. As I said before, I work on Linux/macOS where you can set the PATH by:
opening a terminal and running:
Code:
export PATH=$PATH:path_to_platform_tools
2) Unlock the bootloader
Unlocking the booloader will wipe your phone. So backup your data first.
The good news here is that this phone can be handled like a Nexus/Pixel phone. Therefore, the procedure to unlock the bootloader is straightforward:
do all stuff at point 1.1 and 1.2
open a terminal
plug your phone to the PC
reboot into the bootloader
Code:
adb reboot bootloader
run the code:
Code:
fastboot flashing unlock
now you have to wait until your phone reboots. It takes a while, don't panic!!! When the phone is on the initial screen turn it off and reboot into the bottloader again by holing 'power + volume down'.
run the code:
Code:
fastboot flashing unlock_critical
it's done. Your bootloader is completely unlocked. Now, you only have to wait again for the reboot.
3) Flash a factory image
As you probably know, BQ releases a factory image at each update at this link factory images. Factory images are very useful to perform a very clean install. Are you experiencing some issues with your phone and none of the trick you tried solved it? If it is a software issue a clean flash with a factory image will likely remove the issue.
Keep in mind that by flashing a factory image you will wipe also the userdata partition. So backup your data first. Now let's see how to flash the factory image:
you need an unlocked bootloader (see previous sections)
download the factory image from this link
unzip the archive
open a terminal at this folder
be sure to have abd and fastboot properly configured (see previous sections)
run the script to flash all (*):
Code:
./sdm660_fastboot_all_images.sh
wait the end of the process. The phone will reboot.
(*) on Windows you have to deal with the file sdm660_fastboot_all_images.bat. I suppose it's similar but I've never done it on Windows.
4) Obtain ROOT privileges
Nowadays, the most common tool to obtain root privileges is Magisk. Many people here know very well what Magisk is and how to install it with TWRP. However, TWRP is not yet ready for BQ Aquaris X2 pro, hence, we must follow the procedure for installing it without the custom recovery.
When I wrote the document in August I find very informative this guide by @nathanchance. It's for the pixel 2XL but, as I told you before, it works perfectly also for the BQ Aquaris X2 pro (zangyapro). So here I summarize what @nathanchance already posted. All credits must go to him.
Here you have the steps:
Download the Magisk zip from the official thread and install the manager from the zip.
Grab a boot image to patch (either the one from the latest factory image or a custom kernel one) and push it to your device:
Code:
adb push <path_to_file> /sdcard/Download
Open Magisk Manager and click the Install button.
Click "Install" at the first prompt then choose "Patch Boot Image File". A file manager will pop up.
Select the boot image you want to patch and let Magisk Manager patch it.
Pull it off your device:
Code:
adb pull /sdcard/MagiskManager/patched_boot.img
Reboot into the bootloader:
Code:
adb reboot bootloader
Flash the boot image and reboot.
Code:
fastboot flash boot patched_boot.img
fastboot reboot
Open Magisk Manager and you should be rooted!
Please note that it exists also a specific thread where the author also provides the patched boot.img files for download. Hence, you can start from point 6 without patching the boot.img by yourself. Take care of selecting the right one. Here you have the thread link.
5) Update the ROM without loosing root
To the best of my knowledge, the only way to update keeping root is by using the factory images provided by BQ.
Download the factory image of the latest firmware (link)
Extract the file zip and upload the file boot.img on your phone
Code:
adb push <path_to_file> /sdcard/Download
Open Magisk Manager and click the Install button.
Click "Install" at the first prompt and then choose "Patch Boot Image File". A file manager will pop up.
Select the boot image you want to patch and let Magisk Manager patch it.
Pull it off your device:
Code:
adb pull /sdcard/MagiskManager/patched_boot.img
Place the file patched_boot.img in the folder of the BQ firmware unzipped at point 2
Make a copy of the file sdm660_fastboot_all_images (.sh in Mac/Liux and .bat on Windows).
Rename the file, I called it sdm660_fastboot_upgrade.sh
Change the following lines (this will preserve root privileges on your phone):
Code:
fastboot flash boot_a boot.img # <-- delete this line
fastboot flash boot_a patched_boot.img # <-- add this line
Delete the following line (this will prevent your data to be wiped):
Code:
fastboot flash userdata userdata.img # <-- delete this line
Run from your terminal
Code:
./sdm660_fastboot_upgrade.sh (or bat)
I think that one can also update using the OTA. This will make you lose the root privileges and therefore, you will have to repeat the procedure at section 4. I've never tested this so, if you decide to do it, you are on your own.
6) Relock the Bootloader
By relocking the bootloader you will lose all your data, hence, backup them first.
To relock the bootloader you only need the following commands:
Code:
fastboot flashing lock_critical
fastboot flashing lock
Each command will wipe your data and will reboot the phone. Be patient waiting for the reboot and do not panic.
Reserved.
(work in progress)
First: Thanks for this really nice and comprehensive thread!
I have an important addition to point:
3. Open Magisk Manager and click the Install button.
Click to expand...
Click to collapse
Install Button will only appear if the phone has internet connection (Wifi or Mobile Data)
with this I can patch the boot image successfully
But unfortunately I can not run the "sdm660_fastboot_upgrade.sh.bat" it does not recognize my device.
When checking the commands in the batch I found that my device is acting really strange, sometimes giving different errors for the same command like:
Code:
C:\Android\X2proRoot\1.7.1_WithRoot>fastboot set_active _a
error: Device does not support slots.
C:\Android\X2proRoot\1.7.1_WithRoot>fastboot set_active _a
Setting current slot to 'a'...
FAILED (remote: Invalid Slot)
finished. total time: 0.004s
C:\Android\X2proRoot\1.7.1_WithRoot>fastboot set_active _a
error: Device does not support slots.
also strange:
Code:
C:\Android\X2proRoot\1.7.1_WithRoot>fastboot flash boot patched_boot.img
target didn't report max-download-size
sending 'boot' (50749 KB)...
FAILED (remote: Requested download size is more than max allowed
)
finished. total time: 0.004s
Probably some windows crap not working or an incompatibility of the installed platform tools / drivers and the ones from BQ...
raudidroid said:
First: Thanks for this really nice and comprehensive thread!
I have an important addition to point:
Install Button will only appear if the phone has internet connection (Wifi or Mobile Data)
Click to expand...
Click to collapse
Thanks. I was not aware of this. And now I can't check this on my device because I started using GPay and I prefer to stay with no root and locked bootloader.
Maybe I will play again with the bootloader when TWRP for this device will be released. If it will
got it running!
raudidroid said:
Probably some windows crap not working or an incompatibility of the installed platform tools / drivers and the ones from BQ...
Click to expand...
Click to collapse
Probably it was just that. I Installed Ubuntu 16.04 LTS in a Vmware machine and followed the tutorial (important note here: do everything in a Terminal running under root).
Short moments of panic due to boot-loop included (I flashed a defective boot image [vmware drag and drop files obviously did not copy the whole file] )
for everybody who ends in a bootloop: just keep calm, switch off phone (>10s press power button) an very quickly when it is of press power and volume down to get into flashmode again (I had to try several times)
Hey @raudidroid, when I answered to you the first time I did not read all the message or you edited it later. Only now I'm reading the issues you faced.
On Windows, what shell did you use? PowerShell?
I'm not sure about this because I banned Windows from my personal and working life several years ago, however, recently I read some posts of people having issues with PowerShell. If this is also your case next time try to use classic cmd.
Probably it was just that. I Installed Ubuntu 16.04 LTS in a Vmware machine and followed the tutorial (important note here: do everything in a Terminal running under root).
Click to expand...
Click to collapse
Regarding this the above quote, I'm quite sure that you do not need to be super user to apply any of the procedure listed in the guide.
for everybody who ends in a bootloop: just keep calm, switch off phone (>10s press power button) an very quickly when it is of press power and volume down to get into flashmode again (I had to try several times)
Click to expand...
Click to collapse
Since your are suggesting "... very quickly when it is of press power and volume down ... " I can imagine that you did this procedure while your phone was connected to the laptop/PC with the USB cable. In this condition, when you force the shutdown by pressing power for 10s, the phone reboots automatically. So my suggestion is to unplug it first, in this way the phone turn off without rebooting and you can comfortably enter in the bootloader with no hurry.
luk.giak said:
On Windows, what shell did you use? PowerShell?
I'm not sure about this because I banned Windows from my personal and working life several years ago, however, recently I read some posts of people having issues with PowerShell. If this is also your case next time try to use classic cmd.
Click to expand...
Click to collapse
I was using CMD / Command Prompt on win10, but maybe I have to many ADBs/Drivers/... installed. got a really weird behavior...
Regarding this the above quote, I'm quite sure that you do not need to be super user to apply any of the procedure listed in the guide.
Click to expand...
Click to collapse
without root it wouldn't work, i got "no permissions (user in plugdev group; are your udev rules wrong?)"
with root everything ran smoothly
Since your are suggesting "... very quickly when it is of press power and volume down ... " I can imagine that you did this procedure while your phone was connected to the laptop/PC with the USB cable. In this condition, when you force the shutdown by pressing power for 10s, the phone reboots automatically. So my suggestion is to unplug it first, in this way the phone turn off without rebooting and you can comfortably enter in the bootloader with no hurry.
Click to expand...
Click to collapse
Oh! Yep, that sounds like it would have been the better way to do it
Thanks for your post and your answers.
BTW: half-OT do you know any way to get netflix running after the rooting?
For your information.
I follow part 5 and updated my firmware to version 1.7.3 successfully. Thanks for this guide.
AndroidenKalle said:
For your information.
I follow part 5 and updated my firmware to version 1.7.3 successfully. Thanks for this guide.
Click to expand...
Click to collapse
Your welcome!
For your information.
I follow part 5 and updated my firmware to version 2.0.0 (Android Pie 9) successfully.
AndroidenKalle said:
For your information.
I follow part 5 and updated my firmware to version 2.0.0 (Android Pie 9) successfully.
Click to expand...
Click to collapse
Thanks for sharing.
I'm on PIE as well. Today I flashed the factory image to make a clean install.
Hello, maybe someone can be of help to my situation.
I had my phone rooted in the last firmware version (1.7.3), and I was getting notifications to update to Android 9 pie for some time, however I was waiting to have some time to spare and first backup my files and do a factory update to pie and then root.
However, last nigh without warning my phone just rebooted and updated to pie, (firmware ver 2.0.2) and I lost root obviously. However, all my files, apps, etc were intact.
So today I decided to root my phone again. I download the firmware zip from BQ's site and then used Magisk (ver. 19.2) to patch the boot.img.
I rebooted to fastboot and did "sudo fastboot flash magisk_patched.img", and rebooted but the phone got stuck in the logo screen.
Then I used method 5 of this tutorial and ran ./sdm660_fastboot_upgrade.sh (with the mentioned modifications), however it bootlooped again. Then I flashed the original boot img and my phone booted just fine again, I tried to patch the img again, did again step 4 and it bootlooped again.
Any clues on how to successfully root ? Never had any problems updating and rooting from firmware 1.4.0 to 1.7.3.
Thank you for your time
Hi,
I attempted to flash ArrowOS for my Poco F3 2 days ago but I didn't follow the steps correctly. My plan was to unlock bootloader, boot twrp and install ArrowOS. After I tried this, the ArrowOS loadup screen kept on loading for a hour. I rebooted the device and ended up in the ArrowOS recovery. After some times, I tried to flash the MIUI fastboot rom with Mi Flash Tool and I think I chose "clean all and lock." This caused a problem because I became stuck on the fastboot page and when I tried to reboot, it would go to the Poco startup page briefly before jumping back to the fastboot. I've tried to hold the power button and the volume keys but it has no effect. Also, on the Poco page there was no unlocked padlock which was weird because when I first tried to flash ArrowOS I could see the unlocked padlock. When I checked on my computer using Mi Unlock, it showed that my device was unlocked.
I think I did manage to flash fastboot rom for MIUI using XiaomiToolV2 because it said that the installation was complete.
Another problem is that when I boot TWRP with fastboot from my computer, there isn't any internal storage shown after I click the install button. I think this is because I wiped the device with TWRP when I was following various tutorials. When I try to add a file to the internal storage from my computer it shows an empty folder and any files I copy into it isn't shown.
I would be really grateful for any help as I've been trying to fix this problem for 2 days now. Thank you!
I've attached a video of the phone being stuck on fastboot.
12839172398 said:
Hi,
I attempted to flash ArrowOS for my Poco F3 2 days ago but I didn't follow the steps correctly. My plan was to unlock bootloader, boot twrp and install ArrowOS. After I tried this, the ArrowOS loadup screen kept on loading for a hour. I rebooted the device and ended up in the ArrowOS recovery. After some times, I tried to flash the MIUI fastboot rom with Mi Flash Tool and I think I chose "clean all and lock." This caused a problem because I became stuck on the fastboot page and when I tried to reboot, it would go to the Poco startup page briefly before jumping back to the fastboot. I've tried to hold the power button and the volume keys but it has no effect. Also, on the Poco page there was no unlocked padlock which was weird because when I first tried to flash ArrowOS I could see the unlocked padlock. When I checked on my computer using Mi Unlock, it showed that my device was unlocked.
I think I did manage to flash fastboot rom for MIUI using XiaomiToolV2 because it said that the installation was complete.
Another problem is that when I boot TWRP with fastboot from my computer, there isn't any internal storage shown after I click the install button. I think this is because I wiped the device with TWRP when I was following various tutorials. When I try to add a file to the internal storage from my computer it shows an empty folder and any files I copy into it isn't shown.
I would be really grateful for any help as I've been trying to fix this problem for 2 days now. Thank you!
I've attached a video of the phone being stuck on fastboot.
Click to expand...
Click to collapse
Well I don't own that phone but it sounds like you didn't unlock the bootloader properly and your internal storage is encrypted that's why it shows 0 and that's probably why your having problems. Is there an encryption disabler zip? Your supposed to format data and flash an encryption disabler and than magisk v23 on Samsung devices than boot.
Okay, so I've just used the Format Data option in TWRP which says it will remove encryption on internal storage. But this didn't seem to fix any problems
12839172398 said:
Okay, so I've just used the Format Data option in TWRP which says it will remove encryption on internal storage. But this didn't seem to fix any problems
Click to expand...
Click to collapse
Did you flash a disabler zip? Also is your bootloader locked?
No, I haven't flashed a disabler zip. Where would I download that. I found a XDA download called Xposed-Disabler-Recovery.zip, would that be it.
My bootloader was unlocked and the Mi Unlock tool still says that it is unlocked, but I don't see an unlocked padlock on the start up page.
12839172398 said:
Okay, so I've just used the Format Data option in TWRP which says it will remove encryption on internal storage. But this didn't seem to fix any problems
Click to expand...
Click to collapse
Did you follow the directions on Xda
INSTALLATION PROCEDURE:
First installation (Clean flash):
You need adb/fastboot tools.
Download boot, vendor_boot and rom zip:
boot_alioth.img
drive.google.com
vendor_boot_alioth.img
drive.google.com
ArrowOS - Downloads
Reboot in fastboot. Flash boot and vendor_boot:
fastboot flash boot_ab boot_alioth.img
fastboot flash vendor_boot_ab vendor_boot_alioth.img
fastboot --set-active=a
Reboot in ArrowOS Recovery:
fastboot reboot recovery
Make format data (Factory reset -> Format data).
Flash ROM (Apply update -> Apply from ADB):
adb sideload name.zip
If you want install separate gapps on vanilla buildtype, after flash ROM:
Advanced -> Reboot to recovery
Flash gapps (Apply update -> Apply from ADB):
adb sideload name.zip
Follow what show on device, should be ... Step 1/2 -> 2/2, then flashing ended, can reboot device in system. (on command line can show "(~47%) adb: failed to read command: No error", it normal!)
________________________________________
Install Update (dirty flash):
Go in Settings -> System -> Updater
Downlad new build -> Install
12839172398 said:
No, I haven't flashed a disabler zip. Where would I download that. I found a XDA download called Xposed-Disabler-Recovery.zip, would that be it.
My bootloader was unlocked and the Mi Unlock tool still says that it is unlocked, but I don't see an unlocked padlock on the start up page.
Click to expand...
Click to collapse
sounds like you have indeed locked your bootloader. you can check using fastboot cmd 'fastboot oem device-info'
if it's locked, only thing to do i would guess is to try and flash stock rom (not EU custom rom) and hope for the best, then try to unlock your bl again
12839172398 said:
No, I haven't flashed a disabler zip. Where would I download that. I found a XDA download called Xposed-Disabler-Recovery.zip, would that be it.
My bootloader was unlocked and the Mi Unlock tool still says that it is unlocked, but I don't see an unlocked padlock on the start up page.
Click to expand...
Click to collapse
Also twrp instructions
Installation:
1. fastboot boot twrp.img
2. copy that same twrp image to the device
3. go to Advanced > Install Recovery Ramdisk
4. select the image you copied
5. after that is done, if you were using a custom kernel, reflash it now
6. if you were using magisk, reflash it now
7. reboot to recovery, you should now be able to boot TWRP normally using Power+volume up
repeat step 3 and 4 directly after flashing a new rom, then reboot recovery to flash additional stuff
also, if your bl is indeed locked i for sure recommend you HALT all attempts at flashing twrp or any custom rom. you need to focus on trying to get stock fw back on the device and booting
WOW! Thank you guys so much for your help! My bootloader was indeed unlocked and I proceeded with the steps by Techguy777 and it worked perfectly! I now have ArrowOS booting up and I cannot thank you guys enough. I hope you have a great day!
Also I haven't installed TWRP; Should I install TWRP? Or is ArrowOS Recovery sufficient
12839172398 said:
Also I haven't installed TWRP; Should I install TWRP? Or is ArrowOS Recovery sufficient
Click to expand...
Click to collapse
Just use arrowos recovery... Doesnt really matter unless u switch around several roms
12839172398 said:
WOW! Thank you guys so much for your help! My bootloader was indeed unlocked and I proceeded with the steps by Techguy777 and it worked perfectly! I now have ArrowOS booting up and I cannot thank you guys enough. I hope you have a great day!
Click to expand...
Click to collapse
enjoy the ArrowOS, it is way better than MIUI. I am loving it since i flashed it 2 days ago!
Wow, if you chose flash and lock like you mention in 1st post and somehow your device remained unlocked, you sir are very lucky!! Glad it's all up and running. Fck knows how it stayed unlocked, but thankfully it did
Hello,
I hope this is the right section for this post.
I've been using a Note 8 Pro with zero issues until one week ago when I accidentally dropped the phone in the water.
After a few seconds submerged the display turned off and I felt an intense heat coming from the zone of the battery.
Having no chance to recover the phone (tried with Isopropyl Alcohol too) I decided to open it and manually dry/clean each component, having seen the situation inside gave me the phone is dead but I still want to recover some pictures/data from it.
Before opening the open Minitool was not detecting any device on my Windows Laptop, after cleaning each component Minitool is instead detecting the phone via USB, but I still can't extract any data because the "Usb debugging" option is not tuned on (and no the device is not rooted).
Is there any option to extract data from the phone? There's a way to turn on USB Debugging via ADB on a non-rooted phone?
Thanks,
Andrea.
how about trying your luck with a service ? most of the time they do have access to special programs, which have a better functionality than adb.
Thanks for the hint, but I am not happy with the idea of someone playing with my data
1. Try reboot phone to recovery
2. Connect it to your computer (download Platform-tools)
3. In the folder with Platform-tools open cmd
4. In cmd - adb shell
5. cd storage/emulated/0
6. ls
7. Now, using the commands, drag files from your phone to your PC
Thanks for your hint.
No luck so far, I think because the phone is not in recovery mode.
I can hear the phone starting up several times (hear the jingle) so I think it's in a reboot loop and I don't know how to boot it into recovery mode wo a working display (tried with power/volume up combination with no luck).
From the windows taskbar I can see that the phone is recognized for a few seconds before it restarts.
EDIT: trying to switch the phone on with the combination "power/volume down" brings to a kind of stable state and I can now see the phone in the windows taskbar recognized as a generic "android device". Still no luck when trying to access the phone as there's no device in windows and no device obtained through "adb devices" command.
EDIT1: I think that the phone is in "FASTBOOT" mode. If I type "fastboot devices" I can see it detected but still can't access it.
Any idea? Should I give up?
If it's popping up and down you need something to keep track.
You can try my UsbLog.exe (in the sig), it just sits there and shows what devices appear (if they have a driver) and disappear.
Try these to see if anything is working:
Code:
C:\>fastboot devices
C:\>fastboot getvar all
C:\>fastboot oem device-info
Yes it's popping up and down when it's booted in recovery mode whilst is stably connected when in fastboot mode but in this case I can't access the internal memory of the device.
I didn't get the purpose of logging the devices connecting to the USB as I can see the device connected for a while and correctly recognized as Redmi Note 8 pro but as it keeps popping out windows have no time to show it's folder.
As for the code you wrote: i will try asap but already tried with "fastboot devices" and I get the phone correctly listed but still can't access its memory as told.
Renate said:
If it's popping up and down you need something to keep track.
You can try my UsbLog.exe (in the sig), it just sits there and shows what devices appear (if they have a driver) and disappear.
Try these to see if anything is working:
Code:
C:\>fastboot devices
C:\>fastboot getvar all
C:\>fastboot oem device-info
Click to expand...
Click to collapse
After rebooting the phone in fastboot mode I can see it recognized as a generic android device from windows (still can't access the storage folder of the device).
fastboot devices----> I get the device listed with a series of numbers/letters
fastboot getvar all---> I get a list of information on token/token version/partition type and size/baseband/bootloader etc.
fastboot oem device-info----> FAILED (remote: unknown command)
So I think it's clear that the device is in Fastboot mode and instead is in a boot loop when started in revocery mode.
Is there a way to extract data from fastboot mode?
Thanks,
Andrea.
If you put a custom recovery on it in the first place you can try reflashing recovery from fastboot.
Fastboot doesn't allow you to read anything.
oem device-info is obviously an oem command that might not be on any device.
You've got a Mediatek processor. That has some low level equivalent to Qualcomm EDL, but I have no experience with that.
If you can get there you can download the user data partition, but it's probably encrypted. Also no experience with that.
The easiest is if you can get the system to mount/decrypt the partition.
You've tried the normal system too?
Is this A/B? Have you tried changing slots?
How much time does it stay up in recovery? Do you have ADB? Maybe try:
Code:
# stop recovery
Does that prevent it from looping?
So I should try to flash a custom recovery like TWRP for example?
What you mean with "normal system too"?
Changing slots you mean changing usb port?
It stays in recovery less than one second so I can't give any command via ADB.
EDIT: cant' flash any custom recovery because the bootloader is locked.
If I Try to unlock the bootloader via MiUnlock I get a warning saying that all data will be erased.
Any idea on how to unlock the bootloader wo wiping all the data?
Sephiroth79 said:
So I should try to flash a custom recovery like TWRP for example?
What you mean with "normal system too"?
Changing slots you mean changing usb port?
It stays in recovery less than one second so I can't give any command via ADB.
EDIT: cant' flash any custom recovery because the bootloader is locked.
If I Try to unlock the bootloader via MiUnlock I get a warning saying that all data will be erased.
Any idea on how to unlock the bootloader wo wiping all the data?
Click to expand...
Click to collapse
There is a mediatek bootloader unlocked you just have to boot in Brom mode and it'll unlock it please follow this
PS: press all buttons
MysticNoOb said:
There is a mediatek bootloader unlocked you just have to boot in Brom mode and it'll unlock it please follow this
PS: press all buttons
Click to expand...
Click to collapse
My bootloader is unlocked!
Thank you very much.
Now I am going to try to flash a custom recovery mode via fastboot in order to access the internal memory of the phone.
EDIT: I've just flashed twrp-3.6.2_9-0-begonia.img but still can't boot into recovery mode.
Any hint on how to extract data from the system now?
You really want to boot the normal system because that's the best way to get decrypted data.
I realized that you don't have ADB enabled there.
You should look at B. Kerler's https://github.com/bkerler/mtkclient/
If you can pull the boot image off your device then I might be able to fix it so that you have ADB.
You'd have to flash it back in fastboot or mtkclient.
You can also pull a copy of userdata off the device with mtkclient.
As far as booting into recovery, there's a way.
Here's how, if you don't have A/B (that is you flashed TWRP into recovery and not recovery_a or recovery_b)
then you can fastboot flash a special file into the misc partition and it wil boot into recovery next reboot.
To return things to normal you have to flash the empty file to the misc partition.
Code:
C:\>fastboot flash misc misc-rec.img
C:\>fastboot reboot
Only do this if you don't have partitions that end in _a or _b
I really don't know if I have partitions A and B as you mentioned and I think there's no way to check actually.
I confirm I don't have "USB Debugging" active on the phone.
So if I understand correctly I should do the following:
- Flash misc-reg.img via Fastboot
- Boot into recovery just rebooting the system after flashing the above file;
- use MTKclient to dump userdata or boot image to enable ADB on (I will need help with mtkclient I suppose).
Is it correct?
EDIT: flashed TWRP first and misc-rec then rebooted via Fastboot/Reboot but nothing happens.
Sephiroth79 said:
My bootloader is unlocked!
Thank you very much.
Now I am going to try to flash a custom recovery mode via fastboot in order to access the internal memory of the phone.
EDIT: I've just flashed twrp-3.6.2_9-0-begonia.img but still can't boot into recovery mode.
Any hint on how to extract data from the system now?
Click to expand...
Click to collapse
TWRP cant boot because you used wrong one. Search again in that unlock bootloader channel and use suitable one.
Kirasu2080 said:
TWRP cant boot because you used wrong one. Search again in that unlock bootloader channel and use suitable one.
Click to expand...
Click to collapse
Hmmm, I am almost sure that the TWRP I've flashed was listed under Redmi Note 8 pro page. Can you please indicate more precisely where should I sera
EDIT: I think I've downloaded and flashed the correct TWRP file.
@Renate can you please detail your method so I can try to extract data from the phone?
Sephiroth79 said:
Hmmm, I am almost sure that the TWRP I've flashed was listed under Redmi Note 8 pro page. Can you please indicate more precisely where should I sera
EDIT: I think I've downloaded and flashed the correct TWRP file.
@Renate can you please detail your method so I can try to extract data from the phone?
Click to expand...
Click to collapse
1/Yeah it's official. You "flashed correct TWRP." Downgrade to Miui Android 9 (_9 in it's name) to boot into that TWRP and lose your data.
2/In unlock bootloader video above, search other video in his channel playlist and find TWRP video suitable for your Miui version.
Kirasu2080 said:
1/Yeah it's official. You "flashed correct TWRP." Downgrade to Miui Android 9 (_9 in it's name) to boot into that TWRP and lose your data.
2/In unlock bootloader video above, search other video in his channel playlist and find TWRP video suitable for your Miui version.
Click to expand...
Click to collapse
Can't find the right video, can you kindly send me a link (I am on the latest Miui version and I am in Europe)?
In all the videos I've seen on his page he is using the device to install TWRP etc.
I think I just need the correct TWRP version for my MIUI release and then I'll flash TWRP and misc-reg.img. Is it right?
Sephiroth79 said:
Can't find the right video, can you kindly send me a link (I am on the latest Miui version and I am in Europe)?
In all the videos I've seen on his page he is using the device to install TWRP etc.
I think I just need the correct TWRP version for my MIUI release and then I'll flash TWRP and misc-reg.img. Is it right?
Click to expand...
Click to collapse
Use brp 3.5.2 v3.1 or V3.6 to decrypt Miui 12.5