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

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.

Related

[Recovery] CDMA Sprint [07-Mar-2010] RA-heroc-v1.6.2

This recovery is NOT yet fully compatible with the new apps2sd method! (as implemented in CM5.0.7)
This is a custom recovery based on Cyanogen's v1.4 recovery.
The purpose of this recovery is to avoid using adb by accessing all features directly from the menu.
This recovery if for the HTC Sprint Hero only, if you have an :
- HTC Hero you should go here.
- HTC Dream/G1 you should go here.
- HTC Magic/MT3G you should go here.
This recovery is for the CDMA based Hero from Sprint only!
Ext4 is NOT supported because we don't have the kernel Source of the HTC Sprint Hero yet... Sorry
Use the trackball (up+down) to navigate through the menu, press the trackball to select items.
You can also use the volume keys (vol-up + vol-down) to navigate, and the CALL-ANSWER key to select items (in case your trackball is broken).
Always check recovery.log before posting your issues!
Please make sure that your ROM supports apps2sd if you plan to use the ext-features! (/system/sd MUST be available in the ROM)
Features
full ADB access in recovery mode
Awesome Care-Bear version! (Blame packetlss for talking me into it )
Busybox v1.15.3
HW-Key navigation (volume keys + CALL-ANSWER) option
Extended menu :
Reboot system now :: reboot your phone
USB-MS Toggle :: enable/disable USB mass storage (use when the phone is connected to your PC)
Backup/Restore (recovery partition not included!)
Nand backup :: Make a Nand backup
Nand + ext backup :: Make a Nand + ext backup
Nand restore :: Restore a Nand backup
BART backup :: Make a BART backup (Nand + ext)
BART restore :: Restore latest BART backup
Flash zip from sdcard :: Flash a zip update file from your sdcard
Wipe
Wipe data/factory reset :: Wipe /data and /cache
Wipe Dalvik-cache :: Wipe Dalvik-cache both on /data and ext
Wipe SD:ext partition : Wipe the ext partition on your sdcard
Wipe battery stats : Wipe the battery stats in /data
Wipe rotate settings : Wipe the sensor settings in /data
Partition sdcard
Partition SD :: Interactive SD partitioning
Repair SD:ext :: Repair the ext partition
SD:ext2 to ext3 :: Convert ext2 to ext3
SD:ext3 to ext4 :: Convert ext3 to ext4
Other
Fix apk uid mismatches :: Does extacly that
Move apps+dalv to SD :: Moves all apps and Dalvik-cache to sdcard (This will NOT enable apps2sd!)
Move recovery.log to SD :: Moves the recovery log file to your sdcard. (Use when you want more detailed recovery log information)
Power off :: Powers off your phone
Scripts available from console :
Nandroid v2.2.1 : enter "nandroid-mobile.sh" to start.
BART v1.0.1 (Backup and Restore Tool) : enter "utility" to start.
switchrom.sh V1.1 : enter "switchrom" or "u" to start.
sdparted v0.6 : enter "sdparted" to start.
Install
There are several ways to install a custom recovery, choose the one that suits you most (I probably forgot a few).
via adb -> Requires a custom recovery (with test-keys)
Code:
Copy recovery-RA-heroc-v1.6.2.img to the root of your sdcard
Boot into your current custom recovery (boot while holding HOME)
Connect your Hero via usb to your pc/mac/...
adb shell
$su (not required if you have root already)
#mount -a
#flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img
via fastboot + adb -> In case you don't have a custom recovery, so when you get signature fail errors
Code:
adb shell reboot bootloader
fastboot boot recovery-RA-heroc-v1.6.2.img
adb shell mount /sdcard
adb push recovery-RA-heroc-v1.6.2.img /sdcard/recovery-RA-heroc-v1.6.2.img
adb shell flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img
adb shell reboot
Download
Latest :
recovery-RA-heroc-v1.6.2.img (Click here to download from a Mirror) - MD5Sum: 8382266e4cea526c3cd49d9610f083e0
recovery-RA-heroc-v1.6.2-green.img (Click here to download from a Mirror) - MD5Sum: 41d833b6489aec0617eda0fd4415af8a
recovery-RA-heroc-v1.6.2-blue.img (Click here to download from a Mirror) - MD5Sum: 7ab7e13bbd3e0ad7d84398760398bb77
recovery-RA-heroc-v1.6.2-pink.img (Click here to download from a Mirror) - MD5Sum: c9d4d456acfd1440adddc6d989847219
Old versions :
recovery-RA-heroc-v1.5.2.img (Mirror) - MD5Sum: ccaff51d3a28861240fa9d455924a50f
Change-log :
v1.6.2
Code:
- Added power off menu item
- New unyaffs binary patched by Koushik Dutta and Packetlss to fix the "losing root"-issue and incorrect file-time after a Nandroid restore
- New dump_image binary (by Brainaid) patched by Packetlss to fix the "bad blocks"- Nandroid restore issue.
[COLOR="Red"][B](This will not fix old corrupted Nandroid backups! Please make new backups!!)[/B][/COLOR]
- New mkyaffs2image binary
- New flash_image binary
- Updated busybox to v1.5.3
- Nandroid menu options will NOT backup or restore recovery, cache, misc, splash1+2 (to avoid issues)
- Fixed wipe option not wiping when ext was not present
- Created carebear versions after the idea of packetlss
- Switched the Nexus logo to a Green Carebear with Nexus One logo (Thanks Montalbert!)
Special thanks to :
packetlss for all the hours of support and awesome coding skills, THANKS man ^^, donate to Haiti
Koushik Dutta for the unyaffs binary code fix and help ^^
pensive for adding awesome features to Nandroid
Bkmo for his utility script!
Devsk for his switchrom script!
51dusty for his sdparted script!
k4str0 for his fix_permissions v2.03 update.
Devsk, Dumfuq, Overground for creating BART
Androidappcritics for the reboot idea in BART
rikupw for the ideas and toggle_ums script.
MLIGN for the idea to port my recovery to the Dream.
http://www.androidspin.com for hosting ^^
http://theunlockr.com for all the awesome video’s ^^
Cyanogen for his dedicated work! , buy him a beer!
JesusFreke for his awesome JFv1.43's recovery , donate
Quick shoutout to the_miker and jmanley69 for helping with the testing.
i love you... In a non homo way. But seriously, you are great. Thanks for helping us CDMA users.
Agreed. Thank you all so much. Now is it possible to include apps2sd in the image or do we have to wait for a Rom foe this?
chuckhriczko said:
Agreed. Thank you all so much. Now is it possible to include apps2sd in the image or do we have to wait for a Rom foe this?
Click to expand...
Click to collapse
Apps2SD is usually part of a modded rom, it's possible to do now that you guys have root, but the recovery is not involved in any of that though (except making it easier to fiddle with the phone).
Yes but I know the latest recovery image for the dream had an apps2sd option. I just figured that would be easier.
how do you root cdma hero?
edit: i found info.. thanx amon_ra for the recovery
@Amon_RA - well done mate this is great news for all our American cousins and a major break though in my opinion.
The image works like a charm! I tried installing MoDaCo's 2.9 Image and it just hung at the HTC screen but the nandroid backup from the image restored fine and dandy.
thecodemonk said:
The image works like a charm! I tried installing MoDaCo's 2.9 Image and it just hung at the HTC screen but the nandroid backup from the image restored fine and dandy.
Click to expand...
Click to collapse
you have to wait for ROMs with a CDMA kernel
mopodo said:
you have to wait for ROMs with a CDMA kernel
Click to expand...
Click to collapse
Yeah I figured...just thought it was worth trying to see if something might just happen to work out of the box.
ive been trying for like 2 hours to install this rom to my sprint hero and i cant get it someone help
how do you get it to not stick on the htc screen on reboot after flash?
Do I load this the same way as other recovery images? Like I did with my myTouch and my G1? Thanks. Just confirming before I **ck up my friend's Hero.
I tried to adb into recovery but I can't, as I do on the G1, hit Alt-L by the triangle. I hate to be a n00b about this but this one seems to be entirely new to me.
thorracing1 said:
ive been trying for like 2 hours to install this rom to my sprint hero and i cant get it someone help
Click to expand...
Click to collapse
This isn't a ROM, it's just a recovery image used to INSTALL a ROM (and perform backups and other things).
Can you walk us through what you did, step by step, so we can figure out where the problem may be?
AndroidAppCritic said:
Do I load this the same way as other recovery images? Like I did with my myTouch and my G1? Thanks. Just confirming before I **ck up my friend's Hero.
I tried to adb into recovery but I can't, as I do on the G1, hit Alt-L by the triangle. I hate to be a n00b about this but this one seems to be entirely new to me.
Click to expand...
Click to collapse
I don't know how the myTouch did it but there's a guide you can follow to get it in the CDMA forum: (root AND flashing the recovery image)
http://forum.xda-developers.com/showthread.php?t=581577
(If you're on a Mac: http://forum.xda-developers.com/showthread.php?t=581686)
OR you can follow that guide or perform the flashrec method:
http://theunlockr.com/2009/08/27/how-to-root-your-htc-hero-in-one-click/
(substitute the newest version of flashrec from http://zenthought.org/content/project/flashrec and use the Recovery image from this thread instead of the one mentioned in the link above)
The flashrec doesn't give you root but you can just drop the image in I believe still.
thecodemonk said:
I don't know how the myTouch did it but there's a guide you can follow to get it in the CDMA forum: (root AND flashing the recovery image)
http://forum.xda-developers.com/showthread.php?t=581577
(If you're on a Mac: http://forum.xda-developers.com/showthread.php?t=581686)
OR you can follow that guide or perform the flashrec method:
http://theunlockr.com/2009/08/27/how-to-root-your-htc-hero-in-one-click/
(substitute the newest version of flashrec from http://zenthought.org/content/project/flashrec and use the Recovery image from this thread instead of the one mentioned in the link above)
The flashrec doesn't give you root but you can just drop the image in I believe still.
Click to expand...
Click to collapse
Yeah, I realized I was being a n00b and didn't bother to search too much before asking. But I figured someone else was going to ask anyway so I'd take any flaming if need be. Thanks a lot. I had it rooted when I asked but wanted busybox and the other goodies from the recovery. The easiest root ever.
uses for recovery image
This is my first phone root and I've gotten everything done and complete and just want to learn a little more. I searched but probably not for the correct terms but I'm wondering what for/when some of these options on the recovery image are needed. If there is an explanation somewhere, just point me, otherwise, I appreciate the help with answers! Thanks!
o Wipe data + cache (factory reset) DO YOU LOSE ROOT/RECOVERY IMAGE FLASH?
o Wipe ext partition on SD-card WHAT FOR/WHEN?
o Wipe Dalvik-cache on SD-card (NOT on /data !) WHAT FOR/WHEN?
o Repair ext filesystem WHAT FOR/WHEN?
o Convert ext2 to ext3 THIS IS FOR APP2SD TO WORK RIGHT? **nevermind found answer to this one
o Fix package UID mismatches WHAT ARE UID MISMATCHES?
o Fix auto-rotate issues WHAT ISSUES?
jirafabo said:
This is my first phone root and I've gotten everything done and complete and just want to learn a little more. I searched but probably not for the correct terms but I'm wondering what for/when some of these options on the recovery image are needed. If there is an explanation somewhere, just point me, otherwise, I appreciate the help with answers! Thanks!
o Wipe data + cache (factory reset) DO YOU LOSE ROOT/RECOVERY IMAGE FLASH?
Click to expand...
Click to collapse
This formats the data and cache partition on the phone. Data is where the installed applications and system settings are stored normally. Basically it factory resets the phone back to an unconfigured state. You do not lose root or recovery.
o Wipe ext partition on SD-card WHAT FOR/WHEN?
Click to expand...
Click to collapse
Often we used an ext2/3/4 partition on the SD card to store applications (instead of storing them on the data partiton in the phone) This is what's called Apps2SD that you're seeing all over the forum, it allows us to install much more applications since the ext partition can be much bigger than the internal data partition. Wipeing this means that the entire ext partition is cleared.
o Wipe Dalvik-cache on SD-card (NOT on /data !) WHAT FOR/WHEN?
Click to expand...
Click to collapse
Dalvik is the program that runs all the Android applications (written in Java). It needs to store a cache of the compiled versions of that somewhere so it doesn't have to compile them every time they run. This is normally done on the data partition, but some people choose to move this to other places (like the SD cards ext partition). This option lets them wipe it easily. At this time I don't think there are any Hero customs roms that use this feature.
o Repair ext filesystem WHAT FOR/WHEN?
Click to expand...
Click to collapse
Sometimes the filesystem can become corrupt (for example if the battery runs out just as the phones write to the filesystem). This option tries to repair it.
o Fix package UID mismatches WHAT ARE UID MISMATCHES?
Click to expand...
Click to collapse
On android each installed application is assigned it's own userid (uid) in the operating system. This is for security purposes. If you have your apps on an ext partition on your card (apps2sd), and you install a new rom, there will be a mismatch between the uid assigned to the files/directories on the card and what the Android OS thinks the apps uid is. This option runs a script to try and correct that.
o Fix auto-rotate issues WHAT ISSUES?
Click to expand...
Click to collapse
Some phone (mostly G1s and Sapphires) sometimes have issues with the calibration of the accelormeter. The calibration data is saved in a specific file. This option just removes that file to reset the calibration to factory value. I've never heard of the Hero having these issues and the option is there just in case basically.
packetlss said:
This formats the data and cache partition on the phone. Data is where the installed applications and system settings are stored normally. Basically it factory resets the phone back to an unconfigured state. You do not lose root or recovery.
Often we used an ext2/3/4 partition on the SD card to store applications (instead of storing them on the data partiton in the phone) This is what's called Apps2SD that you're seeing all over the forum, it allows us to install much more applications since the ext partition can be much bigger than the internal data partition. Wipeing this means that the entire ext partition is cleared.
Dalvik is the program that runs all the Android applications (written in Java). It needs to store a cache of the compiled versions of that somewhere so it doesn't have to compile them every time they run. This is normally done on the data partition, but some people choose to move this to other places (like the SD cards ext partition). This option lets them wipe it easily. At this time I don't think there are any Hero customs roms that use this feature.
Sometimes the filesystem can become corrupt (for example if the battery runs out just as the phones write to the filesystem). This option tries to repair it.
On android each installed application is assigned it's own userid (uid) in the operating system. This is for security purposes. If you have your apps on an ext partition on your card (apps2sd), and you install a new rom, there will be a mismatch between the uid assigned to the files/directories on the card and what the Android OS thinks the apps uid is. This option runs a script to try and correct that.
Some phone (mostly G1s and Sapphires) sometimes have issues with the calibration of the accelormeter. The calibration data is saved in a specific file. This option just removes that file to reset the calibration to factory value. I've never heard of the Hero having these issues and the option is there just in case basically.
Click to expand...
Click to collapse
Really appreciate the reply. Know it wasn't a short one!
One more... for uids, the uid stays the same if I just reinstall the same ROM? The ROM determines the uid correct? I played with my phone so much yesterday that by the end of the day I had flashed my backup and modaco over top 3 times in all. Didn't have any problems with apps and apps2sd looks to be running well, so I assume the uid's stay the same if you stick with the same rom.

Unroot + Revert To Stock - NO USB!

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!

[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!

Easy steps for restoring original partition table?

To put it simple, I would need some guidance for restoring the very factory / unmodified partition layout for my Nexus 5 (32GB) model. It is not bricked. I can flash Android 10 ROMs with newest gapps and they all work. Earlier I installed crDroid: https://forum.xda-developers.com/google-nexus-5/development/rom-crdroid-v5-4-t3931587
To make it work, I modified partitions beforehand: https://forum.xda-developers.com/go...ment/repartition-nexus-5-repartition-t3844395
But I decided to flash the original software on it. It can be successfully flashed, but it is in bootloop. I guess because of the non standard partition layout.
Thanks for the help.
@HUN_Gyuszi,
U can restore original partition table with the same script u used to modify them. Here are the steps:
1. Boot into UA TWRP
2. Flash the hh_clamor_repartition.zip from the thread you have mentioned
3. Open Terminal in TWRP (TWRP -> Advanced - Terminal)
4. Type stock and wait until your phone reboots.
5. Install original TWRP 3.3.1-0 from https://dl.twrp.me/hammerhead/ via fastboot
6. Boot into original TWRP
7. Wipe all partitions and format data
8. Reboot from TWRP to TWRP
9. Make a factory reset. The process described here https://forum.xda-developers.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701
I highly suggest u to make a backup of persist partition before doing these steps. You can read how to do it here https://forum.xda-developers.com/showpost.php?p=77661978&postcount=2
PS: After reverting back to original partition table all your data will be lost! So backup everything u need before reverting to stock partition table.
Much respect and thanks for the prompt reply, all worked.
z3DD3r said:
@HUN_Gyuszi,
U can restore original partition table with the same script u used to modify them. Here are the steps:
1. Boot into UA TWRP
2. Flash the hh_clamor_repartition.zip from the thread you have mentioned
3. Open Terminal in TWRP (TWRP -> Advanced - Terminal)
4. Type stock and wait until your phone reboots.
5. Install original TWRP 3.3.1-0 from https://dl.twrp.me/hammerhead/ via fastboot
6. Boot into original TWRP
7. Wipe all partitions and format data
8. Reboot from TWRP to TWRP
9. Make a factory reset. The process described here https://forum.xda-developers.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701
I highly suggest u to make a backup of persist partition before doing these steps. You can read how to do it here https://forum.xda-developers.com/showpost.php?p=77661978&postcount=2
PS: After reverting back to original partition table all your data will be lost! So backup everything u need before reverting to stock partition table.
Click to expand...
Click to collapse

[Guide]Make[10or.E][Treble Support][06 Oct]

10or.E 1 GB Vendor Partition tutorial
So,this post is about how you can make your 10or device treble support for installing custom roms and gsi.
Before reading this post make sure you have unlocked the bootloader and installed any custom recovery(if you have not then go to this forum
So,now lets come back to the topic...
Requirements
- 1GB Vendor Parition zip Download
- Treble Supported Orange Fox Download
- and a working Mind
Now the process, but befofe starting the process **make sure you have taken complet backup because internal storage will be completely wiped out**And I'am not responsible for any device brick
Now lets start:
-First reboot to your recovery and install the treble supported Orange Fox Recovery.
(if you dont find recovery your recovery in download location just select install image)
-After you have successfully flash the treble orange fox just boot into that recovery and
-install the 1GB-Vendor.zip file then the file is talented it will ask if you want to create vendor partition.
-Just click the volume rockers and select yes
-Then it will ask from where you want to take space **select DATA PARTITION** not system
-Then select END data partiton
-Then select **1024mb size** and select **AFTER**
-Then it will ask to format data, Just select "YES" and reboot to recovery
-Then go to MENU-->Manage Partitions-->Vendor-->Change FS-->then change it to EXT4
-After that again come back to MENU-->Manage Partitions-->data-->then just format you data
-And Finally You Will Have Successfully Created 1GB Vendor Partition...
@Arghya Biswas

Categories

Resources