[GUIDE] Standard flashing procedures - Xiaomi Mi 5 Guides, News, & Discussion

Hey people,
this shall mainly be a fast way to navigate users to necessary steps for diverse situations.
Instead of repeating the procedures over and over in each thread, this can be cited.
I will suggest you what I always do, and what I find safe and what I have good experiences with.
Still, you do everything at your own risk! So don’t complain to me if you mess something up by following my steps.
This well known phrase also counts here: “YOU are choosing to make these modifications”.
*********************
Preparations
Recovery
Make sure you are on the latest TWRP version.
Currently this is 3.2.3-0.
Backups
Before any of these procedures you should make a backup of every partition and save it at an external place – an usb stick, your PC, but not on your phone! Also copy the content of your entire internal storage at such an external place.
This will not always be needed and I will add more details of what you will surely lose when applying each method, but sometimes things just go wrong and suddenly your whole storage may be lost out of nowhere (happened to me more than once already).
A nice app that helps you restoring your apps and app data in a very quick way is Titanium Backup (get it from the Play Store). If you use the Pro version, you can restore everything basically with one click, so think about this way of backing up things as well (external copies are also advised here for obvious reasons).
Firmware
Make sure you are on adequate firmware for your ROM. Which firmware that is, must be taken from the respective ROM thread.
Adequate firmware needs to be present at any time before the actual ROM installation,
otherwise installation will fail, as the ROM expects a certain minimum to be present.
You will not need to always flash firmware again, when installing other ROMs or ROM versions.
The one you flashed last time sticks until you flash another.
A nice alternative to always flashing whole MIUI Developer versions are the zips offered by the firmware updater tool (just search through the xda topics).
*********************
So here we go with methods you should know:
***************
* Dirty Flash *
***************
Note that:
This is not recommended if the ROM maintainer or developer suggested a clean flash
If you wanna solve weird issues, you may try this first, but a Clean Flash or a Complete Formatting will probably help better
Use-cases:
You wanna install an update for a ROM you are momentarily on​
Benefits:
Only takes a few minutes
You will not lose Gapps, settings, apps and app-data
Content on your internal storage will (/should) stay untouched
Procedure:
Wipe Dalvik and Cache
Flash ROM zip right on top of existing installation
(Optionally) Re-/flash root (re-flashing is not necessary for Magisk most of the time if you installed it before)
****************
* Clean Flash *
****************
Note that:
You will lose Gapps, settings, apps and app-data
Also recommended from time to time, even when a dirty flash would be sufficient
Some developers always prefer this method over a dirty flash
Use-cases:
You wanna flash a ROM from the same Android generation (e.g. both ROMs are from generation Nougat 7.1.2) you are currently on
You are experiencing issues after dirty flashing a ROM
Benefits:
Clean way of installation
Content on your internal storage will (/should) stay untouched
Procedure:
Wipe Dalvik, Cache, System, Data, (momentairly I also advise) Vendor
Flash ROM zip
(Optionally) Flash custom kernel
(Optionally) Flash Gapps package for Arm64*
(Optionally) Flash Gapps additions*
(Optionally) Flash root
***************************
* Complete Formatting *
***************************
Note that:
You will lose Gapps, settings, apps, app-data and the content on your internal storage – basically everything on your phone!​
Use-cases:
You wanna flash a ROM of a different Android generation (e.g. switch from Nougat to Oreo)
You are experiencing weird issues, even a clean flash doesn’t solve
Benefits:
Clean way of installation
Good problem solver
Procedure:
Wipe Dalvik, Cache, System, Data, (momentairly I also advise) Vendor
Format data (the one where you need to type “yes”)
Reboot to recovery to access the Data partition correctly again
Flash ROM zip
(Optionally) Flash custom kernel
(Optionally) Flash Gapps package for Arm64*
(Optionally) Flash Gapps additions*
(Optionally) Flash root
****************************************
* Solve unable to mount Data error *
****************************************
Note that:
You will lose Gapps, settings, apps, app-data and the content on your internal storage – basically everything on your phone!​
Use-cases:
TWRP suddenly shows the above error and even a Complete Formatting doesn’t help (or work)​
Procedure:
Re-flash latest TWRP via fastboot (not from within TWRP)
Perform a Complete Formatting
********************
* Gapps Re-flash *
********************
Use-cases:
You want to change your current Gapps setup, but keep your current ROM installation​
Benefits:
Only takes a few minutes
You will not lose settings, apps and app-data
Content on your internal storage will (/should) stay untouched
Procedure:
Wipe Dalvik, Cache and System
Flash ROM zip
Flash Gapps package for Arm64*
(Optionally) Flash Gapps additions*
(Optionally) Re-/flash root
********************
* Kernel Change *
********************
Note that:
This works for almost every kernel, but if the developer suggests another method, follow his​
Use-cases:
You want to change the kernel, but keep your current ROM installation​
Benefits:
Only takes a few minutes
You will not lose Gapps, settings, apps and app-data
Content on your internal storage will (/should) stay untouched
Procedure:
Extract the boot.img of your current ROM
Flash the boot.img by selecting “flash image” in TWRP
Reboot to System and let everything cool down for a minute or two
Reboot to TWRP
Flash new kernel
(Optionally) Re-/flash root
Wipe Dalvik and Cache
*******************************
* Stock Kernel Restoration *
*******************************
Use-cases:
You're on a custom kernel and want to switch back to stock one​
Benefits:
Only takes a few minutes
You will not lose Gapps, settings, apps and app-data
Content on your internal storage will (/should) stay untouched
Procedure:
Extract the boot.img of your current ROM
Flash the boot.img by selecting “flash image” in TWRP
(Optionally) Re-/flash root
Wipe Dalvik and Cache
********************************
* Splash Screen Restoration *
********************************
Note that:
A clean flash will not solve this​
Use-cases:
Some kernel's or ROM's splash screen sticks and you wanna get rid of it.​
Benefits:
Only takes a minute
You will not lose anything on your phone (except the splash screen ; ) )
Procedure:
Just re-flash your current firmware​
*I usually go for Pico Gapps from opengapps.org, as they don't include anything I don't need or like, and add a couple of things from deltadroid by flashing them right after the Pico Gapps package. Some stock apps can be overwritten this way, so you don't have two for the same purpose (e.g. stock calendar and google calendar) and it results in a nice minimal Gapps configuration.
I’m open for corrections, questions or doubts! Please leave a comment in these cases!
last updated: 2018-08-20

