Unroot + Revert To Stock - NO USB! - Nexus 5 Q&A, Help & Troubleshooting

I'm trying to restore my N5 to absolute stock, but I don't have use of the USB port at all, after it got in an argument with a puddle!
Ideally I want to put the device back to stock, so that it can be updated to 5.0, which I can't do at the moment as it's quite heavily customised/rooted which stops the updates installed.
Does anybody know if there's a way to do this? Thanks!

Yes it is, flash this file in your recovery.
http://www.androidfilehost.com/?fid=23501681358549862
That file is Android 4.4.4 Kitkat flashable zip file.
- Un-mount /system in TWRP/CWM
- Wipe: system, dalvik and cache (note: if you want to clean install, wipe data as well)
- Flash ROM (be patient - takes a while)
- Flash SuperSU (optional)
- Reboot

Isus <3 said:
Yes it is, flash this file in your recovery.
http://www.androidfilehost.com/?fid=23501681358549862
That file is Android 4.4.4 Kitkat flashable zip file.
- Un-mount /system in TWRP/CWM
- Wipe: system, dalvik and cache (note: if you want to clean install, wipe data as well)
- Flash ROM (be patient - takes a while)
- Flash SuperSU (optional)
- Reboot
Click to expand...
Click to collapse
Fantastic, thank you!

Related

[MOD][SCRIPT] Super WIPE Script HTC One | Aroma GUI (upd.18/03/2015)

