Install roms to partition A only? - Xiaomi Redmi Note 7 Questions & Answers

The Note 7 comes with only an A partition. Does installing one of the Lineage roms change this to an A/B partition or do we just continue to use A and never have to worry about the headache of A/B?.

pcm2a said:
The Note 7 comes with only an A partition. Does installing one of the Lineage roms change this to an A/B partition or do we just continue to use A and never have to worry about the headache of A/B?.
Click to expand...
Click to collapse
we have a/b partitions and a as in system as root. it doesnt change anything.

Related

Install Stock Firmware after Repartition Moto G4 Plus

can i install Stock Firmware after reparation internal memory by twrp?
if i can flash so my partitions will change or not and what other problems can occur?
faizynadim said:
can i install Stock Firmware after reparation internal memory by twrp?
if i can flash so my partitions will change or not and what other problems can occur?
Click to expand...
Click to collapse
https://firmware.center/firmware/Motorola/Moto G4 (Plus)/
After u install twrp recovery you don't modify your stock rom though no ota updates.but u can replace it with stoct recovery again.. if u mess up with stock rom yeah u can get it from the above link ..
i am asking about re partition...i am not asking about briking device or flashing stock rom...
Did modify the system partition or only the internal storage?
i have not changed yet.....i am asking if i change the partition of system and data partition...then i will be able to flash stock rom or problems will occur...
Ok, now changing the size of the system partition may create problems if you try to flash the stock img files, I think
ok..i will try that... ?
Whatever you do, don't reduce the size of the system partition, if you want to flash stock ROM later...zips should work fine though. I have seen people repartition xiaomi mi 3 phones and install custom roms.
faizynadim said:
i have not changed yet.....i am asking if i change the partition of system and data partition...then i will be able to flash stock rom or problems will occur...
Click to expand...
Click to collapse
What are you hoping to achieve with changing the partitions (e.g. are you changing the format of the partitions to ext4 or f2fs? Or are you changing the sizes of the partitions)?
If you're changing the partition sizes, I personally would leave the sizes alone, unless you're confident in the size of the partition that the stock ROM would need (and need in the future). From what I see on my device running Nougat NPJS25.93-14.4, cache (ext4) is 256 MB, system (ext4) is 2.5 GB and data (f2fs) takes up the rest of my internal storage.
As for changing formats, I don't know if the stock ROM will work with a system partition not formatted as ext4. Cache may or may not work with f2fs. Again, what are you hoping to achieve?
I want that nobody can flash stock rom on my phone normally....i have cerberus installed as root and if any theif can install firmware so that is useless and theif can enjoy using my phone...so i want to change partition sizes to make it difficult for anyone to flash factory images.
faizynadim said:
I want that nobody can flash stock rom on my phone normally....i have cerberus installed as root and if any theif can install firmware so that is useless and theif can enjoy using my phone...so i want to change partition sizes to make it difficult for anyone to flash factory images.
Click to expand...
Click to collapse
Speaking from my humble (and maybe ignorant) opinion,
I had a few experiences modifying partitions from other devices in the past (i did it no more than 3-4 times), i can say that when you flash a full stock factory image, normally, all the partitions recover his original sizes and formats.
All the devices that i modified included the General Partition Table (gpt.bin) file and the FSTAB config instructions into his full factory images, and from what i saw on the G4 plus, it includes these files too.
Here you have the complete partition table list taken from my G4 plus running 7.0 (NPJS25.93-14-4).
ohhh thanks ?

Encrypt / not Encrypt data?

Pros and cons of having an encrypted data partition.
Keeping in mind you're going to have TWRP running on recovery.
I'm assuming if you're planning on switching roms in the future even though you're on stock oxygen right now you should move to a decrypted /data partition so you can flash different roms in the future.
Some custom ROMs seem to require an encrypted data partition. That may become standard or not. Depends.
vortex-5 said:
Pros and cons of having an encrypted data partition.
Keeping in mind you're going to have TWRP running on recovery.
I'm assuming if you're planning on switching roms in the future even though you're on stock oxygen right now you should move to a decrypted /data partition so you can flash different roms in the future.
Click to expand...
Click to collapse
I think it's depend on what you need to do.. or better in which rom do you want to install
So I know you can go from not encrypted to encrypted while the OS is online can you do a similar thing form encrypted to decrypted? Or are we talking about a wipe to get data back to decrypted.
vortex-5 said:
So I know you can go from not encrypted to encrypted while the OS is online can you do a similar thing form encrypted to decrypted? Or are we talking about a wipe to get data back to decrypted.
Click to expand...
Click to collapse
Decrypting will wipe all your data including internal storage. That's why it is such a PITA
Pwnycorn said:
Decrypting will wipe all your data including internal storage. That's why it is such a PITA
Click to expand...
Click to collapse
I guess that answers the question I'll start decrypted then.

