Convert to yakju questions - Samsung Galaxy Nexus

I have 2 questions now,
I saw this guide: http://forum.xda-developers.com/showthread.php?t=1626895
But I did understand it but isn't a guide with a Galaxy Nexus Root Toolkit? I saw that in this guide: http://webtrickz.com/guide-to-updat...oid-4-0-4-and-get-future-updates-from-google/
It looks like the same, only is this with a gui, so I won't type things wrong, would this be wrong to use?
And...
If I change to yakju and lock the bootloader ( I just want to have everything stock again after that ), can you see then anywhere if you changed to yakju? So if I send it in for warrenty they won't know it?

Marc. said:
I have 2 questions now,
I saw this guide: http://forum.xda-developers.com/showthread.php?t=1626895
But I did understand it but isn't a guide with a Galaxy Nexus Root Toolkit? I saw that in this guide: http://webtrickz.com/guide-to-updat...oid-4-0-4-and-get-future-updates-from-google/
It looks like the same, only is this with a gui, so I won't type things wrong, would this be wrong to use?
And...
If I change to yakju and lock the bootloader ( I just want to have everything stock again after that ), can you see then anywhere if you changed to yakju? So if I send it in for warrenty they won't know it?
Click to expand...
Click to collapse
1) use the first link you posted. dont use the toolkit. http://forum.xda-developers.com/showthread.php?t=1626895
2) no, they wont be able to really tell anything.

Zepius said:
1) use the first link you posted. dont use the toolkit. http://forum.xda-developers.com/showthread.php?t=1626895
2) no, they wont be able to really tell anything.
Click to expand...
Click to collapse
Why not use the toolkit? It looks much easier.
And do I have to do all the optional things also?
Then it would be this?
1) Make sure your computer recognizes your device by typing: fastboot devices
2) Unlock your bootloader (if you have not already done so): fastboot oem unlock
3) You will see a prompt on your device. This will wipe your entire device (including the /sdcard folder). Accept.
4) Reboot by typing: fastboot reboot-bootloader
9) Flash the system partition: fastboot flash system system.img
10) Flash the data partition: fastboot flash userdata userdata.img Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.
11) Flash the boot partition: fastboot flash boot boot.img
12) Optional (but recommended) -- Flash the recovery partition: fastboot flash recovery recovery.img
13) Erase the cache partition: fastboot erase cache
15) Reboot: fastboot reboot
16) Done! The first boot will likely take quite a bit longer than you are used to, as Android builds the Dalvik cache.

Marc. said:
Why not use the toolkit? It looks much easier.
And do I have to do all the optional things also?
Then it would be this?
1) Make sure your computer recognizes your device by typing: fastboot devices
2) Unlock your bootloader (if you have not already done so): fastboot oem unlock
3) You will see a prompt on your device. This will wipe your entire device (including the /sdcard folder). Accept.
4) Reboot by typing: fastboot reboot-bootloader
9) Flash the system partition: fastboot flash system system.img
10) Flash the data partition: fastboot flash userdata userdata.img Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.
11) Flash the boot partition: fastboot flash boot boot.img
12) Optional (but recommended) -- Flash the recovery partition: fastboot flash recovery recovery.img
13) Erase the cache partition: fastboot erase cache
15) Reboot: fastboot reboot
16) Done! The first boot will likely take quite a bit longer than you are used to, as Android builds the Dalvik cache.
Click to expand...
Click to collapse
if something happens in the middle of you doing it the way in the link i mentioned, its easier to figure out how to fix items when you're on a certain step.
the toolkit is easier, but if something messes up, its hard to tell where since you have no idea what it is doing
the only other step is once everything is booted back up on yakju and is working properly, go back to fastboot and relock the bootloader with fastboot oem lock

So you say these steps will be right?
1) Make sure your computer recognizes your device by typing: fastboot devices
2) Unlock your bootloader (if you have not already done so): fastboot oem unlock
3) You will see a prompt on your device. This will wipe your entire device (including the /sdcard folder). Accept.
4) Reboot by typing: fastboot reboot-bootloader
5) Flash the system partition: fastboot flash system system.img
6) Flash the data partition: fastboot flash userdata userdata.img Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.
7) Flash the boot partition: fastboot flash boot boot.img
8) Optional (but recommended) -- Flash the recovery partition: fastboot flash recovery recovery.img
9) Erase the cache partition: fastboot erase cache
10) Reboot: fastboot reboot
11) Done! The first boot will likely take quite a bit longer than you are used to, as Android builds the Dalvik cache.
12) Lock bootloader again with: fastboot oem lock
And how could I see when its finished flashing for example system.img?
And this would work on doesn't matter what firmware you're on?

