What is slot a / slot b? - Moto G7 Plus Questions & Answers

Hi, I´ll soon get a G7 plus and want to install LineageOS.
The install howto mentions "slot a/b" and a copy-partitions zip file.
Is slot a and slot b just another term for partition? Are these slots just 2 partitions on that device?
Thanks

Related

Some help with Dual Boot

Finaly i find a way to make phone to boot from SD (Android 5.0.2)...but i need a app (or recovery script) to swith with Internal Rom..
Any can help me?
Done..I find a way. I flash boot.img for internal/external (if i need internal i flash internal, if i need external i flash external)
Use Internal with Android 4.4.4 and External with Android 5.0.2
il3gal said:
Finaly i find a way to make phone to boot from SD (Android 5.0.2)...but i need a app (or recovery script) to swith with Internal Rom..
Any can help me?
Done..I find a way. I flash boot.img for internal/external (if i need internal i flash internal, if i need external i flash external)
Use Internal with Android 4.4.4 and External with Android 5.0.2
Click to expand...
Click to collapse
Can you please explain what you did? You are the first person Ive read about who enabled dual boot for the i9305! AND EVEN WITH LOLLIPOP:laugh:
il3gal said:
Finaly i find a way to make phone to boot from SD (Android 5.0.2)...but i need a app (or recovery script) to swith with Internal Rom..
Any can help me?
Done..I find a way. I flash boot.img for internal/external (if i need internal i flash internal, if i need external i flash external)
Use Internal with Android 4.4.4 and External with Android 5.0.2
Click to expand...
Click to collapse
How? can you make a tutorial for the dual boot process?
Sorry about that but i dont now so much about android. I find blocks for SD Card and i modify boot.img (for external rom)
I explain on large.
Legend:
iBoot = Internal Boot.img
eBoot = External Boot.img
First time do a full backup on sdcard and rom. (i make from recovery)
1. Make a backup on iBoot from Terminal: dd if=/dev/block/platform/dw_mmc/by-name/BOOT of=/sdcard/iBoot.img
2. (i mount sdcard from recovery to partitioning) Make a 3 other partition (i use MiniTool) for system/cache/data
First partiton is SD CARD (fat32) (i split from here 7gb..i have sd 16gb)
Second is a primary ext4 partition for system..i put 1,5gb
Third is a primary ext4 partition for cache..i put 800mb
And last is a primary ext4 partition for data..i put free remaining..~4gb
3. On External Rom, need to unpack boot.img and go to fstab. file to replace:
/dev/block/platform/dw_mmc/by-name/SYSTEM to /dev/block/mmcblk1p2
/dev/block/platform/dw_mmc/by-name/CACHE to /dev/block/mmcblk1p3
/dev/block/platform/dw_mmc/by-name/USERDATA to /dev/block/mmcblk1p4
and repack boot.img
(and make a copy on desktop like eBoot.img) put back on archive and go to META-INF\com\google\android\updater-script and edit ALL line
/dev/block/platform/dw_mmc/by-name/SYSTEM to /dev/block/mmcblk1p2
/dev/block/platform/dw_mmc/by-name/CACHE to /dev/block/mmcblk1p3
/dev/block/platform/dw_mmc/by-name/USERDATA to /dev/block/mmcblk1p4
save..sign archive
4. make 2 archives with iBoot.img and eBoot.img (to switch bethen need a normal flash iBoot or eBoot) (i put 1 archive in attachament for eBoot...for example)(for switch rom need to flash boot.img for Internal or External rom)
5. Flash External Rom (with meta and boot.img changed)
6. Reboot..wait to external rom make files (data files and others)
7. If you want to change rom, enter in recovery and flash iBoot (for internal) and eBoot (for external).
I use 4.4.4 (AMCHA Rom KK for i9305) (for internal ..and this is rom for daily)
And 5.0.2 (NamelessROM 2.0 [BETA] [20150106][Blazing Fast]) (on external..temporary)
I dont now if it work with all rom
I'm not developer
If you dont now how unpack/repack boot.img or sign a zip file..search on google, dont ask me about this
I'm realy happy if a developers was extend this and make a Kernel for this (or App)
i'm inspire from http://forum.xda-developers.com/showthread.php?t=2639112
Sorry for english...And i dont now if this method works for everybody.
edit: Dont forget to unmount /system /data /cache partition before flash ExternalROM.
Thanks for the tutorial, I will try to reproduce the steps when I'm free. Don't worry your English is comprehensible.
LucasBass said:
Thanks for the tutorial, I will try to reproduce the steps when I'm free. Don't worry your English is comprehensible.
Click to expand...
Click to collapse
For some reason if flash eBoot and use External Rom..and you want to go back on Internal Rom..when flash iBoot and restart phone..some time was stuck in bootloader..for solve this (temporary i think), go back in cwm..flash again iBoot, go to Advanced and Reboot in CWM..after phone reboot in cwm, press Reboot devices (normaly)..i dont now why is this problem
other thing is: you can flash without problem other rom on internal. (i try today to flash again 4.4.4). external not affected BUT after flash, need to make backup on iBoot ..i dont now why (because i flash same rom with same configuration)..
Now i use on external: Resurrection_Remix_LP_v5.3.0-20150119-i9305.zip and it works grate
I like people who like try new things . If you need help or you stuck , pm me.
Good luck
Hehe
You mean, you did it as well? and you will try to write it down. Or you will start trying.
I have only once repartioned something before, so I'll wait for good instructions.
Uberharm said:
You mean, you did it as well? and you will try to write it down. Or you will start trying.
I have only once repartioned something before, so I'll wait for good instructions.
Click to expand...
Click to collapse
I'm sorry about instructions..but i search on google all info for try Dual Boot...i dont speak english because i'm from Romania.
I try to explain how i make Dual Boot (manualy) for developers...to make this option much easy..
Someone really needs to make a script! I think this could be implemented in a custom recover. All we need now is just a complete step by step guide.
Thanks in advance to the developer who's going to write this down! ☺

