Applying vendor.img after updating Pure Nexus - Nexus 6P Q&A, Help & Troubleshooting

Hello
I have Pure Nexus rom installed. I updated the Pure Nexus zip just fine. When I tried to flash the vendor .img file form TWRP ,I chose "Install", "Install Image" and then chose MMB29V_vendor.img and it then prompted me to choose which partition to flash image, Boot or recovery. I'm not sure what to choose and why. Any help would be appreciated.
Thanks

chickenbristle said:
Hello
I have Pure Nexus rom installed. I updated the Pure Nexus zip just fine. When I tried to flash the vendor .img file form TWRP ,I chose "Install", "Install Image" and then chose MMB29V_vendor.img and it then prompted me to choose which partition to flash image, Boot or recovery. I'm not sure what to choose and why. Any help would be appreciated.
Thanks
Click to expand...
Click to collapse
You are on an old version of twrp. You need to update twrp to version 3.00. When you do that you will have the option to install the vendor.IMG to the vendor partition.

murphyjasonc said:
You are on an old version of twrp. You need to update twrp to version 3.00. When you do that you will have the option to install the vendor.IMG to the vendor partition.
Click to expand...
Click to collapse
Thanks so much, I'll try that!

chickenbristle said:
Thanks so much, I'll try that!
Click to expand...
Click to collapse
Wait, stop! Before flashing twrp you should create a pin 4 digit when rom is booted (settings>security). Because twrp will encrypt Upon first boot with "default_password" except you cant use that as a password or decrypt with it. So create 4 digit pin when phones booted in your rom, then use flashify to flash new twrp 3.0.0.0 or .1 (its easy), then boot into recov while useing pin to decrypt data. When you next boot into your rom you can change security to swipe or nothing. So next time you boot twrp you wont get a "can not decrypt data" message. Even when there is no encryption pass word set.
This is from experience.
Twrp latest build has changed a little how it works.

I have installed TWRP 3.1.0-0 and it is still showing select partitions screen and only available options are boot and recovery.

olcayertas said:
I have installed TWRP 3.1.0-0 and it is still showing select partitions screen and only available options are boot and recovery.
Click to expand...
Click to collapse
Update it via fastboot flash vendor command on your pc then.

DEVILOPS 007 said:
Update it via fastboot flash vendor command on your pc then.
Click to expand...
Click to collapse
I did so

Related

[Q] Impossible reset after crypting

