[ROM] Paranoid Android Thrive (unofficial) - Thrive Android Development

As with the Black Bean ROMs, this will now have it's own thread to keep confusion down and information easier to obtain.
I present to you Paranoid Android for the Thrive!
Built from source
Includes Balthesaur 2.7x series kernel
Includes ALL fixes implemented into the Unified builds as of U5
Working Storage
Paid Apps
Sensors
GPS
WiFi
BT
Hardware decode
Hardware acceleration (UI / Project Butter)
WiFi LED
Current known issues:
Like all CM based ROMs it suffers EGL memory errors, which will result in lockscreen "blinking" and needing a hard reboot. Best way to prevent this currently is to not enable any lockscreen, it impacts a lot of devices and is still being looked into.
Uses the Balthesaur JB kernel

Change log:
Resuming from Kuroikaze Threads Build 1 - Build 2
Storage works
Paid apps work
WiFi LED works
Memory management tweaked yet again
Glitches:
Internal SD will appear smaller then normal, this is due to a shift from internal sd to /data, while it may suck to lose some of that internal sd space, it does allow more apps to be installed and requires less use of hacky method to move apps/data to sd to save space for app installation. It seems to be a ratio vs a set amount, IE the bigger the internal sd, the more it moves to /data. A 16GB model will show 10GB internal sd and 5GB available for data/apps. This appears even in stock ICS, I'm not sure of the issue.

Downloads:
Paranoid Android Build 2
Instructions:
For Build 2 a FULL WIPE MUST BE DONE!
Each build after 2 may be dirty flashed if you choose.
Generic flashing instructions - this assumes you have flashed at least one custom ROM in CWM/TWRP at some point.
Download ROM from the link above
Download Gapps provided by Indest at the CM10 Wiki HERE
Reboot into your CWM/TWRP Recovery
Make a full backup/nandroid before proceeding
-For first use of this ROM, a full wipe should be done, regardless of previously installed ROM, this applies for B2, and any version after if you are not on at least B2. A Full wipe means Factory reset, dalvik, system, cache.
-For second flashing (B3 or higher) you may choose to wipe only cache and dalvik and flash just the ROM and Gapps.
After flashing is done (you flashed Gapps after the ROM, right?) reboot system
Allow up to 15 minutes to boot to UI
Once the welcome setup wizard shows up, let it sit for 10 minutes
After the 10 minutes complete the setup of the tablet then reboot
After reboot let it sit 5 minutes
Proceed setting up the device with your apps.
Restore only user apps, and data only if you need to (like game saves, book marks, etc)
Never restore system apps or data! This is red in Titanium Backup
After restoring what you will, reboot one more time
Let sit 5 more minutes
Use device as normal.
Thanks to:
Tybar
JBettcher
Indest
Paranoid Android
Google
Cyanogenmod
Linaro

Related

CM7/miui/Froyo sense(2.29.405.5) - for CustomMTD's addicts !

