Switching Custom Roms no TWRP - Nexus 4 Q&A, Help & Troubleshooting

Very new to this so explain to me like I'm 5
I installed Ubuntu Touch on a Nexus 4. The install went fine, I did not install TWRP - wasn't required hadn't really planned on experimenting more. However, now I would like to try both Lineage and Paranoid Android.
How do I proceed at this point? Do I need to re-install original ROM or can I install TWRP directly? I am assuming that to install either OS I need to have TWRP installed - is that right?
Again, if you could please keep it simple - I am still swimming in the shallow end of the pool with Custom ROMs and Android.
Thanks

You said you already installed Ubuntu Touch.
I'm presuming that you have unlocked your bootloader before doing so and that you might have used the terminal and might be running Ubuntu.
If this is correct it should be no problem for you to:
- With your device powered off, press and hold the volume down button and then the power button simultaneously until the screen turns on to enter "Fastboot mode"
- Connect your device to your PC
- Open a terminal window and type
Code:
fastboot devices
if that does return
Code:
no permissions fastboot
it can be fixed by running fastboot as root from now on, i.e.
Code:
sudo fastboot [...]
- next, enter
Code:
fastboot oem device-info
if the output contains the line
Code:
(bootloader) Device unlocked: true
you are able to flash a custom recovery.
- To flash the recovery go directly dl.twrp.me/mako, and download the latest (topmost) image.
Now, find out where the image is downloaded and open a terminal there.
Then enter this command
Code:
fastboot flash recovery twrp-3.3.1-0-mako.img
(again with sudo if necessary)
- Reboot and you should be good to go
Code:
fastboot reboot

Thanks, that worked fine. Appreciate the step by step instructions.

I'm glad it worked for you

Does it mean, that u have Ubuntu, and android?
If possible can u share the screen shot or TWRP and boot options

Related

Permarooted s-off still get no CWM recovery mode!?

I am rooted with s-off running on a ATT simcard but still can't boot in CWM recovery. In rom manager it says: current recovery Clockworkmode 3.0.2.4
Whenever I attempt to boot into recovery the MT4G comes up it reboots and it comes up agains and boots regularly. Any thoughts?
I followed all the instructions in this thread and am at the 85.xxx bootloader
http://forum.xda-developers.com/showthread.php?t=858996
I am bone stock other since I've not be able to get into recovery mode. Would a factory reset help?
Do it manually. Go to the bootloader and load recovery from there, or use adb and type adb reboot recovery.
adb does the same thing it attempts to get into recovery then goes blank and reboots regular and same thing with hboot.
Do you have fastboot on?
Nope. Fastboot is off. I can't even factory reset the phone. It just reboots like with everything else
be1ieve1111 said:
Nope. Fastboot is off. I can't even factory reset the phone. It just reboots like with everything else
Click to expand...
Click to collapse
most likely it feels as if the recovery image didn't take.
Code:
adb reboot bootloader
from there select "recovery" and see what boot loader you are using. If you have the engineering screen manually flash it.
http://www.koushikdutta.com/2010/02/clockwork-recovery-image.html
1. Download CWR3. - link supplied above
2. Save to your Android SDK tools (c:\android-sdk-windows\tools) or platform-tools (c:\android-sdk-windows\platform-tools) folder and rename to recovery.img
3. Turn off your phone.
4. Hold the volume down button + power until you boot to a white screen.
5. Use the volume rocker to select FASTBOOT then press the power button to select it.
6. Connect your phone.
7. Open up a windows command prompt and navigate to your sdk tools or platform tools folder. tools (c:\android-sdk-windows\tools) or platform-tools (c:\android-sdk-windows\platform-tools)
8. Type
Code:
FASTBOOT DEVICES
to make sure your computer "sees" your phone and is ready to flash the recovery. You should get a serial number and then the word fastboot as the output.
9. Type
Code:
fastboot flash recovery recovery.img
and press enter. Give it a minute to do it's thing. You should get a message that says writing recovery and success.
10. Unplug your phone and use the volume rocker to select BOOTLOADER and then again to select RECOVERY and you should be booted into the orange menu of Clockwork Recovery 3
Click to expand...
Click to collapse
taken and modified from http://forum.xda-developers.com/showthread.php?t=919834
It says fastboot isn't a recognized command when I type FASTBOOT DEVICES
also for the bootloader part. It loads real quick and it says something about no image or wrong image in the lines of code that loads on the screen then disappears
Are you using Linux? If so, cd to platform-tools and use ./fastboot instead of fastboot. Otherwise try updating adb and see if it works. Also, the random text is the phone searching for PD15IMG or another restore image. Disregard that, unless you want to flash the stock unrooted image.