This tool will allow you to easily WIPE system, data (except /data/media), boot (kernel) and cache partitions directly from custom recovery.
Before using this tool you need to be sure you are using latest version of custom recovery (TWRP or CWM). The current downloads for both CWM and TWRP can found below:
The latest M7 U/UL TWRP can be downloaded HERE. I recommend to use TWRP 2.6.3.0 (for v1.0.2d) and TWRP 2.8.5.* (for v2.0.2) .
v1.0.2d will work for Intarnational version, GE, T_Mobile, AT&T but NOT for SPRINT DEVICE
and v.2.0.2 - for all version!!!
To use this tool please copy zip file to your phone and then boot into custom recovery and choose Install. Then browse to where you copied zip file and select it. Aroma installer will begin. Choose options you want to run.
What script does:
1. Wipe /cache partition (select in Aroma);
2. Wipe delvik-cache (select in Aroma);
3. Wipe /system partition (select in Aroma);
4. Wipe /data partition except /data/media (select in Aroma);
5. Format boot partition (kernel) and removes /system/lib/modules (select in Aroma);
/system/lib/modules
/system/etc/init.d/01-h2w
/system/etc/init.d/01-pwp
/system/etc/init.d/01-therm
/system/etc/init.d/01-blinkbuttons
/system/etc/init.d/01-f2s
/system/etc/init.d/01-f2w
/system/etc/init.d/01-f2ws
/system/etc/init.d/01-f2wt
/system/etc/init.d/01-p2w
/system/etc/init.d/thoravukk
system/etc/init.d/89elementalx
/system/etc/init.d/99elementalx
/system/etc/init.d/99elementalx~
/system/etc/init.d/99bulletproof
/system/etc/init.d/56zram
/system/etc/init.d/30sweep2wake
/system/etc/elementalx.conf
/system/bin/fstrim
/system/usr/keylayout/synaptics-rmi-touchscreen.kl
/sys/android_touch/sweep2wake
/sys/android_touch/doubletap2wake
/sys/android_touch/logo2wake
/sys/android_touch/pocket_detect
/sys/android_touch/logo2menu
5. Removes some system files from /data/media;
/sdcard/.android_secure
/sdcard/.bookmark_thumb1
/sdcard/LazyList
/sdcard/LOST.DIR
/sdcard/.data/footprints
/sdcard/.data/mail
sdcard/Android/data/com.android.providers.media
/sdcard/Android/data/com.google.android.apps.genie.geniewidget.news-content-cache
/sdcard/Android/data/com.google.android.apps.maps
/sdcard/.data/navigator/Data/Temporary
6. Check partitions for errors;
7. Create a log of work on internal memory card.
This operation will remove all your data except for /data/media.
If you wipe ONLY BOOT, then you must to flash new kernel and kernel modules too (/system/lib/modules)!
Make sure that you have nandroid backup and Titanium backup before a full wipe!!!
You must have new ROM on /data/media to flash after full wipe!!!
If AROMA Installer stops at 0%, then you must to press Power button and hold 15-17 seconds to reboot. Then go to recovery and start installation again. This will help you.
***Credits***
amarullz for his AROMA Installer Script.
mike1986 for his SUPER WIPE script for Android Revolution HD.
Venom Team for updater-script for ViperOne.
LlabTooFeR for his updater-script for Maximus.
***Download***
Super_Wipe_HTC_One_FULL_v2.0.2.zip - some updates from 18/03/15
Arhive:
Super_Wipe_HTC_One_FULL_v1.0.2d.zip - 2.66 MB - some updates from 24/11/13
md5: 60cff28e4f5ec11e11c15e7d37c54d35
Enjoy!
Version for HTC ONE M9 (ONLY!!!!)
(Russian interface)
Download:
Super_Wipe_HTC_One_M9_FULL_v3.0.1_RUS.zip
Thank you! :good:
Excellent, i miss this scripts since DHD days Thanks mate...
@Golv - good job
i want to wipe everything except the contents on my sdcard download folder > eg. downloaded roms for flashing in TWRP
what should i choose.
what is this script do is the same as wiping in TWRP recovery?
Magpir said:
i want to wipe everything except the contents on my sdcard download folder > eg. downloaded roms for flashing in TWRP
what should i choose.
what is this script do is the same as wiping in TWRP recovery?
Click to expand...
Click to collapse
You must select all of items then will be deleted data, system, cache the boot partitions, after that you can return back into recovery, choose Install and select rom to flash.
This script makes a wipe as well as in TWRP recovery. It's more convenient to use script for somebody ...
Golv said:
You must select all of items then will be deleted data, system, cache the boot partitions, after that you can return back into recovery, choose Install and select rom to flash.
This script makes a wipe as well as in TWRP recovery. It's more convenient to use script for somebody ...
Click to expand...
Click to collapse
i dont understand what this script does is wipe more stuff than the standard TWRP recovery or what?
isnt wiping the boot partitions dangerous?
Magpir said:
i dont understand what this script does is wipe more stuff than the standard TWRP recovery or what?
isnt wiping the boot partitions dangerous?
Click to expand...
Click to collapse
In TWRP all the same, except wipe of boot partition. And there is no partition format /data/media in this script.
Boot partition can be flashed into bootloader (fastboot usb) through:
Code:
fastboot flash boot boot.img
or through:
Code:
fastboot oem rebootRUU
fastboot flash zip boot.zip
(If you S-OFF you can put into zip 2 files: boot.img and android-info.txt, if s-on - signed firmware.zip)
or into custom recovery (zip).
It's dangerous to delete HBOOT partition! In this case - bricks. If you erased boot partition then you can enter into bootloader and recovery and restore all things! ...
so are u telling me that yr script is different from wiping in TWRP ?
So yr script dont delete Hboot partition?
Do not worry! :laugh:
This script don't delete Hboot partition!
so its safe to use?
I checked all items of script on myself. All safe. And if someone does not think before to do something, it is always dangerous!
Awesome, been using a wipe script for the galaxy nexus, great to have one for the One, thanks OP!
when i use this script.
checked all options and wipe.. no rom and no kernel on my phone?
flash now a rom without choose fullwipe in aroma..
why all my apps on phone, my own homescreen?
sent from my HTC One powered by ViperOne
Hopie, thank you! Try this version. Super_Wipe_HTC_One_FULL_v1.0.2d.zip - 2.66 MB An updated version in OP.
Молодец, @Golv. Так держать.
Great work! Thanks.
forgot to answer
with new version all ok..
ium think u know it ^^
sent from my HTC One powered by IronByte
works this script on android 5?
Hopie said:
works this scriot on androud 5?
Click to expand...
Click to collapse
Yes.

[GUIDE] How to flash roms/kernels