Hi all.
I have a Nexus 4 rooted:
Android 4.2.2
Band: M9615A-CEFWMAZM-2.0.1700.48
Kernel: 3.4.0-perf-g08bdc71-dirty
Build: JDQ39
I have crypted the phone in order to make it secure for a reselling and now I can not reset the phone. It is impossible to mount SD and to make any kind of update.
Is there a solution?
Install TWRP if you don't have it, select the format all option, it will recreate partitions and will be empty. (say goodbye to your data)
Then download Google N4 factory image and you're good to go.
propose edAQgre
funnoam said:
Install TWRP if you don't have it, select the format all option, it will recreate partitions and will be empty. (say goodbye to your data)
Then download Google N4 factory image and you're good to go.
Click to expand...
Click to collapse
Thank you! But, is it an opinion or are you sure?
Then, can you please explain me what have I to do? I am not really confident with this kind of things.... I have bought the phone already rooted and I know only how to boot in recovery mode and how to flash a rom.
Thank you again!
patro23 said:
Thank you! But, is it an opinion or are you sure?
Then, can you please explain me what have I to do? I am not really confident with this kind of things.... I have bought the phone already rooted and I know only how to boot in recovery mode and how to flash a rom.
Thank you again!
Click to expand...
Click to collapse
Google twrp for nexus 4.
Install fastboot drivers on your computer (google it), run fastboot while you're phone is in bootloader mode (green android lying), flash the recovery with this command : "fastboot flash recovery recoveryfilename.img"
Then in TWRP, select wipe and select all partitions.
Then flash "occam" 4.4.4 factory image you can found it on google "nexus 4 factory image"
I can't post links because of stupid xda limitations.
funnoam said:
Google twrp for nexus 4.
Install fastboot drivers on your computer (google it), run fastboot while you're phone is in bootloader mode (green android lying), flash the recovery with this command : "fastboot flash recovery recoveryfilename.img"
Then in TWRP, select wipe and select all partitions.
Then flash "occam" 4.4.4 factory image you can found it on google "nexus 4 factory image"
I can't post links because of stupid xda limitations.
Click to expand...
Click to collapse
Thank you for your answer.
I have installed Goomanager following guidelines but when I tap "install openrecovery script" it replies that there are no recoveries compatible for my device....
So, I am blocked here
patro23 said:
Thank you for your answer.
I have installed Goomanager following guidelines but when I tap "install openrecovery script" it replies that there are no recoveries compatible for my device....
So, I am blocked here
Click to expand...
Click to collapse
just do a wipe data on stock recovery
or a format /data if you are on a custom recovery
https://www.youtube.com/watch?v=PaSP38BNk4U
2:50
patro23 said:
Thank you for your answer.
I have installed Goomanager following guidelines but when I tap "install openrecovery script" it replies that there are no recoveries compatible for my device....
So, I am blocked here
Click to expand...
Click to collapse
You didn't follow my guidelines haha
opssemnik's solution is correct but it will be better if you install TWRP, it's almost essential if you want to manage roms and other stuff on your device.
Ok, but I have found that TWRP needs goomanager...
patro23 said:
Ok, but I have found that TWRP needs goomanager...
Click to expand...
Click to collapse
No, you can flash TWRP recovery img just using fastboot...

Root N Dev Preview 5