All 3 roms fit on a 112 mb system partition, which means you can have 320 mb for CM/Miui or so for /data, 180 or so for the Sense rom,on top of that you got sd-ext, will never need more space !
-the CM7 is from now the nightly, build by the CM team.
-the miui latest is their work, English translation from the miui-dev.com
-the sense is from HTC, their OTA, with the latest 2.29.405.5 patch applyed
FOR CM 7 & Miui:
Now what i did is to create for each of this roms an update pack which you gotta flash over the roms at the end.
What's in them:
-App2sdext with binds (not symlinks), by default all the user application go to sd-ext, but you can move them around, see below.
(made by Firerat), integration solution from EzTerry pretty much.
-ApkManager(ApkManager.sh) - by Firerat again, this little tool will allow you to move application around your system, to sd-ext or to internal, your choice, you can even batch move them, also can have some on internal, some on sd-ext, no problem.
-Kernels: the updates contain vork's latest for GB (CM7), the MIUI has the original kernel, it seams more stable.
-dalvik goes on /data for both roms
- BindCache (by Firerat )init.d script to bind /cache to /sd-ext/cache, since we play with MTDs and don't use a big Cache partition, this is useful for Rom Manager for instance.
Gapps are included(all downloadable are installed over the userdata, a few other useful freebies included as well.
Links: Official CM7 Nightly Update-pack | Miui Update-pack
* On the MIUI rom, after you mess around with application location, its wise to clear the data form the Luncher, so it rebuilds the icons in good order.
For the HTC Froyo 2.29.405.5
First off it will fit on a 112 Mb System partition as the rest.
This rom will WIPE your SYSTEM, DATA, sdext and .android_secure from the sdcard.
Features:
A2Sdext with binds, FroyoParts by EzTerry: will secure 3dw, will move apks to sd-ext, will lock HOME in Ram by default (can also move dalvik to sd-ext, data to sd-ext, the compcache setting does nothing as we don't need it)
kernel: couttstec BFS sense kernel
Busybox, Rooted,zipalign,bind cache init script
All the system APKs are ODEXed, even those i added, this saves space and booting up speed.(added torch, spare parts, android terminal, transparent genie widget, 3Dm Gallery, cifsmanager, dspmanager), i removed all the DOWNLOADable google apps and did not add them on Userdata since doing this will brake the Market. You can simply download those you want from the market)
For now Apkmanager is not included, as it's quite bugy on this sense rom.
Links: HTC-Desire-MTD-2.29.405.5
Changes:
17/01/2011
Remove my Custom CM7 since the official nightly's are up!
Added the latest Desire Froyo Sense Rom (2.29.405.5).
CM7: fresh CM build, added new vork BFS kernel in the update-pack.
good stuff.. i have miui 1.1.7.. do i have to flash the latest then flash this in order for it to work? can i flash over my current 1.1.7? thanks!
does it survive nightly update?
what is arrangement?
system?
cache?
data?
You need the new version indeed but Miui 1.1.14 seams much more stable anyway.
In theory my cm update works over any cm 7. I use 112 system 2 MB cache, rest is /data. The Google apps just go on userdata, that's all, only the minimal gapps: sync, talk and vending are on the system.
Sent from my HTC Desire using XDA App
Superb
Outstanding, tried both, very stable, but the MIUI is a treasure.....bravo!
Right. OK i am so confused right now. Does this install all 3 roms into separate partitions so in effect the phone is dual (or tri) booted meaning i need a custom MTD partition (if so how do you swap between them) or does this install an android base then the mods over the top? What i mean is have you lifted the UI from Miui and Sense and it installs over the CM7 Gingerbread base or what? (like running several launchers)
Also what EXT partition type (2, 3 or 4) and what size (swap or no swap) would you recommend
Ive been flashing and playing with android for a while but i just cant get my head around this. i HATE sounding like a noob
all 3 rom in 112mb???????
confused....
Right i've read and re-read the opening post and as far as i can tell you are saying that you have created a script that you flash after selecting which one of the three roms listed above you wish to flash.
The roms have been edited and streamlined to fit on a custom partition.
and that is all
(excitement over)
That post is so not clear at all
Its obvious for those who use Custom MTDs and want to use all their NAND space.
No it isnt. Not by the way it reads anyway. It sounds like you have combined all 3 roms.
Seemed clear enough to me, working well thanks.

[REF] 30 Steps from GB to ICS ROM

I've gone from my long time TPC v3 to various ROMS and recently, ICS ROMs multiple times over the last few weeks. After a myriad of gotchas encountered, I wrote down this list of things to do in 30 steps and I thought I'll share the list. Where ever applicable, I've included the reason why the step is there which of course based on my (bad) experience.
Please feel free to add any additional steps you find missing and do hit me up with a Thanks if you find this useful.
1. Check space availability on internal SD
(Error handling and messages are lacking, it would be crippling if your backups or downloaded zips are incomplete)
2. Do a full Titanium backup
(take two if you have the space and just to be safe)
3. Do a nandroid backup via ROM Mgr or CWM
4. Download the target ROM
5. Download other ROMs (optional)
6. Download the radio (if needed, some are baked in)
7. Download the kernel (if needed, some are baked in)
8. Download other zips, boot animation e.g. (optional but should be done much later)
9. Download other scripts if needed like Darkside wipe (recommended)
10. Boot into CWM (either through ROM Mgr or button presses)
11. Install the radio zip (if needed)
12. Do the wipe dance, factory reset, cache, dalvik wipe, /system, /data, /cache, Darkside e.g
(see ROM instructions)
13. Install the ROM zip
14. Install the kernel zip if needed
15. Reboot
16. Let it sit for a few mins
17. Login into Market, exit and wait for Market to morph into Play Store
18. Update Titanium through Play Store (If not, TiBu may hang on some app restore or not start at all)
19. Download ROM Toolbox, change resolution and reboot (optional)
20. Setup wifi so you don't incur data usage
21. Mark sure other sources is checked
22. Run Titanium batch restore, missing apps only
23. Reboot
24. Let it sit for a few more mins
25. Run update/update all in Play Store, Amazon App Store e.g.
(This brings the apps up to ICS compatible versions if present)
26. Some apps may require re-installations
27. Some apps may be missing and require installation
28. Some apps may require re-setup (Juice Defender, Widgetlockers, widgets in general)
29. Setup security, face, pin, pattern locks, timeout value
(Re-setup required on new ROMs)
30. Re-setup and re-sync Sugarsync (optional)
Nice list, good stuff!
I'd do step 6 and 7 regardless because I like to have a backup of a working kernel and modem always incase I need to reflash them.
Oh and check out the app appextractor, it's good for restoring sms from nandroid provided the backup was the same OS version.
Sent from my SAMSUNG-SGH-I727 using Tapatalk
kr3w1337 said:
Nice list, good stuff!
I'd do step 6 and 7 regardless because I like to have a backup of a working kernel and modem always incase I need to reflash them.
Oh and check out the app appextractor, it's good for restoring sms from nandroid provided the backup was the same OS version.
Sent from my SAMSUNG-SGH-I727 using Tapatalk
Click to expand...
Click to collapse
Yeah, that's what I do too. I have at least one modem, kernel, boot anim, wipe script and several ROM zip files sitting there just in case I need to use it. When the phone is bricked (for various reasons) the last thing you'll need is to do the setup (download, copy e.g.) just to get the files there.
you should set some time out and do a guide like this for all the sammy rom forums on xda, I know it seems alot, but you mentioned alot in there that I didnt think about that would have save me some heartache...
just a generalized guide, nothing too fancy with definitive radios, etc...
Nice list.
Very helpful info.
I'm digging your terminology "do the wipe dance".
I typically pull the external SD card before wiping or flashing anything... it may not be necessary, but it's a huge PITA if I lose the data.

[CWM/ROOT/UNKNOWN SOURCES] HD/HDplus Stock Root/other Mods - via CWM flashable zips

Update 09/10/13. This thread is being updated to reflect many new developments with the HD/HD+. Alternate ROMs are now plentiful and B&N has added Google Play Store and gapps to stock. And now the biggest change for stock is verygreen has broken the file protection scheme that B&N implemented that had made it very difficult to modify stock. The complicated methods developers had to implement to root and modify stock are now gone. So I am modifying this thread to reflect that. It still will be focused on stock and the use of CWM to modify it, but will have a few other mods to other ROMs as well.
What verygreen has developed is a new boot.img file that removes the file protection that prevented users from modifying /system. After that modified boot.img is flashed to internal memory, those /system files can be modified without danger of the device resetting. Also, one added benefit is that with the new boot.img installed on your device, any B&N update will fail. So that means once you have installed the boot.img it will stay there until the user flashes a complete new rom themselves.
The only way users can modify the /system files is to be rooted or to use zip files flashed by CWM. This thread provides zips to root using his boot.img and other zips to make other mods, like enabling Unknown Sources so apps can be sideloaded without using Play Store or the B&N Store.
Verygreen has published his boot.img zips that remove the file protection here. If you use his latest versions of recovery to flash his zip, they will ask if you want to root. It does root and it works very well. But that version of root does not include busybox or superuser which some users like.
I have updated my Universal Root zip to rev3 to include his boot.img and adds superuser and busybox. Just flash that zip with either his or my recovery and you will have root. And with this version of root, there is no danger of being reset by B&N. If you used my earlier versions of Universal Root, I recommend you use my Disable Root zip before flashing this new version.
I also have full rooted 2.1.1 stock zips in item 6 below.
WARNINGs. The CWM recovery in this thread is used to install the zips below to internal memory which are mainly to modify stock. But it can also be used to install a Cyanogenmod (CM) ROM on internal memory as described in the Dummies Guide to installing CM to internal memory here, as well as to modify CM once installed.
Be sure to use CWM to nandroid backup your existing ROM before you try to install anything here. That way if something goes wrong and your system messes up, you can boot to the CWM SD and restore your ROM exactly the way it was before you did anything.
Some of the newer HDplus devices are very difficult to get to boot to an SD. They should eventually boot but many users, including me, have had difficulty. Look at this thread (in particular, look at this post within that thread).
Click to expand...
Click to collapse
If you have questions or comments on this post, reply to this thread. If you are a new user and cannot post here, post on my HD/HD+ tips thread here. Please do not send me private messages or emails. By posting in the forums others get a chance to help you and if I answer your question in the forum, others can see my response and it may help them too.
1. Clockworkmod (CWM) Recovery - READ THIS SECTION FIRST, IT HAS EVERYTHING YOU NEED TO GET STARTED!
CWM recovery is a tool that you can use to install modifications to your stock that you ordinarily could not do without already being rooted. And it has lots of other features like making an exact backup of your stock so you can restore it later if you want. And you should do that before you ever start installing anything else. But the feature that is most useful here is the ability to install (flash) the zips I have here on this thread.
A summary of the below section for those looking for steps is as follows:
a. Make the CWM SD.
b. Copy the installation zips to the CWM SD.
c. Insert the CWM SD to the device and boot to it.
d. Use the CWM commands to backup your device and install the zips.
e. Remove the CWM SD and boot to your modified device.
a. Make the CWM SD.
Before you can install the modifications here you must make a bootable CWM SD. To make one, you will need a spare SD that you are willing to dedicate to use as a permanent CWM card, a card reader for your PC, and burning software.
EDIT (5/22/13) - There is a new procedure brought to my attention by another user (thanks fanoush) which lets you make the CWM SD without burning the image. It seems the OMAP4 devices are a little more liberal on the booting requirements than previous OMAP devices. This makes it easier to install on any size SD. Follow this new procedure as the old procedure sometimes is difficult to acheive:
New procedure:
Format (fat32) any size card with SDFormatter (free on web).
Use partitioning software (Mini-Tool Partition Wizard or EaseUS Partition Manager, both free) to set the first (and only) partition as "active". Don't repartition, just set active. I have read that some versions of Windows will let you set the first partition active without having to use partitioning software, but I only use XP and it does not have that feature.
Unarchive the appropriate set of BOOTFILES for your device (HD or HD+) from my .rar file attached below and copy them to the SD. There should be five files. Make sure you copy the MLO file first before you copy the other four. DO NOT INSERT THE SD INTO YOUR NOOK UNTIL TOLD TO DO SO IN SECTION 1c BELOW!
Move on to item b below to copy the installation zips.
Click to expand...
Click to collapse
Old procedure: Click on Show Contents.
To make a CWM card you must use a process where software copies (burns) an image file to an SD. I recommend using Win32DiskImager. Download and extract the image file for your device (HD or HD+) attached below and burn that to your SD. For detailed instructions, click on the Show Content button.
Attached at the bottom of this post you can get the CWM image zips that I have modified to work on stock. I have versions for HDplus and for the HD. You must use the version for your device, they are not interchangeable. And you must use the CWM image zips from this thread if you want them to work on stock. Download the appropriate 4GB CWM image zip for your device and extract it. You will end up with an approximate 3.7GB .img file. Burn that image to your 4GB or larger SD using Win32diskimager in Windows or use the dd command in Linux or OSX (Mac).
To use Win32DiskImager, find it on the web (here, it's free) and install it on your Windows PC. Open it (be sure to run it as administrator) and select the drive (device) that has your card reader with your SD inserted. Then in the image file box put the location where you have the extracted img file. Then when everything is set right, click on the write button. A warning will pop up asking if you want to proceed. When you have verified that you are going to write to the correct device, click on Yes. (One user overwrote their external USB hard drive by not verifying first). With this 4GB image it will take a while. If you get an error message about access denied it means you are looking at the drive with Windows Explorer. Close Windows Explorer and try again. In fact, it is a good idea to close all unnecessary windows when burning, even your browser.
When burning is complete, temporarily remove the card and re-insert again so the PC recognizes the new image.
If you do not have a 4GB or larger SD, you can use my small version of the image, also attached below. It only requires 120MB of space on the SD. And it has all the same features as it's bigger 4GB brother, it is just smaller. But there is not room to put backups on the card. If you use a small card, see item 11 below for workarounds on making backups.
You can use partitioning software, like Mini-Tool Partition Wizard or EaseUS Partition Manager (both free), to can expand the partition to the full size of the SD you burned it to. But I recommend you not use a really large SD to put CWM on. Certainly no larger that 8GB. It is a waste of a big card to use it for stock CWM.
To burn using Linux or Mac, you are on your own. A user, (jfever311) just added some Linux instructions here. And recently cdaters just added some Mac instructions here.
b. Copy the installation zips to the CWM SD.
With the card still in the PC, copy to the SD card those zips (keep them as zips) that you want to install to the Nook. I recommend the Enable Unknown Sources zip, and, if you want root, the Universal Root zip as discussed in the sections below.
c. Insert the CWM SD to the device and boot to it
Remove the card from the PC and insert into your POWERED OFF Nook and power back on. CWM should appear. If it does not and boots to stock instead, power off and try again. You can tell when it is going to boot to CWM when the 'cyanoboot' logo shows. If it still does not boot after several retries, first make sure you have the right version of the image/files to match your device (HD or HD+). Some of the newer HD+ devices a very resistant to booting to SD. My new device boots to SD maybe once in ten tries. I think it is hardware related. HD's seem to boot to SD very reliably.
d. Use the CWM commands to backup your device and install the zips.
Once CWM appears, use the volume up/down keys to move the cursor and highlight "backup and restore". Then use the n key to activate it. The power key is the back button. Pick backup and it will take several minutes to backup your system. That way if something messes up you can later restore that backup. Keep the backups for future needs, don't delete them.
Then use the power key to move back to the main screen and select "install zip from SD". Pick the zip you want from the list of zips that you put on the SD earlier and select install. Do them one at a time in any order you want. You do not have to do any wiping.
e. Remove the CWM SD and boot to your modified device.
After you finish, remove the CWM card and tell CWM to reboot. Sometimes you get a message saying that it is set to flash a new recovery and do you want to fix that? It makes no difference what answer you choose, so I just say no. It should boot to stock with your changes installed.
Most of the below zips can be flashed (installed) on any version of stock HD-HDplus ROM as long as you have booted the Nook into stock at least once and registered. All of the zips below can be installed and work without the Universal Root if you don't want to be rooted. Just copy any additional zips to the SD while it is inserted in the PC, remove from the PC, insert into the Nook again and boot to the CWM and install per the previous paragraph.
There is an alternative to downloading on your PC and copying the zip to the SD card for flashing. You can download the zip on your device and store it on internal media memory. Then, when you boot to CWM to flash it, select "install zip from SD/choose zip from internal memory" and install from there.
One additional thing. Since the device is very sensitive to the apps you install later (the device will try to reset itself if you install an app that writes to /system), it is probably a good idea to back up with CWM periodically so that if you do have to restore, you won't have to repeat a lot of the changes you made since the last backup.
If you do get into the 8 failed boot process because something got inadvertently added to /system, you can recover from the reset by turning off the device before the 8th reboot and inserting your CWM card. The next boot will boot to CWM and you can restore your last back up to get back to where you were.
Be sure to keep your CWM SD for future use.
EDIT (9/18/13) I don't like or use TWRP recovery but many users have asked for a bootable SD that uses it. So I extracted the files from verygreen's internal TWRP and made bootable SD versions for each device and added them to the list of attachments below. I have both the BOOTFILES version (which I recommend using) and a burnable 4GB image version. The image version is compressed to 7z format to make it small enough to attach to this post.
You are on your own for how to use TWRP, don't ask me, I don't use it.
2. Universal Root for Stock (rev3 - 09/10/13 )and Disable Root (rev2 - 2/3/2013)
Adding Root to stock is an important step in making your device better. It gives you access to files and locations that you are ordinarily not allowed to see or modify. Many further mods to your device depend on being rooted.
This zip will detect which device you have and will root your stock no matter what version of the software (even 2.1.1). The zip is very small and is attached to this post. I added a couple of small apps to help users. Zeam is an alternate launcher to help you see sideloaded apps and AnyCut lets you put a stock Home shortcut on the zeam screen. If you do not want these apps, just go to settings and uninstall them.
This version of root also changes how the boot sequence looks. It briefly shows the original Nook logo, followed by the Cyanoboot logo, followed by the normal stock boot up sequence. After the first boot when the stock home screen comes up, press the n key and a dialog box pops up asking which launcher you want to use. Click default and select zeam. To put a stock home shortcut on zeam, long press the zeam screen, choose shortcut, choose AnyCut, choose activity and scroll to home and select it Then press OK. There will now be a shortcut installed to get back to the stock home screen. An alternative way to switch back and forth between stock home and zeam is described by natefish here.
I also added another zip to disable root if you already rooted your device. It is only to be used if you rooted using rev2 or older of the Universal Root. It will leave all the other things installed by the zips below, just root will be gone. And you can always add root later again if you want by flashing the Universal Root zip. It will not work on rev3. If you want to remove the rev3 root, just go to item 6 below and flash one of my plain stock ROMs. It will take everything back to plain stock including removing the Cyanoboot loader and the root files (and CWM or TWRP if you installed them to internal memory). This is handy if you need to return it to B&N under warranty. But it will leave the Unknown Sources setting enabled if you had flashed that zip.
If you prefer not to be rooted, all of the other below zips can be installed and work without having root.
If you have a previous version of root and get updated by B&N despite setting OTA to manual per item 7 below, just flash this root zip again and your root should be back. Breaking root will not effect your installed apps unless those apps specifically required root. One of the side benefits of the rev3 root is it causes any B&N update to fail, so the root sticks.
3. Enabling Unknown Sources - (rev0 - 09/08/2013) (formerly the Extras zip)
I have a new stand alone Enable Unknown Sources zip and attached it below. It replaces the former Extras zip that is now obsolete. This zip changes a hidden setting in stock to allow apps to be installed from other sources besides the Nook Store or Play Store. You will need to have booted and set up stock before flashing this zip. But you do not need to be rooted.
And I now have a version of the old Extras zip (which included enabling Unknown Sources) for 'Stock installed on SD' by verygreen. Get it here (WARNING! This version of the extras zip is only for users running stock installed on an SD, NOT for users running original stock installed on internal memory. Do not install it on stock on internal, it will do nothing.)
4. Swapping "sdcard" and "ext_sdcard"
Many users have complained that on the HD/HD+, like many phones, the internal media is named "sdcard" so that apps can store their files there. Some users would like them stored on their external SD. This mod will swap "sdcard" and "ext_sdcard" so that apps will store their files on the external SD. The external SD will show as "sdcard" and the internal media will show as "ext_sdcard". And it shows swapped using MTP also. It can be a little confusing since we cannot control the names, but they are swapped. If you don't have an external SD in the slot, both sdcard and ext_sdcard will display the internal media.
I have two zips attached below, one to install the swap feature and one to remove the feature. Just flash the one you want and on the next boot it will become effective. These are for stock only.
I also now have a version for the official CM10.1/CM10.2 on emmc for the HD+ and HD.
WARNINGs This swap is kind of a kludge, so some things are troublesome. For these swap zips to work, your SD must be formatted to fat32. And the settings, storage option in CM does not provide accurate information. In fact, it may hang your device if you try to view it. If it hangs, just reboot. Also another issue is you cannot install apk files from the new sdcard. You must move the apk to internal media memory before installing.
5. New CWM (v6036) for internal memory (emmc) and Restoring stock recovery to emmc (HD/HD+)
Now that verygreen has made available his native CM10.1 ROM and has matching native CWM and TWRP recoveries that can be put on internal memory (emmc), I have made three more zips. The first two are my versions of a repackaged verygreen CWM (v6036) for internal memory for HD (here or here) and HD+ (here or here) that work on both stock and internally installed CM. If you are already on the newer CWM for CM11 (v6045 or newer) that cannot flash older zips and you want to go back so you can, I have modified this zip (rev2) to be flashable with the newer CWM. That way you can go back to v6036 to be able to flash older zips.
The third is a zip to return the stock recovery to internal memory should users want to return their devices to pure stock. A nandroid restore of an earlier stock backup will restore everything except the stock recovery. So if you have installed verygreen's or my recovery to emmc and you want to go back to pure stock, flash my HD+ zip here or here and my HD zip here or here. Both are also attached below.
6. Plain Stock HD/HDplus 2.1.0/2.1.1/2.2.0/2.2.1, Full 2.1.1 Stock with Root (latest 03/05/15)
Warning! All of the zips in this section must be flashed with CWM v6036 or earlier. v6045 or later will cause the installation to abort with assert errors.
I have plain unrooted factory 2.1.0, 2.1.1 and 2.2.0 zips for each device. They will take you back to stock with no root (and with file protection) so you can let B&N update you to the latest ROM version if you want. They also restore the recovery to stock in case you had previously installed CWM or TWRP to internal memory. The plain stock 2.1.0 for HD is here or here, and the HD+ here or here. Plain stock 2.1.1 for HD here or here and HD+ here or here. The plain stock 2.2.0 for HD is here or here and the plain stock 2.2.0 for HD+ is here or here. The plain stock 2.2.1 for HD is here or here and the plain stock 2.2.1 for the HD+ is here and here. If you are flashing these so you can return a device to B&N, be sure to also factory reset/wipe data with recovery (CWM or TWRP). Also an added warning if you are using TWRP and flashing these plain stock zips. After flashing and telling it to reboot, it detects that the plain stock is not rooted and asks if you want to install SuperSU. Tell it to not install as that will cause the plain stock to reset itself.
I also have full stock 2.1.1 rooted ROM zips. They can be flashed with the CWM above and have the verygreen boot.img that removes the /system file protection. They also are rooted and have superuser and busybox. Get the HD version of the rooted stock here or here and the HD+ version here or here. They can be flashed over whatever version you have. You can do it without any wiping so your installed apps and settings will remain intact. This version does not include Enable Unknown Sources, but if you had previously flashed the new Enable Unknown Sources zip, that is a setting and should stick and not need flashing again. The ROM zips will replace your entire /system so any other zips you flashed here like Extras or swaps will be gone. After flashing this ROM, you will need to reflash any mods you want from this thread (except the new Enable Unknown Sources if you had flashed it earlier).
These zips are quite large (over 400MB) so expect long downloads.
7. New OTA (Over the Air) update block
Another user (thanks greenya!) has come up with a new method to block OTA updates from B&N that seems to work. I have tested it with AdAway. I tried to manually update my 2.0.5 system in settings. It says there is an update available but does nothing when I push download. I removed the block and hit download and it began downloading immediately. So it does block them.
If you are rooted, you can do this yourself with AdAway. I have a description in my HD/HD+ Tips thread linked in my signature, here. See item 4.
Another possible block would be to put CWM or TWRP on internal memory per item 5 above. I don't think updates will install without stock recovery installed. They usually fail with CWM or TWRP.
Edit: I just did some testing and if the new boot.img has been installed, the B&N updates fail and abort. See my post here.
8. The Importance of doing Backups
Some users have not made backups because they have installed CWM to a relatively small SD. You need to have backups with these devices because they can and will reset themselves, especially if rooted.
Save your CWM card and the backups because you WILL need them again. I recommend you make a backup of the device before any modifications and another when you think you have it the way you want it. Keep both backups because you may someday need to get back to pure stock so you can update. Some of my mods interfere with updates.
Also, being rooted adds the danger of being reset by some app that modifies /system. So, if you are rooted and you want to install a new app that requires root, make a backup of your device just before installing the app in case it causes a reset.
To restore, go to the backup and restore menu and select restore. That will restore the whole device if you are recovering from a system reset. Or can go to the advanced restore menu to just restore /system if you caught the reset before it completed. There are other times you might want to just restore /data, like just after a clean device update.
9. Modifications to verygreen's New SD Scheme
With bokbokan's help, I modified bokbokan's Cyanoboot to work on verygreen's New SD so the menu works. It is now easy to boot back and forth between stock and CM10.1 with verygreen's New SD Scheme. Just flash the NookHDplus-verygreen-New-SD-add-bokbokan-Cyanoboot zip attached below.
The second zip allows stock to see his emulated media SD partition as ext_sdcard in stock. Just flash the NookHDplus-verygreen-New-SD-fix-stock-to-use-New-SD-Media zip attached below.
Both zips can only be flashed with verygreen's New SD CWM (early 7.1).
10. Recovery Bootloops - (Device boots only to CWM or TWRP recovery)
Occasionally the /rom partition (p5) will get corrupted. That partition contains vital information necessary to operate your device. When that happens it tries to boot to stock recovery so that it can repair itself. But since many users have replaced stock recovery with CWM or TWRP, it boots to one of them and does nothing. Rebooting again does the same thing. So you end up in a recovery bootloop. And restoring your original stock backup does not help since it does not restore the stock recovery nor repair the /rom partition.
To fix it you need to restore the stock recovery by either flashing one of my stock recovery zips attached below or flash a whole plain stock zip from item 6. Then when it reboots, it can repair itself.
Obsolete zips have been moved to the next post.
Current attachments:
XDA:DevDB Information
[CWM/ROOT/UNKNOWN SOURCES] HD/HDplus Stock Root/other Mods - via CWM flashable zips, ROM for the Barnes & Noble Nook HD, HD
Contributors
leapinlar
ROM OS Version: 2.3.x Gingerbread
Version Information
Status: Testing
Created 2014-10-11
Last Updated 2015-03-05
Change Log
Change Log
03/05/15 - added plain stock 2.2.1 zips for both devices to item 6
12/23/13 - added plain stock 2.2.0 zips for both devices to item 6
11/12/13 - added item 10 Recovery Bootloops
09/22/13 - updated internal CWM to v6036
09/15/13 - added bootable SD versions of TWRP recovery for emmc for each device
09/10/13 - reworked entire post for new Universal Root rev3 and full rooted 2.1.1 stock ROMs.
09/08/13 - Created stand alone enable Unknown Sources for stock and added reference to verygreen's new boot file zip
09/04/13 - updated Swap SD for CM10.1/CM10.2 on emmc to rev6 to fix assert error on HD
08/22/13 - updated Swap SD to apply to the official HD/HD+ CM10.1/CM10.2 on emmc
07/29/13 - fixed broken HD/HD+ CM10.1 emmc swap SD zip (rev4 now works properly on HD)
07/21/13 - added HD version of Restore Stock Recovery zip to item 5
06/29/13 - added link to Extras for stock on SD, item 3
06/16/13 - fixed another typo in SD Swap zip to rev2
06/16/13 - revised SD Swap zip for verygreen's emmc CM10.1 to rev1 to fix an issue where the userinit.d folder was not created.
06/15/13 - added SD Swap zip for verygreen's emmc CM10.1
06/06/13 - added two zips to help with verygreen's New SD scheme (item 9)
05/24/13 - added zip to install my custom CWM (v6028) to internal memory to item 5
05/24/13 - rearranged and renumbered sections to move obsolete items to bottom and added warning about newer HDplus booting from SD
05/22/13 - added alternate procedure for making bootable CWM SDs
05/16/13 - removed item 5, Voice Search and added new item 5, Restore Stock Recovery
05/15/13 - updated HD+ CWM images to rev4, which adds recovery partition backup (v6028)
05/06/13 - modified Extras zip to remove old OTA block (which no longer worked) and add GPS permissions to improve Play Store compatiblity
05/03/13 - added full plain unrooted ROM version 2.1.0 for both devices to section 9 (now 6) and edited other sections accordingly
03/29/13 - added Section 11 (now 8), The Importance of doing Backups, and updated OTA to rev2
03/25/13 - added rev1 of location services to add gps permissions to allow more apps to show as compatible in Play Store
03/17/13 - even further editing to make it look less intimidating
03/04/13 - general editing of text to improve readability
02/24/13 - minor change to new OTA block (rev1)
02/23/13 - added new OTA block method and zips
02/18/13 - added revised HD+ stock CWM compatible with new HD+ Hybrid CM SD
02/04/13 - added modified Update to 2.06 zips for all ROM versions. Numbered sections and put dates on revisions and files
02/03/13 - revised CWM images - HD+ with larger fonts and HD made compatible with the new HD Hybrid CM SD.
02/02/13 - added rev2 of Universal Root, Disable Root, Extras and Gapps + Extras
01/31/13 - added white-on-white repair for version 2.0.6 and plain stock 2.0.0 zips so your system can update to the latest stock version
01/12/13 - added rev1 of Gapps + Extras to correct minor issues and to add zeam and AnyCut for those not wanting to root
01/10/13 - added Location Services
01/06/13 - added SDSwap
01/05/13 - added HD versions of 2.0.0 rooted ROM and white-on-white repair zips
01/04/13 - restored HD+ 2.0.0 rooted ROM link
01/03/13 - added warnings about Voice Search and about the danger of being rooted on these devices, added disable root zip and rev1 of Universal Root
01/02/13 - added small CWM image files and instructions
01/01/13 - added tip about doing periodic backups, interrupting 8 failed boot reset, added Voice Search and updated the HD CWM image to rev2
12/31/12 - re-arranged post and reworked instructions
12/30/12 - temporarily disabled HD+ 2.0.0 rooted ROM link
12/27/12 - added HD CWM and re-labeled zips that work on HD
12/25/12 - added Universal Root and other zips.
12/23/12 - original post for HD+ CWM and HD+ 2.0.0 rooted stock ROM
Obsolete Zips
If you want to see these items, click on Show Content below
a. Gapps/Play Store + Extras (rev2 - 2/3/2013) - No longer necessary for version 2.1.0.
This zip adds Play Store and a few other extras. This is the zip that most will want to install since it gives you a lot of flexibility to install new apps. And if you install it without the Universal Root there is no danger of getting reset.
You can download my NookHD-HDplus-Gapps+Extras-for-stock-rev2.zip here. Rev1 included a few minor fixes and added zeam and AnyCut. Rev 2 adds Terminal Emulator, Root Browser and Userinit. It is approximately 24MB. It can be flashed as long as you have booted and set up (registered) the Nook first. After you install the zip, remove the SD and reboot. You will see "Updating Apps" during boot. That is the system setting up the gapps. Then you should see Play Store in the zeam launcher and you can open it and register with Google. Warning! This version of the gapps zip is for stock only. Do not try to install this version to CM10 on SD.
If you did not install the Universal Root and set up zeam as described in the Universal Root section, you need to do it now.
Many users complain that Play Store lists many common apps as incompatible with your device. Just because Play Store says it is incompatible does not mean it will not run on your device. It just means Play Store will not let you install it. The solution is to find and install the app from somewhere else like the Amazon Store, the 1Mobile Store or from another device. I have found most apps that Play Store says is incompatible actually do work.
b. White-on-White repair for HD/HDplus (latest - 1/31/2013) - No longer necessary for version 2.1.0.
This mod changes some text colors so that most third party apps no longer display white text on a white background. The choice of the text colors was a compromise since the same text colors are used on white backgrounds and grey backgrounds. If too dark they will not show on grey and if too light they will not show on white. Thanks to someone0 for help in selecting the colors and making this mod.
Some people do not like the effect of this mod, so be sure you have made a backup of your system as I recommended earlier before you install this mod so you can easily revert back to stock colors.
Also be sure to install the correct version for your device and software version. If you install the wrong version for your device, it will either not install or get stuck at 99% when it boots. If it does not install or gets stuck, just install the correct version or restore your backup.
You can get the version for HDplus 2.0.0 here and HDplus 2.0.2/2.0.4/2.0.5 here. And the version for HD 2.0.0 here and HD 2.0.2/2.0.4/2.0.5 here. I just added versions for 2.0.6 for both devices. HDplus here and HD here. Since this mod interferes with future updates, I have included two zips to take them back to the 2.0.6 stock settings so that it can update without failing. Get the rev1 of revert to stock settings for HDplus here and HD here.
Leapinlar, shouldn't this thread be in the Nook Hd+ forum?
Yes, I will see if I can get it moved. Thank you for catching that.
Thx so much. I will try it.
Moved.
Wow, thank you very much for this. Flashable CWM? Another road to custom ROMs. Thank you.
Once I get my new setup, I'll see if I can get back on Android development. I've only worked on the Samsung Galaxy 5/Europa for Android development before.
Sorry for the bother, please may I ask; after installing the ROM, will it keep the 8-bootup-failure-reset intact? I know it sounds like a stupid question, haha but I'm curious; since it is overwriting the default ROM. Thank you.
TYVM, I was told I was going to get on HD+ for Christmas and wanted to use it stock for ebooks (I have a BN account and a dieing nook 3G with bought books I want to keep) but the new 2.0.5 update would leave me to choose no tablet stuff (until CM10/cyanoboot gets up) or no BN access.
Does this have the White on White Text fix in or will I need to do that myself?
I don't think he did.
The Old One said:
TYVM, I was told I was going to get on HD+ for Christmas and wanted to use it stock for ebooks (I have a BN account and a dieing nook 3G with bought books I want to keep) but the new 2.0.5 update would leave me to choose no tablet stuff (until CM10/cyanoboot gets up) or no BN access.
Does this have the White on White Text fix in or will I need to do that myself?
Click to expand...
Click to collapse
I'm working on it. Soon. Ok, see OP for links, one for 2.0.0 and one for 2.0.2/2.0.4.
Sent from my HD+ rooted stock using Tapatalk
I believe there is a fault with my dad's HD+, would it be possible to get any version of the stock ROM back? Sorry for the bother.
The pre-rooted ROM (modified 2.0.0 in this thread) loads up sideways, and freezes at 99% upon second boot.
Just checking, you will have the ability to use your B&N account with this, right? You aren't skipping OOBE and becoming "test", right?
dbh369 said:
Just checking, you will have the ability to use your B&N account with this, right? You aren't skipping OOBE and becoming "test", right?
Click to expand...
Click to collapse
That's exactly what I'm thinking. I can't seem to register, that could be my device fault though. I'm going to test with version 2.0.5, and see if I can register. I'll edit with the result.
EDIT: I can't seem to register with version 2.0.5 either, must be a tablet fault. I'll have to get it replaced. So, I'm assuming you can register the modified ROM in this htread, since leapinlar did state it can be activated right?
dbh369 said:
Just checking, you will have the ability to use your B&N account with this, right? You aren't skipping OOBE and becoming "test", right?
Click to expand...
Click to collapse
Right, go ahead and register. It is just like when it came out of the box, except it is rooted. But you can skip it if you want.
Sent from my HD+ rooted stock using Tapatalk
HiddenG said:
I believe there is a fault with my dad's HD+, would it be possible to get any version of the stock ROM back? Sorry for the bother.
The pre-rooted ROM (modified 2.0.0 in this thread) loads up sideways, and freezes at 99% upon second boot.
Click to expand...
Click to collapse
How did you flash it? And what files did you use? Did you wipe /data first? It will freeze at 99% if you flashed the wrong white-on-white file.
Sent from my HD+ rooted stock using Tapatalk
leapinlar said:
How did you flash it? And what files did you use? Did you wipe /data first? It will freeze at 99% if you flashed the wrong white-on-white file.
Sent from my HD+ rooted stock using Tapatalk
Click to expand...
Click to collapse
Thank you for your response.
I'm using CWM on a SanDisk 4GB Class 4 SD Card, I went into "Mounts and storage" > format /data > Yes. Then, "install zip from SD" and selected "NookHD+factory-2.0.0-rooted.zip". After that I waited, rebooted the device, took the SD card out before reboot, and it all worked fine. I'm currently having problems with registration, probably a device fault, therefore I rebooted to solve the issue, then the loading loaded sideways (i.e. landscape mode) even when the tablet is held straight. It also gets stuck/freezes at 99%. I have not installed GAPPS yet, or even downloaded/installed the white-on-white file yet. This problem only occurs on a second reboot, and if you reboot it again after the second time, the same problem occurs.
To get out of the problem, I flashed the ROM again. Now I'm back to stock ROM after 8 failed boots.
Thank you for your response once again. I hope I'm the only one with this problem, and no one else, haha.
HiddenG said:
Thank you for your response.
I'm using CWM on a SanDisk 4GB Class 4 SD Card, I went into "Mounts and storage" > format /data > Yes. Then, "install zip from SD" and selected "NookHD+factory-2.0.0-rooted.zip". After that I waited, rebooted the device, took the SD card out before reboot, and it all worked fine. I'm currently having problems with registration, probably a device fault, therefore I rebooted to solve the issue, then the loading loaded sideways (i.e. landscape mode) even when the tablet is held straight. It also gets stuck/freezes at 99%. I have not installed GAPPS yet, or even downloaded/installed the white-on-white file yet. This problem only occurs on a second reboot, and if you reboot it again after the second time, the same problem occurs.
To get out of the problem, I flashed the ROM again. Now I'm back to stock ROM after 8 failed boots.
Thank you for your response once again. I hope I'm the only one with this problem, and no one else, haha.
Click to expand...
Click to collapse
When you rebooted again after interupting registration, you probably messed up /data again. You probably should have wiped it again and reflashed. You could have a problem with registration if you have a corrupt /rom partition. Stock will automatically repair that if it can. But one of the things I did to help prevent automatic updates was to interfer with that process. Were you able to register once you did the 8 failed boot reset?
Sent from my HD+ rooted stock using Tapatalk
I'm an experienced flasher of many Android devices and I have followed all of the instructions in this thread.
I have:
-- in CWM wiped /data /system
-- then also did the 8 time failed boot to restore stock
... and this ROM will *not* register. After typing in a valid user name and password, registration fails with a "contact customer support".
Ideas guys?
scoopman said:
I'm an experienced flasher of many Android devices and I have followed all of the instructions in this thread.
I have:
-- in CWM wiped /data /system
-- then also did the 8 time failed boot to restore stock
... and this ROM will *not* register. After typing in a valid user name and password, registration fails with a "contact customer support".
Ideas guys?
Click to expand...
Click to collapse
Was that a brand new registration or just reusing the same screenname/ password you used before? I had not problem resigning in with the same credentials as before. I wonder if there was something in my factory zip that identified that rom for my device? I will follow up that with my second device.
EDIT: I was able to flash and B&N register my second device which is on a completely different account. And I could see nothing in my zip that identified anything other than saying it was a US device. It did take what I considered a long time to respond to putting in my credentials. It churned for a while, but eventually responded.
Sent from my HD+ rooted stock using Tapatalk
leapinlar said:
Was that a brand new registration or just reusing the same screenname/ password you used before? I had not problem resigning in with the same credentials as before. I wonder if there was something in my factory zip that identified that rom for my device? I will follow up that with my second device.
Sent from my HD+ rooted stock using Tapatalk
Click to expand...
Click to collapse
Interesting you ask as I've now tried both using an account that was on 2.05 as well as formatting stuff again, reflashing, then trying a new account.
BOTH fail with the same message.
I'm hypothesizing that there could be something on their server that's identifying your ROM as something that should be rejected...

[GUIDE]: To transfer all app data + settings + all user configuration from old os to

TWRP METHOD ONLY
HOW TO TRANSFER ALL APP DATA + SETTINGS + ALL USER CONFIGURATION FROM PREVIOUS ANDROID OS TO NEW ANDROID CUSTOM ROM
Greetings, i have Great info for everyone for RESTORING User App + Data as it was before from TWRP. I used pixel experience 10 official rom for 2 days and after flashing it i restored my app data from titanium backup which after that took time to configure everything which is a bummer hectic to configure phone settings as per our likes and install & configure every app. Official Pixel 10 showed me little lags and slower performance compared to MIUI 11. Caution: TWRP DOES NOT BACKUP users Internal Storage data so make sure you backup your internal storage data like Photos, videos anything in internal flash storage backup somewhere else.
Now here's what i did, i rebooted to TWRP > Backup > Backed-up system image(incase anything goes wrong), boot and specially DATA (All user app + its data + settings stored in this). Make sure you backup data in external storage like memory card or OTG flash drive.
Then i installed EvolutionX Pixel 10 latest version released on 5th Dec after complete format, flashed DFE, Flashed Drunk Kernel, Flashed Magisk and wiped cache & dalvik cache. Then rebooted phone and configured the new os startup> rebooted to TWRP > Restore > selected only DATA and restored it > BOOTED SUCCESSFULLY WITH SAME APP DATA AND SETTINGS including same wallpaper and everything was same.
WARNING: After you boot your fresh backed up data & it asks for password after boot & gets stuck then reboot to TWRP and Install ResetScreenLock.zip (find it in XDA or CLICKHERE and boot successfully.
You can ONLY do this on SAME VERSION OF ANDROID OS. Like i had Pixel Experience 10 Official so it's data can only be transferred to any other Pixel Experience 10 custom Rom. I'm not sure about transferring Data from different versions of Android example android 9 Pie TO android 10 Q let me know if it's possible.
I didnt backup from titanium backup because usually restoring backup from titanium freezes & it cannot restore specific User App data to a new rom and it was a headache restoring apps manually after titanium backup didn't restore half of my apps & its data
You are welcome have blessed day. God Bless:laugh:
This is twrp 101. But mind that every problem and every force close you will encounter (and you most probably will) is going to be because of this.
Phone overheating, battery drain, apps crashing etc.
Developers suggest clean flashing for a reason, old ROM data interference with the new ones.
What you did is called dirty flashing and is the same as wiping system, davlik, cache and flashing ROM and gapps.
Your data backup is very useful when you want to try a new rom, clean flash it and then want to go back to your previous one.
sotosgolf said:
This is twrp 101. But mind that every problem and every force close you will encounter (and you most probably will) is going to be because of this.
Phone overheating, battery drain, apps crashing etc.
Developers suggest clean flashing for a reason, old ROM data interference with the new ones.
What you did is called dirty flashing and is the same as wiping system, davlik, cache and flashing ROM and gapps.
Your data backup is very useful when you want to try a new rom, clean flash it and then want to go back to your previous one.
Click to expand...
Click to collapse
Not a single problem till now, No phone heating, no abnormal battery drain, not a single app crashed. Phone is working perfectly smooth and not even a mili second lag. Basically Technically what actually i did is transfer my previous Pixel 10 data to New Pixel 10 data so there are no changes at all in Data.
You can test it if you follow my steps exactly you will successfully transfer Data to any New custom rom, i have tried. Just make sure the data you want to transfer is between same base roms like i transferred from Official Pixel 10 TO EvolutionX Pixel 10, similarly you can transfer to any Custom rom that is based on same base rom which you are using currently.
NOTE: Before you go & do TWRP backup, make sure you do complete system cleanup, app cleanup, corpse cleanup from SD Maid Pro and then do clean backup from TWRP
After you flash new custom rom make sure you boot it and go through its initial startup process then go back to TWRP and restore rom and flash ResetLockScreen.zip
Enjoy
eladamcain said:
Enjoy
Click to expand...
Click to collapse
I'm using custom ROMs since 2014, i have certainly enjoyed the issues i'm describing above.
Dirty flashing causes a lot of unwanted stuff.
Anyway, that's my two cents.
sotosgolf said:
I'm using custom ROMs since 2014, i have certainly enjoyed the issues i'm describing above.
Dirty flashing causes a lot of unwanted stuff.
Anyway, that's my two cents.
Click to expand...
Click to collapse
If you don't know what you are doing, you will face problem. This method works perfectly IF you are on Stock Rom and it is not bloated and you are transferring your data to custom rom who's made from the same base stock os. Example heavily bloated and transferring its settings to a different setting os is going to create instability its common sense. Backing up non bloated stock rom data to custom rom works
You saved my life... I tried a similiar method but it didn't work. But this... this saved my LIFE
(2FA Problems...)

[GUIDE] Easy decryption guide for GSI users

Step 0: introduction
Hello everyone. As you may or may not know, after unlocking, rebranding, updating and patching our P9's, we can now install a part of a big universe of brand new Treble ROMs into our devices. An example of that kind of ROMs is the OpenKirin team's AOSP-based ROMs, AndyYan's LineageOS or phhusson's Phh-Treble for a barebones pure Android experience.
But that experience so far is far from perfect. Aside from Q ROMs not booting yet on hi3650 devices like ours, some features may be missing such as camera support, GApps or [insert favorite mod here] which come in the form of flashable zips. A major problem now is that our phone's internal storage must always be encrypted at every ROM install. This poses some problems such as:
* Having to install Huawei's stock recovery every time you need to do a factory reset otherwise your brand new ROM is not booting when you wipe with TWRP.
* Not being able to flash ZIPs in TWRP from the internal storage.
* Having to install custom ROMs by flashing to /system through fastboot which is slow and can be interrupted
* On a fresh ROM boot, the phone takes extra time to encrypt and then on every subsequent boot it will take longer to boot.
Encryption brings extra security, but at the cost of usability and speed. Luckily for us, it can be disabled in favor of having a more traditional custom ROM + TWRP flashing workflow. This can be done by editing a fstab file in our device's vendor partition. Once the procedure is done you will be able to:
* do factory resets from TWRP without problems
* mount internal storage in TWRP and flash ZIPs without problems
* not need to juggle .img files to switch recoveries because everything will be possible from TWRP
Note: This effect is permanent. No need to do it again. You can also easily reverse it manually.
WARNING: YOUR INTERNAL STORAGE MUST BE WIPED CLEAN. BACKUP ANY IMPORTANT DATA TO AN EXTERNAL STORAGE BEFOREHAND. YOU WILL LOSE ALL YOUR FILES AND APPS.
Note: If you ever decide to reflash your stock EMUI firmware, remember that your device will be re-encrypted. If you get stuck at the boot logo after going back to EMUI from a decrypted device, reboot manually to recovery, do a factory reset in the stock recovery and try again.
Required:
* A backup of your important data
* A computer
* working Android install with root
* A working ADB/fastboot environment
* A USB-C cable with data connections
* Pretoriano80's TWRP for Treble-enabled Huawei P9
Your ROM, custom kernels and Magisk will survive the procedure. Don't worry about them.
Step 1: Modify the vendor fstab
Using MiXplorer, navigate to /vendor/etc. We're going to modify the fstab.f2fs.hi3650 file. Back it up in your SD card, because the internal storage will be wiped clean so if you mess the process up you don't want to lose it. Now open the original file with a text editor and edit it, go to the line that contains /data and change the forceencrypt word to encryptable.
Step 2: Flash TWRP
Through Fastboot, install Pretoriano80's TWRP. This is the best TWRP available for our device.
Code:
# fastboot flash recovery_ramdisk twrp.img
For the next step, we need to reboot to the recovery.
Code:
# fastboot reboot recovery
Step 3: Format internal storage
On TWRP, back your internal storage up if you haven't already. This is your last chance to do a backup.
After that, wipe your internal storage. Go to Wipe -> Format Data and confirm. The deed is done.
Now boot your system. ROMs should no longer push their encryption on you, and you can now mount the internal storage in TWRP.
Wattsensi said:
Step 2: Modify fstab and format /data
Click to expand...
Click to collapse
This part is confusing, how to modify fstab?
copy pasted a guide from other users. You shouldnt modify anything and the decryption is a one time story, it breaks after first use.
I tested it on my P9 Plus & it worked man, thank you so much <3
dkionline said:
copy pasted a guide from other users. You shouldnt modify anything and the decryption is a one time story, it breaks after first use.
Click to expand...
Click to collapse
1. No, it doesn't. I tried switching between several "Open"Kirin ROMs and GSIs using a TWRP flash+factory reset workflow, it works well.
2. This entire forum is either sparse solutions spread in deep crevices or hacks from juggling files and editing words in text...surely the guides are so unique, reformatting /data after removing its forceencrypt attribute in /etc/fstab is so unique and special! I'm not trying to throw down zgfg's effort but again, that guide was confusing and required juggling three TWRP copies. I'm just trying to make anyone unfortunate enough to still need to have one of these devices to be able to lessen the pain in the behind that is working with ancient unmaintained Treble implementations, buggy sdcardfs drivers, obscure camera interfaces, broken audio routing and drivers, and secretive ROM cooks who won't share their secret fixes restricting the universe of good ROMs to their own proprietary ROMs that don't get updated, or get updated once every 6 months. Sadly I don't have the time or resources to set a build farm or cook my own ROMs (you probably already know, hundreds of GBs downloaded and 6GB+ of RAM used) Please don't be like this, I like your work.
md sabuj said:
This part is confusing, how to modify fstab?
Click to expand...
Click to collapse
With TWRP, mount /vendor. Then, use TWRP's ADB shell capabilities. Open a command prompt in your computer, and type 'adb shell' and enter. Then, navigate to /vendor/etc/, with the command 'cd /vendor/etc'. Then using vi or nano, edit the fstab.hi3650 file.
Look for the entry that starts with /data. Replace in the same line, 'forceencrypt' with 'encryptable'. Then save, wipe /data and reboot. Remember to investigate thoroughly for consequences and side effects on everything you do.
Btw, developing discussion and instructions from early 2019 about decrypting Data and Internal memory on P9 Oreo - decryption can be done also by use of TWRP instead of manually editing fstab:
https://forum.xda-developers.com/p9/how-to/emui-8-decryption-guide-wipe-t3906245
And a revised summary:
https://forum.xda-developers.com/showpost.php?p=80029346&postcount=1843
They were not necessarily targeting GSI but (at that time) OpenKirin ROMs.
Also, doesn't matter if for EVA AL10, DL00, etc.
Also for stock EMUI 8, but to be able to fully use TWRP (nandroid backup, wiping Dalwik - it's on Data partition, installing zip or img files from Internal memory instead from SD card)
Btw, instead of Terminal and Vi editor (for most of nowadays users their parents were not born yet in the era of pre-WYSIWYG editors, and I doubt if 0.1% would be familiar to navigate with Vi to a particular line and to delete/replace or insert something), one can simply use standard tools like MiXPlorer (root explorer) with its integrated text editor.
In MiXPlorer choose Root, grant the root access, visually navigate to /vendor/etc, click on fstab.hi3650 file, open as Text and edit without frustrations like with Vi editor ?
zgfg said:
Btw, instead of Terminal and Vi editor (for most of nowadays users their parents were not born yet in the era of pre-WYSIWYG editors, and I doubt if 0.1% would be familiar to navigate with Vi to a particular line and to delete/replace or insert something), one can simply use standard tools like MiXPlorer (root explorer) with its integrated text editor.
In MiXPlorer choose Root, grant the root access, visually navigate to /vendor/etc, click on fstab.hi3650 file, open as Text and edit without frustrations like with Vi editor ?
Click to expand...
Click to collapse
Thanks for that, I revised and simplified the guide as much as possible.
btw, my P9 is now a secondary device meaning that I can experiment a little more on it. I can't build ROMs for now but will try to create a barebones kernel with useful features.
Wattsensi said:
Thanks for that, I revised and simplified the guide as much as possible.
btw, my P9 is now a secondary device meaning that I can experiment a little more on it. I can't build ROMs for now but will try to create a barebones kernel with useful features.
Click to expand...
Click to collapse
You have ECOKernel by @dkionline for Oreo
zgfg said:
You have ECOKernel by @dkionline for Oreo
Click to expand...
Click to collapse
I know, I am using it right now and it's a good kernel but I'd like to add some more things like lower minimum brightness, voltage control for undervolting and AutoSMP hotplugging. It runs pretty hot and the IPS display backlight burns my eyes even on the lowest setting
Can I use this method to decrypt P9 installed EMUI8?
md sabuj said:
Can I use this method to decrypt P9 installed EMUI8?
Click to expand...
Click to collapse
@ant0nwax and me did use decrypted storage with b540, see the post #6 above:
https://forum.xda-developers.com/showpost.php?p=83386207&postcount=6
Specially, look at the second post linked there (post was in HWOTA7 thread):
https://forum.xda-developers.com/showpost.php?p=80029346&postcount=1843
There was one catch there (was written for b540):
zgfg said:
Reboot to TWRP and perform the following, in this order:
- Wipe, Swipe to factory reset (not Advanced Wipe, neither Format Data)
- Install three ZIPs (all ogether, in queue): update_data_full_public.zip (from b540 download), b540-update_full_EVA-AL10_all_cn.zip (from b540 download, but fixed by Tecalote to be flashable by TWRP) and Enable-Huawei-OTA.zip (from Tecalote's OP instructions)
Click to expand...
Click to collapse
If I recall correctly after the long time ,(year and a half) - when you format Data you have to restore your b550 part that was installed to Data.
You must not use eRecovery bcs it would encrypt Data again.
Hence you must flash b550 by TWRP and there was a problem with that all_cn zip at that time, reporting me an error (cannot find now TWRP logs from that time to see what was the problem)
I discussed then with @Tecalote and he corrected me the script from the original update all_cn zip for b540 that TWRP was able to flash
As a result, we had EMUI 8, b540 with decrypted storage, giving to TWRP the full access to Data and Internal memory
It was also possible to go back to EMUI 8 with encrypted storage, basically by putting back stock Recovery, by installing latest firmware from eRecovery and by performing Factory reset with Wiping the cache
@Wattsensi: unfortunately, It doesn't work like this in my case. After switching to Chinese EMUI 8, I install Play Store, login to my Google Account and do Play Store things.
After modifying that file in Vendor, I go to recovery, wipe internal storage, wipe Data and restart.
At this moment, it's like after a factory reset, I have to start all over again, but I'm not encrypted.
Well, no matter what I do, I can't login to Google. I open Play Store, it tries to log me in ( the big circles started to spin), at that moment Play Store closes. I go to Accounts and try to login to my Google account from there, same thing. So, for me, Emui 8 is usable only before decryption.
I'm wondering if I'm doing something wrong.
Nightwish1976 said:
@Wattsensi: unfortunately, It doesn't work like this in my case. After switching to Chinese EMUI 8, I install Play Store, login to my Google Account and do Play Store things.
After modifying that file in Vendor, I go to recovery, wipe internal storage, wipe Data and restart.
At this moment, it's like after a factory reset, I have to start all over again, but I'm not encrypted.
Well, no matter what I do, I can't login to Google. I open Play Store, it tries to log me in ( the big circles started to spin), at that moment Play Store closes. I go to Accounts and try to login to my Google account from there, same thing. So, for me, Emui 8 is usable only before decryption.
I'm wondering if I'm doing something wrong.
Click to expand...
Click to collapse
This is indeed strange, and I do not recall the Chinese ROMs having Google services by default, you had to install GApps if I'm not wrong. Try flashing pico OpenGapps for 8.0 ARM64, wiping cache and doing a factory reset again. Sometimes GApps have issues when you don't flush the cache between fresh installs.
https://opengapps.org/
Nightwish1976 said:
Unfortunately, It doesn't work like this in my case. After switching to Chinese EMUI 8, I install Play Store, login to my Google Account and do Play Store things.
After modifying that file in Vendor, I go to recovery, wipe internal storage, wipe Data and restart.
At this moment, it's like after a factory reset, I have to start all over again, but I'm not encrypted.
Well, no matter what I do, I can't login to Google. I open Play Store, it tries to log me in ( the big circles started to spin), at that moment Play Store closes. I go to Accounts and try to login to my Google account from there, same thing. So, for me, Emui 8 is usable only before decryption.
I'm wondering if I'm doing something wrong.
Click to expand...
Click to collapse
Wattsensi said:
This is indeed strange, and I do not recall the Chinese ROMs having Google services by default, you had to install GApps if I'm not wrong. Try flashing pico OpenGapps for 8.0 ARM64, wiping cache and doing a factory reset again. Sometimes GApps have issues when you don't flush the cache between fresh installs.
https://opengapps.org/
Click to expand...
Click to collapse
Be careful. Chinese EMUI 8 does come with Google Play Services (OP posts in HWOTA7 thread) and one only needs to install Google Play app.
Google Play Services were also preinstalled for users who recently updated to b550.
Btw, you didn't write are you on Al10c00b550 or what, but you also wrote that you had Playstore working on EMUI 8 before decrypting and formatting Data
Anyway, before installing MicroG, Open GApps or something, inspect do you still have or not Google Play Services installed.
There are apps like Play Services Info to inspect if Google Play Services, Google Services Framework and Google Play Store are installed (and what are their versions).
E.g, use this app from ApkMirror (since you cannot look for them and install from Playstore):
https://www.apkmirror.com/apk/weberdo/play-services-info/
(Not sure would it work installing Open GApps if stock Google Play Services are still beneath)
Thank you, guys gor your help. Yes, Ch EMUI comes with Google Play Services, one normally has to install only Google Play.
At the moment I'm just setting up my phone with the Lineage OS MicroG Pie ROM and I'm really enjoining it, but as soon as I decide to try something else, I'll put your suggestions to use.

Categories

Resources