How to flash CLEAN flash roms - This is how I flash roms(even updates of the same rom) and the method i recommend to users. It is better to take 10 mins to set your phone again rahter than wasting more time to fix issues that could have been avoided by a clean flash.
NOTE- This is a MUST when changing roms.
1. Backup EFS
2. Make a nandroid backup in recovery
3. Wipe data/factory reset
4. Wipe system
5. Wipe cache
6. Wipe dalvik
7. Flash ROM
8. Flash gapps(if flashing an AOSP ROM)
9. Flash kernel(optional)
10. Reboot
11. Wait 10 mins, then do another reboot
12. Enjoy
How to DIRTY flash roms - This method is used by users when flashing a update of the same rom.
NOTE- Some users follow this and some just flash the rom without wiping anything.
Note- If you flash rom that has aroma installer you will need to edit the updater script to make sure the aroma doesn't wipe system before flashing rom.
1. Backup EFS
2. Make a nandroid backup in recovery
3. Wipe cache
4. Wipe dalvik
5. Flash ROM
6. Flash gapps(if flashing an AOSP ROM)
7. Flash kernel(optional)
8. Reboot
9. Wait 10 mins, then do another reboot
10. Enjoy
How to SUPER CLEAN flash roms - This is the method that I recommend to your that have weird issues, even after clean flashing.
NOTE - If you dont know how to Odin the stock FW(firmware), read this guide.
NOTE - Make a backup of your internal sdcard and save rom/gapps/kernel/etc on external sdcard.
1. Backup EFS
2. Make a nandroid backup in recovery
3. Odin the stock FW(firmware) for your device, the phone will boot into the OS
4. Boot into download mode and flash a custom recovery, I recommend TWRP
5. Wipe internal storage
6. Wipe data/factory reset
7. Wipe system
8. Wipe cache
9. Wipe dalvik
10. Flash ROM
11. Flash gapps(if flashing an AOSP ROM)
12. Flash kernel(optional)
13. Reboot
14. Wait 10 mins, then do another reboot
15. Enjoy
Sent From My SM-N9005 To All You Wonder Nobodies!!
How to flash flash kernels - Many users say to wipe cache/dalvik but it's useless as neither if their partitions are affected when flashing a kernel.
1. Boot into recovery
2. Flash kernel
Sent From My SM-N9005 To All You Wonder Nobodies!!
Finally, the easiest and most important thread Imo.
Keep up the good work mate.
Sent from my SM-N9005 using XDA Premium 4 mobile app
fahadali2315 said:
Finally, the easiest and most important thread Imo.
Keep up the good work mate.
Sent from my SM-N9005 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thanks for your support bruv.
Sent From My SM-N9005 To All You Wonder Nobodies!!
:good:
This is a long typo on note 3.
Can't imagine, with 289dpi some more
Sent from somewhere under the sky, at the corner of this rounded earth.
antique_sonic said:
:good:
This is a long typo on note 3.
Can't imagine, with 289dpi some more
Sent from somewhere under the sky, at the corner of this rounded earth.
Click to expand...
Click to collapse
Haha actually I typed most of this on PC but emailed it to myself as I was leaving but wanted to edit it some stuff...So the end product was posted by cell.
Sent From My SM-N9005 To All You Wonder Nobodies!!

My recovery is rebooting ;/