Can anyone here point in the right direction to guide me through DP5 root? TWRP hangs on splash screen when attempting to install. Thanks!
Sent from my Nexus 6P using XDA-Developers mobile app
TWRP can't decrypt the N system right now. So it will stay stuck on the splash screen.
The most common way around here, is to decrypt your device's storage. Once, you have decrypted, you will be able to access the recovery, and flash the latest SuperSU zip for root.
DJBhardwaj said:
TWRP can't decrypt the N system right now. So it will stay stuck on the splash screen.
The most common way around here, is to decrypt your device's storage. Once, you have decrypted, you will be able to access the recovery, and flash the latest SuperSU zip for root.
Click to expand...
Click to collapse
Thanks! What's the best way of doing that!?
DLloyd said:
Thanks! What's the best way of doing that!?
Click to expand...
Click to collapse
Be advised that decrypting will wipe off your complete data, including that on the internal storage. So, backup first.
The first step would be to download the modified boot image for DP5: http://forum.xda-developers.com/nexus-6p/general/stock-modified-boot-img-regular-root-t3306684 (Make sure that you download the correct file).
Next, reboot your device into bootloader mode and flash the boot image using the following command:
Code:
fastboot flash boot boot.img
Once that is done, you will need to decrypt using the following command (Do not mix "fastboot erase" command with "fastboot format"):
Code:
fastboot format userdata
Finally, reboot your device. Now, you will be able to access TWRP and flash SuperSU: http://download.chainfire.eu/969/SuperSU/UPDATE-SuperSU-v2.76-20160630161323.zip
This is great but unfortunately no joy - I'm still stuck on the TWRP splash screen when trying to enter recovery, after flashing the modified boot.img - in security it still show's encrypted?
DLloyd said:
This is great but unfortunately no joy - I'm still stuck on the TWRP splash screen when trying to enter recovery, after flashing the modified boot.img
Click to expand...
Click to collapse
Have you formatted the userdata after flashing the boot.img?
DJBhardwaj said:
Have you formatted the userdata after flashing the boot.img?
Click to expand...
Click to collapse
Yeah, exactly as advised... re-downloaded boot.img to try again, no luck
DLloyd said:
Yeah, exactly as advised... re-downloaded boot.img to try again, no luck
Click to expand...
Click to collapse
Go to Settings > Security and see if Encrypt phone option is available or greyed out. Also try reflashing TWRP.
DJBhardwaj said:
Go to Settings > Security and see if Encrypt phone option is available or greyed out. Also try reflashing TWRP.
Click to expand...
Click to collapse
It show's Encrypted, with no option to change, have tried re-flashing TWRP but nothing. How do I make sure format userdata has worked correctly? Appreciate your help!
DLloyd said:
It show's Encrypted, with no option to change, have tried re-flashing TWRP but nothing
Click to expand...
Click to collapse
Then the decryption process didn't work at all.
Download this specific boot.img: https://www.androidfilehost.com/?fid=24591023225178833
Flash it via fastboot. And then, "fastboot format userdata" and "fastboot format cache".
Finally, reboot.
DJBhardwaj said:
Then the decryption process didn't work at all.
Download this specific boot.img: https://www.androidfilehost.com/?fid=24591023225178833
Flash it via fastboot. And then, "fastboot format userdata" and "fastboot format cache".
Finally, reboot.
Click to expand...
Click to collapse
Yeah, still no joy... I'll revert to previous dev preview for root. Thanks anyway!
DLloyd said:
Yeah, still no joy... I'll revert to previous dev preview for root. Thanks anyway!
Click to expand...
Click to collapse
I rooted my Nexus 6P successfully with that specific boot.img and flash TWRP for many times.
1.flash specific boot.img
2.flash TWRP 3.0.0.0
3.get into TWRP-Wipe-format data and type "yes"
4.reboot to bootloader, flash TWRP 3.0.0.0 again.
5.get into TWRP and flash supersu
6.do not reboot or clean cache, get into wipe, and format data
7.reboot to bootloader, flash TWRP 3.0.2.0
7.get into TWRP and flash supersu
8.done
Since it seems ridiculous, it works.
DLloyd said:
Yeah, still no joy... I'll revert to previous dev preview for root. Thanks anyway!
Click to expand...
Click to collapse
Weird. I have followed the same drill about 2-3 times on DP5, and it works perfectly.
using CF Auto root works with Android N DP5. Don't need custom recovery.
XRaptor29 said:
using CF Auto root works with Android N DP5. Don't need custom recovery.
Click to expand...
Click to collapse
How did you pull that off, I recently did that and it bootloop on the cf auto root screen
jussaren said:
How did you pull that off, I recently did that and it bootloop on the cf auto root screen
Click to expand...
Click to collapse
Make sure boot loader is unlocked. I never had the CF Auto Root screen boot loop, it does boot loop a few times when booting afterwards but that's it finishing it up.
Last night I unencrypted my phone and twrp works fully so I could flash a custom kernel. It's sad that NP5 forces encryption and you have to flash the stock kernel with encryption disabled to unencrypted. I can provide a link if you're interested in that. It provides the kernel and step by step process.
Edit: didn't realize that one guy with the Droid Origin signature had the link also, I Googled and found it but this is how I unencrypted and everything last night. http://www.droidorigin.com/decrypt-nexus-6p/ Props go out to that team.
Sent from my Nexus 6P using Tapatalk

Create Stock Recovery.img from FTF File