Marc. said:
I have 2 questions now,
I saw this guide: http://forum.xda-developers.com/showthread.php?t=1626895
But I did understand it but isn't a guide with a Galaxy Nexus Root Toolkit? I saw that in this guide: http://webtrickz.com/guide-to-updat...oid-4-0-4-and-get-future-updates-from-google/
It looks like the same, only is this with a gui, so I won't type things wrong, would this be wrong to use?
And...
If I change to yakju and lock the bootloader ( I just want to have everything stock again after that ), can you see then anywhere if you changed to yakju? So if I send it in for warrenty they won't know it?
Click to expand...
Click to collapse
Yes, if they check build.prop (unlikely that they will if you relock bootloader), they will be able to see the yakju fingerprint.
Marc. said:
So you say these steps will be right?
1) Make sure your computer recognizes your device by typing: fastboot devices
2) Unlock your bootloader (if you have not already done so): fastboot oem unlock
3) You will see a prompt on your device. This will wipe your entire device (including the /sdcard folder). Accept.
4) Reboot by typing: fastboot reboot-bootloader
5) Flash the system partition: fastboot flash system system.img
6) Flash the data partition: fastboot flash userdata userdata.img Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.
7) Flash the boot partition: fastboot flash boot boot.img
8) Optional (but recommended) -- Flash the recovery partition: fastboot flash recovery recovery.img
9) Erase the cache partition: fastboot erase cache
10) Reboot: fastboot reboot
11) Done! The first boot will likely take quite a bit longer than you are used to, as Android builds the Dalvik cache.
12) Lock bootloader again with: fastboot oem lock
And how could I see when its finished flashing for example system.img?
And this would work on doesn't matter what firmware you're on?
Click to expand...
Click to collapse
Why don't you download yakju factory image from Google? It has a bash script that can flash everything for you, in the right order. If you edit flash-all.sh, you'll see the fastboot commands it runs. That's the order you need to run them.
Sent from my i9250

Related

(V-510 GPE) - Return to Stock using Fastboot

Hi, I would like to get a verification that the following procedure would work on the GPAD GPE V-510 to return back to Stock if ever needed. I am used to Nexus devices and using Factory images with Fastboot when needed and would like to have the same ability on the GPAD.
1st step was I made a TWRP backup when the device was pretty much stock (no root, standard recovery and kernel) and copied the files back to my PC.
Since then I have flashed custom recovery (TWRP) and Kernel (SleekAI)
Now if I enter Bootloader / Fastboot mode (Vol-Down + Power), would it be possible commands to return back to this state if for some reason TWRP recovery was no longer available and I wanted to restore back this image:
Check Tablet is visible in Fastboot mode:
fastboot devices
Restore Backups using Fastboot:
fastboot flash recovery recovery.emmc.win
fastboot flash boot boot.emmc.win
fastboot flash system system.ext4.win
fastboot flash userdata data.ext4.win
fastboot erase cache
fastboot reboot
Also do we need to restore / flash userdata or could we just issue the following command to format (erase) the data and it would return to its original state?
fastboot format userdata
If someone can confirm that this would work it would be appreciated, also do you think the backup images from 1 device could be used on other v-510 devices? If so I could post them and this procedure for anyone else needed to use this to return to Stock.
Thank you for your help,
Shaun

"No Sim Card detected" (due to TWRP backup restore) fix through fastboot commands?