A and B partitions

So on the partitions our phone boots normally from partition A correct? When we flash new kernels/ROMs which partition gets flashed? And is there a way to switch between the two? Sorry for the questions I'm just trying to figure everything out before I jump into a new phone and rooting, unlocking and flashing.
majortaylor said:
So on the partitions our phone boots normally from partition A correct? When we flash new kernels/ROMs which partition gets flashed? And is there a way to switch between the two? Sorry for the questions I'm just trying to figure everything out before I jump into a new phone and rooting, unlocking and flashing.
Click to expand...
Click to collapse
When you do OTA updates partition is changed to other one..you can change partition in TWRP.. but remember it will have previous oxygenos version
So essentially were dual booting so to speak
majortaylor said:
So essentially were dual booting so to speak
Click to expand...
Click to collapse
Not really. There is only a single data partition, so if you try to have different OS on each slot then you will have problems because all of the data may not be compatible.
Sent from my crosshatch using XDA Labs
So when flash in twrp should I worry about with partition I'm flashing too? Or does it even matter?
majortaylor said:
So when flash in twrp should I worry about with partition I'm flashing too? Or does it even matter?
Click to expand...
Click to collapse
TWRP will flash/install to the "current" partition.
Do:
Code:
> adb shell
> getprop | grep slot
This will show what the current boot slot is "_a" or "_b".
In principle you could dual boot ... but there is only one data partition !!! So if might be that your data partition is not compatible with one of both.
I am using dual boot. Slot _a contains the original OTA 9.0.7; slot _b contains a debloated version with additions for pixel functionality. I use _b as daily driver, but if something goes wrong as a result of my patching on _b, I can quickly switch to _a and have a working phone.
The data partition is compatible in this case.
You can switch between _a or _b in TWRP.
So, if I have my stock ROM on slot A and want to flash Pixel Experience to Slot B, will data partition be compatible ?
Adiker said:
So, if I have my stock ROM on slot A and want to flash Pixel Experience to Slot B, will data partition be compatible ?
Click to expand...
Click to collapse
Nope.

OP6T partion A/B

Hello,
I read about partition A/B, but I would like to have more insight some points are not really clear in my head.
My OP6T is rooted on partition B, everything works fine on this partition
On partition A, It automatically boot into recovery
How can I have a fresh install on both partition ?
Does I have to root both partition ?
You don't have to root both partitions, your second partition is probably blank, you can flash a rom to that partition or just let it be, its not a must have for a working device and generally when you root magisk inserts intself into both partitions.
Dark Nightmare said:
You don't have to root both partitions, your second partition is probably blank, you can flash a rom to that partition or just let it be, its not a must have for a working device and generally when you root magisk inserts intself into both partitions.
Click to expand...
Click to collapse
Ok, thank you for quick answer.
how do you flash a rom only on one partition ?
when you wipe in TWRP, does it wipe both or only one partition ?
I would like to have both partition at the same stage of update in case one get broken.
It is possible to make a copy of one partition to the other ?
Soujyu51 said:
Ok, thank you for quick answer.
how do you flash a rom only on one partition ?
when you wipe in TWRP, does it wipe both or only one partition ?
I would like to have both partition at the same stage of update in case one get broken.
It is possible to make a copy of one partition to the other ?
Click to expand...
Click to collapse
Well the whole point of two partitions is to have one in the previous state if an update breaks the current one...
You can flash one of the fastboot roms or full zips available in the general section, but you may have to modify the zip files to only flash to a single slot as the zips currently flash to both slots.
Dark Nightmare said:
Well the whole point of two partitions is to have one in the previous state if an update breaks the current one....
Click to expand...
Click to collapse
that's my point, I want to copy my partition B to my partition A, then modify one or the other, for a period they will be at the same state but this will rapidly change
Dark Nightmare said:
You can flash one of the fastboot roms or full zips available in the general section, but you may have to modify the zip files to only flash to a single slot as the zips currently flash to both slots.
Click to expand...
Click to collapse
is it possible to wipe everything and make a fresh install on both ?
Soujyu51 said:
is it possible to wipe everything and make a fresh install on both ?
Click to expand...
Click to collapse
use fastboot rom.
dieandromeda said:
use fastboot rom.
Click to expand...
Click to collapse
I will need a bit more information please xD
Soujyu51 said:
I will need a bit more information please xD
Click to expand...
Click to collapse
Only system / boot are concerned by the slot organization. Read general texts and tutorials about that and fastboot use. Everything needed is on the internet.
Striatum_bdr said:
Only system / boot are concerned by the slot organization. Read general texts and tutorials about that and fastboot use. Everything needed is on the internet.
Click to expand...
Click to collapse
Thank you very much that is a big help in my questionning
I followed this
https://forum.xda-developers.com/oneplus-6t/how-to/rom-stock-fastboot-roms-oneplus-6t-t3862516
and use this one flash-all.bat
it boot on both partition
Thank you
Thanks!
It solved my problems