Hi, I am in the process of preparing for upgrading from 7.0 to 7.1.1
I know I need to replace the Custom Kernel with the Stock Kernel. And I have to replace TWRP with Stock Recovery.
Can anybody tell me, which file inside the FTF is the stock recovery? I already found the kernel. Need help to find the stock recovery, thank you!
tempurastyle said:
Need help to find the stock recovery, thank you!
Click to expand...
Click to collapse
We don't have one which is why we have to use TWRP.
So my only way is to flash via Flashtool without wipe?
tempurastyle said:
So my only way is to flash via Flashtool without wipe?
Click to expand...
Click to collapse
Do that then mod your own kernel. [How To] make your own XPERIA DRM-fix kernel.
And flash a TWRP.img to the recovery partition.
fotakernel.sin reside's where we flash twrp on stock. you do not need to flash it to upgrade, contrary you can exclude it in flashtool and keep twrp between updates.
realtuxen said:
fotakernel.sin reside's where we flash twrp on stock. you do not need to flash it to upgrade, contrary you can exclude it in flashtool and keep twrp between updates.
Click to expand...
Click to collapse
this is real knowledge, thanks! so just to be sure, this is what i will do in flashtool:
1) wipe: nothing selected
2) exclude: fotakernel.sin selected
can anybody confirm this is correct?
then after this, i will flash a custom kernel via fastboot and magisk via twrp.
one question regarding magisk: will it be deleted during the flashtool update?
So I ran into a problem...
The Upgrade to 7.1.1 via flashtool was smooth. Then, i flashed twrp via fastboot as usual. When I tried to enter twrp, i get a password prompt to decrypt the phone. So i don't know which password i need to type in. I tried the unlock PIN, doesnt work. Any suggestions?
tempurastyle said:
Any suggestions?
Click to expand...
Click to collapse
To get round that you need to run the following commands...
Code:
fastboot format userdata
fastboot format cache
...so you'll need to backup all your data first.
XperienceD said:
To get round that you need to run the following commands...
Code:
fastboot format userdata
fastboot format cache
...so you'll need to backup all your data first.
Click to expand...
Click to collapse
Ok, so I decided to keep my data and don't install twrp. Now I got another issue, is it possible to install Magisk without TWRP? I already got my kernel using my ta backup according to the instructions a few posts above, which really works great.
tempurastyle said:
Ok, so I decided to keep my data and don't install twrp. Now I got another issue, is it possible to install Magisk without TWRP? I already got my kernel using my ta backup according to the instructions a few posts above, which really works great.
Click to expand...
Click to collapse
I thought you excluded fotakernel so you did not have to flash twrp again. Oh well anyway you can use twrp to flash zips just fine although /data is encrypted, most flash zips do not write to /data anyway some like supersu use /cache (which is not encrypted contrary to the info above) to get around encryption at next boot. And like magisk also patch the boot.img live on your phone, some write to /system which is not encrypted either, I never seen a flash zip that did write to /data. Only backup/browsing/etc on /data is affected.
So when presented with the password screen in twrp just press cancel and make sure the zip you want to flash is located on the external sd card (do not encrypt this in phone settings, your card will be unreadable from pcs to) then choose flash zip and choose the external sdcard to pick the zip from and flash magisk or whatever. You need to run your kernel through ta poc or rootkernel first and disable dm verity and sony ric. (you write you did this so just install twrp and flash away) Do not wipe cache before rebooting just in case magisk uses this in a similar way to supersu (I have no idea)
Also if you do the above fastboot format commands suggested in post#8 without disabling 'forceencrypt' for /data (fstab in the kernel image or with a tool) the phone will encrypt itself again as soon as you turn it on.
If forceencrypt is disabled the same can be achieved (clearing encryption) with a factory reset btw.
So if you did not bump into the password in twrp before you likely did a factory reset with a kernel with encryption disabled. Then, maybe after updating you rebooted stock and the phone encrypted itself again, then now you can not access /data in twrp. Thats also because we have no version of it that supports encryption on the X-compact though. Again do not worry, I have not meet a zip I could not flash, supersu, magisk, etc because they do not access /data anyway.
realtuxen said:
I thought you excluded fotakernel so you did not have to flash twrp again. Oh well anyway you can use twrp to flash zips just fine although /data is encrypted, most flash zips do not write to /data anyway some like supersu use /cache (which is not encrypted contrary to the info above) to get around encryption at next boot. And like magisk also patch the boot.img live on your phone, some write to /system which is not encrypted either, I never seen a flash zip that did write to /data. Only backup/browsing/etc on /data is affected.
So when presented with the password screen in twrp just press cancel and make sure the zip you want to flash is located on the external sd card (do not encrypt this in phone settings, your card will be unreadable from pcs to) then choose flash zip and choose the external sdcard to pick the zip from and flash magisk or whatever. You need to run your kernel through ta poc or rootkernel first and disable dm verity and sony ric. (you write you did this so just install twrp and flash away) Do not wipe cache before rebooting just in case magisk uses this in a similar way to supersu (I have no idea)
Click to expand...
Click to collapse
Yes, after the first upgrade attempt, i let twrp untouched. then when entering twrp, i didnt have a password, so i skipped it. i couldn't find the sd card in the file browser, and after i hit reboot in twrp the phone restarted and got stuck in boot.
So I flashed again, this time deleting twrp. the initial boot up went fine. Then i flashed twrp again and once again, without having a password, i just skipped the password prompt. still couldnt find the sd card, and i rebooted out of twrp. and the phone got stuck again.
after 2-3 trials, i figured out that everytime i rebooted out of twrp, the phone gets stuck during boot. even after turning it off and on, so a reflash was needed.
now i have given up using twrp, so i have an unrooted phone with an unlocked bootloader. which does not allow me to use android pay. i think to solve my problem is:
1) i need to know which twrp version really works, i have tried
this version
and this version
both cause a boot failure for me
2) i need to find the sd card location in the twrp file browser (all the folders show empty for me)
if nothing works, i guess i need to wipe my phone, but that's what i would like to avoid. thanks for your help guys!
tempurastyle said:
Yes, after the first upgrade attempt, i let twrp untouched. then when entering twrp, i didnt have a password, so i skipped it. i couldn't find the sd card in the file browser, and after i hit reboot in twrp the phone restarted and got stuck in boot.
So I flashed again, this time deleting twrp. the initial boot up went fine. Then i flashed twrp again and once again, without having a password, i just skipped the password prompt. still couldnt find the sd card, and i rebooted out of twrp. and the phone got stuck again.
after 2-3 trials, i figured out that everytime i rebooted out of twrp, the phone gets stuck during boot. even after turning it off and on, so a reflash was needed.
now i have given up using twrp, so i have an unrooted phone with an unlocked bootloader. which does not allow me to use android pay. i think to solve my problem is:
1) i need to know which twrp version really works, i have tried
this version
and this version
both cause a boot failure for me
2) i need to find the sd card location in the twrp file browser (all the folders show empty for me)
if nothing works, i guess i need to wipe my phone, but that's what i would like to avoid. thanks for your help guys!
Click to expand...
Click to collapse
The 2. issue with the sdcard is easy. After pressing 'install' button in twrp at the bottom left press the "select storage' button, a small window will pop up then select the 'micro sdcard' and press 'ok", you should see your files now.
The 1. ssue is really odd! I use the second twrp you posted, for some wierd reason the first one does not boot for me (twrp does not start). But I talked with another guy for him it was the other way around. It was really strange. I think most can use both though without problems
There is one more twrp 3.1 from bambamx, but I really do not get this, twrp boots from its own partition with its own kernel. They should be separated unless twrp does something to system ofcause which it very well shouldn't unless you ask it to, deleting a important file or flashing something. I have never heard of this sorry. One thing is certain our device sure could use a stable nougat encryption compatible twrp!
I will let you know if I find something, you can try the last available version, I have no idea if it will exhibit the same strange behaviour. But maybe its worth a shot although it seems something else is at play.
A couple of stupid questions sorry; You disabled dm verity and sony ric in ta poc right, and it does not happen if you boot your phone normal a couple of times.
Edit: sorry Mr. Sandman had not left so I did not read properly here from the morning. I will edit my post to actually answer as best as I can lol.
Just to let you know:
1. You do not need to install TWRP to use it! You can just do
Code:
fastboot boot <TWRP image>
to run TWRP on the phone (instead of
Code:
fastboot flash boot <TWRP image>
). The only drawback of this method is that you will always need a computer to enter TWRP. Btw. with this method you can also try out a custom kernel image before flashing it.
2. You do not need write access to /data partition to install Magisk. It was explained in another thread that Magisk can use /cache temporary when access to /data is not available. It will write to /data on first boot instead.
3. While using TWRP you can use adb to transfer files onto the phone, so you don't need to have them ready on the internal storage.
realtuxen said:
The 2. issue with the sdcard is easy. After pressing 'install' button in twrp at the bottom left press the "select storage' button, a small window will pop up then select the 'micro sdcard' and press 'ok", you should see your files now.
Click to expand...
Click to collapse
I did, but the SD card can't be selected, and the size shows as 0kb. I did a workaround though: i formatted a spare sd card and copied magisk on it. it was instantly recognized and selectable.
ypnos42 said:
Just to let you know:
1. You do not need to install TWRP to use it! You can just do
Code:
fastboot boot <TWRP image>
to run TWRP on the phone (instead of
Code:
fastboot flash boot <TWRP image>
). The only drawback of this method is that you will always need a computer to enter TWRP. Btw. with this method you can also try out a custom kernel image before flashing it.
3. While using TWRP you can use adb to transfer files onto the phone, so you don't need to have them ready on the internal storage.
Click to expand...
Click to collapse
GREAT advice! I launched TWRP from ADB and successfully flashed Magisk using ADB sideload. Thanks, my phone is rooted again!

