Hello everyone, a year ago a I had installed a custom recovery on my Lenovo S5000-F and it caused a bootloop and I lost the recovery, fastboot is working fine but it only allow me flash boot, system, userdata and cache partitions. I already tried do:
1-Unpack boot.img
2-Edit default.prop to allow adb debugging and then create a custom OTA update to install by adb sideload.
But when I boot the system I get device offline. So looking through system.img I found an interesting thing, a flash recovery script: install-recovery.sh
Bash:
#!/system/bin/sh
echo 1 > /sys/module/sec/parameters/recovery_done #tony
if ! applypatch -c EMMC:recovery:6156288:b1d3582729e0f954b16931a7a87d4c09b6854396; then
log -t recovery "Installing new recovery image"
applypatch -b /system/etc/recovery-resource.dat EMMC:boot:5781504:94079a17dc0e061e417363e4d44d7d8d0e609f16 EMMC:recovery b1d3582729e0f954b16931a7a87d4c09b6854396 6156288 94079a17dc0e061e417363e4d44d7d8d0e609f16:/system/recovery-from-boot.p
if applypatch -c EMMC:recovery:6156288:b1d3582729e0f954b16931a7a87d4c09b6854396; then #tony
echo 0 > /sys/module/sec/parameters/recovery_done #tony
log -t recovery "Install new recovery image completed"
else
echo 2 > /sys/module/sec/parameters/recovery_done #tony
log -t recovery "Install new recovery image not completed"
fi
else
echo 0 > /sys/module/sec/parameters/recovery_done #tony
log -t recovery "Recovery image already installed"
fi
This script means to replace any recovery installed by the user to the original one, but for some reason its not working.
So I would like to know if there is any way to flash a recovery partition through a script, so I can write this script to init.rc to install the stock recovery and fix bootloop.
EDIT: The install-recovery.sh had installed the stock recovery but I didn't noticed lol, the cause of bootloop is because the recovery and logo partitions its in the same file so when I flashed TWRP with a size bigger than my recovery partition it wrote to logo partition too.
Solved by creating a custom script using the same "applypatch" binary to flash the logo partition and worked fine
I know you want init rc... but...
Flashing stock bootloader SHOULD restore your ability to RESTORE recovery, which in turn will be used to get you to flash an update or restore.
You also need to re-enable fastboot keys ((fastboot) device offline, need to grant adb keys in gui )
And then again, I've seen in my phone that with adb keys set in gui of fone, does not mean fastboot keys were registered, only seen this since android 10, never seen it in 9, or less...?
I dont help with custom roms because there is too many, but flashing
Pachacouti said:
I know you want init rc... but...
Flashing stock bootloader SHOULD restore your ability to RESTORE recovery, which in turn will be used to get you to flash an update or restore.
You also need to re-enable fastboot keys ((fastboot) device offline, need to grant adb keys in gui )
And then again, I've seen in my phone that with adb keys set in gui of fone, does not mean fastboot keys were registered, only seen this since android 10, never seen it in 9, or less...?
I dont help with custom roms because there is too many, but flashing
Click to expand...
Click to collapse
But I can't flash stock booloader, fastboot only flash boot, system, userdata and cache partitions, since I can flash boot I can make a modified init.rc script to flash the stock recovery during boot time, but I don't know how to do this :/
Me neither, I dont think init.rc (the app.apk) is going to be much use soon either.
You say:
But I can't flash stock booloader,
fastboot only flash boot, system, userdata and cache partitions, ...
So I'm kinda confused, because where you say 'But I cant flash stock bootloader' then say 'fastboot only flash boot' tells me you SHOULD be able to flash stock bootloader with this:
fastboot reboot bootloader
( lets me know your actually in the bootloader's fastboot, and not custom recovery (twrp style, mb with no twrp gui,) fastboot, which can be confusing, because your then using the recovery's fastboot, and not the bootloader that loads BEFORE the recovery VERSION of fastboot, which MAY be out of date..)
fastboot erase/format bootoader ( erase/format=whichever works, do not reboot )
fastboot -w
fastboot flash boot YOUR_STOCK_BOOTLOADER.img
fastboot -w
fastboot reboot
Then do:
fastboot -w
fastboot erase/format recovery ( again, whichever wipes recovery)
fastboot -w
then
fastboot flash recovery YOUR_STOCK_RECOVERY.img
Fastboot -w (so many huh? but makes sure things get wiped that may contain any hidden cache)
fastboot reboot
That should be it lol, apart from the fact I dont know if you are a/b partition in which case, try booting fone with
fastboot boot slot_a OR slot_b
After this, I cant add, cause I cant speak for custom roms, but the above would work for me.
Pachacouti said:
Me neither, I dont think init.rc (the app.apk) is going to be much use soon either.
You say:
But I can't flash stock booloader,
fastboot only flash boot, system, userdata and cache partitions, ...
So I'm kinda confused, because where you say 'But I cant flash stock bootloader' then say 'fastboot only flash boot' tells me you SHOULD be able to flash stock bootloader with this:
fastboot reboot bootloader
( lets me know your actually in the bootloader's fastboot, and not custom recovery (twrp style, mb with no twrp gui,) fastboot, which can be confusing, because your then using the recovery's fastboot, and not the bootloader that loads BEFORE the recovery VERSION of fastboot, which MAY be out of date..)
fastboot erase/format bootoader ( erase/format=whichever works, do not reboot )
fastboot -w
fastboot flash boot YOUR_STOCK_BOOTLOADER.img
fastboot -w
fastboot reboot
Then do:
fastboot -w
fastboot erase/format recovery ( again, whichever wipes recovery)
fastboot -w
then
fastboot flash recovery YOUR_STOCK_RECOVERY.img
Fastboot -w (so many huh? but makes sure things get wiped that may contain any hidden cache)
fastboot reboot
That should be it lol, apart from the fact I dont know if you are a/b partition in which case, try booting fone with
fastboot boot slot_a OR slot_b
After this, I cant add, cause I cant speak for custom roms, but the above would work for me.
Click to expand...
Click to collapse
Oh I got it now, you mean flashing stock bootloader into boot partition so when I turn on the device it will be on bootloader, I can try it but there's another problem, I don't have the stock bootloader lol
GO get it then lol...
Pachacouti said:
GO get it then lol...
Click to expand...
Click to collapse
Unfortunately I didn't found the bootloader, but I tried flash the stock recovery into boot partition, but when I reboot the device boots into grey screen and then shutdown. I have no idea why this not worked :/ I already tried boot the recovery through fastboot but its just transfer the recovery.img and not boot.
Related
Dear Member,
I'm new to rooring and flashing custom ROMS...
i have a folio 100 and after a lot of googling and hardwork i finally managed to root my device on windows XP.. then i tried to install Jelly Bean / CM10 (4.1.1) Alpha 2 - 27.09.2012 from http://forum.xda-developers.com/showthread.php?t=1864774 and followed the instructions.
initially when i typed fastboot devices i was getting "? fastboot" and rest of the commands returned 0x2 error.
then i treid
fastboot -i 0x955 erase userdata
fastboot -i 0x955 erase system
fastboot -i 0x955 erase cache
fastboot -i 0x955 erase linux
fastboot -i 0x955 erase recovery
till now everything worked like a charm but when i tried to run the last command
fastboot -i 0x955 flash recovery recovery-cwm-6.0.1.4.img
i'm getting error message "unable to load recoveryxxxx.img"
now i treid to reboot the device and its saying "magic value mismatch" please help me out..
Nonlxpe Menteur
leaderrocks said:
Dear Member,
I'm new to rooring and flashing custom ROMS...
i have a folio 100 and after a lot of googling and hardwork i finally managed to root my device on windows XP.. then i tried to install Jelly Bean / CM10 (4.1.1) Alpha 2 - 27.09.2012 from http://forum.xda-developers.com/showthread.php?t=1864774 and followed the instructions.
initially when i typed fastboot devices i was getting "? fastboot" and rest of the commands returned 0x2 error.
then i treid
fastboot -i 0x955 erase userdata
fastboot -i 0x955 erase system
fastboot -i 0x955 erase cache
fastboot -i 0x955 erase linux
fastboot -i 0x955 erase recovery
till now everything worked like a charm but when i tried to run the last command
fastboot -i 0x955 flash recovery recovery-cwm-6.0.1.4.img
i'm getting error message "unable to load recoveryxxxx.img"
now i treid to reboot the device and its saying "magic value mismatch" please help me out..
Click to expand...
Click to collapse
First, download the latest & most stable ROM (at the moment), including the ROM, GAPPS, recovery-cwm-CM10-A3.img & formatsd.zip
http://forum.xda-developers.com/showthread.php?t=1864774
Actually, you just need to flash the recovery through fastboot, other else can done in the recovery.
1. Copy all the ROM, GAPPS & formatsd.zip into your memory card. Then insert it into your Folio.
2. Run command prompt, make sure your tablet is connected with your PC in fastboot mode.
To erase existing/stock recovery. In command prompt, go into the fastboot program folder and type the following commands
Code:
fastboot erase recovery
3. Copy the CWM Recovery into your fastboot adb folder.
To flash CWM Recovery
Code:
fastboot flash recovery recovery-cwm-CM10-A3.img
fastboot reboot
4. Enter Recovery. Before you begin, wipe everything (except external_sd) in the CWM Recovery, after wiped, you can install the 3 zip files one by one. After finish, just reboot system.
Full procedure also stated in the link I provided, please scroll down.
Hope that helps you.
So did above solution help? I had a similar issue, and I resolved it by just booting the recovery image from fastboot, i.e.
Code:
fastboot boot recovery.img
Once you get into recovery you can flash an image which will in most cases flash a recovery image along with it. If not, you can try to flash the recovery image again once you've done a full wipe from the booted recovery.
EDIT: Noob to flashing stock images here. Need help on how to get the image to install on the device. This is my first ever Nexus device
So there's a new 5.0.1 system image out. I'm rooted, and I remember reading somewhere that the official OTA process won't work if you have modifications to the System partition.
So, I just want to check what I should do. Thanks.
Fastboot flash the images. Then reroot.
Awesome. I'm new to fastboot, and this is my first Nexus device. What is the procedure for flashing an official System image with fastboot?
TenderloinShadow said:
Awesome. I'm new to fastboot, and this is my first Nexus device. What is the procedure for flashing an official System image with fastboot?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=56921581&postcount=33
That post left out flashing recovery. The download should have 6 files. I flashed recovery at the end (but I don't think it matters how you flash the files, I could be wrong though).
See link above, then you might as well just flash twrp recovery instead of factory recovery, then flash this SuperSU zip through recovery and you'll be rooted and updated.
Order of flash doesn't matter, and I wouldn't flash boot loader unless necessary.
di11igaf said:
See link above, then you might as well just flash twrp recovery instead of factory recovery, then flash this SuperSU zip through recovery and you'll be rooted and updated.
Order of flash doesn't matter, and I wouldn't flash boot loader unless necessary.
Click to expand...
Click to collapse
I had TWRP installed before loading up these images. I decided to not flash recovery.img thinking I would be okay; but when I tried to reboot into twrp, I soft bricked. So I would still install the recovery.img first and then twrp. Everything is working properly now.
ericplatham said:
I had TWRP installed before loading up these images. I decided to not flash recovery.img thinking I would be okay; but when I tried to reboot into twrp, I soft bricked. So I would still install the recovery.img first and then twrp. Everything is working properly now.
Click to expand...
Click to collapse
You're right, now that I think about it, I believe I had to do that as well last time I flashed a factory image.
I am unlocked, rooted and have custom recovery.... what is the procedure? Is fastboot the only way?
GatorsUF said:
I am unlocked, rooted and have custom recovery.... what is the procedure? Is fastboot the only way?
Click to expand...
Click to collapse
maybe I'll write up a guide, but download the factory image, extract it. In there is a zip file, extract it too. Then Google 15 second adb install xda. That'll set up fastboot on your pc. Then boot into the bootloader and in a command window opened in the folder where the bootloader image is located run the commands:
fastboot flash bootloader bootloader.img. Note, use the full name of the bootloader.img
fastboot reboot-bootloader
fastboot -w
Open the folder where the boot, system, cache, system, and vendor images are located. Open a command window in that folder and run the commands:
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot flash vendor vendor.img
fastboot flash system system.img
Then you're done
Sent from my Nexus 9 using XDA Free mobile app
jd1639 said:
Then you're done
Click to expand...
Click to collapse
He will still have to reroot and flash custom recovery... but you got 95% of the process :laugh:
So we have to go through this for updates rather than flashing a modified firmware, eh? damn
rank78 said:
So we have to go through this for updates rather than flashing a modified firmware, eh? damn
Click to expand...
Click to collapse
Since its a small update you could probably get by just flashing the system and boot images. But I haven't tried it
Sent from my Nexus 5 using XDA Free mobile app
I'd flash everything as described to be safe, I just prefer simply flashing a zip and moving on.
Will updating thru adb wipe my device?
GatorsUF said:
Will updating thru adb wipe my device?
Click to expand...
Click to collapse
You're using thru fastboot, not adb. They're different. But to answer your question the command fastboot -w does wipe your device. You could try it without that command but it may cause problems. Back your device up to Google first. Google had gotten really good at restoring the device after a flash.
You could also try just flashing the system and boot images, run those fastboot commands only and not the other ones. It should update to 5.0.1 without a problem.
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
You're using thru fastboot, not adb. They're different. But to answer your question the command fastboot -w does wipe your device. You could try it without that command but it may cause problems. Back your device up to Google first. Google had gotten really good at restoring the device after a flash.
You could also try just flashing the system and boot images, run those fastboot commands only and not the other ones. It should update to 5.0.1 without a problem.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Thanks, I have actually flashed a few times thru fastboot in the past so I'm not totally lost on the idea. I've always used tibu in the past, will Google restore my data too?
TenderloinShadow said:
EDIT: Noob to flashing stock images here. Need help on how to get the image to install on the device. This is my first ever Nexus device
So there's a new 5.0.1 system image out. I'm rooted, and I remember reading somewhere that the official OTA process won't work if you have modifications to the System partition.
So, I just want to check what I should do. Thanks.
Click to expand...
Click to collapse
Drag and Drop or Copy/Paste Images to {}
STEP #1
fastboot flash bootloader {bootloader.img}
fastboot reboot-bootloader
Step #2
fastboot erase recovery
fastboot format system
fastboot erase boot
fastboot format vendor
fastboot format cache
fastboot erase userdata {optional}
Step#3
fastboot flash recovery {recovery.img}
fastboot flash system {system.img}
fastboot flash boot {boot.img}
fastboot flash vendor {vendor.img}
fastboot flash cache {cache.img}
fastboot reboot-bootloader
Step #4
fastboot erase recovery
fastboot flash recovery {TWRP.img}
Step #5
got to TWRP recovery flash latest super su
reboot done enjoy
thanks @prdog1
fhem said:
Drag and Drop or Copy/Paste Images to {}
STEP #1
fastboot flash bootloader {bootloader.img}
fastboot reboot-bootloader
Step #2
fastboot erase recovery
fastboot format system
fastboot erase boot
fastboot format vendor
fastboot format cache
fastboot erase userdata {optional}
Step#3
fastboot flash recovery {recovery.img}
fastboot flash system {system.img}
fastboot flash boot {boot.img}
fastboot flash vendor {vendor.img}
fastboot flash cache {cache.img}
fastboot reboot-bootloader
Step #4
fastboot erase recovery
fastboot flash recovery {TWRP.img}
Step #5
got to TWRP recovery flash latest super su
reboot done enjoy
thanks @prdog1
Click to expand...
Click to collapse
Why erase recovery twice?
Just dont flash stock recovery
fhem said:
STEP #1
fastboot flash bootloader {bootloader.img}
Click to expand...
Click to collapse
Help, I'm getting the folllowing error message: error: cannot determine image filename for bootloader-flounder-3.43.0.0114.img
and now I'm stuck. I've not done this in ages but couldn't wait and now I don't know what to do.
Double_U said:
Help, I'm getting the folllowing error message: error: cannot determine image filename for bootloader-flounder-3.43.0.0114.img
and now I'm stuck. I've not done this in ages but couldn't wait and now I don't know what to do.
Click to expand...
Click to collapse
Hi, Double_U...
Are you sure you've typed the EXACT command..?
Code:
fastboot flash bootloader bootloader-flounder-3.43.0.0114.img
Reboot the bootloader, enter fastboot, and try again.
Rgrds,
Ged.
Hello
I 'm using Lenovo Tab 2 a7-10f
I tried to flash TWRP recovery throught fastboot.
But i didnt succeed before, so this time, i tried to enter command to open TWRP without need to install it.
___________
I entered fastboot mode via command
adb reboot bootloader
and yes, i did unlocked bootloader
___
then i used this command to put recovery in my tablet just to open that recovery
fastboot -c "lge.kcal=0|0|0|x" boot c:\twrp.img
______
i found this solution on this site
https://android.stackexchange.com/questions/86936/how-to-flash-root-zip-in-fastboot/102597
_______
And now, it is in bootloop, until i click both volume up and down , then it enters TWRP
_______
Tried to go in TWRP , Reboot > Power Off
And it shows logo and dont proccedd more, just stuck there and spining
Until i press both volume up and down, so it opens me TWRP recovery
________
Also tried to go into Reboot > System
But still same issue, not booting up at all
___
If i click Reboot > Recovery
Then it boots me back in TWRP
______
I tried already SPFlash tool before, but it doesnt detect my tablet, even if i have all drivers, and google drivers, and USB debbuging, i'm using this tablet for android app development, so it have all drivers.
_______
I managed to get my data from tablet.
I dont know what to do next.
Should i make some command from computer to boot system, using ADB, i know to use ADB, just i stucked in this weird bootloop.
_____
I'm thinking that i should flash stock ROM from TWRP while it is still alive.
Should i do that, i dont want to lose my data, i have many programs.
I dont care if i lose TWRP recovery, i dont need it after this experience right now???
What should i do
If you flash stock can you resume control and appreciate with repatching of recovery
([emoji813]9/[emoji725]/9[emoji813])
PoochyX said:
If you flash stock can you resume control and appreciate with repatching of recovery
([emoji813]9/[emoji725]/9[emoji813])
Click to expand...
Click to collapse
O, oh man, i just got shocked !!! By all this.
I understood that my problem is in boot,
because this command
fastboot -c "lge.kcal=0|0|0|x" boot c:\twrp.img
tells android that when i press power button, to boot into whatewer it is pointed to.
So this command tells android to boot recovery instead of normal system.
So i just reverted it in bootloader (fastboot) mode, by pushing command
fastboot flash boot c:\boot.img
So it booted up again ) , and also important, without losing any precious data. ))
______
It is true when people say that if everything fails in android, there is always a bootloader that you cant destroy.
And also here are commands for other partitions, in this way you can flash whole system without root or anything, for anybody who face this problem which is very hard to break without ADB, because i think even if i flash stock ROM it will boot recovery because somewhere deep inside, it is written from that bootloader,
Again, never joke with bootloader, if it dont support, it dont support and over, i dont want TWRP anymore.
Dont get in this trouble, mybe nobody will be able to fix it if he dont know how it happened.
______
Commands
_______
adb reboot bootloader (to go into bootloader)
fastboot flash boot boot.img (this is i used)
fastboot flash system system.img (this is ROM, like kitkat, or lolipop)
fastboot flash userdata userdata.img (this can be optional, it means full reset)
fastboot flash recovery recovery.img ( if on twrp , dont flash this thing if not cause problems)
indestructible master said:
O, oh man, i just got shocked !!! By all this.
I understood that my problem is in boot,
because this command
fastboot -c "lge.kcal=0|0|0|x" boot c:\twrp.img
tells android that when i press power button, to boot into whatewer it is pointed to.
So this command tells android to boot recovery instead of normal system.
So i just reverted it in bootloader (fastboot) mode, by pushing command
fastboot flash boot c:\boot.img
So it booted up again ) , and also important, without losing any precious data. ))
______
It is true when people say that if everything fails in android, there is always a bootloader that you cant destroy.
And also here are commands for other partitions, in this way you can flash whole system without root or anything, for anybody who face this problem which is very hard to break without ADB, because i think even if i flash stock ROM it will boot recovery because somewhere deep inside, it is written from that bootloader,
Again, never joke with bootloader, if it dont support, it dont support and over, i dont want TWRP anymore.
Dont get in this trouble, mybe nobody will be able to fix it if he dont know how it happened.
______
Commands
_______
adb reboot bootloader (to go into bootloader)
fastboot flash boot boot.img (this is i used)
fastboot flash system system.img (this is ROM, like kitkat, or lolipop)
fastboot flash userdata userdata.img (this can be optional, it means full reset)
fastboot flash recovery recovery.img ( if on twrp , dont flash this thing if not cause problems)
Click to expand...
Click to collapse
You good now...
([emoji813]9/[emoji725]/9[emoji813])
m
Hi, I'm having some issues trying to install the newest update of A10.
I was on A9 with unlocked bootloader, root and twrp of recovery.
I first tried to install the .rar image via recovery but I couldn't find in the memory, but I already wiped system vendor and data.
So when I rebooted to try if the file was there or not, there was no recovery anymore.
Now I'm trying to flash the newest rom via fastboot but through the flash_all.bat it gives me fastboot tz_a error, so I'm trying to install a recovery through fastboot using this guide https://forum.xda-developers.com/mi-a3/how-to/basic-guide-to-flash-recovery-rom-via-t3989603 but of course it doesn't work and when I reboot it doesn't enter the recovery but always in fastboot (even tho I press the + button).
What should I do now? Is there anyway to erase everything and install a clean OS from 0 just from fastboot? (Without the flash_all or miflash because it doesn't work)
P.S. I don't care about the data, I've done a backup of all my important files before
Thanks for the help
Sapper Morton said:
First, you have to understand what you did. You wiped your system and vendor image, and didn't installed a newer one afterwards, you didn't wiped your recovery (it's inside boot partition).
Further, .rar files will not be flashed through TWRP, .zip must be used instead, with proper format, there must be a compatible flash script inside.
You can't access your recovery, just because you wiped system; inside your bootloader there's a component responsible to manage the slots, bootctl and by default if it detects a corrupted or invalid system partition, it will always boot onto bootloader mode.
As for the tz_a error, you must unlock critical partitions flashing, just because, tz is a critical partition, thus, run in Fastboot:
Code:
fastboot flashing unlock_critical
If you want to know your current state, use:
Code:
fastboot oem device-info
Your current slot is blocked by bootctl, but this doesn't mean your inactive is too, so, use:
Code:
fastboot set_active other
And reboot into TWRP again, that is, if you do have it installed in your inactive slot.
Fastboot/ADB and other tools, you will find it in here:
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
If you want to restore using recovery firmware, please do the favor, and read the post below:
https://forum.xda-developers.com/showpost.php?p=82595733&postcount=379
Click to expand...
Click to collapse
Thanks for the help but I managed to get into the recovery and install the rom via fastboot, the thing I was missing was a recovery working for Android10 (even though I remember recovery doesn't have nothing to do witg the installed OS), so I managed to install the recovery and root, and everything went fine after a few tries between various guides. Probably my partitions now are all messed up, but if I boot normally it goes into system (slot A), if I boot into recovery it goes into twrp and also works fastboot. Probably I also installed the OS on slot b, but I don't care as long the first partition works well
Current State:
TWRP Installed, no OS, no system partition, instead a super partition.
I also flashed an orange_state_disabler which seems to have worked just fine.
ADB Sideload:
When I try to start ADB Sideload Feature this is what I get:
https://pastebin.com/k3gJ048P
when trying to use the adb sideload command:
Code:
adb: sideload connection failed: no devices/emulators found
adb: trying pre-KitKat sideload method...
adb: pre-KitKat sideload connection failed: no devices/emulators found
I converted the lineageos img file I have to a flashable zip using the tool from here:
https://forum.xda-developers.com/nu.../swapper-generate-flashable-zips-img-t4133591
but when I try to flash that zip file tho it returns this:
Code:
Installing zip file '/usbotg/system.zip'
Checking for Digest file...
Unmounting System...
Invalid zip file format!
Error installing zip file '/usbotg/system.zip'
Updating partition details...
...done
so... yeah, I don't know what else to do right now.
A Custom ROM like LineageOS can only get installed via TWRP, not by any other means: in no case by "adb sideload".
jwoegerbauer said:
A Custom ROM like LineageOS can only get installed via TWRP, not by any other means: in no case by "adb sideload".
Click to expand...
Click to collapse
Heh, I was just trying to get the ROM on the device so I could flash it then via TWRP but maybe I just misunderstood what adb sideload does
0
Seppppx said:
The Oneplus 8 Pro has a dynamic partition layout and you flash a system image by doing "fastboot flash system system.img"
See : https://forum.xda-developers.com/oneplus-8-pro/development/rom-lineageos-17-1-t4122983
Click to expand...
Click to collapse
Yeah I tried that already, the problem is that it doesn't have a system partition
MoonPadUSer said:
Yeah I tried that already, the problem is that it doesn't have a system partition
Click to expand...
Click to collapse
Your posted error messsage suggests the zip install has failed. So no change to device should have happened.
Current twrp cannot flash system.img
Only super.img(combined system.img, vendor.img, and product.img)
The systemswapper you refered to is from a qualcom device thread, and uses some *qti* device binaries that are not in your recovery. It is unlikely to have worked. (I might be wrong about the *qti* binary being only a qualcom device tool)
These new devices with dynamic partition have 2 fastboot modes.
The bootloader mode (adb reboot bootloader)
This is used for unlocking bootloader, flashing standard partitions
There is fastbootd mode (adb reboot fastboot)
This mode is only available if stock recovery is installed.
It also requires r30 or higher fastboot binary file on PC.
From fastbootd you can flash the sub partitions on super.img
There is alot of changes that take place with this new partition setup.
As for your phone no longer booting into original system, and bootlooping to recovery, I suggest first try boot to bootloader, and flash stock recovery, see if this stopps the bootlooping.
If not then use sp flash tool and flash full stock room and start fresh
mrmazak said:
From fastbootd you can flash the sub partitions on super.img
Click to expand...
Click to collapse
How?
MoonPadUSer said:
How?
Click to expand...
Click to collapse
Fastbootd is part of stock recovery, it will look different than what you may be used to as being fastboot mode.
You should see options on screen to select just like stock recovery has.
One for boot to bootloader
One for boot to recovery.
When you confirm you are in fastbootd
You just use
Code:
fastboot flash system /some-directory-on -pc/gsi-system.img
You should see messages on screen
Resizing system
Sending sparce system chunck. 1 of x
Writing system chunck 1 of x
There could be more descriptive guide on flashing gsi on dyniamic partitions if your Search google, (xda).
But it is hard to guide you to fixing device, when I'm not sure how you got stuck. I mean the description you have said should not have made you loose system partition or fail to boot, so I said it before and will suggest it again. If you have a non booting device , the FIRST thing you should do is flash it with sp flash tool and full factory rom, before messing around with other stuff before you get into worse condition
MoonPadUSer said:
How?
Click to expand...
Click to collapse
I did another post about using fastbootd on similar device. The information is all relevant to your a7pro too.
https://forum.xda-developers.com/showpost.php?p=83241985&postcount=3
mrmazak said:
Fastbootd is part of stock recovery, it will look different than what you may be used to as being fastboot mode.
You should see options on screen to select just like stock recovery has.
One for boot to bootloader
One for boot to recovery.
When you confirm you are in fastbootd
You just use
You should see messages on screen
Resizing system
Sending sparce system chunck. 1 of x
Writing system chunck 1 of x
There could be more descriptive guide on flashing gsi on dyniamic partitions if your Search google, (xda).
But it is hard to guide you to fixing device, when I'm not sure how you got stuck. I mean the description you have said should not have made you loose system partition or fail to boot, so I said it before and will suggest it again. If you have a non booting device , the FIRST thing you should do is flash it with sp flash tool and full factory rom, before messing around with other stuff before you get into worse condition
Click to expand...
Click to collapse
Ok, I am back to a fully working device again, where I got stuck was that I do not have a system partition, thus I can't flash it. Whenever I try to flash it using fastboot flash system or anything else, it just says that I do not have a system partition
Where I am right now:
I am back to a fully working device after downloading the stock ROM from my manufacturer and plugging that into SP Flash tool
After that I researched and figured out that the super partition I have basically acts like a container for
system.img, boot.img and vendor.img
which explains while simply flashing LineageOS.img to my super partition (
Code:
fastboot flash system Lineage.img
) resulted in
my device not booting anymore.
I found a tool which can unpack those super.img into system, boot and vendor
(using this youtube video: https://youtu.be/J5cQdzivtXk)
I used that to unpack the super.img which I got from my stock ROM and
now I have system.raw, boot.raw and vendor.raw, I do not know what kind of file these are but my plan is to replace system.whatever with the lineageos.img and then repack it into super.img which I can then use to flash the super partition on my phone
MoonPadUSer said:
Ok, I am back to a fully working device again, where I got stuck was that I do not have a system partition, thus I can't flash it. Whenever I try to flash it using fastboot flash system or anything else, it just says that I do not have a system partition
Click to expand...
Click to collapse
Can you show picture of this .
Of both pc screen and phone screen, please
mrmazak said:
Can you show picture of this .
Of both pc screen and phone screen, please
Click to expand...
Click to collapse
I'd love to but how am I supposed to take a picture of my phone screen in fastboot mode? (I don't have any other devices with a camera)
@MoonPadUSer
Code:
fastboot flash system Lineage.img
must have failed.
Reason: This command tries to write a complete Lineage OS ( what itself contains a partition named /system, too ) into phone's Android's current /system partition - what only is 1 partition of multiple ones that exist.
Note: You can't flash a Custom ROM by means of Fastboot.
Re-read post #2
0
Seppppx said:
That's not true when you are flashing a Generic System Image.
Click to expand...
Click to collapse
ROFL
Remember OP wants to install LineageOS 17.1 what isn't a GSI as it is with LineageOS 18.x
jwoegerbauer said:
ROFL
Remember OP wants to install LineageOS 17.1 what isn't a GSI as it is with LineageOS 18.x
Click to expand...
Click to collapse
Actually... I don't really care about the version all that much, whatever works, just didn't know if 18x is supported
Downside to Lineage GSI is for Umidigi you can't flash gapps. So unless someone adds it to the gsi for you it's best to use something else.
I went with this
https://forum.xda-developers.com/pr...velopment/aosp-10-0-quack-phh-treble-t3992559
You have to get the AB version with GAPPS if you want them
Comes pre rooted as well and gave my phone a huge speed boost
Flash the stock ROM
Unlock bootloader
fastboot flashing unlock
(unnecessary if already unlocked)
fastboot flashing unlock_critical
enter fastboot
fastboot reboot (to enter fastbootd)
fastboot erase system
(optional but I had to do this myself)
fastboot delete-logical-partition product - deletes the product partition, allowing a larger system partition
fastboot flash system (gsi file)
And you're good
Don't try to install magisk because it causes a bootloop. Even when installing it through the app. Once the boot image is patched you're in a bootloop until you reflash the stock boot
Made a generic ish Umidigi flashing tutorial because it's the same in all of them I've had so far
https://forum.xda-developers.com/an...ng-rom-gsi-t4182673/post83803205#post83803205