Manual upgrading Nexus 6 without wiping data.

A little how-to on upgrading your nexus phone without having to wipe your data if you rooted and installed some stuff onto system partition.
WARNING!
DO NOT USE THIS METHOD IF YOU ARE NOT GOOD AT USING COMMAND LINE! THIS HAS A POSSIBILITY OF BRICKING YOUR PHONE TO WHERE IT WONT BOOT.
Note:
You will loose the following when using this method:
-Custom Recovery
-Custom Kernel
-ANYTHING that is installed on the system partition including but not limited to: SU (root), Busybox, Xposed, etc.
What is needed:
-ADB (1.0.32+) and Fastboot
-Factory Image of Nexus 6 (https://developers.google.com/android/nexus/images?hl=en)
-- MUST BE THE SAME BUILD VERSION AS YOUR CURRENT VERSION!
--- Check under System > About Phone > Build Number
Step 1 (Catch the update url):
Open up command prompt/terminal and type in
Code:
adb logcat
.
From here you will get a lot of debug lines, dont worry about any of it.
What we are looking for is the url to the update file.
When adb logcat is ready, start the update for your phone. (Dont worry about restarting or whatnot, you wont be using the file it's downloaded anyway).
From the url, use that to download the update file to your computer.
Step 2 (Backup):
This is important as a just in case **** happens thing.
BACK UP YOUR PHONE if you have a custom recovery.
Don't think that this update method is foolproof.
Don't even think.
BACK IT UP!
Step 3 (Restore to "Factory"):
This is where it gets hairy.
Using the factory image you downloaded open up the "image-shamu-<build>.zip" file and extract "boot.img", "recovery.img", and
"system.img".
Restart your phone to bootloader either with adb or pressing and holding power + vol down.
From here, in a command prompt/terminal, type:
Code:
fastboot flash boot <boot.img path>
Code:
fastboot flash recovery <recovery.img path>
Code:
fastboot flash system <system.img path>
System image will take the longest and will be streamed to the phone so just wait until it's finished.
Step 4 (Upgrade):
ok, now that we are in "Factory" settings, start up your phone in recovery mode.
From the recovery screen you should see the little android with the red exclamation point icon thing.
Press and hold power and click the volume up button. Release power button.
From here, select
Code:
apply update from ADB
now in command prompt type:
Code:
adb sideload <update.zip path>
Step 5: ???
Step 6: Profit!
I have done this method twice and haven't experienced any problems myself. As stated above, this does have the possibility of mucking something up so be sure to have backups.
After everything is done, you are using your phone in stock mode.
flash your custom recovery and custom kernel if you'd like. Also reinstall root via custom recovery (twrp will let you know) and busybox.
Troubleshooting:
- Update says system partition has unexpected contents.
-- Reflash system.img.
- Get adb sideload error (xxx)
-- Make sure you have the latest version of adb and that your drivers for your phone are installed. Sometimes you have to manually install the adb drivers when in sideload mode.

Some Help With TWRP and Bootloader Please

Hey guys. I've tried everything, and I'm stuck. Never had so much trouble doing something so basic. No idea where it's going wrong.
Here's the basic timeline:
1. Bought phone
2. Unlocked/rooted/flashed TWRP
3. Tried CM13 for a bit, clean flash +supersu
4. Tried Exodus for a bit, clean flash + supersu
5. Tried community build of 3.0.1, clean flash +supersu
6. Wanted OTA update, so dirty flashed community build to remote root, OTA update ended up replacing TWRP with stock recovery
7. I want to go back to exodus, and can't for the life of me get TWRP back on
Here's what I've tried:
1. Basic steps on any website to download adb drivers etc.
2. Tool box from XDA
3. Factory reset then try all of the above again
Issues:
When I try to fastboot flash recovery [file] I get error: cannot load 'recovery.img' I've tried renaming it to twrp.img as I've seen suggested in some places, no help. I've ensured that the image file is in the same folder as the command prompt. I have used the Grarak TWRP file as well as 3.0.2 and 2.8.7 as suggested on some other sites.
Things I'm noticing:
When I try the fastboot devices command, it only recognizes my device when in fastboot mode, but not when loaded normally. In fastboot mode I can issue commands to reboot, get info, etc. but once loaded it's all gone.
I haven't seen that prompt that comes up to authorize a computer RSA code for USB debugging (yes, USB debugging is enabled in developer options, and yes, I have tried changing the USB settings from charging, to MTP, PTP, even MIDI.)
When I use the device-info prompt I get the following results:
Device Tampered: false
Device Unlocked: true
Device is_verified: false
Charge screen enabled: false
Display panel:
console_locked: 1
exec_console_unconsole: 0
Any and all suggestions would be greatly appreciated!
Hi, Here's what i believe you need to do. If you have the correct twrp recovery img file and all you need is to just flash it to get custom recovery in order to continue enjoying your custom roms, then this will fix your problem.
1. make sure you have all the necessary adb, fastboot drivers installed and that if you run the command 'fastboot devices' fastboot can see your Oneplus device.
2. if fastboot can see your oneplus device, then worry not. use the following command to flash your custom twrp recovery.
3. Rename your recovery file to just recovery nothing else attached.
4. boot your phone into fastboot, open the folder where you have your recovery file and hold down the shift key and rightclick anywhere in the folder and select the option that says 'Open command Window Here'
5. this will load fastboot. after fast boot loads, enter the following commands :
fastboot devices (this will display your device, once your device is showing, then worry not)
6. the next command is to flash your custom recovery image. so u need to enter exactly the following :
fastboot flash recovery recovery.img (this will then flash your custom recovery. make sure you name it just recovery)
7. after flashing your recovery, enter : fastboot boot recovery.img (this will boot you into twrp recovery mode)
let me know if this helps. Cheers!!
Try to flash Hybrid recovery using fastboot. --> http://forum.xda-developers.com/oneplus-2/general/recovery-twrp-3-0-2-hybrid-supports-oos-t3362904

Downgrade Orea beta to Nougat

Orea beta is great but battery drain so much.
for 30 min of screen use it used 11%, is it normal ?
and I am looking to go back to Nougat, could any one please tell me how can I go back.
Thank you.
are this instructions for downgrading ?
Set up your computer for flashing
Download the fastboot tool from the Android SDK Platform-Tools package
Add it to your path so the flash scripts can find it
Connect your Essential phone to your computer with a USB cable
Enable unlocking
Before you can flash a new image, ensure Developer options are enabled and OEM unlocking is turned on. To do this:
Tap Settings, then tap System > About phone
Scroll to the bottom of the page, then tap Build number multiple times until you see the pop-up message “You are now a developer” (It usually takes seven taps)
Go back one screen to System, then tap Developer options
Find the option: OEM Unlocking and turn it on
Fastboot mode
Put your Essential Phone into fastboot mode by doing either of the following:
Use the ADB tool packaged above to run the command: adb reboot bootloader
Reboot your phone while holding the Volume-down button
Unlock your bootloader
NOTE: Installing the factory image will erase all information from your device. So remember to backup your phone before continuing.
Run the command: fastboot flashing unlock
Press the Volume-down button to navigate to the YES option, then press the Power button to confirm
Flash your factory image
Download the factory image to your computer
Unzip the downloaded file
Go to where you unzipped the images
For Linux / Mac OS X - Run the command: flashall.sh
For Windows - Run the command: flashall.bat
https://forum.xda-developers.com/essential-phone/help
Yup those are them, I just did it yesterday.
Just an FYI, I found that putting Oreo on the phone resulted in ADB not working 100% anymore, such as attempting to reboot into recovery/etc. It would just reboot back into the O.S..
Here is what I did.
- download the current release you want to flash. (e.g. NMJ32F), then unzip it into a new folder.
- on your phone, verify that USB debugging and OEM unlocking are turned on in the developers menu.
- reboot your phone into the fastboot mode (power and volume down buttons)
- from your adb command line: type: fastboot flashing unlock
- This will make your phone show a new screen asking if you want to unlock the bootloader. Use the volume down to select YES, and hit the power button. It will now reboot and erase the phone. It will eventually end up booting up too request you setup the phone. (that is what it did for me.)
- reboot the phone back into the fastboot mode (power and volume down buttons)
- you should now see the bootloader listed as unlocked (vs locked)
- from your adb command line: type: fastboot devices (which should show your phones serial number and fastboot next too it.
- on your computer, using the command line, go to the unzipped folder of the NMJ32F build you downloaded
- in the folder there is a batch file you will run called flashall.bat. run it
- your phone will start flashing the NMJ32F build
- when it completes it will reboot a couple of times, erase the phone, and end up at the "lets get started" screen.
- reboot the phone back to the fastboot mode
- from your adb command line: type: fastboot flashing lock
- select the option to lock your bootloader. The phone will reboot/erase I believe, and then end up back to the "lets get started" screen.
- after you setup your phone, you can go back into the developers menu to turn off the oem unlocking
The above steps pretty much follow essentials instructions. (the essential instructions don't give some specifics.)
You are all done. (I recommend you review my instructions and the essential instructions carefully, don't copy paste commands as I may have spelled something wrong, etc.. Just wanted to give you a flow of the process.)
vjyrdy said:
are this instructions for downgrading ?
Set up your computer for flashing
Download the fastboot tool from the Android SDK Platform-Tools package
Add it to your path so the flash scripts can find it
Connect your Essential phone to your computer with a USB cable
Enable unlocking
Before you can flash a new image, ensure Developer options are enabled and OEM unlocking is turned on. To do this:
Tap Settings, then tap System > About phone
Scroll to the bottom of the page, then tap Build number multiple times until you see the pop-up message “You are now a developer” (It usually takes seven taps)
Go back one screen to System, then tap Developer options
Find the option: OEM Unlocking and turn it on
Fastboot mode
Put your Essential Phone into fastboot mode by doing either of the following:
Use the ADB tool packaged above to run the command: adb reboot bootloader
Reboot your phone while holding the Volume-down button
Unlock your bootloader
NOTE: Installing the factory image will erase all information from your device. So remember to backup your phone before continuing.
Run the command: fastboot flashing unlock
Press the Volume-down button to navigate to the YES option, then press the Power button to confirm
Flash your factory image
Download the factory image to your computer
Unzip the downloaded file
Go to where you unzipped the images
For Linux / Mac OS X - Run the command: flashall.sh
For Windows - Run the command: flashall.bat
https://forum.xda-developers.com/essential-phone/help
Click to expand...
Click to collapse
I cannot get past the flashall.sh command, says permission denied everytime. I am able to execute every command to that point with out any issues. I have downloaded the latest android platform tools, and my mac is on the latest version of macOS . I have also tried to flash every single image that is available on the essential dev webpage. Any ideas would be awesome, is in possible to side load using the adb commands from the recovery menu and avoid the fastboot mode all together.
swagglepuff said:
I cannot get past the flashall.sh command, says permission denied everytime. I am able to execute every command to that point with out any issues. I have downloaded the latest android platform tools, and my mac is on the latest version of macOS . I have also tried to flash every single image that is available on the essential dev webpage. Any ideas would be awesome, is in possible to side load using the adb commands from the recovery menu and avoid the fastboot mode all together.
Click to expand...
Click to collapse
unlock_critical.
You can't flash all the partitions is you have not performed and unlock AND and unlock_critical.
tech_head said:
unlock_critical.
You can't flash all the partitions is you have not performed and unlock AND and unlock_critical.
Click to expand...
Click to collapse
I have ran both unlock commands successfully and still get permission denied
swagglepuff said:
I have ran both unlock commands successfully and still get permission denied
Click to expand...
Click to collapse
And you checked the OEM unlock in developer options?
Hmmmm
tech_head said:
And you checked the OEM unlock in developer options?
Hmmmm
Click to expand...
Click to collapse
The issue has something to do with Mac and the platform tools. I was able to downgrade with no problem using a friend's Windows PC.
Sorry for the silly question, but what does this statements means?
"Add it to your path so the flash scripts can find it"
Is there any better instructions for first time user which dont include instructions like above? Thanks.
trizon2016 said:
Sorry for the silly question, but what does this statements means?
"Add it to your path so the flash scripts can find it"
Is there any better instructions for first time user which dont include instructions like above? Thanks.
Click to expand...
Click to collapse
Nothing confusing about that statement for Windows, MacOS or Linux.
A command path needs to exist so that when you type the command it can be found.

HTC U Ultra stuck in bootloop..Can you experts validate the STEPS to solve the issue?

So, my HTC U Ultra got stuck in bootloop just 3 days after warranty ended(tough luck level : 100).
My phone runs on everything stock and no root.
I press all the buttons when powered off and it goes into bootloader mode. It displays options to boot into recovery mode, boot into download mode and power down, all of which(except power down) gets device into bootloop again.
THE PRIORITY OF GOALS IS : DATA RECOVERY > PHONE BOOTING AND WORKING PROPERLY AGAIN
I did a little research and figured out some sort of procedure by putting bits and pieces together :
1. Download ADB/Fastboot toolkit || universal driver from koush github // I have HTC Sync manager installed as well || twrp custom recovery image for htc u ultra || new ruu from htc support for rom update.
2. Now I put my phone into fastboot mode (since it doesn't show up on adb devices), connect to pc using usb.
3. I type in cmd : "fastboot devices" --> My device shows up there --> Again in cmd : "fastboot boot recovery mytwrp.img" --> the twrp boots into my phone
I was able to put this many steps together and after the last step, i have an abstract idea of what to do :
Enable USB Debugging using twrp recovery --> Use ADB Pull Command to get my all my data from phone to pc --> Use adb wipe the old Firmware (Not sure which command) --> Use adb again to flash new RUU (again not sure how, I've got an .exe file as RUU || should I get it in zip or img or any other format ? || Please help on this too) --> Finally Boot and hopefully everything turns out smooth and secure.
CAN YOU EXPERTS HELP ME TO PUT TOGETHER REMAINING STEPS (AND MODIFY ERRORS, IF ANY, OF EXISTING STEPS ) OF THIS PROCEDURE...???
Only to clarify: ADB and Fastboot are 2 completely different things.
ADB
is a protocol that allows you to communicate with an Android device that got booted, means its main Android OS is running
At Windows command prompt you enter commands - one by one -
Code:
adb devices
adb <ANY_SUPPORTED_ADB_SUBCOMMAND>
FASTBOOT
is a program used to manipulate (list, install, erase) the non-volatile memory such as flash filesystem partitions on devices that adhere to the fastboot protocol, via a USB connection from a host computer. It requires that the device be started in a boot loader mode with the fastboot protocol enabled.
IMPORTANT: Fastboot will only work if the OEM/Carrier has included support for the Fastboot protocol.
At Windows command prompt you enter commands - one by one -
Code:
adb devices
adb reboot bootloader
fastboot devices
fastboot <ANY_SUPPORTED_FASTBOOT_SUBCOMMAND>
jwoegerbauer said:
Only to clarify: ADB and Fastboot are 2 completely different things.
ADB
is a protocol that allows you to communicate with an Android device that got booted, means its main Android OS is running
At Windows command prompt you enter commands - one by one -
Code:
adb devices
adb <ANY_SUPPORTED_ADB_SUBCOMMAND>
FASTBOOT
is a program used to manipulate (list, install, erase) the non-volatile memory such as flash filesystem partitions on devices that adhere to the fastboot protocol, via a USB connection from a host computer. It requires that the device be started in a boot loader mode with the fastboot protocol enabled.
IMPORTANT: Fastboot will only work if the OEM/Carrier has included support for the Fastboot protocol.
At Windows command prompt you enter commands - one by one -
Code:
adb devices
adb reboot bootloader
fastboot devices
fastboot <ANY_SUPPORTED_FASTBOOT_SUBCOMMAND>
Click to expand...
Click to collapse
@jwoegerbauer Yes, thank you for the description, I understood the difference later on. Do you think the fastboot and adb steps I've mentioned will work properly ?
noobie12112 said:
@jwoegerbauer Yes, thank you for the description, I understood the difference later on. Do you think the fastboot and adb steps I've mentioned will work properly in my case?
Click to expand...
Click to collapse
Android boot loop error does not come out of thin air. There are several cases that may cause the Android is starting loop. If phone didn't get physically damaged then an action of the user is the main reason .
To answer your question: NO.
As already said:
ADB is integral part of Android OS hence if Android OS isn't started you can't make use of ADB, Fastboot is integral part of phone's bootloader ( comparable to a Windows PC's UEFI/BIOS ) means you can't access Android OS - will say its folders and files.
jwoegerbauer said:
Android boot loop error does not come out of thin air. There are several cases that may cause the Android is starting loop. If phone didn't get physically damaged then an action of the user is the main reason .
To answer your question: NO.
As already said:
ADB is integral part of Android OS hence if Android OS isn't started you can't make use of ADB, Fastboot is integral part of phone's bootloader ( comparable to a Windows PC's UEFI/BIOS ) means you can't access Android OS - will say its folders and files.
Click to expand...
Click to collapse
@jwoegerbauer Thank you for the insight. In my case, the phone wasn't physically damaged, the bootloop occurred out of the blue one day. Now, what I presumed I should do, is to flash a custom recovery (twrp) using "fastboot boot recovery.img" command, and using twrp (Can I enable USB Debugging using twrp ?) to access files, backup and then flash a new RUU. But I found that I need to unlock bootloader, is there any way to use command "fastboot oem unlock" and not lose data, or any other method to unlock bootloader, where i don't lose data?
Thank you for your help.
Unlocking phone's bootloader always causes complete loss of data.
Forget the TWRP thing, it's not helpful at all in your case.
Try to flash phone's Stock ROM by means of ADB - what requires ADB got installed on Windows computer and USB debugging got ( manually !!! ) enabled on phone.

Categories

Resources