Nice little guide!
Small note: rooting on f2fs with Magisk has been fixed recently if you didnt know yet.

HelpMeruth said:
Nice little guide!
Small note: rooting on f2fs with Magisk has been fixed recently if you didnt know yet.
Click to expand...
Click to collapse
Thanks!
And thanks for the info. So were these issues Magisk related only?

Phil_Smith said:
Thanks!
And thanks for the info. So were these issues Magisk related only?
Click to expand...
Click to collapse
iirc yes(there were SQL issues on the Magisk app), but I don't really follow superSU anymore since its been sold to some random company.

This is a very good guide.. Thanks mate

Related

[Q] Install rom Resurrection Remix ics

I am noob in s2 kitchen, I want install this rom..
I'm on Androidhouse 2.3.6, and kernel: [email protected] #101, baseband I9100XXKP1, ROM version: TurkbeyRom v30
Tutorial or help me pleasse
here are the steps for the instalation mate..you find them in the faq on the resurrection remix thread with all the files you need..hope this is enough
The steps on the OP are very clear but apparently some users miss some things or can't get a properly installation so, here are the extended steps (personally i'm always use this method):
Reboot into recovery
Wipe Data / Factory Reset
Wipe Cache Partition
Install the Main ROM
In recovery go to Advanced
Wipe Dalvik Cache
Fix Permissions
Wipe Cache Partition
Reboot
If at the first boot you can't do the configuration of the google account, skip this step and continue
When you boot into the system, it's probably that you don't have data enabled (3g, H+) just reboot
When you boot again into the system the data will be enable and you can do the configuration of Google Account (if you don't do this before)
This is the moment for install all the extras like themes, fix's, kernels, etc.
Enjoy!!!
ionutz1708 said:
here are the steps for the instalation mate..you find them in the faq on the resurrection remix thread with all the files you need..hope this is enough
The steps on the OP are very clear but apparently some users miss some things or can't get a properly installation so, here are the extended steps (personally i'm always use this method):
Reboot into recovery
Wipe Data / Factory Reset
Wipe Cache Partition
Install the Main ROM
In recovery go to Advanced
Wipe Dalvik Cache
Fix Permissions
Wipe Cache Partition
Reboot
If at the first boot you can't do the configuration of the google account, skip this step and continue
When you boot into the system, it's probably that you don't have data enabled (3g, H+) just reboot
When you boot again into the system the data will be enable and you can do the configuration of Google Account (if you don't do this before)
This is the moment for install all the extras like themes, fix's, kernels, etc.
Enjoy!!!
Click to expand...
Click to collapse
Thanks, but I am on 2.3.6, how install recovery? only flash android 4 zip? and what kernel?
i think you need to read this to know exactly what you have to do http://forum.xda-developers.com/showthread.php?t=1075278 ..if you have any question i'll be glad to try to help you
Here are best videos you will ever see for galaxy s2 rooting, CWM installation, and ICS installation:
--rooting your galaxy S2 the easiest and safest way: (If not already rooted)
http://galaxys2root.com/galaxy-s2-root/how-to-root-galaxy-s2/
-- Install CWM
http://galaxys2root.com/galaxy-s2-r...ckworkmod-recovery-on-rooted-galaxy-s2-i9100/
--Install ICS Resurrection:
http://galaxys2root.com/galaxy-s2-hacks/how-to-install-rom-on-galaxy-s2/
You will notice that all files needed are listed below video except the last one which you can download from here:
http://forum.xda-developers.com/showthread.php?t=1436854
Remember always to take a backup before flashing any rom.
Good Luck.

[Q] CyanogenMod 10.1.3 How to install on S2?

I've recently downloaded the Stable version of CM and I don't know how to install it, after installing it will I lose my data? App game datas?
Thanks a lot
True. When you install a new rom you should wipe data. Otherwise it crashes on startup. You can back up the data that
duykhanh187 said:
True. When you install a new rom you should wipe data. Otherwise it crashes on startup. You can back up the data that
Click to expand...
Click to collapse
So how do I install it?
I've looked into the other installation guides but those are for CM10.2 (Andorid 4.3) so I think its different installation method from 10.1, but I cant find a tutorial
C'mon...Read the first page of the CM10 thread & follow the installation instructions. Doesn't take a MENSA member to get it done
If you have used titanium backup root hayz to backup game data. Want to install a new ROM to install it into RECOVERY. If the rom you download it tails. ZIP Remember to wipe data + cache + dakvil before.
My device GT-i9100G
note: im always start all my flash from stock ROM (meaning stock JB 4.1.2)
my usual method, all can be done in the phone, no need odin if youre already stock;
-download all related file, CM10.1.3, CM GApps, Blazing kernel v8 (if you dont want your binary counter to change)...put them in external SD
-boot into recovery, select apply update from external storage, select file blazing kernel v8, let it finish and reboot normally
-then reboot into recovery again and install your Cm10.1.3 and GApps by navigating to your external SD (sorry cant remember the path)
-after finish installing both above file, let it reboot...if bootloop, reboot back into recovery and wipe data, cache and dalvik, and then reboot
now your CM10.1.3 is ready~
-hit thanks if my post helps you-

Erase /system partition on Cyanogen Recovery

First of all, this is my first post on this forum, so I'd like to say hello to everybody.
I made a bit of a mess with my father's phone (it was mine before he had it, so it was already modded), and the explanation will be somewhat long because I tried everything before coming here for help.
This phone had Android 5.1.1 Lollipop, installed through the official Cyanogenmod 12.1 Nightlies. It was working perfectly, but I wanted to install more Gapps on the /system partition and switch some of the original Cyanogenmod apps with the corresponding Google apps. I used Deltadroid's modular Gapps (Thread here: http://forum.xda-developers.com/android/software/app-minimal-gapps-gapps-lp-20150107-1-t2997368) to install everything I needed on the /system partition, but I only did a factory reset+cache wipe instead of wiping the /system partition too and starting from scratch, because I couldn't find the option to wipe the /system partition in the "stock" Cyanogen Recovery. Now the phone will boot, enter recovery mode and even get to the setup screen, but as soon as the Google Play Services are needed, they crash and the setup won't go on. I tried installing the CWM but the signature check fails every time, I tried using ADB but I'm no expert and I don't know how to make it work, I tried reinstalling the ROM and wiping /data and /cache once again to no avail, I tried basically everything but it seems the only thing that can be done is wiping the /system partition and reinstalling both the ROM, the Gapps and the add-ons.
The problem is, I have no idea how to wipe the /system partition, so I was wondering if anyone here could help.
Thanks in advance.
Hi @Valtekken
You just need to have a "signed" .zip to flash through that recovery. Try the philz 6.48.4 attached here. I have heard of a few people not being able to flash this one, if it doesn't install, use the other one first, reboot to recovery, and then flash 6.48.4. So -
1. Flash the philz recovery
2. Reboot to recovery, not system
2a. (Flash the other one, reboot to recovery [if you used XWMS3 first])
3. Do your wipes(you should only need to wipe /system if you want to keep your data, but I always recommend a clean install if possible - /data, /cache, and dalvik/art cache as well)
4. Install the new CM12.1 and gapps
BTW the gapps you can flash will depend on whether or not you have repartitioned. If you have stock /system partition just install a pico or minimal gapps
noppy22 said:
Hi @Valtekken
You just need to have a "signed" .zip to flash through that recovery. Try the philz 6.48.4 attached here. I have heard of a few people not being able to flash this one, if it doesn't install, use the other one first, reboot to recovery, and then flash 6.48.4. So -
1. Flash the philz recovery
2. Reboot to recovery, not system
2a. (Flash the other one, reboot to recovery [if you used XWMS3 first])
3. Do your wipes(you should only need to wipe /system if you want to keep your data, but I always recommend a clean install if possible - /data, /cache, and dalvik/art cache as well)
4. Install the new CM12.1 and gapps
BTW the gapps you can flash will depend on whether or not you have repartitioned. If you have stock /system partition just install a pico or minimal gapps
Click to expand...
Click to collapse
First of all, thank you for answering!
I tried many "-signed" .zips, but none of them worked, so I'll assume I used non-compatible ones. There was space for the Gapps on the /system partition, mainly because I made sure of getting only the Gapps and the few addons I needed, so the MB count was very low.
I'll try your recovery right now and let you know in a moment, hopefully this solves the problem and I can have the phone working again.
Managed to install the recovery, format the /system, /data and /cache partitions, install the rom, the Gapps and the add-ons. It worked, but the phone still gives me an "Unfortunately, Google Play Services has stopped". How can I get the apps to work? What could the problem be?
I solved the problem, finally...I changed the Gapps package (I used TK's Gapps) and managed to install it and make everything work.
Thanks for all your help! I think the thread can be closed now.

About Flashing Custom ROM (RR/PA) on LG G3 D855

Greetings everyone. I wish to know more about flashing Resurrection Remix...
I watched the brief instruction on official XDA thread but I wish to know more detail...
- Current Phone Status -
My G3 D855, 32 GB memory, is running stock Android 4.4.2, ROM version “V10n-HKG-XX”, stock recovery, rooted with PurpleDrake (script by xda developer”. Kernel version 3.4.0. All things are stock except I have rooted, with SuperSU.
- Reason of wanting to flash Remix ROM -
I wish to change resolution to 1080x1920, even 720x1280. So I did this using build.prop editing and “wm size 1080x1920”,“wm density 480”. However in stock rom, build in LG apps like Phone, Messaging, Calender will crash. I fix this by installing Xposed & app settings with DPI 530. But I don’t quite want this to be the solution...
Plus I noticed there really are battery difference between 1440x2560 and lower resolution. So I started to think about custom Rom. I found that Resurrection Remix and Paranoid Android are quite slim, good looking, most importantly very customizable.
And Stock ROM has many software that I don’t need, so I wish to give it a try.
- My question -
I haven’t flash any custom rom before (I have flashed on my previous phone but messed up quite a bit).
- So I wished to know what is the prerequisite, anything that need to pay good attention into? I want to avoid bootloop or hard brick...
- Should I install official TWRP recovery on my current status and make a full system backup image? (is that called nandroid backup?)
- If any error occured, can I use TWRP recovery to restore everything in my current status (everything in stock but have root access)?
- Are the custom roms contain build-in Root access? Because I want the phone to be rooted.
- I use LG Flash tool 2014 to flash stock firmware kdz files), with CRC method to completely wipe the phone and back to stock. Is this method still applicable if I want to back to stock after flashing RR rom? Because I want everything to be clean each time I flash a new system...
- I watched YouTube video that changing AOSP rom resolution won’t mess up icons or apps. So I can still receive SMS, dial, calender sync to Google etc. Correct?
--------------------
Finally, I wish to flash the latest STABLE version of the Remix ROM / Paranoid Android ROM. Would be good to hear some recommendations. I wish things to be more customizable and slim. Thanks for reading this long article in advance!
Vulturon said:
- My question -
I haven’t flash any custom rom before (I have flashed on my previous phone but messed up quite a bit).
- So I wished to know what is the prerequisite, anything that need to pay good attention into? I want to avoid bootloop or hard brick...
- Should I install official TWRP recovery on my current status and make a full system backup image? (is that called nandroid backup?)
- If any error occured, can I use TWRP recovery to restore everything in my current status (everything in stock but have root access)?
- Are the custom roms contain build-in Root access? Because I want the phone to be rooted.
- I use LG Flash tool 2014 to flash stock firmware kdz files), with CRC method to completely wipe the phone and back to stock. Is this method still applicable if I want to back to stock after flashing RR rom? Because I want everything to be clean each time I flash a new system...
- I watched YouTube video that changing AOSP rom resolution won’t mess up icons or apps. So I can still receive SMS, dial, calender sync to Google etc. Correct?
--------------------
Finally, I wish to flash the latest STABLE version of the Remix ROM / Paranoid Android ROM. Would be good to hear some recommendations. I wish things to be more customizable and slim. Thanks for reading this long article in advance!
Click to expand...
Click to collapse
1- you're good to go now, you don't need any prerequisite, you should pay attention to the steps you make to flash TWRP and rom not to do it wrong.
2-yes you should install latest official TWRP for your phone and backup these partitions (system, data, boot, efs -if available-), and that is nandroid backup, and you will use TWRP to flash RR or PA.
3-yes you can restore from nandroid backup.
4-yes both roms has built-in root access that can be activated from developer options, and you can simply flash SuperSU.zip in recovery after the rom and gapps to use SuperSU app to manage root access if you don't like the built-in root.
5-yes this method is still applicable, because all you need to get back to your stock or flash another rom is wipe (system, data, cache, dalvik cache) and flash the rom, so as long as the tool does that, then you're good.
Also if you're not sure you can do the wiping in TWRP first, then boot into download mode and then flash with the tool.
6-changing dpi in custom roms may cause some apps to crash, however i don't recommend lowering the dpi value too much or you will get some issues like that.
Regards. Migo
MigoMujahid said:
1- you're good to go now, you don't need any prerequisite, you should pay attention to the steps you make to flash TWRP and rom not to do it wrong.
2-yes you should install latest official TWRP for your phone and backup these partitions (system, data, boot, efs -if available-), and that is nandroid backup, and you will use TWRP to flash RR or PA.
3-yes you can restore from nandroid backup.
4-yes both roms has built-in root access that can be activated from developer options, and you can simply flash SuperSU.zip in recovery after the rom and gapps to use SuperSU app to manage root access if you don't like the built-in root.
5-yes this method is still applicable, because all you need to get back to your stock or flash another rom is wipe (system, data, cache, dalvik cache) and flash the rom, so as long as the tool does that, then you're good.
Also if you're not sure you can do the wiping in TWRP first, then boot into download mode and then flash with the tool.
6-changing dpi in custom roms may cause some apps to crash, however i don't recommend lowering the dpi value too much or you will get some issues like that.
Regards. Migo
Click to expand...
Click to collapse
Mr. Migo, thank you for replying. But I have more to ask/... Sorry for being annoying, because I am a beginner and I wish to make things clear, to minimize the chance of accident...
1. you said i'm good to go now, but shall i need to .kdz flash the stock v21a-HKG-xx which is Android 5.0 first? because i remeber RR rom's post in xda said i should upgrade to 5.0 first... i'm not quite sure...
https://forum.xda-developers.com/lg-g3/development/rom-t3507493
above is the link of the rom, I wish to know is my phone appropriate for doing this before everything... Hope Mr. migo you can have a look for me when you have time...
2. regarding twrp recovery, i read this: https://forum.xda-developers.com/lg-g3/development/recovery-twrp-3-0-0-0-t3309475?nocache=1 however in the official download link it said twrp for d855 europe... I'm D855 but not europe... If I want to flash official latest twrp recovery, shall i use 'twrp manager' from google play?
plus, it said i should backup the original stock recovery, how do i do that?
3. Doing a full nandroid backup which can be used to completely restore current status, only including 'system, data, boot, efs', the 4 partition, correct? because i didn't use any custom recovery before, so i wish to know more... any other things need to pay attention before doing a full nandroid backup?
4. I wonder which version of Gapps I should flash / appropriate for the RR remix... the post said Download Gapps (ARM 7.1 Pico/Nano/Other), but which I should use? 'cuz it is essential I think...
5. Hope you can check my understanding below: if i want to flash RR rom now, should:
--- flash official latest twrp recovery
--- go to recovery mode (twrp) & backup 'system, data, boot, efs', the 4 partition in ext.sd card
--- still in twrp recovery, do 4 wipes 'system, data, cache, dalvik cache' (I want a very clean installation, not 1 byte of previous rom data will be left, so how can i wipe it to very clean status?)
--- after 4 or 5 wipes, do i need to press 'factory reset', 'wipe cache partition' these 2 options?
--- alright after all the cleaning, still in recovery while the device is like a shell (nothing, no OS inside), browse to ext.sd card which I will be putting the .zip ROM file, and flash it.
--- after completing flashing, do i need to press 'factory reset', 'wipe cache partition' these 2 options?
--- then I shall flash gapps?
--- then, reboot device, and I am done?
6. I want to know is this ROM really appropriate for my phone... because all those screenshots are in foreign language, not even English, I live in Hong Kong and I bought this phone in Hong Kong... So will the RR remix rom not compatible with certain regions...
7. Again this link: https://forum.xda-developers.com/lg-g3/development/rom-t3507493 below 'Download on AndroidFileHost (AFH)', there are several version built in diff. dates. It seems that the latest build is Nougat android 7.0...? Willing to try that, but is it better for me to go to Resurection remix official site and search for d855, then download the latest, stable (not Nightly) builds?
8. This is how i change DPI. I calculate using dpi calculator, 1440x2560, 5.5inch device should have 534.06... dpi, then i use nomone resolutrion changer to view the default settings (1440x2560, 5.5inch = 640 dpi), then 640 / 534.06 = 1.19836...
then, dpi calculator agaim -> 720x1280, 5.5inch device should have 267.6532... dpi, then 267.6532 times 1.19836 = 320, I will do this in terminal with command 'wm size 720x1280', then 'wm density 320'. and go to build.prop, find "ro.lcd.sf.density' change value to 320, then reboot.
Is my method correct? I think it is not too low... Approproate value for 720x1280 res. monitor.
----------
That's all for now, sorry for so many questions... really... I just wish to minimize and get everything clear before proceeding, since this can be dangerous... thanks a ton Mr. Migo.
Vulturon said:
Mr. Migo, thank you for replying. But I have more to ask/... Sorry for being annoying, because I am a beginner and I wish to make things clear, to minimize the chance of accident...
1. you said i'm good to go now, but shall i need to .kdz flash the stock v21a-HKG-xx which is Android 5.0 first? because i remeber RR rom's post in xda said i should upgrade to 5.0 first... i'm not quite sure...
https://forum.xda-developers.com/lg-g3/development/rom-t3507493
above is the link of the rom, I wish to know is my phone appropriate for doing this before everything... Hope Mr. migo you can have a look for me when you have time...
2. regarding twrp recovery, i read this: https://forum.xda-developers.com/lg-g3/development/recovery-twrp-3-0-0-0-t3309475?nocache=1 however in the official download link it said twrp for d855 europe... I'm D855 but not europe... If I want to flash official latest twrp recovery, shall i use 'twrp manager' from google play?
plus, it said i should backup the original stock recovery, how do i do that?
3. Doing a full nandroid backup which can be used to completely restore current status, only including 'system, data, boot, efs', the 4 partition, correct? because i didn't use any custom recovery before, so i wish to know more... any other things need to pay attention before doing a full nandroid backup?
4. I wonder which version of Gapps I should flash / appropriate for the RR remix... the post said Download Gapps (ARM 7.1 Pico/Nano/Other), but which I should use? 'cuz it is essential I think...
5. Hope you can check my understanding below: if i want to flash RR rom now, should:
--- flash official latest twrp recovery
--- go to recovery mode (twrp) & backup 'system, data, boot, efs', the 4 partition in ext.sd card
--- still in twrp recovery, do 4 wipes 'system, data, cache, dalvik cache' (I want a very clean installation, not 1 byte of previous rom data will be left, so how can i wipe it to very clean status?)
--- after 4 or 5 wipes, do i need to press 'factory reset', 'wipe cache partition' these 2 options?
--- alright after all the cleaning, still in recovery while the device is like a shell (nothing, no OS inside), browse to ext.sd card which I will be putting the .zip ROM file, and flash it.
--- after completing flashing, do i need to press 'factory reset', 'wipe cache partition' these 2 options?
--- then I shall flash gapps?
--- then, reboot device, and I am done?
6. I want to know is this ROM really appropriate for my phone... because all those screenshots are in foreign language, not even English, I live in Hong Kong and I bought this phone in Hong Kong... So will the RR remix rom not compatible with certain regions...
7. Again this link: https://forum.xda-developers.com/lg-g3/development/rom-t3507493 below 'Download on AndroidFileHost (AFH)', there are several version built in diff. dates. It seems that the latest build is Nougat android 7.0...? Willing to try that, but is it better for me to go to Resurection remix official site and search for d855, then download the latest, stable (not Nightly) builds?
8. This is how i change DPI. I calculate using dpi calculator, 1440x2560, 5.5inch device should have 534.06... dpi, then i use nomone resolutrion changer to view the default settings (1440x2560, 5.5inch = 640 dpi), then 640 / 534.06 = 1.19836...
then, dpi calculator agaim -> 720x1280, 5.5inch device should have 267.6532... dpi, then 267.6532 times 1.19836 = 320, I will do this in terminal with command 'wm size 720x1280', then 'wm density 320'. and go to build.prop, find "ro.lcd.sf.density' change value to 320, then reboot.
Is my method correct? I think it is not too low... Approproate value for 720x1280 res. monitor.
----------
That's all for now, sorry for so many questions... really... I just wish to minimize and get everything clear before proceeding, since this can be dangerous... thanks a ton Mr. Migo.
Click to expand...
Click to collapse
1-sorry i didn't know that you have a lollipop update, yes you must upgrade to lollipop first to have the latest bootloader.
2-about TWRP, if the model number is d855, so it's for you, the country won't matter, like for me if i have i9100g so i can't flash TWRP for the i9100, so if you are sure about the model number then it's ok.
You can flash it with adb or by using flashify app from phone, you don't have to use the TWRP app.
As your phone is already rooted, you can backup stock kernel and stock recovery using Flashify app, just download it from playstore and open it, grant root access and choose the tile "backup/restore" and you will see the options to backup stock kernel and recovery.
4- gapps are not complicated, "ARM" is your processor architecture, "7.1" is the android version you choose based on the rom you are flashing, "Pico, Nano.." these are the gapps types, pico has the least requirements to run the play store, Nano has extra functionality that isn't available in play store, and micro has more apps..and so on, However, if you want to understand more about it, you can read the wiki of each package from here.
5- flash the TWRP, in recovery backup is based on the phone partitions, every phone has those 3 partitions (system, data, boot) some phones have efs and some not, so when you are in recovery you will see what part are available to backup, now for wiping, you only need to wipe once not 3 or 4 times!, navigate to wipe and choose advanced wipe and mark (system, data, cache, dalvik cache) and swipe to wipe, you won't need to use "factory reset/wipe cache partition" option at all, now flash the Rom and then Flash Gapps directly, no wipe between, now reboot and wait, that's it!!
6- as i told you in (2), your model number is d855 and the rom is for d855 then it's compatible with your phone, people use their own language in their phones so don't let that bother you.
7- RR remix doesn't have nightlies and never called stable it's only official, if you go to the download page of RR of your phone in sourcefrog you will see only "official" and the "nightly" folder will be empty, however, latest build for you is in 12/2 but i don't know what CK is in the file name, i suggest you ask in the rom thread what CK mean because i don't know.
8- in nogut you don't have to do any calculations, in display settings of the rom, there is an option called "screen size" where you can adjust it to (small, smaller, smallest, normal), anyway you method can do the job if you didn't like this new feature in nogut.
OMG, i never wrote that much..?
-------------------------------------------------------
Hope i helped you ?, don't forget to press the "thanks" button..just for support ?
MigoMujahid said:
1-sorry i didn't know that you have a lollipop update, yes you must upgrade to lollipop first to have the latest bootloader.
2-about TWRP, if the model number is d855, so it's for you, the country won't matter, like for me if i have i9100g so i can't flash TWRP for the i9100, so if you are sure about the model number then it's ok.
You can flash it with adb or by using flashify app from phone, you don't have to use the TWRP app.
As your phone is already rooted, you can backup stock kernel and stock recovery using Flashify app, just download it from playstore and open it, grant root access and choose the tile "backup/restore" and you will see the options to backup stock kernel and recovery.
4- gapps are not complicated, "ARM" is your processor architecture, "7.1" is the android version you choose based on the rom you are flashing, "Pico, Nano.." these are the gapps types, pico has the least requirements to run the play store, Nano has extra functionality that isn't available in play store, and micro has more apps..and so on, However, if you want to understand more about it, you can read the wiki of each package from here.
5- flash the TWRP, in recovery backup is based on the phone partitions, every phone has those 3 partitions (system, data, boot) some phones have efs and some not, so when you are in recovery you will see what part are available to backup, now for wiping, you only need to wipe once not 3 or 4 times!, navigate to wipe and choose advanced wipe and mark (system, data, cache, dalvik cache) and swipe to wipe, you won't need to use "factory reset/wipe cache partition" option at all, now flash the Rom and then Flash Gapps directly, no wipe between, now reboot and wait, that's it!!
6- as i told you in (2), your model number is d855 and the rom is for d855 then it's compatible with your phone, people use their own language in their phones so don't let that bother you.
7- RR remix doesn't have nightlies and never called stable it's only official, if you go to the download page of RR of your phone in sourcefrog you will see only "official" and the "nightly" folder will be empty, however, latest build for you is in 12/2 but i don't know what CK is in the file name, i suggest you ask in the rom thread what CK mean because i don't know.
8- in nogut you don't have to do any calculations, in display settings of the rom, there is an option called "screen size" where you can adjust it to (small, smaller, smallest, normal), anyway you method can do the job if you didn't like this new feature in nogut.
OMG, i never wrote that much..
-------------------------------------------------------
Hope i helped you , don't forget to press the "thanks" button..just for support
Click to expand...
Click to collapse
Sir you helped me alot, no problem I pressed the thanks button! But can I continue asking? Won't be too much I guess, hope I didn't bother your time...
1. That means I have to use LG Flash tool to flash stock 5.0 firmware (.kdz)? Which is 'V21a-HKG-XX'. But stock firmware 6.0 (V30c-HKG-XX) had released too. What exactly should I do beforehand...? Because before you said I am good to go but there seems to be something missing...... I am not challenging you sir, I just want to be sure and not missing any important steps so that my phone turns dead... (for sure information I wish to flash resurrection remix latest official 7.0 Nougat firmware)
2. So if what said in (1) is true, I need to flash stock 5.0 or 6.0 kdz first to turn the phone into clean stock 5.0/6.0, root it , then use Flashify to backup stock kernel/recovery (these are 2 things? I thought that was the same thing...), correct?
3. I found twrp recovery here: https://twrp.me/devices/lgg3europe.html by typing 'device' on the upper right, then type D855, all it appeared is only "TWRP for LG G3 Europe"... Plus, I notice in ROOT G3.com that twrp had different version for Android 5.0 and 6.0... So I am confused again, because if the above link is official website for twrp, it didn;t state that lollipop(5.0) and kitkat(4.4) has different twrp...
4. Derived from (3), as I am not sure which twrp .zip file should I download, I saw on official twrp web that it recommends "official twrp app" to install the recovery, I think it can detect my device and find the only appropriate one for me? I saw quite some people flash it using Flashify app, but I just want to know more and make it clear...
5. https://forum.xda-developers.com/lg-g3/development/rom-t3543815 <- In this page, I found
"ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.4.x
ROM Firmware Required: 4.4.2/6.0 + TWRP
Based On: LineageOS"
On below. Is that mean 4.4.2 or 6.0 as the current system android version is also okay for flashing it?
6. In this page, which is another RR rom "stating" it is official: https://forum.xda-developers.com/lg-g3/development/rom-t3507493, said that:
GApps - opengapps.org (ARM-7.1-PICO)
On below. Firstly, can I download Gapps on here: http://opengapps.org/?
If possible, than shall I choose like what it said, ARM, then 7.1, then PICO ( yes I think I only need minimum package)? Because I am not sure I should use 7.0 or 7.1, and ARM or ARM64...
7. Seems there are quite many version of RR, I googled "resurrection remix' go to their offical page, redirected me to sourceforge, https://sourceforge.net/projects/resurrectionremix/files/d855/Official/ I think I will download the latest date "20170110" version. If I am not wrong this should be the official not nightlies build (you will notice there are nightlies).
Refer back to (6), which type of Gapps should I use... AMR64, ARM, 7.0? 7.1?
8. So wiping 'system, data, cache, dalvik cache' these 4 things will really erase all things and get clean enough?
Also, https://forum.xda-developers.com/lg-g3/development/rom-t3543815 here, below:
-INSTALLATION INSTRUCTIONS-
- Download the latest build
- Download Gapps (ARM 7.1 Pico/Nano/Other)
- Take a nandroid backup
- Recommended - Full wipe and factory reset
- Flash ROM using latest TWRP 3.x Recovery
- Flash Gapps
- Reboot.
- Enjoy!
They recommend press factory reset... Should I do the same? Is it better to press because if the 4 wipe 'system, data, cache, dalvik cache' is clean enough then reset is not needed...
--------------------------------
Opps....... Really sorry sir... When reading your reply one by one that much question appeared again... Really sorry, hope you don't find me annoying... SInce you are the only one reponded and you are experienced, so I wish to grap the chance to learn about it... Thanks a ton. You can have as many thanks button pressed if you want, I have no problem!
Vulturon said:
Sir you helped me alot, no problem I pressed the thanks button! But can I continue asking? Won't be too much I guess, hope I didn't bother your time...
1. That means I have to use LG Flash tool to flash stock 5.0 firmware (.kdz)? Which is 'V21a-HKG-XX'. But stock firmware 6.0 (V30c-HKG-XX) had released too. What exactly should I do beforehand...? Because before you said I am good to go but there seems to be something missing...... I am not challenging you sir, I just want to be sure and not missing any important steps so that my phone turns dead... (for sure information I wish to flash resurrection remix latest official 7.0 Nougat firmware)
2. So if what said in (1) is true, I need to flash stock 5.0 or 6.0 kdz first to turn the phone into clean stock 5.0/6.0, root it , then use Flashify to backup stock kernel/recovery (these are 2 things? I thought that was the same thing...), correct?
3. I found twrp recovery here: https://twrp.me/devices/lgg3europe.html by typing 'device' on the upper right, then type D855, all it appeared is only "TWRP for LG G3 Europe"... Plus, I notice in ROOT G3.com that twrp had different version for Android 5.0 and 6.0... So I am confused again, because if the above link is official website for twrp, it didn;t state that lollipop(5.0) and kitkat(4.4) has different twrp...
4. Derived from (3), as I am not sure which twrp .zip file should I download, I saw on official twrp web that it recommends "official twrp app" to install the recovery, I think it can detect my device and find the only appropriate one for me? I saw quite some people flash it using Flashify app, but I just want to know more and make it clear...
5. https://forum.xda-developers.com/lg-g3/development/rom-t3543815 <- In this page, I found
"ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.4.x
ROM Firmware Required: 4.4.2/6.0 + TWRP
Based On: LineageOS"
On below. Is that mean 4.4.2 or 6.0 as the current system android version is also okay for flashing it?
6. In this page, which is another RR rom "stating" it is official: https://forum.xda-developers.com/lg-g3/development/rom-t3507493, said that:
GApps - opengapps.org (ARM-7.1-PICO)
On below. Firstly, can I download Gapps on here: http://opengapps.org/?
If possible, than shall I choose like what it said, ARM, then 7.1, then PICO ( yes I think I only need minimum package)? Because I am not sure I should use 7.0 or 7.1, and ARM or ARM64...
7. Seems there are quite many version of RR, I googled "resurrection remix' go to their offical page, redirected me to sourceforge, https://sourceforge.net/projects/resurrectionremix/files/d855/Official/ I think I will download the latest date "20170110" version. If I am not wrong this should be the official not nightlies build (you will notice there are nightlies).
Refer back to (6), which type of Gapps should I use... AMR64, ARM, 7.0? 7.1?
8. So wiping 'system, data, cache, dalvik cache' these 4 things will really erase all things and get clean enough?
Also, https://forum.xda-developers.com/lg-g3/development/rom-t3543815 here, below:
-INSTALLATION INSTRUCTIONS-
- Download the latest build
- Download Gapps (ARM 7.1 Pico/Nano/Other)
- Take a nandroid backup
- Recommended - Full wipe and factory reset
- Flash ROM using latest TWRP 3.x Recovery
- Flash Gapps
- Reboot.
- Enjoy!
They recommend press factory reset... Should I do the same? Is it better to press because if the 4 wipe 'system, data, cache, dalvik cache' is clean enough then reset is not needed...
--------------------------------
Opps....... Really sorry sir... When reading your reply one by one that much question appeared again... Really sorry, hope you don't find me annoying... SInce you are the only one reponded and you are experienced, so I wish to grap the chance to learn about it... Thanks a ton. You can have as many thanks button pressed if you want, I have no problem!
Click to expand...
Click to collapse
1- ok, when they said rom firmware required:4.4.2/6.0
I believe that it's ok to root and backup the recovery, and directly start the process of flashing, because you already have 4.4.2 installed which is kitkat and it's compatible with latest TWRP, you can make sure by re-asking in the rom thread if you can directly install the rom right now or upgrade the firmware to 6.0 first.
2-(2) is connected to (1)
3- just use the latest TWRP you find for your phone in the official TWRP page, you don't have to use TWRP app, you can flash it with flashify, but it's OK if you want to use TWRP app, in fact, it's more safe to use it, and it has nothing to do with your android version because you will format the phone after all.
4-(4) is connected to (3)
5-(5) is connected to (1) and (2)
6-you choose ARM then 7.1 then pico or nano
and again, you must know that android version must be known in order to choose right, so if it's 7.0 then choose 7.0 gapps, and if it 7.1 or 7.1.1 the choose 7.1 gapps.
7- (7) is connected to (6)
8-yea. Wiping those 4 is completely enough, and don't worry about (factory reset) because it's a part of the full wipe, (factory reset) means wiping data, cache, and dalvik cache, which is already a part of the wiping process.
No problem, it's ok to ask, we all want things to go well
MigoMujahid said:
1- ok, when they said rom firmware required:4.4.2/6.0
I believe that it's ok to root and backup the recovery, and directly start the process of flashing, because you already have 4.4.2 installed which is kitkat and it's compatible with latest TWRP, you can make sure by re-asking in the rom thread if you can directly install the rom right now or upgrade the firmware to 6.0 first.
2-(2) is connected to (1)
3- just use the latest TWRP you find for your phone in the official TWRP page, you don't have to use TWRP app, you can flash it with flashify, but it's OK if you want to use TWRP app, in fact, it's more safe to use it, and it has nothing to do with your android version because you will format the phone after all.
4-(4) is connected to (3)
5-(5) is connected to (1) and (2)
6-you choose ARM then 7.1 then pico or nano
and again, you must know that android version must be known in order to choose right, so if it's 7.0 then choose 7.0 gapps, and if it 7.1 or 7.1.1 the choose 7.1 gapps.
7- (7) is connected to (6)
8-yea. Wiping those 4 is completely enough, and don't worry about (factory reset) because it's a part of the full wipe, (factory reset) means wiping data, cache, and dalvik cache, which is already a part of the wiping process.
No problem, it's ok to ask, we all want things to go well
Click to expand...
Click to collapse
Okay. Some offtopic question if you don`t mind.
- Did you use any app to manage app start on boot? I mean when you boot the phone which app will auto start. I knew that AutoStart and ROM Tool box pro contains that option but I dont know how the process works.
- Which app you use to kill tasks? I use Greenify to hibernate apps when locked screen,plus recent task built-in to do the job. Any good suggestion?
- Do you use Titanium Backup to uninstall system app? I will but sometimes I am not sure what the app does but still think its useless to me and delete it. Such as WAP service. I mean in stock firmware,which still dont know although Googled. Do you know how can i know what the app does?
- What is the custom rom you recommend the most and what is the good point of it?
- I have installed Xposed framework in my current status, I mean stock rom, although I am goong to wipe anything but will it affect the process? Shall I clean uninstall it first?
I think thats it. Almost finish my questions. Thanks again.
Vulturon said:
Okay. Some offtopic question if you don`t mind.
- Did you use any app to manage app start on boot? I mean when you boot the phone which app will auto start. I knew that AutoStart and ROM Tool box pro contains that option but I dont know how the process works.
- Which app you use to kill tasks? I use Greenify to hibernate apps when locked screen,plus recent task built-in to do the job. Any good suggestion?
- Do you use Titanium Backup to uninstall system app? I will but sometimes I am not sure what the app does but still think its useless to me and delete it. Such as WAP service. I mean in stock firmware,which still dont know although Googled. Do you know how can i know what the app does?
- What is the custom rom you recommend the most and what is the good point of it?
- I have installed Xposed framework in my current status, I mean stock rom, although I am goong to wipe anything but will it affect the process? Shall I clean uninstall it first?
I think thats it. Almost finish my questions. Thanks again.
Click to expand...
Click to collapse
1- ES Task Manager, i used it to manage start up apps.
2- i also use greenify along with an app called "Advanced Task Killer Free", they make a good team for me ?
3- i don't use Titanium backup, uninstalling system app is an easy process and can be done using many apps, for me, i use Lucky Patcher to uninstall system apps, works good for me.
4-custom roms differ from phone to another, for my s2 i use AICP, i always liked it in marshmallow and in nogut, i also used RR but it has a huge battery drain, also many users like XOSP, it's a wonderful project, and it's very common, so overall i use AOSP roms, but when it comes to battery life, i use Neat Rom, it's stock based with many customizations and great kernel too.
5-no xposed won't affect the process, because you will wipe everything eventually.
----------------------:good:
MigoMujahid said:
1- ES Task Manager, i used it to manage start up apps.
2- i also use greenify along with an app called "Advanced Task Killer Free", they make a good team for me
3- i don't use Titanium backup, uninstalling system app is an easy process and can be done using many apps, for me, i use Lucky Patcher to uninstall system apps, works good for me.
4-custom roms differ from phone to another, for my s2 i use AICP, i always liked it in marshmallow and in nogut, i also used RR but it has a huge battery drain, also many users like XOSP, it's a wonderful project, and it's very common, so overall i use AOSP roms, but when it comes to battery life, i use Neat Rom, it's stock based with many customizations and great kernel too.
5-no xposed won't affect the process, because you will wipe everything eventually.
----------------------:good:
Click to expand...
Click to collapse
I will try the process later to see of this works... But...
1. customization & battery are the 2 factors I concern, i dont know how to see if the rom has good custmization and battery tweaks in their threads... https://forum.xda-developers.com/lg-g3/development Any tip or suggestion?
2. titanium backup has the option of "wipe data" of app when uninstall, which I think is cleaner for uninstalling, I mean no leftover of apps including system app. or you have better ideas about doing this?
3. Internal Storage is part of the full wipe, is it? I mean "system"/"data"/"cache"/"dalvik cache", because it contains many current status' files, I should wipe it. Correct?
4. Can I wipe external SD card in TWRP after installing the rom? Because I saw Android/Data or Android/obb files there, so I think some data files are in ext. SD card. For clean installation, I should wipe them too right?
Thanks.
Vulturon said:
I will try the process later to see of this works... But...
1. customization & battery are the 2 factors I concern, i dont know how to see if the rom has good custmization and battery tweaks in their threads... https://forum.xda-developers.com/lg-g3/development Any tip or suggestion?
2. titanium backup has the option of "wipe data" of app when uninstall, which I think is cleaner for uninstalling, I mean no leftover of apps including system app. or you have better ideas about doing this?
3. Internal Storage is part of the full wipe, is it? I mean "system"/"data"/"cache"/"dalvik cache", because it contains many current status' files, I should wipe it. Correct?
4. Can I wipe external SD card in TWRP after installing the rom? Because I saw Android/Data or Android/obb files there, so I think some data files are in ext. SD card. For clean installation, I should wipe them too right?
Thanks.
Click to expand...
Click to collapse
Well, the as a 8 don't have lg g3 then, it's a something i can't advice you about, but AICP is a great project that can balance between both; battery life and customizations and it has a good performance also.
Uninstalling apps isn't that big deal, when an app is removed all its data is removed except media files and some low size or even empty folders, so it's a something i don't usually think off neither should you, it's nothing.
Internal storage isn't a part of "full wipe", but wiping it is up to you, it's your choice.
You do too much thinking, you don't need to wipe neither internal nor external sdcard, i have a 16GB phone and i don't think that much about this
----------------------------------------------
Don't forget the magic word button

How to correctly swtich ROM's

Hi there,
I may be being stupid here I want to move from Lineage OS to crDroid. Im currently on the latest 01/01/2019 LOS build, with 8.12.24 vendor firmware. I didnt flash the disable encryption patch so my device is encrypted. Im guessing I need to remove any security off the lock screen? Im using the unofficial TWRP build - 12/12/2018.
So to make the switch, do i need to wipe my data, or can I migrate over?
And when I go to flash, which wipes do I need to do before installing the ROM?
Im just worried about flashing and then locking my phone with the encryption because I've missed a step This is my first phone that uses android 9.0, and im not used to the forced encryption stuff.
If someone could give me a lil list of steps, that would be much appreciated!
Thanks!
That I do is:
-wipe system, data, cache, Dalvik
-flash new rom, flash gapps
**Flash any custom kernel if you want
Now here is the differences
1) if I want keep the encryption but format the internal storage I just do a factory reset or format data or internal storage, all are the same and reboot in the system
2) if I don't want keep the encryption, I reboot into recovery, later format data, then flash the zip to keep the phone unencrypted (FDE? I don't remember the name exactly but it is in a post on the guide section), and last flash magisk, then reboot system
3) if you have the phone without encryption and you want keep it in that way, just do the wipe to the system,data,cache,dalvik then flash system, gapps, any kernel at your choice, magisk and reboot into system
PD: remember if you flash a vendor zip, the phone will be encrypt
PS:I hope that I don't get wrong in something

Categories

Resources