【mod】【dual boot】 lollipop/kitkat

WARNING - I AM NOT RESPONSIBLE FOR WHATSOEVER DAMAGE CAUSED TO YOU OR YOUR DEVICE OR YOUR SD CARD ITS YOU WHO IS TAKING RISK SO YOU WILL BE RESPONSIBLE FOR THE SAME ,THIS IS A POTENTIALLY RISKY THING SO BEWARE THAT YOU DONT DO ANYTHING OUT OF GUIDE BY VIRTUE OF YOUR DISCRETION.
Note :- This guude may at times may frustrate you but keep patience as its fruits will b sweet
Note2 :- Sd card recommended is class 10 and not class 6 as per my experience on lollipop this os require high io capabilities.
Note3:-This guide is made around twrp recovery so philz lovers may have problem with this ,sorry for that but cant do anything about that, a addition in custom twrp will be that you can backup/restore NVRAM AND OEM PARTITIONS.
So now lets start
.1.First of all we start with partitioning sdcard;
Warning : backup your sdcard before partitioning.
(i) Partition the sdcard in 4 parts (for this you can use Gparted(Ubuntu) or mini partition tool (windows))
(ii)For 32gb sdcard (my partition sizes)
P1 size 24.6 GB filesystem fat32 To be used as mass storage(Primary partition)
P2 size 900 MB filesystem EXT4 To be used as /system(Primary partition)
P3 size 4 GB filesystem EXT4 To be used as /data (Primary partition)
P4 size 150 MB filesystem EXT4 To be used as /cache (Primary partition)
Note : you can vary these sizes according to your need ad storage constraints but no no /system /data /cache shall b less than 800mb 1gb 70mb respectively.
(iii) Now comes rom installing part;
Note : Prefer to keep stable ROMs like stock kk or cm11 on internal and bleeding edge ROMs like lollipop on sd.
(a) if you installing lollipop 5.1 By backup then ,
- using philz restore it, guve it first boot;
-switch to official twrp backup the /system /data /cache and name tge backup as "lollipop"
-Install whichever rom you want in internal storage (preferably kk);
-Now switch to custom TWRP recovery (download link given in end of this post);
-paste in the lollipop backup "boot" backup(boot.emmc.win) and (download link given in end of this post);
(b)if you are installing lollipop rom by zip then
-edit updater script of the rom's zip and change the partition address
Open updater script with notepad++
Find - mmcblk0p14
Replace with - mmcblk1p2
Find - mmcblk0p16
Replace with - mmcblk1p3
Find - mmcblk0p15
Replace with - mmcblk1p4
-save it;
-repack tge zip;
-Besure that you are on custom TWRP
-FLASH ZIP
-done.
Congratulations you have dual booted your phone
(iv)To switch between the ROMs you just have to to flash /boot partition
-for booting into sd's rom (lollipop) restore lollipop backup's boot;
-For booting into emmc's rom flash that rom's boot.imh
(For convenience and ease backup emmc rom's boot by twrp and then whenever you want to switch just restore emmc's or sd's(given in download link) rom boot backup as the caee may be reboot into system)
FAQs
Q.Why kk on internal and lollipop on sd
Ans. So that on one hand you can live on bleeding edge while not compromising stability.
Q Is there any danger to my sd card?
Ans. Yes, it may be corrupted( but its rare).
Dowload links
"Boot" backup
https://mega.co.nz/#!M55UBT4K!_qaXRcIxEs5yiP7wRzGJAbRRNav6YV3XZIcWni3C0pg
Custom TWRP
https://mega.co.nz/#!h5QnEahb!A9fGbws11yd27vh9gBz3X9HCbJYn6PHLdMFgYeAJEPw
Suppose I don't want dual boot and I wan't my lollipop's /data partition only to be on the SD card with other partitions on the Internal memory, will I be able to do it by changing the updater script as "Find - mmcblk0p16
Replace with - mmcblk1p3" from your guide and keeping the other partitions unchanged?? Or do I have to do other changes?? Thanks in advance...
Massive one ....much waited for this
varunrocks17 said:
WARNING - I AM NOT RESPONSIBLE FOR WHATSOEVER DAMAGE CAUSED TO YOU OR YOUR DEVICE OR YOUR SD CARD ITS YOU WHO IS TAKING RISK SO YOU WILL BE RESPONSIBLE FOR THE SAME ,THIS IS A POTENTIALLY RISKY THING SO BEWARE THAT YOU DONT DO ANYTHING OUT OF GUIDE BY VIRTUE OF YOUR DISCRETION.
Note :- This guude may at times may frustrate you but keep patience as its fruits will b sweet
Note2 :- Sd card recommended is class 10 and not class 6 as per my experience on lollipop this os require high io capabilities.
Note3:-This guide is made around twrp recovery so philz lovers may have problem with this ,sorry for that but cant do anything about that, a addition in custom twrp will be that you can backup/restore NVRAM AND OEM PARTITIONS.
So now lets start
.1.First of all we start with partitioning sdcard;
Warning : backup your sdcard before partitioning.
(i) Partition the sdcard in 4 parts (for this you can use Gparted(Ubuntu) or mini partition tool (windows))
(ii)For 32gb sdcard (my partition sizes)
P1 size 24.6 GB filesystem fat32 To be used as mass storage(Primary partition)
P2 size 900 MB filesystem EXT4 To be used as /system(Primary partition)
P3 size 4 GB filesystem EXT4 To be used as /data (Primary partition)
P4 size 150 MB filesystem EXT4 To be used as /cache (Primary partition)
Note : you can vary these sizes according to your need ad storage constraints but no no /system /data /cache shall b less than 800mb 1gb 70mb respectively.
(iii) Now comes rom installing part;
Note : Prefer to keep stable ROMs like stock kk or cm11 on internal and bleeding edge ROMs like lollipop on sd.
(a) if you installing lollipop 5.1 By backup then ,
- using philz restore it, guve it first boot;
-switch to official twrp backup the /system /data /cache and name tge backup as "lollipop"
-Install whichever rom you want in internal storage (preferably kk);
-Now switch to custom TWRP recovery (download link given in end of this post);
-paste in the lollipop backup "boot" backup(boot.emmc.win) and (download link given in end of this post);
(b)if you are installing lollipop rom by zip then
-edit updater script of the rom's zip and change the partition address
Open updater script with notepad++
Find - mmcblk0p14
Replace with - mmcblk1p2
Find - mmcblk0p16
Replace with - mmcblk1p3
Find - mmcblk0p15
Replace with - mmcblk1p4
-save it;
-repack tge zip;
-Besure that you are on custom TWRP
-FLASH ZIP
-done.
Congratulations you have dual booted your phone
(iv)To switch between the ROMs you just have to to flash /boot partition
-for booting into sd's rom (lollipop) restore lollipop backup's boot;
-For booting into emmc's rom flash that rom's boot.imh
(For convenience and ease backup emmc rom's boot by twrp and then whenever you want to switch just restore emmc's or sd's(given in download link) rom boot backup as the caee may be reboot into system)
FAQs
Q.Why kk on internal and lollipop on sd
Ans. So that on one hand you can live on bleeding edge while not compromising stability.
Q Is there any danger to my sd card?
Ans. Yes, it may be corrupted( but its rare).
Click to expand...
Click to collapse
http://www.amazon.in/gp/aw/d/B00L543E3K?qid=1426133570&sr=8-5&vs=1
Can i use this card in canvas a1 for dual boot help me i want to buy or recommend any other
sauron_sh said:
http://www.amazon.in/gp/aw/d/B00L543E3K?qid=1426133570&sr=8-5&vs=1
Can i use this card in canvas a1 for dual boot help me i want to buy or recommend any other
Click to expand...
Click to collapse
I will recommend sandisk ultra as m using it...but abovementioned also seems to b good
xdaaritra said:
Suppose I don't want dual boot and I wan't my lollipop's /data partition only to be on the SD card with other partitions on the Internal memory, will I be able to do it by changing the updater script as "Find - mmcblk0p16
Replace with - mmcblk1p3" from your guide and keeping the other partitions unchanged?? Or do I have to do other changes?? Thanks in advance...
Click to expand...
Click to collapse
No bro a nw boot.IMG is needed for that btw i have tried that n lost my strontium 466x 32gb as it was corrupted.... so its very risly
D2sd is unstable n very risky
Can I dual boot 2 lollipop roms?
akhilnarang said:
Can I dual boot 2 lollipop roms?
Click to expand...
Click to collapse
Yes u can jus install a general recovery n install/restore a lollipop rom on emmc......but u can install only stock lollipop on sd
More instructions
I am very interested in this thread, I think this is the greatest thread that I can find on Android One Cross-Device General.
But because I still noobs, I had trouble for following the instructions and always stuck in the last step on how to restore the .img file of kk(internal) and Lollipop(sd). I think this thread is too simple and less can be understood for a noobs like me.
So, would you like to add more explanations to help me follow the instructions so that I can make my phone into dual boot mod.
thanks in advance..
userdata only in SD card
userdata in SD card is working and im using it now. I'm on Marshmallow latest.
???you need to edit fstab in boot.img.

i9001 partition assignments

Hello. Can anyone explain me a couple of things? I wanted to flash Cyanogenmod 11 on my S Plus. But I failed. There was a couple of instructions which I dont understand. I mean these:
-Reboot inside CWM or TWRP recovery which not includesnew partition assignments
-Perform a nandroid backup inside external sdcard (inside TWRP, Backup -> Select all the partitions -> Select Micro SD card as storage -> Swipe)
-Install the new TWRP recovery that includes new partition assignments
Click to expand...
Click to collapse
So, my quastions are:
1. What does mean partition assignment?
2. How do I know, which recovery has assignment and which doesn't?
3. What exactly do I need to do with assignments to make my flashing go the right way?
4. When I tried to flash CM11, after first boot I got a message that ENCRYPTION was UNSUCCESSFUL. May it be a result of because I did not do anything to those assigments?
5. Do I have to deal with assignments if there is nothing I want to back up before flashing?

4GB app storage Patch for gionee m2 8 GB model

4 GB app storage for Gionee M2 / Qmobile M90 / Walton Primo HM
what this patch would do ?
It will solve the problem of low app storage i.e 1.78 GB permanently and you will have 4GB app storage and 1.78 GB internal SD permanently . once you have flashed this patch according to the instructions given below it wont be affected by flashing roms or mods unless you flash your phone with SP tools , even with sp tools you can keep this layout by just replacing the files given in firmware with the files (scatter EBR1 , EBR2 given in Zip file) be sure to check firmware upgrade or you may see PMT changed error.
Which model is this patch for ?
It is for the following
Gionee m2 8GB
Qmobile M90
Walton Primo HM 8 GB
Which model is not supported?
Gionee m2 4GB
Procedure
1) Backup current ROM using CTR or TWRP
2) Download the file (place in external SD otherwise this script will fail as internal SD and data will need to be wiped after this MOD)
3) Flash with TWRP / CTR
4) Restore the backup made with recovery (Crucial, other wise use recovery to advance wipe data and internal storage to make these partitions ready to mount in android OS)
5) Done
6) If you need to flash stock rom with sp-tool and want to retain this setup just replace these EBRs in stock Firmware and use firmware upgrade option (otherwise you may see PMT changed error)
Link for the patch is below
https://mega.nz/#!jU5AybKA!mqlVZl9UjUGlppB89UDT-wAWNmId_PSBzMdN5_Ah2I0
Muhammad Faraz said:
4 GB app storage for Gionee M2 / Qmobile M90
Procedure
1) Backup current ROM using CTR or TWRP
2) Download the file (place in external SD otherwise this script will fail as internal SD and data will need to be wiped after this MOD)
3) Flash with TWRP / CTR
4) Restore the backup made with recovery (Crucial, other wise use recovery to advance wipe data and internal storage to make these partitions ready to mount in OS)
5) Done
6) If you need to flash stock rom with sp-tool and want to retain this setup just replace these EBRs in stock Firmware and use firmware upgrade option (otherwise you may see PMT changed error)
Link for the patch is below
https://mega.nz/#!jU5AybKA!mqlVZl9UjUGlppB89UDT-wAWNmId_PSBzMdN5_Ah2I0
Click to expand...
Click to collapse
I have installed resurrection remix in my device and after that 4 GB of my 8 GB phone has been unmounted. Tried to fix that with your file it didn't worked. Tell me how can i fix that.
Sanchayan De said:
I have installed resurrection remix in my device and after that 4 GB of my 8 GB phone has been unmounted. Tried to fix that with your file it didn't worked. Tell me how can i fix that.
Click to expand...
Click to collapse
This post is not about fixing internal storage not mounting , please search relevant posts however decompile framework.res.apk and replace storage list.xml from working cm based rom . also take boot img from the rom in which storages mount properly
Would this work for the 4gb model?
It worked for my 8gb but my GF has the 4gb
eokwuanga said:
Would this work for the 4gb model?
It worked for my 8gb but my GF has the 4gb
Click to expand...
Click to collapse
No it wont because of practical limitation of internal memory , if you see the partition size of her phone she will have almost 700 MB of internal SD , so swapping would not be possible as internal sd is already smaller than app storage
eokwuanga said:
Would this work for the 4gb model?
It worked for my 8gb but my GF has the 4gb
Click to expand...
Click to collapse
how to install this patch..

How To Guide Flash/Test GSIs without wiping system

I've been using DSU Sideloader on my main device for a while. The main advantage is being able to flash and test GSIs without having to wipe partitions. You can simply switch back to your main system after rebooting.
It's very time consuming to test out GSIs for the SM-X200 with the state of TWRP where you cannot make backups and restore. So this is a second method that can be used that will save loads of time and frustration.
A few notes:
Lineage OS must be installed. It's not compatible with stock OneUI, at least for this device.
Install the system module through Magisk if you are having trouble with the APK version.
If you don't have much internal storage left, you can select a external SD card if you have one. Also transfer GSI img files over to there as well.
https://github.com/VegaBobo/DSU-Sideloader

Categories

Resources