Update twrp?

How to update twrp??
Pls give full step...
Sandip_bhandari said:
How to update twrp??
Pls give full step...
Click to expand...
Click to collapse
Just flash
Sandip_bhandari said:
How to update twrp??
Pls give full step...
Click to expand...
Click to collapse
1. Download Latest Version Of Twrp Recovery Of your Phone from the given links. (img file)
2. Aave this file into your internal memory.
3. Boot your phone to Recovery mode.
4. Now First Take A Full Backup Of your phone.
5. Now click on install section, click on Flash images or install images.
6. Now find your Latest TWRP Recovery img file and swipe to flash.
7. Now you will see 2 options like Boot and recovery. So select recovery and again swipe to flash.
8. Done now your Twrp Recovery is successfully Updated.
Download the twrp file
boot into recovery
Select install
Click install image
Select twrp file and flash

From TWRP To OrangeFox

Hey guys
I m on pixel experience pie rom
I cannot reach to pc right bow and I want to change my twrp recovery to orange fox
Is this work will erase my system and rom or just changes the recovery ? Sory for bad english.
Ded Moroza said:
Hey guys
I m on pixel experience pie rom
I cannot reach to pc right bow and I want to change my twrp recovery to orange fox
Is this work will erase my system and rom or just changes the recovery ? Sory for bad english.
Click to expand...
Click to collapse
just download ofox file .img, go to twrp, select install image instead of flash zip, select the .img and select recovery and boila, none of your partitions like system or your files be touched!
NeoZX58 said:
just download ofox file .img, go to twrp, select install image instead of flash zip, select the .img and select recovery and boila, none of your partitions like system or your files be touched!
Click to expand...
Click to collapse
Thanks a lot bro
NeoZX58 said:
just download ofox file .img, go to twrp, select install image instead of flash zip, select the .img and select recovery and boila, none of your partitions like system or your files be touched!
Click to expand...
Click to collapse
And i jave one more question
Is orangefox makes phone rooted or not ?
Ded Moroza said:
And i jave one more question
Is orangefox makes phone rooted or not ?
Click to expand...
Click to collapse
Magisk roots the phone but you need ofox first
Sent from my Redmi Note 7 using Tapatalk

Categories

Resources