"No Sim Card detected" (due to TWRP backup restore) fix through fastboot commands?
Yesterday I had to restore my phone to a previous ROM (stock MM) from RR 5.8.5 Nightly. This was due to my working from home and needing to generate an RSA soft token, which is set up on an app on the backup, yadda yadda... Anyway, my restore worked fine, and I was able to generate my key and work from home.
However... when I went to use my phone, I noticed that the SIM card was no longer detected. I tried restoring my RR rom, and it too would not detect my Sim card.
In my attempts to find a fix, and then my attempt to restore the stock firmware and bootloader (that seems to be the only fix), I managed to royally hose my phone by attempting to flash the Full Stock LL ROM, which failed and must have overwritten the bootloader and recovery partitions. Trying to turn the phone on resulted in a vibration, but only a black screen. I was able to unbrick the phone using various guides I scrounged up and utilizing XFSTK and IntelSOC drivers, which must be installed when Windows 10 is booted with the special option to install unsigned drivers enabled (hold shift when you click restart, then option 7). I can post what I went through when I get home to my files and stuff if anyone requests it. Asus Flash Tool refused to flash the raw firmware (wrong format my ass), so I had to manually run the fastboot options. Everything was hunky dory after this.
Every fix for the SIM card issue pointed to reverting to stock firmware, which is what I did. However, I'm thinking there must be some key partition that I flashed in fastboot that revived the SIM. I performed the below commands from this thread . Does anyone see a command that screams "I'm fixing sim card issues"?
1. fastboot devices ( see if it is recognized: else plug out usb and plugin again)
2. fastboot oem erase_osip_header
3. fastboot oem start_partitioning
4. fastboot flash /tmp/partition.tbl partition.tbl
5. fastboot oem partition /tmp/partition.tbl
6. fastboot erase system
7. fastboot erase cache
8. fastboot erase data
9. fastboot erase APD
10. fastboot erase ADF
11. fastboot oem wipe splashscreen
12. fastboot oem stop_partitioning
13. fastboot flash splashscreen splash_sign.bin
14. fastboot flash token MFG_BOM_Full.bin
15. fastboot flash ifwi ifwi-prod.bin
16. fastboot flash boot boot_sign.bin
17. fastboot flash recovery recovery_sign.bin
18. fastboot flash fastboot droidboot_sign.bin
19. fastboot flash APD APD.img
20. fastboot flash system system.img
21. fastboot reboot
Click to expand...
Click to collapse
If we can get the fix for an undetected SIM card after TWRP backup down to a few (or single) fastboot command, it'd be a nice convenience for us all.
Alternatively, does anyone know of a proper way to restore TWRP backups without losing SIM card detection?
UPDATE SECTION
I had found this site while searching for a solution yesterday, and it has the following fastboot commands for fixing the sim issue:
adb reboot bootloader
fastboot erase modemst1
fastboot erase modemst2
fastboot reboot
Click to expand...
Click to collapse
So in this case, the modem partition is being erased. But I don't see anything in the unbricking fastboot commands that erases the modem partition. Am I just missing it? I could see my IMEI in Sim Slot 1, so maybe it wasn't a modem partition issue.
-------------------------------------------------------------------------------------------------------------------
Found this thread (How did I miss it before?): https://forum.xda-developers.com/zenfone2/general/guide-how-to-zenfone-t3173314
The minimal boot options he listed are all in TWRP 3.1.1-0. The only thing I was missing before was config... I'm thinking that might be the key to preventing this. Next step is to determine if there's a config partition, and what happens when you do stuff to it (and ultimately how to restore the partition when you don't have a TWRP backup on hand).

[Flashing STOCK ROM from Custom Rom] [No Recovery Mode, Fastboot accessible]

I followed these steps and now my Asus zf2 (ze551ml) is back alive! For the issue mentioned below, I didn't find much anywhere so I thought I'd put here what helped me.
Issue: Only fastboot mode accessible, can't enter recovery. (Also my bootloader was locked, MM bootloader, No OS). After selecting recovery mode from bootloader, again it enters fastboot, i.e the process in video above couldn't install the recovery (This must be because my bootloader was locked). I tried unlocking the bootloader by the .bat files available on XDA but since I'd not enabled OEM unlocking, unlocking failed everytime. My OS got wiped out, so only fastboot mode was accessible.
Solution:
I believe you have installed Minimal ADB and fastboot on your PC.
Download the raw file from the XDA thread.
Now first of all, change extention of the .raw firmware file to .zip.
Then just extract all files from it into adb and fastboot folder.
Now in folder (where you placed files from raw firmware and adb and fastboot tool folder) at empty place anywhere in folder hold Shift on computer keyboard and right click with mouse. Now click open command window here.
Perform the following commands one after another:
1. fastboot devices ( see if it is recognized: else plug out usb and plugin again, if USB debugging was on then this will definitely work)
2. fastboot oem erase_osip_header
3. fastboot oem start_partitioning
4. fastboot flash /tmp/partition.tbl partition.tbl
5. fastboot oem partition /tmp/partition.tbl
6. fastboot erase system
7. fastboot erase cache
8. fastboot erase data
9. fastboot erase APD
10. fastboot erase ADF
11. fastboot oem wipe splashscreen
12. fastboot oem stop_partitioning
13. fastboot flash splashscreen splash_sign.bin
14. fastboot flash token MFG_BOM_Full.bin
15. fastboot flash ifwi ifwi-prod.bin
16. fastboot flash boot boot_sign.bin
17. fastboot flash recovery recovery_sign.bin
18. fastboot flash fastboot droidboot_sign.bin
19. fastboot flash APD APD.img
20. fastboot flash system system.img
21. fastboot reboot
Phone will successfully reboot into system. Don't worry, first boot gonna take a little longer time.
Download raw file
Hello,
From where I can download raw file? Can you please provide a link?
Thanks in advance
bb04 said:
Hello,
From where I can download raw file? Can you please provide a link?
Thanks in advance
Click to expand...
Click to collapse
OP forgot to post link from he copied commands.
https://forum.xda-developers.com/zenfone2/help/thead-bricked-phone-updating-to-mm-tips-t3452785
sukhwant717 said:
OP forgot to post link from he copied commands.
https://forum.xda-developers.com/zenfone2/help/thead-bricked-phone-updating-to-mm-tips-t3452785
Click to expand...
Click to collapse
FYI, I didn't add the links because one can't add external links in their first posts.
mukunds11 said:
FYI, I didn't add the links because one can't add external links in their first posts.
Click to expand...
Click to collapse
it could be better if you would have removed or edited last line while copying commands
help. my phone condition is just like this. at first when i connected my phone to computer, powershell detected it, but then after a while, my phone disappeared from powershell. can someone help me ?
edit, i just did the thing and its doing fine even though my phone look like it is not detected

Unable to boot into ROM after flashing

Hey guys! Need some help.
I've been trying to flash a Android Pie ROM on my device and I have no success.
The problem is, after flashing the rom and TWRP Zip the device reboots twice then boots back into TWRP.
Then all the files on the device has random letters and numbers (i.e. ckjrdh574o0hmdu749y7nv)
Why can't I flash a Android Pie rom successfully?
I am on the latest Android Pie update. (Flashed on both slots)
Here is my steps:
Flash stock rom on both slots
Boot up in stock rom. (no set up, no password, no pin, nothing totally skipped setup)
Place files on device (Rom and twrp.zip)
Reboot into Bootloader
Boot into latest TWRP using fastboot
Once in Twrp, slide slider to allow modification to system parition
Factory reset/wipe data (and all that)
Flash rom (I tried Carbon Rom 7 and lineage os 16)
Flashed twrp zip
reboot
After the system reboots twice I am back in twrp and all the files and folder have numbers and letters as files names.
Any idea as to why this keeps happening?
How can I fix this?
MichaelDrakeMS said:
Hey guys! Need some help.
I've been trying to flash a Android Pie ROM on my device and I have no success.
The problem is, after flashing the rom and TWRP Zip the device reboots twice then boots back into TWRP.
Then all the files on the device has random letters and numbers (i.e. ckjrdh574o0hmdu749y7nv)
Why can't I flash a Android Pie rom successfully?
I am on the latest Android Pie update. (Flashed on both slots)
Here is my steps:
Flash stock rom on both slots
Boot up in stock rom. (no set up, no password, no pin, nothing totally skipped setup)
Place files on device (Rom and twrp.zip)
Reboot into Bootloader
Boot into latest TWRP using fastboot
Once in Twrp, slide slider to allow modification to system parition
Factory reset/wipe data (and all that)
Flash rom (I tried Carbon Rom 7 and lineage os 16)
Flashed twrp zip
reboot
After the system reboots twice I am back in twrp and all the files and folder have numbers and letters as files names.
Any idea as to why this keeps happening?
How can I fix this?
Click to expand...
Click to collapse
Flash stock
finish setup
before doing anything else
MichaelDrakeMS said:
Hey guys! Need some help.
I've been trying to flash a Android Pie ROM on my device and I have no success.
The problem is, after flashing the rom and TWRP Zip the device reboots twice then boots back into TWRP.
Then all the files on the device has random letters and numbers (i.e. ckjrdh574o0hmdu749y7nv)
Why can't I flash a Android Pie rom successfully?
I am on the latest Android Pie update. (Flashed on both slots)
Here is my steps:
Flash stock rom on both slots
Boot up in stock rom. (no set up, no password, no pin, nothing totally skipped setup)
Place files on device (Rom and twrp.zip)
Reboot into Bootloader
Boot into latest TWRP using fastboot
Once in Twrp, slide slider to allow modification to system parition
Factory reset/wipe data (and all that)
Flash rom (I tried Carbon Rom 7 and lineage os 16)
Flashed twrp zip
reboot
After the system reboots twice I am back in twrp and all the files and folder have numbers and letters as files names.
Any idea as to why this keeps happening?
How can I fix this?
Click to expand...
Click to collapse
Not sure if Carbon / Lineage has special install instructions or not, but you can follow the initial 9x setup in the link in my sig, then follow cust Rom installation process.
parakleet said:
Flash stock
finish setup
before doing anything else
Click to expand...
Click to collapse
Yup I did. I just didn't sign in my account or do the security pin/pixel imprint. I skipped everything untill I was at the home/launcher.
Az Biker said:
Not sure if Carbon / Lineage has special install instructions or not, but you can follow the initial 9x setup in the link in my sig, then follow cust Rom installation process.
Click to expand...
Click to collapse
Nothing to special from the norm. I didn't everything the forums told me to do.
Okay definitely, I'll check that out and try those steps.
Also do you think I have a phone that twrp can't decrypt? I remember a while back doing one of the twrp updates that some phones won't decrypt because it used the older encryption method or something like that and TWRP was only able to decrypt then phones using the new method or something like that.
Oh and another question, do you guys think I should root the stock image with magisk then boot into twrp using fastboot and install the room then the twrp.zip?
My question would be do you have other details you might have overlooked? For example, at the end of flashing, TWRP would usually ask whether you want to install their app. Did you install it or did you skip it?
Also, what was your exact procedure in flashing stock rom to both slots? I have also messed around with custom roms and reverted back to stock using the following:
Return to Stock:
Source of this knowledge is Method 2 of this video.
#flashing bootloader to slot A and slot B
Code:
fastboot reboot-bootloader
fastboot flash bootloader_a bootloader[...].img
fastboot reboot-bootloader
fastboot flash bootloader_b bootloader[...].img
#flashing radio to slot A and slot B
Code:
fastboot reboot-bootloader
fastboot flash radio_a radio[...].img
fastboot reboot-bootloader
fastboot flash radio_b radio[...].img
#set active slot to B, flash system image
Code:
fastboot --set-active=b
fastboot reboot-bootloader
fastboot --skip-reboot --skip-secondary update image[...].zip
#set active slot to A, flash system image [different command!!!]
Code:
fastboot --set-active=a
fastboot reboot-bootloader
fastboot --skip-reboot update image[...].zip
Now straight from the bootloader, boot into recovery.
Wipe data/factory reset.
Let it reboot back into android.
Then, I followed the install instructions in the twrp thread to get custom recovery back onto my device. (If you want rooted stock android, flash it from twrp and then install the latest magisk manager apk.)
Now just find another custom rom and follow the install directions from that thread.
amartolos said:
My question would be do you have other details you might have overlooked? For example, at the end of flashing, TWRP would usually ask whether you want to install their app. Did you install it or did you skip it?
Also, what was your exact procedure in flashing stock rom to both slots? I have also messed around with custom roms and reverted back to stock using the following:
Return to Stock:
Source of this knowledge is Method 2 of this video.
#flashing bootloader to slot A and slot B
Code:
fastboot reboot-bootloader
fastboot flash bootloader_a bootloader[...].img
fastboot reboot-bootloader
fastboot flash bootloader_b bootloader[...].img
#flashing radio to slot A and slot B
Code:
fastboot reboot-bootloader
fastboot flash radio_a radio[...].img
fastboot reboot-bootloader
fastboot flash radio_b radio[...].img
#set active slot to B, flash system image
Code:
fastboot --set-active=b
fastboot reboot-bootloader
fastboot --skip-reboot --skip-secondary update image[...].zip
#set active slot to A, flash system image [different command!!!]
Code:
fastboot --set-active=a
fastboot reboot-bootloader
fastboot --skip-reboot update image[...].zip
Now straight from the bootloader, boot into recovery.
Wipe data/factory reset.
Let it reboot back into android.
Then, I followed the install instructions in the twrp thread to get custom recovery back onto my device. (If you want rooted stock android, flash it from twrp and then install the latest magisk manager apk.)
Now just find another custom rom and follow the install directions from that thread.
Click to expand...
Click to collapse
Now that's all the steps j took to flash the roms.
I do not install twrp app I skip that.
My first methond to flash stock on both slots is set slot to a then flash stock using the flash all bat file in from the stock images (google directions to flashing images)
Then it would reboot. Then I would set to slot b and flash the stock images the same way using the bat file.
Then I found out that wasn't really the best way to do it so I used deuces (I believe that was the users name) bat file to flash the stock images on both slots the correct way and that's what I've been doing since.
But your steps have a different step then what I do. It seems it does the same as deuces bat file however once it's done I just boot straight into stock rom. I dont boot into stock recovery and factory wipe. But I will definitely try that as well.
Finally fixed it!
I flash both slots and followed everyone's directions.
The problem was I wasn't wiping all the things I needed too.
I read in another roms steps to not only do the factory reset thin in TWRP, but to also manually wipe system, data, dalvik/art cache. Then flashed the room and TWRP.zip.
I did this and BOOM, I booted up into the room! Thanks again for everyone's help!
amartolos said:
My question would be do you have other details you might have overlooked? For example, at the end of flashing, TWRP would usually ask whether you want to install their app. Did you install it or did you skip it?
Also, what was your exact procedure in flashing stock rom to both slots? I have also messed around with custom roms and reverted back to stock using the following:
Return to Stock:
Source of this knowledge is Method 2 of this video.
#flashing bootloader to slot A and slot B
Code:
fastboot reboot-bootloader
fastboot flash bootloader_a bootloader[...].img
fastboot reboot-bootloader
fastboot flash bootloader_b bootloader[...].img
#flashing radio to slot A and slot B
Code:
fastboot reboot-bootloader
fastboot flash radio_a radio[...].img
fastboot reboot-bootloader
fastboot flash radio_b radio[...].img
#set active slot to B, flash system image
Code:
fastboot --set-active=b
fastboot reboot-bootloader
fastboot --skip-reboot --skip-secondary update image[...].zip
#set active slot to A, flash system image [different command!!!]
Code:
fastboot --set-active=a
fastboot reboot-bootloader
fastboot --skip-reboot update image[...].zip
Now straight from the bootloader, boot into recovery.
Wipe data/factory reset.
Let it reboot back into android.
Then, I followed the install instructions in the twrp thread to get custom recovery back onto my device. (If you want rooted stock android, flash it from twrp and then install the latest magisk manager apk.)
Now just find another custom rom and follow the install directions from that thread.
Click to expand...
Click to collapse
I stumbled across this post after having several issues trying to get my Pixel 2 XL flashed with a custom ROM (constantly resulting in boot-loops), and the steps worked perfectly.
I've ended up running these steps several times today, but I like keeping all of my stock images in sub-folders by release date. I'm not the greatest Powershell guru, but I've written a script that will search sub-directories in a folder for dates, and select the latest date and automatically flash the radio, bootloader, and image from that directory using your steps.
Code:
clear;
# Execution Policy must be adjusted in order to obtain the current executing directory of the script. This is a one-time command that must be run separately.
# Set-ExecutionPolicy RemoteSigned
# To reverse the command set the execution policy to restricted:
# Set-ExecutionPolicy Restricted
# The root directory which contains date sub-folders in the format yyyy-MM-dd representing an extracted OTA zip.
$startingDirectory = split-path -parent $MyInvocation.MyCommand.Definition;
# Alternatively, hard code a starting directory.
# [System.String]$startingDirectory = 'D:\Flashing\Roms\Taimen\Stock\';
[System.String]$targetFolder = (Get-ChildItem $startingDirectory | Select-Object -Property @{Name='Date';Expression = { Get-Date $_.Name -Format 'yyyy-MM-dd' }}, @{Name='FullName';Expression= {$_.FullName}} | Sort Date -Descending | Select -First 1).FullName;
if (-not $targetFolder) {
throw 'No folders are located in directory ''' + $startingDirectory + ''' with the date format yyyy-MM-dd.';
}
[System.String]$bootloader = Get-ChildItem $targetFolder -Name 'bootloader-*.img';
[System.String]$radio = Get-ChildItem $targetFolder -Name 'radio-*.img';
[System.String]$image = Get-ChildItem $targetFolder -Name 'image-*.zip';
# Validate all files have been successfully located.
[System.Collections.Generic.List[System.String]]$messages = [System.Collections.Generic.List[System.String]]::new();
if (-not $bootloader) {
$messages.Add('The bootloader file was not located.');
}
if (-not $radio) {
$messages.Add('The radio file was not located.');
}
if (-not $image) {
$messages.Add('The image file was not located.');
}
if ($messages.Length -gt 0) {
throw 'Unable to locate files in path ''' + $targetFolder + ''':' + [Environment]::NewLine + [System.String]::Join([Environment]::NewLine, $messages);
}
$bootloader = [System.IO.Path]::Combine($targetFolder, $bootloader);
$bootloader;
$radio = [System.IO.Path]::Combine($targetFolder, $radio);
$radio;
$image = [System.IO.Path]::Combine($targetFolder, $image);
$image;
#adb reboot bootloader;
function Reboot-Bootloader {
fastboot reboot-bootloader;
sleep 5;
}
#flashing bootloader to slot A and slot B
'Flashing bootloader to slot A.'
Reboot-Bootloader;
fastboot flash bootloader_a $bootloader;
'Flashing bootloader to slot B.'
Reboot-Bootloader;
fastboot flash bootloader_b $bootloader;
#flashing radio to slot A and slot B
'Flashing radio to slot A.'
Reboot-Bootloader;
fastboot flash radio_a $radio;
'Flashing radio to slot B.'
Reboot-Bootloader;
fastboot flash radio_b $radio;
#set active slot to B, flash system image
'Flashing system image to slot B.'
fastboot --set-active=b;
Reboot-Bootloader;
fastboot --skip-reboot --skip-secondary update $image;
#set active slot to A, flash system image [different command!!!]
'Flashing system image to slot A.'
fastboot --set-active=a;
Reboot-Bootloader;
fastboot --skip-reboot update $image;

i cannot boot a gsi, always bootloop

so I've been trying to install a gsi for 5+ hours, I can never even get to the system boot animation. I've used permissiver, disable dm-verity, I've tried phh, erfans miui, oneui, oos, but cant get to the bootanimation. here are the steps i followed:
1. format
2. flash lineageos
3. wipe cache, dalvik, system, data
4 flash system.img gsi to system
5. flash permissiver and disable dmverity
6. reboot system
7. I get a redmi logo for 4 seconds, a black screen for 1 second and it keeps looping.
pls somebody help
You need to create a vendor.
hussain_mdj said:
You need to create a vendor.
Click to expand...
Click to collapse
pls elaborate, do i need to backup my current vendor, and then restore after installing the system.img?
I don't know why you have process steps like above, but basically the steps should be ( tested and used by me and all 2k members of my grp ) :
1st, you should be on stock, because GSI has only System images, and for a device to work, it need more than just a System images.
Boot into system, using adb reboot bootloader to get into bootloader mode ( or you can use hard keys, its up to you ). Execute these command in correct order :
fastboot devices ( check if device is connected )
fastboot reboot fastboot
fastboot --disable-verification flash vbmeta vbmeta.img ( remember to use patched vbmeta.img )
fastboot erase system
fastboot flash system system.img ( change to gsi's image file name )
fastboot -w
fastboot reboot bootloader
fastboot erase userdata
fastboot reboot
It may depends on what kind of device u have, but basically it should be like this. Try and feedback.

Categories

Resources