Hello, I need help.
Yesterday i buyed Xperia J, tried a few roms, everything works great and today i want to install this rom ( http://forum.xda-developers.com/xperia-j-e/development/st26i-rom-port-miui-v5-multilang-t2811506 )...
When i am entering into recovery (after flashing ICS and then kernel), make a wipes etc. it's turning off after ~2 minutes.
What can i do?
Ofc. Bootloader unlocked.
YaXeS said:
Hello, I need help.
Yesterday i buyed Xperia J, tried a few roms, everything works great and today i want to install this rom ( http://forum.xda-developers.com/xperia-j-e/development/st26i-rom-port-miui-v5-multilang-t2811506 )...
When i am entering into recovery (after flashing ICS and then kernel), make a wipes etc. it's turning off after ~2 minutes.
What can i do?
Ofc. Bootloader unlocked.
Click to expand...
Click to collapse
Reflash ICS and follow Install instructions:
- If you are coming from JB or another, not ICS : advice of install firmware ftf (ICS) (ST26i_11.0.A.7.5_CE)
via flashtool (Flashmode)
- Copy the ROM.zip in Ext-card
- Extract the boot.img from the zip and flash the kernel with Flashtool (fastboot mode)
- Go into recovery (TWRP prefer - green LED)
-Wipe Cache- Dalvik Cache - Factory Reset - System
- Clear internal card (SD card)
- Flash Zip
- Wipe Cache-Dalvik Cache
- REBOOT
kubiss017 said:
Reflash ICS and follow Install instructions:
- If you are coming from JB or another, not ICS : advice of install firmware ftf (ICS) (ST26i_11.0.A.7.5_CE)
via flashtool (Flashmode)
- Copy the ROM.zip in Ext-card
- Extract the boot.img from the zip and flash the kernel with Flashtool (fastboot mode)
- Go into recovery (TWRP prefer - green LED)
-Wipe Cache- Dalvik Cache - Factory Reset - System
- Clear internal card (SD card)
- Flash Zip
- Wipe Cache-Dalvik Cache
- REBOOT
Click to expand...
Click to collapse
certainly. you used to do before saying, follow the instructions as per the thread of the author, rather than cut and paste

[GUIDE] Install custom ROM without computer

Hello everyone. I have come up with a lazy way to install custom ROM (such as Cyanogenmod) in *most* phone (I tried this on S3mini and Galaxy MEGA). Please note that this method moght not work on your phone and I am not responsible for bricking your phone.
Things you need:
-Your phone, fully charged
-Your precious time (About 30-60minutes)
-One click root app (I use Kingroot, download it with apk) (You may use other apps, of course)
-TWRP manager from playstore
-ZIP file of TWRP in latest version (V3?)
-ZIP file of the custom ROM matching the version of your device
-ZIP file of GApps matching the version of the custom ROM (Google for gapps and download it)
Steps:
1. Backup your personal information
Copy your personal information such as music, photo, documents out of your phone (e.g.: Cloud drive, USB, SD card). Safety first.
2. Root your phone
Download Kingroot and install the apk with package installer. Run the app and follow the instruction in the app to root.
3. Install TWRP manager
After rooting, install TWRP manager. In the app, install TWRP that match your device.
4. Create a backup for your phone
Boot your phone into recovery (Every phone have different method, so please google about this). In TWRP, press 'Backup' to create the backup.
5. Flash the latest version of TWRP
As the TWRP manager does not offer the latest version of TWRP, you have to flash the latest version by installing ZIP. The latest version of TWRP can install ROM with higher success rate.
To do this, press 'Install' in TWRP. Find the ZIP file of TWRP in latest version and install it.
6. Reboot your device to Recovery mode
7. Wipe your device
In TWRP, press 'Wipe'. Select Cache, Dalvik Cache, System and Data partition and wipe them.
8. Flash custom ROM
In TWRP, press 'Install'. Select the Custom ROM ZIP and install it.
9. Flash GApps
Most custom ROM does not have Google apps such as play stote, so you have to install it.
In TWRP, press 'Install'. Select the GApps ZIP and install it.
10. Wipe Cache and dalvik cache
In TWRP, press 'Wipe'. Select Cache and Dalvik Cache partition and wipe them.
11. Reboot your device
Now the ROM should be properly installed. First boot might take longer, so please wait patiently.
Shall you brick your phone, try to recover by using backup created in step 4.
PS: I am a newbie here and this is my first guide
While you have to wipe your device to flash the custom rom, it will wipe your data, including the actual Gapps and rom. This shows that your method won't work.

[Guide] Step by Step Installation of Android Pie Custom Roms

Step by Step Installation of/Upgrade to Android Pie Custom Roms
Following this guide, you will lose all your data if haven't backed it up yet!!
Also NO USING GSI PIE!!!
Requirements:
- Twrp is already installed.
What you need:
- LineageosTWRP (Attached to thread)
- Custom Rom (can be found here)
- Open Gapps (Pico or Nano)
Only if Root is wanted: Chose either of them
Magisk(Recommended) or SuperSU
- A brain and a body
- The Knowledge that you will wipe your phone by doing this. Be Warned.
Installation:
1. Backup all the files that you have either by copying them to a usb drive ,a micro SD or your computer.
2. Check that all files are copied successfully and can be opened or viewed.
( Some apps have a cloud synchonisation feature, use it if you have it as an option since it is really helpful!)
3. Now, get your preferred rom, gapps and if wanted, your root method ready, also unzip the twrp file aswell.
Copy them to your micro SD.
4. Boot into twrp via adb or by using some app(root needed).
In Twrp, go into wipe option, then select change file system. Change file System to ext4.
4.1 Now use Twrp Reboot-Menu Option to reboot into recovery(twrp) again.
4.2 Wipe system, data, cache and dalvik-cache partitions using the Wipe option
5. Go into Install Option and Press on "Install IMG" , select pietwrp image and flash it. (The name should be lineagerecovery.img or something if downloaded via telegram)
(If you don't have it yet and are in the Lenovo P2 Telegram group, type #pietwrp in chat and make sure to safe it to your download folder. Otherwise it's also attached to this thread.)
6. Reboot back to recovery like you did in step 4.1.
7. Now install your rom and gapps.
8. Wipe cache and then reboot .
9. Setup your phone and Enjoy.
( For Root, reboot to recovery. Flash your Root Method, wipe cache and reboot)
Enjoy and thank your Devs
FAQ
Q: Instructions unclear, phone stuck in bootloop
A: Either do this:
Download this folder and use one of the two ".bat" files. Boot into Bootloader via Volume Down and Power Button. --
It will flash S048 Firmware of our Lenovo P2, after the flash-process is finished it will boot up on its own. Recommended: Do all the ota updates via ota app.
Or: Boot into bootloader, via adb cmd prompt use: fastboot boot lineagerecovery.img , then use reboot menu to reboot into twrp. Clean Wipe phone(Wipe system,data, cache and dalvik-cache Partitions) and try flashing your Rom etc. again.
Q: Instructions unclear, hardbricked my phone!!
A: Thaat shouldn't have happened. Did you screw up somewhere?...
Luckily you backed up your most important files!

Categories

Resources