Which order to flash files, decrypt, firmware, ROM etc

I have following files
Decrypt
Firmware
Rom
Gapps
Magisk
SuperSU
In which order I must flash it
What is use of those files
What if I miss any of that file flashing
If I want to take back up from TWRP which section I should take backup
What to do to backup IMEI and other important stuff, can we get it back if we do not have back up
bump !
same issue.
after flashing havoc pie and gapps
it goes into blank screen and nothing happens.
Don't know why is this happening and seems like max pro m1 xda threads are dead,nobody replies anymore.
made big mistake buying this device in this flipkart sale
akhil17kr said:
bump !
same issue.
after flashing havoc pie and gapps
it goes into blank screen and nothing happens.
Don't know why is this happening and seems like max pro m1 xda threads are dead,nobody replies anymore.
made big mistake buying this device in this flipkart sale
Click to expand...
Click to collapse
bro the havoc OS in not working properly the problem came from your selected os not mobile phone , i'm also using asus max M1 , i used 2 months back i change my stock os to havoc then it will oning the display while i'm getting in come call after few days my mobile is bricked due to havoc os the i chaned my os havoc to anothe os . after changing my os instead of python . now my mobile is running perfectly with out any lags
skyh3ck said:
I have following files
Decrypt
Firmware
Rom
Gapps
Magisk
SuperSU
In which order I must flash it
What is use of those files
What if I miss any of that file flashing
If I want to take back up from TWRP which section I should take backup
What to do to backup IMEI and other important stuff, can we get it back if we do not have back up
Click to expand...
Click to collapse
Decrypt is only required for stock rom, unless otherwise mentioned.
1) firmware
2) rom
3) magisk/SuperSU
4) gapps
5) decrypt
To flash decrypt, go back and mount vendor then flash decrypt otherwise your data will be encrypted and the only way to decrypt is to delete all of your data.
Having a backup of efs partition (imei) is always a good idea.
farhanshaikh671 said:
Decrypt is only required for stock rom, unless otherwise mentioned.
1) firmware
2) rom
3) magisk/SuperSU
4) gapps
5) decrypt
To flash decrypt, go back and mount vendor then flash decrypt otherwise your data will be encrypted and the only way to decrypt is to delete all of your data.
Having a backup of efs partition (imei) is always a good idea.
Click to expand...
Click to collapse
do you know anything about f2fs partition ? is it recommend to use in 2019 ?
Heard good things about it and want to use it but some bad things like quicker data corruption and slower data transfer speed after year or so makes me worried, share if you know anything.
akhil17kr said:
do you know anything about f2fs partition ? is it recommend to use in 2019 ?
Heard good things about it and want to use it but some bad things like quicker data corruption and slower data transfer speed after year or so makes me worried, share if you know anything.
Click to expand...
Click to collapse
I am currently using f2fs on havoc. Personally, I don't see much of a difference compared to ext4. Gamers will know better.

Categories

Resources