I'm looking for a solution to get Root (Magisk) to work.
On my other devices it was possible only to boot TWRP, make a backup of boot.img, patch it later with Magisk Manager and install the patched_boot.img. This is the easiest way to get OAT to work (only flash back the original boot.img)
I've found a Root solution that should work on Motorola One AND One Power here:
https://tabcult.com/2018/09/15/how-...and-root-motorola-one-and-motorola-one-power/
but I couldn't get it to work.
Because it looks that TWRP for One and One Power should be the same I looked for newer TWRPs and found them here: https://twrp.me/motorola/motorolamotoonepower.html
but it doesn't work either...
Or:
Does anybody has (or can extract) the original Recovery? Without this I wouldn't try to install any twrp...
Motorola One & One Power is built on different socs and have different screen res, so TWRP for One Power won't work for us.
I tried to locate the partitions, but I couldn't find any "recovery"-partition.
I'm sure it's somewhere...but where?
Code:
deen_sprout:/ $ ls -al dev/block/platform/soc/7824900.sdhci/by-name
total 0
drwxr-xr-x 2 root root 1280 1970-02-02 13:53 .
drwxr-xr-x 4 root root 1360 1970-02-02 13:53 ..
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 DDR -> /dev/block/mmcblk0p25
lrwxrwxrwx 1 root root 20 1970-02-02 13:53 aboot_a -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 aboot_b -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 apdp -> /dev/block/mmcblk0p48
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 boot_a -> /dev/block/mmcblk0p40
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 boot_b -> /dev/block/mmcblk0p41
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 carrier -> /dev/block/mmcblk0p37
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 cid -> /dev/block/mmcblk0p34
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 cmnlib64_a -> /dev/block/mmcblk0p13
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 cmnlib64_b -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 cmnlib_a -> /dev/block/mmcblk0p11
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 cmnlib_b -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 20 1970-02-02 13:53 devcfg_a -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 20 1970-02-02 13:53 devcfg_b -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 dpo -> /dev/block/mmcblk0p50
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 dsp_a -> /dev/block/mmcblk0p23
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 dsp_b -> /dev/block/mmcblk0p24
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 dto_a -> /dev/block/mmcblk0p42
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 dto_b -> /dev/block/mmcblk0p43
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 frp -> /dev/block/mmcblk0p33
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 fsc -> /dev/block/mmcblk0p21
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 fsg_a -> /dev/block/mmcblk0p30
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 fsg_b -> /dev/block/mmcblk0p31
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 hw -> /dev/block/mmcblk0p54
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 keymaster_a -> /dev/block/mmcblk0p15
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 keymaster_b -> /dev/block/mmcblk0p16
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 kpan -> /dev/block/mmcblk0p39
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 logo_a -> /dev/block/mmcblk0p35
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 logo_b -> /dev/block/mmcblk0p36
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 logs -> /dev/block/mmcblk0p47
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 metadata -> /dev/block/mmcblk0p38
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 misc -> /dev/block/mmcblk0p44
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 modem_a -> /dev/block/mmcblk0p19
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 modem_b -> /dev/block/mmcblk0p20
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 modemst1 -> /dev/block/mmcblk0p28
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 modemst2 -> /dev/block/mmcblk0p29
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 mota -> /dev/block/mmcblk0p45
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 msadp -> /dev/block/mmcblk0p49
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 oem_a -> /dev/block/mmcblk0p56
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 oem_b -> /dev/block/mmcblk0p57
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 padA -> /dev/block/mmcblk0p53
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 persist -> /dev/block/mmcblk0p32
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 prov_a -> /dev/block/mmcblk0p17
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 prov_b -> /dev/block/mmcblk0p18
lrwxrwxrwx 1 root root 20 1970-02-02 13:53 rpm_a -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 20 1970-02-02 13:53 rpm_b -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 20 1970-02-02 13:53 sbl1_a -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 20 1970-02-02 13:53 sbl1_b -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 sp -> /dev/block/mmcblk0p55
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 ssd -> /dev/block/mmcblk0p22
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 syscfg -> /dev/block/mmcblk0p46
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 system_a -> /dev/block/mmcblk0p60
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 system_b -> /dev/block/mmcblk0p61
lrwxrwxrwx 1 root root 20 1970-02-02 13:53 tz_a -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 20 1970-02-02 13:53 tz_b -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 userdata -> /dev/block/mmcblk0p62
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 utags -> /dev/block/mmcblk0p26
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 utagsBackup -> /dev/block/mmcblk0p27
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 vbmeta_a -> /dev/block/mmcblk0p51
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 vbmeta_b -> /dev/block/mmcblk0p52
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 vendor_a -> /dev/block/mmcblk0p58
lrwxrwxrwx 1 root root 21 1970-02-02 13:53 vendor_b -> /dev/block/mmcblk0p59
deen_sprout:/ $
I have found the original Firmware for my device:
https://mirrors.lolinet.com/firmwar...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
There is no recovery in it
I tried to patch the boot.img with magisk but the patched_boot.img is much smaller, that doesn't look like on my other devices.
There are many questions and it seems to difficult for me
Sylvia said:
I have found the original Firmware for my device:
https://mirrors.lolinet.com/firmwar...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
There is no recovery in it
I tried to patch the boot.img with magisk but the patched_boot.img is much smaller, that doesn't look like on my other devices.
There are many questions and it seems to difficult for me
Click to expand...
Click to collapse
Yes, I also noticed that the firmware doesn't contain any recovery image, so yeah..it's kind of strange. No image and no partition. But I've booted to stock recovery, so it's there
So, it turns out that devices with A/B partitions don't have a separate recovery partition. It's built in to boot image.
https://www.xda-developers.com/how-a-b-partitions-and-seamless-updates-affect-custom-development-on-xda/
Thank you, very interesting article. So I don't have to look for it anymore.
Seems that we have wait for a TWRP, hopefully there are many people who will ask for it :fingers-crossed:
When I have time I try to compile a TWRP.
If someone wants to try it:
https://www.xda-developers.com/compile-twrp-for-your-device/
Related
Here is the Partition layout for the padfone x / s
lrwxrwxrwx root root 1970-01-05 19:54 DDR -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 1970-01-05 19:54 aboot -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1970-01-05 19:54 abootbak -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 1970-01-05 19:54 abootdebug -> /dev/block/mmcblk0p33
lrwxrwxrwx root root 1970-01-05 19:54 asusdata -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 1970-01-05 19:54 asusdata2 -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 1970-01-05 19:54 asusfw -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 1970-01-05 19:54 asusgpt -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 1970-01-05 19:54 asusgpt1 -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 1970-01-05 19:54 asusgpt2 -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 1970-01-05 19:54 asusgpt3 -> /dev/block/mmcblk0p31
lrwxrwxrwx root root 1970-01-05 19:54 asusgpt4 -> /dev/block/mmcblk0p32
lrwxrwxrwx root root 1970-01-05 19:54 asuskey -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 1970-01-05 19:54 asuskey2 -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 1970-01-05 19:54 asuskey3 -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 1970-01-05 19:54 asuskey4 -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 1970-01-05 19:54 asuskey5 -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 1970-01-05 19:54 boot -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 1970-01-05 19:54 cache -> /dev/block/mmcblk0p37
lrwxrwxrwx root root 1970-01-05 19:54 dbi -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1970-01-05 19:54 fsc -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 1970-01-05 19:54 fsg -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 1970-01-05 19:54 gmxt -> /dev/block/mmcblk0p39
lrwxrwxrwx root root 1970-01-05 19:54 misc -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 1970-01-05 19:54 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 1970-01-05 19:54 modemst1 -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 1970-01-05 19:54 modemst2 -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 1970-01-05 19:54 pad -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 1970-01-05 19:54 persist -> /dev/block/mmcblk0p34
lrwxrwxrwx root root 1970-01-05 19:54 recovery -> /dev/block/mmcblk0p35
lrwxrwxrwx root root 1970-01-05 19:54 rpm -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 1970-01-05 19:54 rpmbak -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 1970-01-05 19:54 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1970-01-05 19:54 sbl1bak -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1970-01-05 19:54 ssd -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 1970-01-05 19:54 system -> /dev/block/mmcblk0p38
lrwxrwxrwx root root 1970-01-05 19:54 tombstones -> /dev/block/mmcblk0p36
lrwxrwxrwx root root 1970-01-05 19:54 tz -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 1970-01-05 19:54 tzbak -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 1970-01-05 19:54 userdata -> /dev/block/mmcblk0p40
Hello XDA,
I wanted to know if anyone knows about this "partition" or porting the proprietary command motorola.update_gpt to TWRP.
I know we can flash the gpt.bin via fastboot I know it is more than one actual partition from the output fastboot gives.
I know rsd lite or rsd can flash this as well with filename="gpt.bin" operation="flash" partition="partition"/> from the flashfile.xml contents. This gives me less info to go on as it calls the partition "partition".
When looking into the device I get the list of partitions by name and get no partition called "partition".
lrwxrwxrwx root root 1970-03-28 18:35 DDR -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1970-03-28 18:35 aboot -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1970-03-28 18:35 abootBackup -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 1970-03-28 18:35 boot -> /dev/block/mmcblk0p33
lrwxrwxrwx root root 1970-03-28 18:35 cache -> /dev/block/mmcblk0p42
lrwxrwxrwx root root 1970-03-28 18:35 carrier -> /dev/block/mmcblk0p40
lrwxrwxrwx root root 1970-03-28 18:35 cid -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 1970-03-28 18:35 clogo -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 1970-03-28 18:35 dhob -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 1970-03-28 18:35 factorytune1 -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 1970-03-28 18:35 factorytune2 -> /dev/block/mmcblk0p35
lrwxrwxrwx root root 1970-03-28 18:35 frp -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 1970-03-28 18:35 fsc -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 1970-03-28 18:35 fsg -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 1970-03-28 18:35 hob -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 1970-03-28 18:35 hyp -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 1970-03-28 18:35 hypBackup -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 1970-03-28 18:35 keystore -> /dev/block/mmcblk0p39
lrwxrwxrwx root root 1970-03-28 18:35 kpan -> /dev/block/mmcblk0p36
lrwxrwxrwx root root 1970-03-28 18:35 logo -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 1970-03-28 18:35 logs -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 1970-03-28 18:35 metadata -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 1970-03-28 18:35 misc -> /dev/block/mmcblk0p32
lrwxrwxrwx root root 1970-03-28 18:35 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 1970-03-28 18:35 modemst1 -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 1970-03-28 18:35 modemst2 -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 1970-03-28 18:35 padA -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 1970-03-28 18:35 padB -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 1970-03-28 18:35 padC -> /dev/block/mmcblk0p37
lrwxrwxrwx root root 1970-03-28 18:35 persist -> /dev/block/mmcblk0p31
lrwxrwxrwx root root 1970-03-28 18:35 recovery -> /dev/block/mmcblk0p34
lrwxrwxrwx root root 1970-03-28 18:35 rpm -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 1970-03-28 18:35 rpmBackup -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 1970-03-28 18:35 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1970-03-28 18:35 sec -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 1970-03-28 18:35 sp -> /dev/block/mmcblk0p38
lrwxrwxrwx root root 1970-03-28 18:35 ssd -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 1970-03-28 18:35 system -> /dev/block/mmcblk0p41
lrwxrwxrwx root root 1970-03-28 18:35 tz -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1970-03-28 18:35 tzBackup -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 1970-03-28 18:35 userdata -> /dev/block/mmcblk0p43
lrwxrwxrwx root root 1970-03-28 18:35 utags -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 1970-03-28 18:35 utagsBackup -> /dev/block/mmcblk0p17
Any info would be greatly appreciated. (the answer or where to find it)
Don't quote me on this, but isn't the gpt just a partition table?
magnetboard said:
Don't quote me on this, but isn't the gpt just a partition table?
Click to expand...
Click to collapse
I know that is the case for pc hard-disks and possibly that is what is confusing but I have a gpt.bin (32kb) file that I need to flash. Without this I am not able to update to latest firmware.
I take my question back thanks to SuperR I was able to find the answer I was looking for.
What did SuperR say?
amadorsg1 said:
I take my question back thanks to SuperR I was able to find the answer I was looking for.
Click to expand...
Click to collapse
Hey @amadorsg1 , what was the answer here?
I'm curious because the latest Moto Z update bringts 4 of those update_gpt calls too and fvckih is asking for a gpt update here: https://forum.xda-developers.com/showpost.php?p=77026822&postcount=13
Cheers
Hello everyone. I tell you that one day flashing my oneplus 5 lost the wifi. The MAC address shows me the typical 02: 00: 00: 00: 00: 00 address. The way to fix it is updating the Oreo but I could never do it, it is always in bootloop, I read all the forums and there is no case, do what I always do the same. It happens in many oneplus 5. So I forgot to fix it in that way. The other thing I saw is hundreds of forums with that problem but I could not fix it either, I've been doing it for three months now. What I am trying now is to erase all the partitions except recovery or bootloader but the phone does not start anymore. What I want is to delete all the partitions associated with wifi, delete modem1, modem2, persist, fsg but nothing, I just managed to lose the imei that does not matter to me because I have back up of the efs folder and even the qcn file of the phone. I know it's a lot of work but if someone tells me that they control each partition, I could erase it, load everything from scratch and that's it. Would someone give me a hand so I can fix that damn wifi on the phone ?. Thank you.
--------------------------------------------------------------------------------------------------------------------------------------
drwxr-xr-x 2 root root 1440 1970-05-03 14:23 .
drwxr-xr-x 4 root root 1600 1970-05-03 14:23 ..
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 LOGO -> /dev/block/sde18
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 abl -> /dev/block/sde16
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 ablbak -> /dev/block/sde17
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 apdp -> /dev/block/sde31
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 bluetooth -> /dev/block/sde24
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 boot -> /dev/block/sde19
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 boot_aging -> /dev/block/sde20
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 cache -> /dev/block/sda3
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 cdt -> /dev/block/sdd2
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 cmnlib -> /dev/block/sde27
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 cmnlib64 -> /dev/block/sde29
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 cmnlib64bak -> /dev/block/sde30
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 cmnlibbak -> /dev/block/sde28
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 config -> /dev/block/sda12
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 ddr -> /dev/block/sdd3
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 devcfg -> /dev/block/sde39
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 devinfo -> /dev/block/sde23
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 dip -> /dev/block/sde14
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 dpo -> /dev/block/sde33
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 dsp -> /dev/block/sde11
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 frp -> /dev/block/sda6
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 fsc -> /dev/block/sdf4
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 fsg -> /dev/block/sdf3
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 fw_4g9n4 -> /dev/block/sde45
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 fw_4j1ed -> /dev/block/sde43
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 fw_4t0n8 -> /dev/block/sde46
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 fw_8v1ee -> /dev/block/sde44
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 hyp -> /dev/block/sde5
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 hypbak -> /dev/block/sde6
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 keymaster -> /dev/block/sde25
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 keymasterbak -> /dev/block/sde26
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 keystore -> /dev/block/sda5
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 limits -> /dev/block/sde35
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 logdump -> /dev/block/sde40
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 logfs -> /dev/block/sde37
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 md5 -> /dev/block/sdf5
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 mdtp -> /dev/block/sde15
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 mdtpsecapp -> /dev/block/sde12
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 mdtpsecappbak -> /dev/block/sde13
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 minidump -> /dev/block/sde47
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 misc -> /dev/block/sda4
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 modem -> /dev/block/sde10
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 modemst1 -> /dev/block/sdf1
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 modemst2 -> /dev/block/sdf2
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 msadp -> /dev/block/sde32
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 oem_dycnvbk -> /dev/block/sda7
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 oem_stanvbk -> /dev/block/sda8
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 param -> /dev/block/sda9
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 persist -> /dev/block/sda2
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 pmic -> /dev/block/sde8
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 pmicbak -> /dev/block/sde9
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 recovery -> /dev/block/sde22
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 reserve -> /dev/block/sdd1
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 reserve1 -> /dev/block/sda10
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 reserve2 -> /dev/block/sda11
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 rpm -> /dev/block/sde1
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 rpmbak -> /dev/block/sde2
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 sec -> /dev/block/sde7
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 splash -> /dev/block/sde34
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 ssd -> /dev/block/sda1
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 sti -> /dev/block/sde38
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 storsec -> /dev/block/sde41
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 storsecbak -> /dev/block/sde42
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 system -> /dev/block/sde21
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 toolsfv -> /dev/block/sde36
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 tz -> /dev/block/sde3
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 tzbak -> /dev/block/sde4
lrwxrwxrwx 1 root root 16 1970-05-03 14:23 userdata -> /dev/block/sda13
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 xbl -> /dev/block/sdb1
lrwxrwxrwx 1 root root 15 1970-05-03 14:23 xblbak -> /dev/block/sdc1
I don't know if anyone need it but here it is
Code:
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 bootfail_info -> /dev/block/mmcblk0p48
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 cache -> /dev/block/mmcblk0p42
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 cust -> /dev/block/mmcblk0p52
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 dfx -> /dev/block/mmcblk0p40
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 dto -> /dev/block/mmcblk0p35
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 dts -> /dev/block/mmcblk0p34
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 erecovery_kernel -> /dev/block/mmcblk0p27
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 erecovery_ramdisk -> /dev/block/mmcblk0p28
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 erecovery_vbmeta -> /dev/block/mmcblk0p38
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 erecovery_vendor -> /dev/block/mmcblk0p29
lrwxrwxrwx 1 root root 20 2018-03-16 17:19 fastboot -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 20 2018-03-16 17:19 frp -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 fw_hifi -> /dev/block/mmcblk0p26
lrwxrwxrwx 1 root root 20 2018-03-16 17:19 fw_lpm3 -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 hisitest0 -> /dev/block/mmcblk0p44
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 hisitest1 -> /dev/block/mmcblk0p45
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 hisitest2 -> /dev/block/mmcblk0p46
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 kernel -> /dev/block/mmcblk0p30
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 misc -> /dev/block/mmcblk0p20
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 modem_fw -> /dev/block/mmcblk0p36
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 modem_om -> /dev/block/mmcblk0p18
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 modem_secure -> /dev/block/mmcblk0p17
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 modemnvm_backup -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 20 2018-03-16 17:19 modemnvm_factory -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 modemnvm_img -> /dev/block/mmcblk0p11
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 modemnvm_system -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 modemnvm_update -> /dev/block/mmcblk0p21
lrwxrwxrwx 1 root root 20 2018-03-16 17:19 nvme -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 odm -> /dev/block/mmcblk0p43
lrwxrwxrwx 1 root root 20 2018-03-16 17:19 oeminfo -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 patch -> /dev/block/mmcblk0p47
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 persist -> /dev/block/mmcblk0p16
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 product -> /dev/block/mmcblk0p55
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 ramdisk -> /dev/block/mmcblk0p31
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 recovery_ramdisk -> /dev/block/mmcblk0p32
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 recovery_vbmeta -> /dev/block/mmcblk0p37
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 recovery_vendor -> /dev/block/mmcblk0p33
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 reserved2 -> /dev/block/mmcblk0p22
lrwxrwxrwx 1 root root 20 2018-03-16 17:19 reserved3 -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 reserved4 -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 reserved5 -> /dev/block/mmcblk0p15
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 reserved8 -> /dev/block/mmcblk0p39
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 reserved9 -> /dev/block/mmcblk0p50
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 rrecord -> /dev/block/mmcblk0p49
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 secure_storage -> /dev/block/mmcblk0p13
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 sensorhub -> /dev/block/mmcblk0p25
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 splash2 -> /dev/block/mmcblk0p19
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 system -> /dev/block/mmcblk0p51
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 teeos -> /dev/block/mmcblk0p23
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 trustfirmware -> /dev/block/mmcblk0p24
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 userdata -> /dev/block/mmcblk0p56
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 vbmeta -> /dev/block/mmcblk0p41
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 vendor -> /dev/block/mmcblk0p54
lrwxrwxrwx 1 root root 21 2018-03-16 17:19 version -> /dev/block/mmcblk0p53
lrwxrwxrwx 1 root root 20 2018-03-16 17:19 vrl -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 20 2018-03-16 17:19 vrl_backup -> /dev/block/mmcblk0p2
Join Telegram group if you are willing to test latest stuff.
Greetings everyone. I'm trying to figure out the size of my userdata partition in my new Cubot Nova running Android 8.1 Oreo.
On older devices I managed to do this by running the following commands:
adb shell ls -al /dev/block/platform/bootdevice/by-name --------------> To list my partitions by name and find the actual userdata partition name. In my case, it's /dev/block/mmcblk0p33
Code:
Z:\Android\devices\Cubot Nova\adb platform-tools>adb shell ls -al /dev/block/platform/bootdevice/by-name
total 0
drwxr-xr-x 2 root root 780 2019-11-28 19:47 .
drwxr-xr-x 4 root root 860 2019-11-28 19:47 ..
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 boot -> /dev/block/mmcblk0p25
lrwxrwxrwx 1 root root 20 2019-11-28 19:47 boot_para -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 cache -> /dev/block/mmcblk0p32
lrwxrwxrwx 1 root root 20 2019-11-28 19:47 expdb -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 flashinfo -> /dev/block/mmcblk0p35
lrwxrwxrwx 1 root root 20 2019-11-28 19:47 frp -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 gz1 -> /dev/block/mmcblk0p18
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 gz2 -> /dev/block/mmcblk0p19
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 lk -> /dev/block/mmcblk0p21
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 lk2 -> /dev/block/mmcblk0p22
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 loader_ext1 -> /dev/block/mmcblk0p23
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 loader_ext2 -> /dev/block/mmcblk0p24
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 logo -> /dev/block/mmcblk0p26
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 mcupmfw -> /dev/block/mmcblk0p17
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 md1dsp -> /dev/block/mmcblk0p15
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 md1img -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 20 2019-11-28 19:47 metadata -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 20 2019-11-28 19:47 nvcfg -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 20 2019-11-28 19:47 nvdata -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 nvram -> /dev/block/mmcblk0p20
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 odmdtbo -> /dev/block/mmcblk0p27
lrwxrwxrwx 1 root root 20 2019-11-28 19:47 para -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 23 2019-11-28 19:47 preloader_a -> /dev/block/mmcblk0boot0
lrwxrwxrwx 1 root root 23 2019-11-28 19:47 preloader_b -> /dev/block/mmcblk0boot1
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 proinfo -> /dev/block/mmcblk0p13
lrwxrwxrwx 1 root root 20 2019-11-28 19:47 protect1 -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 protect2 -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 20 2019-11-28 19:47 recovery -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 sdrpmb -> /dev/block/mmcblk0p34
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 sec1 -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 seccfg -> /dev/block/mmcblk0p11
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 spmfw -> /dev/block/mmcblk0p16
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 system -> /dev/block/mmcblk0p31
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 tee1 -> /dev/block/mmcblk0p28
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 tee2 -> /dev/block/mmcblk0p29
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 userdata -> /dev/block/mmcblk0p33
lrwxrwxrwx 1 root root 21 2019-11-28 19:47 vendor -> /dev/block/mmcblk0p30
Then I would run tune2fs -l /dev/block/mmcblk0p33 in the shell to get the partition info (block count and block size) to calculate, but it's not working. I get the following error message:
Code:
tune2fs 1.43.3 (04-Sep-2016)
tune2fs: Bad magic number in super-block while trying to open /dev/block/mmcblk0p33
I googled the error message, but I couldn't find anything specific to Android, just Linux. Can someone please help me figure out what I'm doing wrong?.
Is there's another way to get the partition size?
I need it to perform backups with SP Flash Tools. TWRP is unable to decrypt my phone or mount it's internal storage, so that's not an option
Thanks in advance
EDIT: I should have mentioned that the phone is rooted via Magisk, and I run the tune2fs command with superuser access.
Nevermind, I'm dumb. This worked just fine:
blockdev --getsize64 /dev/block/mmcblk0p33