Creating a flashable ODIN file - T-Mobile Samsung Galaxy S7 Questions & Answers

Not sure if this has been posted before, so I apologize in advance if that's the case, but I was hoping I could get some insight on how to create a flashable tar file for ODIN.
I have been researching this for a few weeks, and this site is my #1 resource for information, so I would just like to give out a huge shout out to everyone that helps out on here with your tuts, files, and your knowledge.
Here is an overview of what I am working with.
I have a SM-G930T phone - Tmobile Carrier
It is unrooted using the eng boot file and "SuperSU-v2.76-S7QC"
I am running Android 6.0.1
Baseband: G930TUVU1APG1
Kernel: 3.18.20-7856276-eng
Build #: MMB29M.G930TUVU1APG1
What I'm trying to accomplish.
I am able to make a dump of the system through ADB shell using this information:
Code:
[email protected]:/ # ls -al /dev/block/bootdevice/by-name
lrwxrwxrwx root root 2016-01-08 10:35 aboot -> /dev/block/sdd10
lrwxrwxrwx root root 2016-01-08 10:35 apdp -> /dev/block/sdd17
lrwxrwxrwx root root 2016-01-08 10:35 apnhlos -> /dev/block/sda15
lrwxrwxrwx root root 2016-01-08 10:35 bluetooth -> /dev/block/sdd12
lrwxrwxrwx root root 2016-01-08 10:35 boot -> /dev/block/sda17
lrwxrwxrwx root root 2016-01-08 10:35 bota -> /dev/block/sda12
lrwxrwxrwx root root 2016-01-08 10:35 cache -> /dev/block/sda21
lrwxrwxrwx root root 2016-01-08 10:35 cmnlib -> /dev/block/sdd15
lrwxrwxrwx root root 2016-01-08 10:35 cmnlib64 -> /dev/block/sdd16
lrwxrwxrwx root root 2016-01-08 10:35 ddr -> /dev/block/sdd20
lrwxrwxrwx root root 2016-01-08 10:35 devcfg -> /dev/block/sda10
lrwxrwxrwx root root 2016-01-08 10:35 devinfo -> /dev/block/sdd11
lrwxrwxrwx root root 2016-01-08 10:35 dip -> /dev/block/sdd8
lrwxrwxrwx root root 2016-01-08 10:35 dpo -> /dev/block/sdd19
lrwxrwxrwx root root 2016-01-08 10:35 dsp -> /dev/block/sdd7
lrwxrwxrwx root root 2016-01-08 10:35 efs -> /dev/block/sda6
lrwxrwxrwx root root 2016-01-08 10:35 fota -> /dev/block/sda13
lrwxrwxrwx root root 2016-01-08 10:35 frp -> /dev/block/sda11
lrwxrwxrwx root root 2016-01-08 10:35 fsc -> /dev/block/sda3
lrwxrwxrwx root root 2016-01-08 10:35 fsg -> /dev/block/sdd4
lrwxrwxrwx root root 2016-01-08 10:35 hyp -> /dev/block/sdd3
lrwxrwxrwx root root 2016-01-08 10:35 keymaster -> /dev/block/sdd14
lrwxrwxrwx root root 2016-01-08 10:35 keystore -> /dev/block/sda9
lrwxrwxrwx root root 2016-01-08 10:35 lksecapp -> /dev/block/sdd13
lrwxrwxrwx root root 2016-01-08 10:35 mdtp -> /dev/block/sdd9
lrwxrwxrwx root root 2016-01-08 10:35 misc -> /dev/block/sda8
lrwxrwxrwx root root 2016-01-08 10:35 modem -> /dev/block/sda16
lrwxrwxrwx root root 2016-01-08 10:35 modemst1 -> /dev/block/sda1
lrwxrwxrwx root root 2016-01-08 10:35 modemst2 -> /dev/block/sda2
lrwxrwxrwx root root 2016-01-08 10:35 msadp -> /dev/block/sdd18
lrwxrwxrwx root root 2016-01-08 10:35 pad -> /dev/block/sdd21
lrwxrwxrwx root root 2016-01-08 10:35 param -> /dev/block/sda7
lrwxrwxrwx root root 2016-01-08 10:35 persdata -> /dev/block/sda19
lrwxrwxrwx root root 2016-01-08 10:35 persist -> /dev/block/sda5
lrwxrwxrwx root root 2016-01-08 10:35 persistent -> /dev/block/sda14
lrwxrwxrwx root root 2016-01-08 10:35 pmic -> /dev/block/sdd6
lrwxrwxrwx root root 2016-01-08 10:35 recovery -> /dev/block/sda18
lrwxrwxrwx root root 2016-01-08 10:35 rpm -> /dev/block/sdd1
lrwxrwxrwx root root 2016-01-08 10:35 sec -> /dev/block/sdd5
lrwxrwxrwx root root 2016-01-08 10:35 ssd -> /dev/block/sda4
lrwxrwxrwx root root 2016-01-08 10:35 system -> /dev/block/sda20
lrwxrwxrwx root root 2016-01-08 10:35 tz -> /dev/block/sdd2
lrwxrwxrwx root root 2016-01-08 10:35 userdata -> /dev/block/sda22
lrwxrwxrwx root root 2016-01-08 10:35 xbl -> /dev/block/sdb1
--------------------------------------------
[email protected]:/ # cat /proc/partitions
major minor #blocks name
7 0 32768 loop0
8 0 31178752 sda
8 1 1536 sda1
8 2 1536 sda2
8 3 4 sda3
8 4 8 sda4
8 5 32768 sda5
8 6 20480 sda6
8 7 10240 sda7
8 8 1024 sda8
8 9 512 sda9
8 10 128 sda10
8 11 512 sda11
8 12 12288 sda12
8 13 4096 sda13
8 14 1024 sda14
8 15 97280 sda15
259 0 87040 sda16
259 1 77824 sda17
259 2 77824 sda18
259 3 9216 sda19
259 4 5017600 sda20
259 5 307200 sda21
259 7 25417536 sda22
8 16 4096 sdb
8 17 3072 sdb1
8 32 4096 sdc
8 33 3072 sdc1
8 48 61440 sdd
8 49 512 sdd1
8 50 2048 sdd2
8 51 512 sdd3
8 52 1536 sdd4
8 53 16 sdd5
8 54 512 sdd6
8 55 16384 sdd7
8 56 1024 sdd8
8 57 32768 sdd9
8 58 2048 sdd10
8 59 4 sdd11
8 60 1024 sdd12
8 61 384 sdd13
8 62 256 sdd14
8 63 256 sdd15
259 6 256 sdd16
259 8 128 sdd17
259 9 128 sdd18
259 10 4 sdd19
259 11 1024 sdd20
259 12 572 sdd21
253 0 2097152 vnswap0
179 0 62685184 mmcblk0
179 1 62668800 mmcblk0p1
254 0 25417520 dm-0
-----------------------------------------
[email protected]:/ # blockdev --getbsz /dev/block/sda20
4096
[email protected]:/ # blockdev --getsz /dev/block/sda20
10035200
[email protected]:/ # blockdev --getsize /dev/block/sda20
10035200
[email protected]:/ # blockdev --getsize64 /dev/block/sda20
5138022400
-----------------------------------------
C:\s7\adb-setup-1.4.3\adb>adb shell
[email protected]:/ # su
[email protected]:/ # busybox df -h
Filesystem Size Used Available Use% Mounted on
rootfs 1.5G 8.6M 1.5G 1% /
tmpfs 1.6G 148.0K 1.6G 0% /dev
none 1.6G 12.0K 1.6G 0% /sys/fs/cgroup
tmpfs 1.6G 0 1.6G 0% /mnt
tmpfs 1.6G 0 1.6G 0% /mnt/secure
tmpfs 59.8G 30.2G 29.5G 51% /mnt/secure/asec
/dev/block/bootdevice/by-name/system
4.7G 3.3G 1.3G 72% /system
/dev/block/loop0 27.5M 972.0K 25.9M 4% /system/xbin/su
/dev/block/bootdevice/by-name/efs
15.7M 640.0K 14.6M 4% /efs
/dev/block/bootdevice/by-name/cache
290.6M 2.1M 282.5M 1% /cache
/dev/block/bootdevice/by-name/persist
27.5M 124.0K 26.7M 0% /persist
/dev/block/bootdevice/by-name/dsp
11.7M 4.1M 7.3M 36% /dsp
/dev/block/bootdevice/by-name/apnhlos
70.0M 27.9M 42.1M 40% /firmware
/dev/block/bootdevice/by-name/modem
95.0M 70.3M 24.7M 74% /firmware-modem
/dev/block/bootdevice/by-name/persdata
4.9M 96.0K 4.6M 2% /persdata/absolute
tmpfs 1.6G 0 1.6G 0% /storage
/dev/block/dm-0 23.9G 7.1G 16.8G 30% /data
/dev/block/loop0 27.5M 972.0K 25.9M 4% /su
/data/media 23.9G 7.2G 16.7G 30% /storage/emulated
/data/media 23.9G 7.2G 16.7G 30% /mnt/runtime/default/emulated
/data/media 23.9G 7.2G 16.7G 30% /mnt/runtime/read/emulated
/data/media 23.9G 7.2G 16.7G 30% /mnt/runtime/write/emulated
/dev/block/vold/public:179,1
59.8G 30.2G 29.5G 51% /mnt/media_rw/0123-4567
/dev/block/vold/public:179,1
59.8G 30.2G 29.5G 51% /mnt/secure/asec
/mnt/media_rw/0123-4567
59.8G 30.2G 29.5G 51% /storage/0123-4567
/mnt/media_rw/0123-4567
59.8G 30.2G 29.5G 51% /mnt/runtime/default/0123-4567
/mnt/media_rw/0123-4567
59.8G 30.2G 29.5G 51% /mnt/runtime/read/0123-4567
/mnt/media_rw/0123-4567
59.8G 30.2G 29.5G 51% /mnt/runtime/write/0123-4567
dd if=/dev/block/sda20 of=/sdcard/system.img
OR
dd if=/dev/block/bootdevice/by-name/system of=/sdcard/system.img
Both work great, but this img that is dumped isn't ODIN flashable if I put it into a tar file.
Now I was reading it has to be converted using "img2simg"
So I did that.
I tried several variation of that:
img2simg system.img system.img.ext4
img2simg system.img system.img.ext4 4096 <-- being the block size
I also tried using ext2simg
ext2simg system.img system.img.ext4
ext2simg -S system.img system.img.ext4
I've tried using the tools provided in "ANDROID_IMG_REPACK_TOOLS_CYGWIN_x64-86_6.0.1"
I have also tried doing it manually through CYGWIN directly.
At one point it looked like everything was going through properly in ODIN.
I created a tar file and then added the md5 checksum
and when I flashed it in ODIN, it was uploading the file and it got to the end and then I got a error. I can't remember what it was, I think it had something to do with wrong file version or something. My guess is that the system.img.ext4 file doesn't have the correct "header" or something in there that validates it properly.
Any way, I'm hoping someone can guide me through this. I know that there are roms available that are zip format, but I'd like to learn to do this on my own and ideally through an ODIN flashable file if possible.
Thanks in advance for your help.

Don't mean to bump this, but I wanted to update..
I'm attaching the error I get in ODIN
On my phone I get "SECURE CHECK FAIL : system"
Thanks in advance for any help.

Related

[INFO] Nexus 7 Partitions!

Here's an output of /proc/mounts, might be help full other devs:
which one is recovery partition does anyone know?
zoneinfo
[email protected]:/proc $ cat mounts
cat mounts
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/platform/sdhci-tegra.3/by-name/APP /system ext4 ro,relatime,user_xatt
r,acl,barrier=1,data=ordered 0 0
/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 rw,nosuid,nodev,noatim
e,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered 0 0
/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 rw,nosuid,nodev,noatime
,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered 0 0
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1
023,default_permissions,allow_other 0 0
run
Code:
ls -l /dev/block/platform/sdhci-tegra.3/by-name/
and that should show all partitions.
Indirect said:
run
Code:
ls -l /dev/block/platform/sdhci-tegra.3/by-name/
and that should show all partitions.
Click to expand...
Click to collapse
Thanks!
C:\Users\max\Downloads\Nexus7Root>adb shell
[email protected]:/ $ ls -l /dev/block/platform/sdhci-tegra.3/by-name/
ls -l /dev/block/platform/sdhci-tegra.3/by-name/
lrwxrwxrwx root root 2012-06-28 11:51 APP -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2012-06-28 11:51 CAC -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2012-06-28 11:51 LNX -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2012-06-28 11:51 MDA -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2012-06-28 11:51 MSC -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2012-06-28 11:51 PER -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2012-06-28 11:51 SOS -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2012-06-28 11:51 UDA -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2012-06-28 11:51 USP -> /dev/block/mmcblk0p6
try
Code:
ls -l /dev/block/
and if you see r on the 3rd from last line of each partition, do the following commands:
Code:
adb shell cat /dev/block/platform/sdhci-tegra.3/by-name/lnx > lnxfile.bin
adb shell cat /dev/block/platform/sdhci-tegra.3/by-name/SOS > SOSfile.bin
Indirect said:
try
Code:
ls -l /dev/block/
and if you see r on the 3rd from last line of each partition, do the following commands:
Code:
adb shell cat /dev/block/platform/sdhci-tegra.3/by-name/lnx > lnxfile.bin
adb shell cat /dev/block/platform/sdhci-tegra.3/by-name/SOS > SOSfile.bin
Click to expand...
Click to collapse
C:\Users\max\Downloads\Nexus7Root>adb shell
[email protected]:/ $ ls -l /dev/block/
ls -l /dev/block/
brw------- root root 7, 0 2012-06-28 11:51 loop0
brw------- root root 7, 1 2012-06-28 11:51 loop1
brw------- root root 7, 2 2012-06-28 11:51 loop2
brw------- root root 7, 3 2012-06-28 11:51 loop3
brw------- root root 7, 4 2012-06-28 11:51 loop4
brw------- root root 7, 5 2012-06-28 11:51 loop5
brw------- root root 7, 6 2012-06-28 11:51 loop6
brw------- root root 7, 7 2012-06-28 11:51 loop7
brw------- root root 179, 0 2012-06-28 11:51 mmcblk0
brw------- root root 179, 16 2012-06-28 11:51 mmcblk0boot0
brw------- root root 179, 32 2012-06-28 11:51 mmcblk0boot1
brw------- root root 179, 1 2012-06-28 11:51 mmcblk0p1
brw------- root root 179, 2 2012-06-28 11:51 mmcblk0p2
brw------- root root 179, 3 2012-06-28 11:51 mmcblk0p3
brw------- root root 179, 4 2012-06-28 11:51 mmcblk0p4
brw------- root root 179, 5 2012-06-28 11:51 mmcblk0p5
brw------- root root 179, 6 2012-06-28 11:51 mmcblk0p6
brw------- root root 179, 7 2012-06-28 11:51 mmcblk0p7
brw------- root root 179, 8 2012-06-28 11:51 mmcblk0p8
brw------- root root 179, 9 2012-06-28 11:51 mmcblk0p9
drwxr-xr-x root root 2012-06-28 11:51 platform
drwx------ root root 2012-06-28 11:51 vold
[email protected]:/ $
Permission denied for cat
yep, that's what I figured but it was still worth a shot. :x
You'll need root. If you can get it before you have to surrender that tab, it'd be great.
run this one:
Code:
cat /proc/partitions
and this one:
Code:
fdisk -l /dev/block/mmcblk0
this command would be interesting too:
Code:
cat /proc/cmdline
And if the file exists execute "adb pull /proc/config.gz"(or copy it via rootexplorer) and post it here. It's the kernel-config
Cool - these are btw mostly generic tegra names, while most are probably obvious I've "translated" them below.
zedomax said:
C:\Users\max\Downloads\Nexus7Root>adb shell
[email protected]:/ $ ls -l /dev/block/platform/sdhci-tegra.3/by-name/
ls -l /dev/block/platform/sdhci-tegra.3/by-name/
lrwxrwxrwx root root 2012-06-28 11:51 APP -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2012-06-28 11:51 CAC -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2012-06-28 11:51 LNX -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2012-06-28 11:51 MDA -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2012-06-28 11:51 MSC -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2012-06-28 11:51 PER -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2012-06-28 11:51 SOS -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2012-06-28 11:51 UDA -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2012-06-28 11:51 USP -> /dev/block/mmcblk0p6
Click to expand...
Click to collapse
APP -> system
CAC -> cache
LNX -> boot.img
MDA -> Unknown
MSC -> Misc (bootloader commands and other misc stuff )
PER -> usually a fat partition containing sensor calibration etc. - per device provisioned.
SOS -> recovery.img
UDA -> /data - "user data area"
USP -> Staging
---------- Post added at 10:18 PM ---------- Previous post was at 10:17 PM ----------
m11kkaa said:
run this one:
Code:
cat /proc/partitions
and this one:
Code:
fdisk -l /dev/block/mmcblk0
Click to expand...
Click to collapse
There's no standard "dos" partition anywhere, so that won't work.
m11kkaa said:
this command would be interesting too:
Code:
cat /proc/cmdline
And if the file exists execute "adb pull /proc/config.gz"(or copy it via rootexplorer) and post it here. It's the kernel-config
Click to expand...
Click to collapse
At least cmdline is actually protected from normal users in newer kernels and same with config.gz I believe. Worth a shot though. (FWIW, usually tegra bootloader fills in kernel cmdline rather than hardcoding it in boot.img )
Code:
1|[email protected]:/dev/block/platform/sdhci-tegra.3/by-name $ cat /proc/partitions
/partitions <
major minor #blocks name
179 0 7467008 mmcblk0
179 1 12288 mmcblk0p1
179 2 8192 mmcblk0p2
179 3 665600 mmcblk0p3
179 4 453632 mmcblk0p4
179 5 512 mmcblk0p5
179 6 10240 mmcblk0p6
179 7 5120 mmcblk0p7
179 8 512 mmcblk0p8
179 9 6302720 mmcblk0p9
179 32 2048 mmcblk0boot1
179 16 2048 mmcblk0boot0
Config.gz
Here's Config.gz attached
zedomax said:
Code:
1|[email protected]:/dev/block/platform/sdhci-tegra.3/by-name $ cat /proc/partitions
.....[/QUOTE]
4096Bytes are missing. Maybe the bootloader+PartitionTable at first bytes of Nand :)
Did anyone of you try if there is an bootloader-mode(the usual key-combinations)?
Click to expand...
Click to collapse
Partition sizes
Could you/someone please post a df to see the size of each partition, I wonder how much of the 8GB are available and how much is for /data.
Thanks!
Filesystem Size Used Free Blksize
/dev 487M 32K 487M 4096
/mnt/asec 487M 0K 487M 4096
/mnt/obb 487M 0K 487M 4096
/system 639M 422M 217M 4096
/cache 436M 7M 428M 4096
/data 5G 4G 1G 4096
/storage/sdcard0 5G 4G 1G 4096
/mnt/asec/com.lexi.android-1 3M 1M 1M 4096
Is there any way to creat a extra partition or at least to change the size?
I don't believe so or someone would have done it already.
rayman said:
Cool - these are btw mostly generic tegra names, while most are probably obvious I've "translated" them below.
APP -> system
CAC -> cache
LNX -> boot.img
MDA -> Unknown
MSC -> Misc (bootloader commands and other misc stuff )
PER -> usually a fat partition containing sensor calibration etc. - per device provisioned.
SOS -> recovery.img
UDA -> /data - "user data area"
USP -> Staging
Click to expand...
Click to collapse
Just a bit of an update on these from what I've found. MDA is listed in the fstab as encrypted data.
/dev/block/platform/sdhci-tegra.3/by-name:
lrwxrwxrwx 1 root root 20 Nov 12 00:10 SOS -> /dev/block/mmcblk0p1 -> recovery
lrwxrwxrwx 1 root root 20 Nov 12 00:10 LNX -> /dev/block/mmcblk0p2 -> boot
lrwxrwxrwx 1 root root 20 Nov 12 00:10 APP -> /dev/block/mmcblk0p3 -> system
lrwxrwxrwx 1 root root 20 Nov 12 00:10 CAC -> /dev/block/mmcblk0p4 -> cache
lrwxrwxrwx 1 root root 20 Nov 12 00:10 MSC -> /dev/block/mmcblk0p5 -> misc
lrwxrwxrwx 1 root root 20 Nov 12 00:10 USP -> /dev/block/mmcblk0p6 -> bootloader
lrwxrwxrwx 1 root root 20 Nov 12 00:10 PER -> /dev/block/mmcblk0p7 -> per device calibration
lrwxrwxrwx 1 root root 20 Nov 12 00:10 MDA -> /dev/block/mmcblk0p8 -> encrypted userdata
lrwxrwxrwx 1 root root 20 Nov 12 00:10 UDA -> /dev/block/mmcblk0p9 -> userdata
APP -> system
CAC -> cache
LNX -> boot
MDA -> encrypted userdata
MSC -> misc
PER -> per device calibration
SOS -> recovery
UDA -> userdata
USP -> bootloader
Edit, Jan. 9th: Dug up the N7 tilapia equivalents today because I was curious (found on the Ubuntu site of all places).
/dev/block/platform/sdhci-tegra.3/by-name/
lrwxrwxrwx root root 2012-11-20 13:48 SOS -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2012-11-20 13:48 LNX -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2012-11-20 13:48 APP -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2012-11-20 13:48 RDO -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2012-11-20 13:48 CAC -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2012-11-20 13:48 MSC -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2012-11-20 13:48 USP -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2012-11-20 13:48 PER -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2012-11-20 13:48 MDA -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2012-11-20 13:48 UDA -> /dev/block/mmcblk0p10
Seems they just stuck RDO (radio) in the middle at p4 so everything else just shifts down, and up a p#.
Also worth mentioning for both N7 variants (and apparently Tegras in general), mmcblk0boot0 and mmbblk0boot1 are continuous and contain 3 partitions: BCT, PT and the start of the bootloader. BCT takes up all of boot0 and the beginning of boot1. They are encrypted and boot0 is where lockstate is stored. For more info check out my BootUnlocker Script thread.
Credits to lilstevie for that information.
USP is only staging Area for bootloader flashes not the bootloader itself...
Is the per partition on all N7 the same or are there differences from device to device, so that I can´t use the per partion of another N7?
osm0sis said:
Just a bit of an update on these from what I've found. MDA is listed in the fstab as encrypted data.
/dev/block/platform/sdhci-tegra.3/by-name:
lrwxrwxrwx 1 root root 20 Nov 12 00:10 SOS -> /dev/block/mmcblk0p1 -> recovery
lrwxrwxrwx 1 root root 20 Nov 12 00:10 LNX -> /dev/block/mmcblk0p2 -> boot
lrwxrwxrwx 1 root root 20 Nov 12 00:10 APP -> /dev/block/mmcblk0p3 -> system
lrwxrwxrwx 1 root root 20 Nov 12 00:10 CAC -> /dev/block/mmcblk0p4 -> cache
lrwxrwxrwx 1 root root 20 Nov 12 00:10 MSC -> /dev/block/mmcblk0p5 -> misc
lrwxrwxrwx 1 root root 20 Nov 12 00:10 USP -> /dev/block/mmcblk0p6 -> bootloader
lrwxrwxrwx 1 root root 20 Nov 12 00:10 PER -> /dev/block/mmcblk0p7 -> per device calibration
lrwxrwxrwx 1 root root 20 Nov 12 00:10 MDA -> /dev/block/mmcblk0p8 -> encrypted userdata
lrwxrwxrwx 1 root root 20 Nov 12 00:10 UDA -> /dev/block/mmcblk0p9 -> userdata
APP -> system
CAC -> cache
LNX -> boot
MDA -> encrypted userdata
MSC -> misc
PER -> per device calibration
SOS -> recovery
UDA -> userdata
USP -> bootloader
Edit, Jan. 9th: Dug up the N7 tilapia equivalents today because I was curious (found on the Ubuntu site of all places).
/dev/block/platform/sdhci-tegra.3/by-name/
lrwxrwxrwx root root 2012-11-20 13:48 SOS -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2012-11-20 13:48 LNX -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2012-11-20 13:48 APP -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2012-11-20 13:48 RDO -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2012-11-20 13:48 CAC -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2012-11-20 13:48 MSC -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2012-11-20 13:48 USP -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2012-11-20 13:48 PER -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2012-11-20 13:48 MDA -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2012-11-20 13:48 UDA -> /dev/block/mmcblk0p10
Seems they just stuck RDO (radio) in the middle at p4 so everything else just shifts down, and up a p#.
Click to expand...
Click to collapse
Having issues decompiling the Boot and Recovery, code suggestions

Falcon Partition Layout

Code:
lrwxrwxrwx root root 2023-11-29 19:08 DDR -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2023-11-29 19:08 aboot -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2023-11-29 19:08 abootBackup -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2023-11-29 19:08 boot -> /dev/block/mmcblk0p31
lrwxrwxrwx root root 2023-11-29 19:08 cache -> /dev/block/mmcblk0p33
lrwxrwxrwx root root 2023-11-29 19:08 cid -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 2023-11-29 19:08 clogo -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 2023-11-29 19:08 dhob -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 2023-11-29 19:08 fsc -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 2023-11-29 19:08 fsg -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 2023-11-29 19:08 hob -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 2023-11-29 19:08 kpan -> /dev/block/mmcblk0p35
lrwxrwxrwx root root 2023-11-29 19:08 logo -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 2023-11-29 19:08 logs -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2023-11-29 19:08 misc -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 2023-11-29 19:08 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2023-11-29 19:08 modemst1 -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 2023-11-29 19:08 modemst2 -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 2023-11-29 19:08 padA -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 2023-11-29 19:08 padB -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 2023-11-29 19:08 pds -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 2023-11-29 19:08 persist -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 2023-11-29 19:08 recovery -> /dev/block/mmcblk0p32
lrwxrwxrwx root root 2023-11-29 19:08 rpm -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2023-11-29 19:08 rpmBackup -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 2023-11-29 19:08 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2023-11-29 19:08 sdi -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2023-11-29 19:08 sdiBackup -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 2023-11-29 19:08 sp -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 2023-11-29 19:08 ssd -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 2023-11-29 19:08 system -> /dev/block/mmcblk0p34
lrwxrwxrwx root root 2023-11-29 19:08 tz -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2023-11-29 19:08 tzBackup -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 2023-11-29 19:08 userdata -> /dev/block/mmcblk0p36
lrwxrwxrwx root root 2023-11-29 19:08 utags -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2023-11-29 19:08 utagsBackup -> /dev/block/mmcblk0p15
Partition sizes:
Code:
[email protected]_umts:/system/etc $ cat /proc/partitions
major minor #blocks name
179 0 7634944 mmcblk0
179 1 65536 mmcblk0p1
179 2 512 mmcblk0p2
179 3 32 mmcblk0p3
179 4 512 mmcblk0p4
179 5 200 mmcblk0p5
179 6 400 mmcblk0p6
179 7 32 mmcblk0p7
179 8 512 mmcblk0p8
179 9 2048 mmcblk0p9
179 10 2332 mmcblk0p10
179 11 512 mmcblk0p11
179 12 200 mmcblk0p12
179 13 400 mmcblk0p13
179 14 32 mmcblk0p14
179 15 512 mmcblk0p15
179 16 1052 mmcblk0p16
179 17 1536 mmcblk0p17
179 18 1536 mmcblk0p18
179 19 512 mmcblk0p19
179 20 8 mmcblk0p20
179 21 1536 mmcblk0p21
179 22 1 mmcblk0p22
179 23 8 mmcblk0p23
179 24 1024 mmcblk0p24
179 25 128 mmcblk0p25
179 26 3072 mmcblk0p26
179 27 4096 mmcblk0p27
179 28 4096 mmcblk0p28
179 29 8192 mmcblk0p29
179 30 512 mmcblk0p30
179 31 10240 mmcblk0p31
259 0 10240 mmcblk0p32
259 1 678016 mmcblk0p33
259 2 999424 mmcblk0p34
259 3 8192 mmcblk0p35
259 4 5791616 mmcblk0p36
179 32 512 mmcblk0rpmb
[email protected]_umts:/system/etc $
Added to "useful links" section of FAQ, to void any dig up when it will be buried by other threads
/system is 999424 blocks, and /cache is 678016 blocks
Why such big partitions are allocated for these? It feels quite wasting.
How is the free space on /system? I hardly can believe that all of that 1G space is really needed.
(I'm contemplating buying a Moto G. First I thought that the 8G version will be enough. But after seeing the partition layout, it seems that I'll need the 16G.
Now I have an SGS I9000 8G, but curiously it does have more storage than the Moto G.
Moto G: 5.52G for all data.
SGS: 1.89G + 5.78G = 7.67G combined)
There is currently like 370MB free in system. But that's not too bad, gives room to play when updates arrive...
More detailed info
http://forum.xda-developers.com/showpost.php?p=48855450&postcount=35
Can someone post the layout and sizes of a GPE device? I compared the gpt.bin file from the UK retail firmware package with the one from the GPE pack and there are some differences in the partition order and I want to check the sizes and starting/ending blocks as well.
It would be nice to find a way to repartition the Moto G as there is a lot of space wasted inside...
GPE firmware image flashed on UK XT1032. Should be the same as retail GPE?
GPE Partition Layout:
Code:
lrwxrwxrwx root root 1970-03-02 00:58 DDR -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1970-03-02 00:58 aboot -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1970-03-02 00:58 abootBackup -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 1970-03-02 00:58 boot -> /dev/block/mmcblk0p31
lrwxrwxrwx root root 1970-03-02 00:58 cache -> /dev/block/mmcblk0p34
lrwxrwxrwx root root 1970-03-02 00:58 cid -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 1970-03-02 00:58 clogo -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 1970-03-02 00:58 dhob -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 1970-03-02 00:58 fsc -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 1970-03-02 00:58 fsg -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 1970-03-02 00:58 hob -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 1970-03-02 00:58 kpan -> /dev/block/mmcblk0p36
lrwxrwxrwx root root 1970-03-02 00:58 logo -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 1970-03-02 00:58 logs -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 1970-03-02 00:58 metadata -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 1970-03-02 00:58 misc -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 1970-03-02 00:58 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 1970-03-02 00:58 modemst1 -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 1970-03-02 00:58 modemst2 -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 1970-03-02 00:58 padB -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 1970-03-02 00:58 padC -> /dev/block/mmcblk0p33
lrwxrwxrwx root root 1970-03-02 00:58 pds -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 1970-03-02 00:58 persist -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 1970-03-02 00:58 recovery -> /dev/block/mmcblk0p32
lrwxrwxrwx root root 1970-03-02 00:58 rpm -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 1970-03-02 00:58 rpmBackup -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 1970-03-02 00:58 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1970-03-02 00:58 sdi -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 1970-03-02 00:58 sdiBackup -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 1970-03-02 00:58 sp -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 1970-03-02 00:58 ssd -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 1970-03-02 00:58 system -> /dev/block/mmcblk0p35
lrwxrwxrwx root root 1970-03-02 00:58 tz -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1970-03-02 00:58 tzBackup -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 1970-03-02 00:58 userdata -> /dev/block/mmcblk0p37
lrwxrwxrwx root root 1970-03-02 00:58 utags -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 1970-03-02 00:58 utagsBackup -> /dev/block/mmcblk0p15
GPE Partition sizes:
Code:
major minor #blocks name
179 0 7634944 mmcblk0
179 1 65536 mmcblk0p1
179 2 512 mmcblk0p2
179 3 32 mmcblk0p3
179 4 512 mmcblk0p4
179 5 200 mmcblk0p5
179 6 400 mmcblk0p6
179 7 32 mmcblk0p7
179 8 512 mmcblk0p8
179 9 2048 mmcblk0p9
179 10 2332 mmcblk0p10
179 11 512 mmcblk0p11
179 12 200 mmcblk0p12
179 13 400 mmcblk0p13
179 14 32 mmcblk0p14
179 15 512 mmcblk0p15
179 16 1052 mmcblk0p16
179 17 1536 mmcblk0p17
179 18 1536 mmcblk0p18
179 19 512 mmcblk0p19
179 20 8 mmcblk0p20
179 21 1536 mmcblk0p21
179 22 1 mmcblk0p22
179 23 8 mmcblk0p23
179 24 1024 mmcblk0p24
179 25 128 mmcblk0p25
179 26 3072 mmcblk0p26
179 27 4096 mmcblk0p27
179 28 4096 mmcblk0p28
179 29 8192 mmcblk0p29
179 30 512 mmcblk0p30
179 31 10240 mmcblk0p31
259 0 10240 mmcblk0p32
259 1 6272 mmcblk0p33
259 2 573440 mmcblk0p34
259 3 860160 mmcblk0p35
259 4 8192 mmcblk0p36
259 5 6029184 mmcblk0p37
179 32 512 mmcblk0rpmb
Here is the layout from my GPe..
Code:
lrwxrwxrwx root root 1970-02-23 02:28 DDR -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1970-02-23 02:28 aboot -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1970-02-23 02:28 abootBackup -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 1970-02-23 02:28 boot -> /dev/block/mmcblk0p31
lrwxrwxrwx root root 1970-02-23 02:28 cache -> /dev/block/mmcblk0p34
lrwxrwxrwx root root 1970-02-23 02:28 cid -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 1970-02-23 02:28 clogo -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 1970-02-23 02:28 dhob -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 1970-02-23 02:28 fsc -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 1970-02-23 02:28 fsg -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 1970-02-23 02:28 hob -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 1970-02-23 02:28 kpan -> /dev/block/mmcblk0p36
lrwxrwxrwx root root 1970-02-23 02:28 logo -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 1970-02-23 02:28 logs -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 1970-02-23 02:28 metadata -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 1970-02-23 02:28 misc -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 1970-02-23 02:28 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 1970-02-23 02:28 modemst1 -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 1970-02-23 02:28 modemst2 -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 1970-02-23 02:28 padB -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 1970-02-23 02:28 padC -> /dev/block/mmcblk0p33
lrwxrwxrwx root root 1970-02-23 02:28 pds -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 1970-02-23 02:28 persist -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 1970-02-23 02:28 recovery -> /dev/block/mmcblk0p32
lrwxrwxrwx root root 1970-02-23 02:28 rpm -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 1970-02-23 02:28 rpmBackup -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 1970-02-23 02:28 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1970-02-23 02:28 sdi -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 1970-02-23 02:28 sdiBackup -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 1970-02-23 02:28 sp -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 1970-02-23 02:28 ssd -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 1970-02-23 02:28 system -> /dev/block/mmcblk0p35
lrwxrwxrwx root root 1970-02-23 02:28 tz -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1970-02-23 02:28 tzBackup -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 1970-02-23 02:28 userdata -> /dev/block/mmcblk0p37
lrwxrwxrwx root root 1970-02-23 02:28 utags -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 1970-02-23 02:28 utagsBackup -> /dev/block/mmcblk0p15
Code:
major minor #blocks name
179 0 15388672 mmcblk0
179 1 65536 mmcblk0p1
179 2 512 mmcblk0p2
179 3 32 mmcblk0p3
179 4 512 mmcblk0p4
179 5 200 mmcblk0p5
179 6 400 mmcblk0p6
179 7 32 mmcblk0p7
179 8 512 mmcblk0p8
179 9 2048 mmcblk0p9
179 10 2332 mmcblk0p10
179 11 512 mmcblk0p11
179 12 200 mmcblk0p12
179 13 400 mmcblk0p13
179 14 32 mmcblk0p14
179 15 512 mmcblk0p15
179 16 1052 mmcblk0p16
179 17 1536 mmcblk0p17
179 18 1536 mmcblk0p18
179 19 512 mmcblk0p19
179 20 8 mmcblk0p20
179 21 1536 mmcblk0p21
179 22 1 mmcblk0p22
179 23 8 mmcblk0p23
179 24 1024 mmcblk0p24
179 25 128 mmcblk0p25
179 26 3072 mmcblk0p26
179 27 4096 mmcblk0p27
179 28 4096 mmcblk0p28
179 29 8192 mmcblk0p29
179 30 512 mmcblk0p30
179 31 10240 mmcblk0p31
259 0 10240 mmcblk0p32
259 1 6272 mmcblk0p33
259 2 573440 mmcblk0p34
259 3 860160 mmcblk0p35
259 4 8192 mmcblk0p36
259 5 13782912 mmcblk0p37
179 32 4096 mmcblk0rpmb
ls -l /dev/block/platform/msm_sdcc.1/by-name
As it didn't show in the posts above it was almost being kept secret !
What is the aboot partition for?
Rusty! said:
Code:
lrwxrwxrwx root root 2023-11-29 19:08 DDR -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2023-11-29 19:08 aboot -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2023-11-29 19:08 abootBackup -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2023-11-29 19:08 boot -> /dev/block/mmcblk0p31
lrwxrwxrwx root root 2023-11-29 19:08 cache -> /dev/block/mmcblk0p33
lrwxrwxrwx root root 2023-11-29 19:08 cid -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 2023-11-29 19:08 clogo -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 2023-11-29 19:08 dhob -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 2023-11-29 19:08 fsc -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 2023-11-29 19:08 fsg -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 2023-11-29 19:08 hob -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 2023-11-29 19:08 kpan -> /dev/block/mmcblk0p35
lrwxrwxrwx root root 2023-11-29 19:08 logo -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 2023-11-29 19:08 logs -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2023-11-29 19:08 misc -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 2023-11-29 19:08 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2023-11-29 19:08 modemst1 -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 2023-11-29 19:08 modemst2 -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 2023-11-29 19:08 padA -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 2023-11-29 19:08 padB -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 2023-11-29 19:08 pds -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 2023-11-29 19:08 persist -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 2023-11-29 19:08 recovery -> /dev/block/mmcblk0p32
lrwxrwxrwx root root 2023-11-29 19:08 rpm -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2023-11-29 19:08 rpmBackup -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 2023-11-29 19:08 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2023-11-29 19:08 sdi -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2023-11-29 19:08 sdiBackup -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 2023-11-29 19:08 sp -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 2023-11-29 19:08 ssd -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 2023-11-29 19:08 system -> /dev/block/mmcblk0p34
lrwxrwxrwx root root 2023-11-29 19:08 tz -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2023-11-29 19:08 tzBackup -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 2023-11-29 19:08 userdata -> /dev/block/mmcblk0p36
lrwxrwxrwx root root 2023-11-29 19:08 utags -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2023-11-29 19:08 utagsBackup -> /dev/block/mmcblk0p15
Click to expand...
Click to collapse
What is the aboot partition for?
deej_roamer said:
What is the aboot partition for?
Click to expand...
Click to collapse
canada?
twist3d0n3 said:
canada?
Click to expand...
Click to collapse
Funny
deej_roamer said:
Click to expand...
Click to collapse
It's a joke. Because of their accent in Canada they say aboot in stead of about. I never heard any Canadian, but this was once in a southpark episode. So this must be true
Is there any way to repartition?
Feche said:
Is there any way to repartition?
Click to expand...
Click to collapse
Bump
I also would like to know if this is possible..?
It would be awesome if it is
There are many threads on XDA dedicated to the subject of repartitioning. Those that try, should post here what happens when applying those guides to Moto G.
lost101 said:
There are many threads on XDA dedicated to the subject of repartitioning. Those that try, should post here what happens when applying those guides to Moto G.
Click to expand...
Click to collapse
I'd also be interested in reading about repartitioning the Moto G.
With other devices, a custom Recovery is often required to accommodate the new partition table / layout. Here is one exception that recently got coverage:
http://forum.xda-developers.com/showpost.php?p=55743100&postcount=5584​
It's for a Motorola phone, so already a good start and only requires the flashing of two zips.
UPDATE: On closer inspection, this method appears to depend on a custom bootstrap and special kernel.
editing partition size
Has anyone changed their partition size? I would be very interested in reclaiming at least some of that excess space.

Using DD to produce an image results in empty image

I am trying to take an image of my Android phone. Specifically I have tried to image the system and boot partitions. The imaging process appears to work correctly when using dd. However, when I attempt to mount the image in a loopback device the image appears to be empty. I also tried to see file contents by piping through cpio. Basically, I am trying to validate the image that I took. What am I doing wrong? Is there a problem with how I took the image or validation or both? Here are the steps to took (you'll see only the system partition below but I used the same process for boot)
[[email protected] platform-tools]# ./adb devices
List of devices attached
99000421100783 device
[[email protected] platform-tools]#./adb shell
[email protected]:/ $ su
[email protected]:/ # cat /proc/partitions
major minor #blocks name
179 0 7634944 mmcblk0
179 1 65536 mmcblk0p1
179 2 1024 mmcblk0p2
179 3 1024 mmcblk0p3
179 4 1024 mmcblk0p4
179 5 1024 mmcblk0p5
179 6 1024 mmcblk0p6
179 7 1024 mmcblk0p7
179 8 1024 mmcblk0p8
179 9 1024 mmcblk0p9
179 10 16384 mmcblk0p10
179 11 1024 mmcblk0p11
179 12 1024 mmcblk0p12
179 13 1024 mmcblk0p13
179 14 1536 mmcblk0p14
179 15 1536 mmcblk0p15
179 16 2048 mmcblk0p16
179 17 8192 mmcblk0p17
179 18 4096 mmcblk0p18
179 19 8192 mmcblk0p19
179 20 8192 mmcblk0p20
179 21 819200 mmcblk0p21
179 22 658432 mmcblk0p22
179 23 16384 mmcblk0p23
179 24 6144 mmcblk0p24
179 25 8192 mmcblk0p25
179 26 1024 mmcblk0p26
179 27 1024 mmcblk0p27
179 28 5120 mmcblk0p28
179 29 4718592 mmcblk0p29
179 30 1048576 mmcblk0p30
179 31 8192 mmcblk0p31
259 0 20480 mmcblk0p32
259 1 4096 mmcblk0p33
259 2 16384 mmcblk0p34
259 3 16384 mmcblk0p35
259 4 1024 mmcblk0p36
259 5 1024 mmcblk0p37
259 6 1024 mmcblk0p38
259 7 1024 mmcblk0p39
259 8 20480 mmcblk0p40
259 9 20480 mmcblk0p41
259 10 4096 mmcblk0p42
259 11 4096 mmcblk0p43
259 12 95215 mmcblk0p44
179 32 512 mmcblk0rpmb
179 64 30183936 mmcblk1
179 65 30182912 mmcblk1p1
254 0 4718592 dm-0
254 1 1048576 dm-1
[email protected]:/ # parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
Model: MMC 8WMB3R (sd/mmc)
Disk /dev/block/mmcblk0: 7818MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 4194kB 71.3MB 67.1MB fat16 modem
2 71.3MB 72.4MB 1049kB sbl1
3 72.4MB 73.4MB 1049kB sbl1bak
4 73.4MB 74.4MB 1049kB sdi
5 75.5MB 76.5MB 1049kB DDR
6 79.7MB 80.7MB 1049kB aboot
7 80.7MB 81.8MB 1049kB abootbak
8 81.8MB 82.8MB 1049kB rpm
9 82.8MB 83.9MB 1049kB rpmbak
10 83.9MB 101MB 16.8MB boot
11 101MB 102MB 1049kB tz
12 102MB 103MB 1049kB tzbak
13 103MB 104MB 1049kB pad
14 104MB 105MB 1573kB modemst1
15 105MB 107MB 1573kB modemst2
16 107MB 109MB 2097kB reserve1
17 109MB 117MB 8389kB dnand
18 117MB 122MB 4194kB bfss1
19 122MB 130MB 8389kB bfss2
20 130MB 138MB 8389kB ext4 persist
21 138MB 977MB 839MB ext4 system
22 977MB 1652MB 674MB ext4 cache
23 1652MB 1668MB 16.8MB recovery
24 1668MB 1675MB 6291kB misc
25 1678MB 1686MB 8389kB fsg
26 1686MB 1687MB 1049kB fsc
27 1687MB 1688MB 1049kB ssd
28 1688MB 1693MB 5243kB reserve2
29 1693MB 6525MB 4832MB userdata
30 6525MB 7599MB 1074MB internalstorage
31 7599MB 7607MB 8389kB ext4 sysprop
32 7607MB 7628MB 21.0MB ext4 carrier
33 7628MB 7633MB 4194kB fotamng
34 7633MB 7649MB 16.8MB fota
35 7649MB 7666MB 16.8MB fotabk
36 7666MB 7667MB 1049kB sdibk
37 7667MB 7668MB 1049kB abootbk
38 7668MB 7669MB 1049kB rpmbk
39 7669MB 7670MB 1049kB tzbk
40 7670MB 7691MB 21.0MB log
41 7691MB 7712MB 21.0MB logwork
42 7712MB 7716MB 4194kB bootwork
43 7716MB 7721MB 4194kB rom
44 7721MB 7818MB 97.5MB reserve3
(parted) q
q
[email protected]:/ # cd /dev/block/platform/msm_sdcc.1/by-name
[email protected]:/dev/block/platform/msm_sdcc.1/by-name # ls -l
lrwxrwxrwx root root 1969-12-31 19:17 DDR -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 1969-12-31 19:17 aboot -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1969-12-31 19:17 abootbak -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 1969-12-31 19:17 abootbk -> /dev/block/mmcblk0p37
lrwxrwxrwx root root 1969-12-31 19:17 bfss1 -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 1969-12-31 19:17 bfss2 -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 1969-12-31 19:17 boot -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 1969-12-31 19:17 bootwork -> /dev/block/mmcblk0p42
lrwxrwxrwx root root 1969-12-31 19:17 cache -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 1969-12-31 19:17 carrier -> /dev/block/mmcblk0p32
lrwxrwxrwx root root 1969-12-31 19:17 dnand -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 1969-12-31 19:17 fota -> /dev/block/mmcblk0p34
lrwxrwxrwx root root 1969-12-31 19:17 fotabk -> /dev/block/mmcblk0p35
lrwxrwxrwx root root 1969-12-31 19:17 fotamng -> /dev/block/mmcblk0p33
lrwxrwxrwx root root 1969-12-31 19:17 fsc -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 1969-12-31 19:17 fsg -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 1969-12-31 19:17 internalstorage -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 1969-12-31 19:17 log -> /dev/block/mmcblk0p40
lrwxrwxrwx root root 1969-12-31 19:17 logwork -> /dev/block/mmcblk0p41
lrwxrwxrwx root root 1969-12-31 19:17 misc -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 1969-12-31 19:17 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 1969-12-31 19:17 modemst1 -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 1969-12-31 19:17 modemst2 -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 1969-12-31 19:17 pad -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 1969-12-31 19:17 persist -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 1969-12-31 19:17 recovery -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 1969-12-31 19:17 reserve1 -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 1969-12-31 19:17 reserve2 -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 1969-12-31 19:17 reserve3 -> /dev/block/mmcblk0p44
lrwxrwxrwx root root 1969-12-31 19:17 rom -> /dev/block/mmcblk0p43
lrwxrwxrwx root root 1969-12-31 19:17 rpm -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 1969-12-31 19:17 rpmbak -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 1969-12-31 19:17 rpmbk -> /dev/block/mmcblk0p38
lrwxrwxrwx root root 1969-12-31 19:17 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1969-12-31 19:17 sbl1bak -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1969-12-31 19:17 sdi -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1969-12-31 19:17 sdibk -> /dev/block/mmcblk0p36
lrwxrwxrwx root root 1969-12-31 19:17 ssd -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 1969-12-31 19:17 sysprop -> /dev/block/mmcblk0p31
lrwxrwxrwx root root 1969-12-31 19:17 system -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 1969-12-31 19:17 tz -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 1969-12-31 19:17 tzbak -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 1969-12-31 19:17 tzbk -> /dev/block/mmcblk0p39
lrwxrwxrwx root root 1969-12-31 19:17 userdata -> /dev/block/mmcblk0p29
[email protected]:/ # dd if=/dev/block/mmcblk0p21 of=/mnt/media_rw/sdcard0/firmware-img/kyocerasystem.img bs=4096 conv=noerror,sync
204800+0 records in
204800+0 records out
838860800 bytes transferred in 40.461 secs (20732577 bytes/sec)
[email protected]:/ # exit
[email protected]:/ $ exit
[[email protected] jeremy]:/ # losetup /dev/loop0 /home/jeremy/kyocerasystem.img
[[email protected] jeremy]:/ # mkfs.ext4 /dev/loop0
mke2fs 1.42.9 (28-Dec-2013)
Discarding device blocks: 4096/204800: done
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
51296 inodes, 204800 blocks
10240 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=209715200
7 block groups
32768 blocks per group, 32768 fragments per group
7328 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840
Allocating group tables: 0/7: done
Writing inode tables: 0/7: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: 0/7: done
[[email protected] jeremy]:/ # mount -t ext4 /dev/loop0 /mnt
[[email protected] jeremy]:/ # cd /mnt
[[email protected] jeremy]:/ # ls
lost+found
[email protected] jeremy]# dd if=kyocerasystem.img | cpio -ictv > kyocerasystem.txt
1638400+0 records in
1638400+0 records out
838860800 bytes (839 MB) copied, 25.1643 s, 33.3 MB/s
cpio: premature end of file
[[email protected] jeremy]:/ # less kyocerasystem.txt
(no contents to display - empty)
Just found my answer, I should not have done a mkfs (thus formatting/wiping my data in the image)
Do... what, now?
Would you be so kind as to walk me through what you did here? with
red comments/ descriptions?
and
[green command inputs
Or something like that?

[INFO] How To Get Partition Details Of Android With ADB

Sometime you need to build some mod or own custom ROM for a new device or the device which don't have much development on it.On these situations to flash any partition to the device we need to know it's actual block,size,path,user privilage.
This can typically done by a Root explorer or via ADB shell.
In this comprehensive info guide I will focous on getting partition details via ADB shell.
Let's Dive In:-
REQUIREMENTS
1. UNLOCKED BOOTLOADER.
2. SUPERSU/MAGISK FOR ROOT ACCESS.
3. ADB INSTALLED PROPERLY IN PC.
4. RESPECTIVE DEVICE DRIVERS. (e.g. for moto g5 plus,which i have,need motorola usb drivers to be installed.)
PROCEDURE
1. Using df lists the filesystem path alias and size info as seen below (total size, used, free and block size).
Example :
Code:
[email protected]:/ # df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 1714040 3732 1710308 1% /
tmpfs 1819500 712 1818788 1% /dev
/dev/block/mmcblk0p53 3320680 1882092 1438588 57% /system
tmpfs 1819500 0 1819500 0% /mnt
/data/media 25782252 3489280 22292972 14% /mnt/runtime/default/emulated
/dev/block/vold/public:179_65 15640832 11533440 4107392 74% /mnt/media_rw/79D8-1EE2
/mnt/media_rw/79D8-1EE2 15640832 11533440 4107392 74% /mnt/runtime/default/79D8-1EE2
/dev/block/mmcblk0p54 25782252 3489280 22292972 14% /data
/dev/block/mmcblk0p52 253920 228 253692 1% /cache
/dev/block/mmcblk0p19 96688 69552 27136 72% /firmware
/dev/block/mmcblk0p29 2500 2492 8 100% /fsg
/dev/block/mmcblk0p22 12016 5052 6964 43% /dsp
/dev/block/mmcblk0p30 28144 520 27624 2% /persist
/dev/block/loop0 92656 996 91660 2% /su
2. Using cat /proc/mounts shows the partition file path, the alias, the filesystem type, the startnig inode, the number of blocks, read/write status (and other parameters of the individual partition that I'm not entirely sure of).
Example:
Code:
[email protected]:/ # cat /proc/mounts
rootfs / rootfs ro,seclabel,size=1714040k,nr_inodes=428510 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,size=1819500k,nr_inodes=454875,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
none /dev/cpuset cgroup rw,relatime,cpuset,noprefix,release_agent=/sbin/cpuset_release_agent 0 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0
proc /proc proc rw,relatime,gid=3009,hidepid=2 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
tracefs /sys/kernel/tracing tracefs rw,relatime 0 0
pstore /sys/fs/pstore pstore rw,seclabel,relatime 0 0
/dev/block/platform/soc/7824900.sdhci/by-name/system /system ext4 ro,seclabel,relatime,discard,data=ordered 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt tmpfs rw,seclabel,relatime,size=1819500k,nr_inodes=454875,mode=755,gid=1000 0 0
/data/media /mnt/runtime/default/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid 0 0
/data/media /mnt/runtime/read/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=23,derive_gid 0 0
/data/media /mnt/runtime/write/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid 0 0
/dev/block/vold/public:179_65 /mnt/media_rw/79D8-1EE2 vfat rw,dirsync,nosuid,nodev,noexec,noatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/mnt/media_rw/79D8-1EE2 /mnt/runtime/default/79D8-1EE2 sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,mask=6 0 0
/mnt/media_rw/79D8-1EE2 /mnt/runtime/read/79D8-1EE2 sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,mask=18 0 0
/mnt/media_rw/79D8-1EE2 /mnt/runtime/write/79D8-1EE2 sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,mask=18 0 0
none /config configfs rw,relatime 0 0
/dev/block/bootdevice/by-name/userdata /data f2fs rw,seclabel,nosuid,nodev,noatime,nodiratime,background_gc=on,discard,user_xattr,inline_xattr,acl,inline_data,nobarrier,extent_cache,active_logs=6 0 0
/dev/block/bootdevice/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,data=ordered 0 0
/dev/block/bootdevice/by-name/modem /firmware ext4 ro,context=u:object_r:firmware_file:s0,nosuid,nodev,relatime,nobarrier,data=ordered 0 0
/dev/block/bootdevice/by-name/fsg /fsg ext4 ro,context=u:object_r:fsg_file:s0,nosuid,nodev,relatime 0 0
/dev/block/bootdevice/by-name/dsp /dsp ext4 ro,seclabel,nosuid,nodev,relatime,data=ordered 0 0
/dev/block/bootdevice/by-name/persist /persist ext4 rw,context=u:object_r:persist_file:s0,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
/dev/block/loop0 /su ext4 rw,seclabel,noatime,data=ordered 0 0
tmpfs /storage tmpfs rw,seclabel,relatime,size=1819500k,nr_inodes=454875,mode=755,gid=1000 0 0
/data/media /storage/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid 0 0
/mnt/media_rw/79D8-1EE2 /storage/79D8-1EE2 sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,mask=6 0 0
tmpfs /storage/self tmpfs rw,seclabel,relatime,size=1819500k,nr_inodes=454875,mode=755,gid=1000 0 0
3.Using cat /proc/partitions you will get the actual partition name identifier and the number of blocks in the partition.
Example:
Code:
[email protected]:/ # cat /proc/partitions
major minor #blocks name
7 0 98304 loop0
254 0 524288 zram0
179 0 30535680 mmcblk0
179 1 512 mmcblk0p1
179 2 256 mmcblk0p2
179 3 1792 mmcblk0p3
179 4 64 mmcblk0p4
179 5 1536 mmcblk0p5
179 6 256 mmcblk0p6
179 7 256 mmcblk0p7
179 8 256 mmcblk0p8
179 9 192 mmcblk0p9
179 10 512 mmcblk0p10
179 11 256 mmcblk0p11
179 12 1792 mmcblk0p12
179 13 64 mmcblk0p13
179 14 1536 mmcblk0p14
179 15 256 mmcblk0p15
179 16 256 mmcblk0p16
179 17 256 mmcblk0p17
179 18 192 mmcblk0p18
179 19 102400 mmcblk0p19
179 20 1 mmcblk0p20
179 21 8 mmcblk0p21
179 22 16384 mmcblk0p22
179 23 32 mmcblk0p23
179 24 16 mmcblk0p24
179 25 512 mmcblk0p25
179 26 512 mmcblk0p26
179 27 2048 mmcblk0p27
179 28 2048 mmcblk0p28
179 29 8192 mmcblk0p29
179 30 32768 mmcblk0p30
179 31 512 mmcblk0p31
259 0 128 mmcblk0p32
259 1 16384 mmcblk0p33
259 2 16384 mmcblk0p34
259 3 512 mmcblk0p35
259 4 8192 mmcblk0p36
259 5 16384 mmcblk0p37
259 6 20580 mmcblk0p38
259 7 1024 mmcblk0p39
259 8 32 mmcblk0p40
259 9 512 mmcblk0p41
259 10 1024 mmcblk0p42
259 11 512 mmcblk0p43
259 12 2048 mmcblk0p44
259 13 256 mmcblk0p45
259 14 256 mmcblk0p46
259 15 8 mmcblk0p47
259 16 128 mmcblk0p48
259 17 8192 mmcblk0p49
259 18 8192 mmcblk0p50
259 19 671744 mmcblk0p51
259 20 262144 mmcblk0p52
259 21 3538944 mmcblk0p53
259 22 25784303 mmcblk0p54
179 32 4096 mmcblk0rpmb
179 64 15645696 mmcblk1
179 65 15644672 mmcblk1p1
Here comes a tricky part,
This folder in which by-name output is stored varies from devices to devices.
I will write the procedure to find this thing out.
Note : Here I am using MOTO G5 PLUS [POTTER] for demonstration.
As I change directory to /dev/block/bootdevice/ & ls to see the files & folders in this folder , i found that by-name folder which i was looking for.
Example:
Code:
[email protected]:/ # cd /dev/block/bootdevice/
[email protected]:/dev/block/bootdevice # ls -a -l
total 0
drwxr-xr-x 4 root root 1200 1970-08-14 04:53 .
drwxr-xr-x 4 root root 80 2018-03-22 09:08 ..
drwxr-xr-x 2 root root 1120 1970-08-14 04:53 by-name
drwxr-xr-x 2 root root 1120 1970-08-14 04:53 by-num
lrwxrwxrwx 1 root root 18 1970-08-14 04:53 mmcblk0 -> /dev/block/mmcblk0
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 mmcblk0p1 -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p10 -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p11 -> /dev/block/mmcblk0p11
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p12 -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p13 -> /dev/block/mmcblk0p13
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p14 -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p15 -> /dev/block/mmcblk0p15
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p16 -> /dev/block/mmcblk0p16
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p17 -> /dev/block/mmcblk0p17
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p18 -> /dev/block/mmcblk0p18
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p19 -> /dev/block/mmcblk0p19
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 mmcblk0p2 -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p20 -> /dev/block/mmcblk0p20
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p21 -> /dev/block/mmcblk0p21
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p22 -> /dev/block/mmcblk0p22
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p23 -> /dev/block/mmcblk0p23
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p24 -> /dev/block/mmcblk0p24
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p25 -> /dev/block/mmcblk0p25
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p26 -> /dev/block/mmcblk0p26
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p27 -> /dev/block/mmcblk0p27
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p28 -> /dev/block/mmcblk0p28
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p29 -> /dev/block/mmcblk0p29
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 mmcblk0p3 -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p30 -> /dev/block/mmcblk0p30
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p31 -> /dev/block/mmcblk0p31
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p32 -> /dev/block/mmcblk0p32
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p33 -> /dev/block/mmcblk0p33
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p34 -> /dev/block/mmcblk0p34
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p35 -> /dev/block/mmcblk0p35
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p36 -> /dev/block/mmcblk0p36
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p37 -> /dev/block/mmcblk0p37
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p38 -> /dev/block/mmcblk0p38
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p39 -> /dev/block/mmcblk0p39
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 mmcblk0p4 -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p40 -> /dev/block/mmcblk0p40
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p41 -> /dev/block/mmcblk0p41
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p42 -> /dev/block/mmcblk0p42
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p43 -> /dev/block/mmcblk0p43
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p44 -> /dev/block/mmcblk0p44
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p45 -> /dev/block/mmcblk0p45
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p46 -> /dev/block/mmcblk0p46
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p47 -> /dev/block/mmcblk0p47
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p48 -> /dev/block/mmcblk0p48
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p49 -> /dev/block/mmcblk0p49
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 mmcblk0p5 -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p50 -> /dev/block/mmcblk0p50
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p51 -> /dev/block/mmcblk0p51
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p52 -> /dev/block/mmcblk0p52
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p53 -> /dev/block/mmcblk0p53
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mmcblk0p54 -> /dev/block/mmcblk0p54
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 mmcblk0p6 -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 mmcblk0p7 -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 mmcblk0p8 -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 mmcblk0p9 -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 22 1970-08-14 04:53 mmcblk0rpmb -> /dev/block/mmcblk0rpmb
[email protected]:/dev/block/bootdevice #
Now i will enterby-name folder & see what's inside ?
...
Hola we nailed it !,I found exactly what i was trying to find,the detailed info of partitions.see below code.
Code:
[email protected]:/dev/block/bootdevice # cd by
by-name/ by-num/
[email protected]:/dev/block/bootdevice # cd by-name/
[email protected]:/dev/block/bootdevice/by-name # ls -a -l
total 0
drwxr-xr-x 2 root root 1120 1970-08-14 04:53 .
drwxr-xr-x 4 root root 1200 1970-08-14 04:53 ..
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 DDR -> /dev/block/mmcblk0p23
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 aboot -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 abootbak -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 [COLOR="magenta"]apdp -> /dev/block/mmcblk0p45[/COLOR]
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 [COLOR="magenta"]boot -> /dev/block/mmcblk0p37[/COLOR]
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 [COLOR="magenta"]cache -> /dev/block/mmcblk0p52[/COLOR]
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 carrier -> /dev/block/mmcblk0p34
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 cid -> /dev/block/mmcblk0p32
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 cmnlib -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 cmnlib64 -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 cmnlib64bak -> /dev/block/mmcblk0p16
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 cmnlibbak -> /dev/block/mmcblk0p15
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 devcfg -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 devcfgbak -> /dev/block/mmcblk0p13
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 dip -> /dev/block/mmcblk0p42
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 dpo -> /dev/block/mmcblk0p47
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 dsp -> /dev/block/mmcblk0p22
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 frp -> /dev/block/mmcblk0p31
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 fsc -> /dev/block/mmcblk0p20
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 fsg -> /dev/block/mmcblk0p29
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 [COLOR="magenta"]hw -> /dev/block/mmcblk0p50[/COLOR]
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 keymaster -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 keymasterbak -> /dev/block/mmcblk0p17
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 kpan -> /dev/block/mmcblk0p36
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 limits -> /dev/block/mmcblk0p40
lrwxrwxrwx 1 root root 21 1970-08-14 04:53[COLOR="Magenta"] logo -> /dev/block/mmcblk0p33[/COLOR]
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 logs -> /dev/block/mmcblk0p44
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 metadata -> /dev/block/mmcblk0p35
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 misc -> /dev/block/mmcblk0p39
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 [COLOR="magenta"]modem -> /dev/block/mmcblk0p19[/COLOR]
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 modemst1 -> /dev/block/mmcblk0p27
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 modemst2 -> /dev/block/mmcblk0p28
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mota -> /dev/block/mmcblk0p41
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 msadp -> /dev/block/mmcblk0p46
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 [COLOR="magenta"]oem -> /dev/block/mmcblk0p51[/COLOR]
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 padA -> /dev/block/mmcblk0p48
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 [COLOR="Magenta"]persist -> /dev/block/mmcblk0p30[/COLOR]
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 prov -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 provbak -> /dev/block/mmcblk0p18
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 [COLOR="magenta"]recovery -> /dev/block/mmcblk0p38[/COLOR]
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 [COLOR="magenta"]rpm -> /dev/block/mmcblk0p2[/COLOR]
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 rpmbak -> /dev/block/mmcblk0p11
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 sbl1 -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 sbl1bak -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 [COLOR="magenta"]sec -> /dev/block/mmcblk0p24[/COLOR]
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 sp -> /dev/block/mmcblk0p49
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 ssd -> /dev/block/mmcblk0p21
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 syscfg -> /dev/block/mmcblk0p43
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 [COLOR="magenta"]system -> /dev/block/mmcblk0p53[/COLOR]
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 tz -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 tzbak -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 [COLOR="magenta"]userdata -> /dev/block/mmcblk0p54[/COLOR]
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 utags -> /dev/block/mmcblk0p25
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 utagsBackup -> /dev/block/mmcblk0p26
[email protected]:/dev/block/bootdevice/by-name #
4. So for a particular device you can use ls -al /dev/block/platform/Your_Folder_Name/by-name to see the mapping between the partition alias and the path of actual partition file with owner & user.
Example:
Code:
[email protected]:/dev/block/bootdevice/by-name # ls - a -l /dev/block/bootdevice/b
ls: -: No such file or directory
ls: a: No such file or directory
total 0
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 DDR -> /dev/block/mmcblk0p23
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 aboot -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 abootbak -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 apdp -> /dev/block/mmcblk0p45
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 boot -> /dev/block/mmcblk0p37
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 cache -> /dev/block/mmcblk0p52
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 carrier -> /dev/block/mmcblk0p34
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 cid -> /dev/block/mmcblk0p32
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 cmnlib -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 cmnlib64 -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 cmnlib64bak -> /dev/block/mmcblk0p16
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 cmnlibbak -> /dev/block/mmcblk0p15
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 devcfg -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 devcfgbak -> /dev/block/mmcblk0p13
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 dip -> /dev/block/mmcblk0p42
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 dpo -> /dev/block/mmcblk0p47
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 dsp -> /dev/block/mmcblk0p22
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 frp -> /dev/block/mmcblk0p31
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 fsc -> /dev/block/mmcblk0p20
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 fsg -> /dev/block/mmcblk0p29
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 hw -> /dev/block/mmcblk0p50
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 keymaster -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 keymasterbak -> /dev/block/mmcblk0p17
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 kpan -> /dev/block/mmcblk0p36
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 limits -> /dev/block/mmcblk0p40
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 logo -> /dev/block/mmcblk0p33
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 logs -> /dev/block/mmcblk0p44
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 metadata -> /dev/block/mmcblk0p35
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 misc -> /dev/block/mmcblk0p39
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 modem -> /dev/block/mmcblk0p19
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 modemst1 -> /dev/block/mmcblk0p27
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 modemst2 -> /dev/block/mmcblk0p28
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 mota -> /dev/block/mmcblk0p41
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 msadp -> /dev/block/mmcblk0p46
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 oem -> /dev/block/mmcblk0p51
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 padA -> /dev/block/mmcblk0p48
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 persist -> /dev/block/mmcblk0p30
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 prov -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 provbak -> /dev/block/mmcblk0p18
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 recovery -> /dev/block/mmcblk0p38
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 rpm -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 rpmbak -> /dev/block/mmcblk0p11
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 sbl1 -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 sbl1bak -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 sec -> /dev/block/mmcblk0p24
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 sp -> /dev/block/mmcblk0p49
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 ssd -> /dev/block/mmcblk0p21
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 syscfg -> /dev/block/mmcblk0p43
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 system -> /dev/block/mmcblk0p53
lrwxrwxrwx 1 root root 20 1970-08-14 04:53 tz -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 tzbak -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 userdata -> /dev/block/mmcblk0p54
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 utags -> /dev/block/mmcblk0p25
lrwxrwxrwx 1 root root 21 1970-08-14 04:53 utagsBackup -> /dev/block/mmcblk0p26
1|[email protected]:/dev/block/bootdevice/by-name #
Now you must understand that before flashing anything do check the script of that file & make sure it is flashing to the right partition (mmcblk0xxx) according to your device.
IF your are happy & it helped you do hit the THANKS button. It always motivates when someone appreciate your work.
Thank You.
OFFICIAL COMMUNITY
Official Telegram Group
Official Telegram Channel
======== GEEKOFIA ========
VISIT​
RESERVED
Big thanks
Thank you very much! That really helped!
I have a Tissot (mi a1) with TWRP dual booted by separating vendor_a, vendor_b, userdata_a, userdata_b. It is dual booted by cosmicdan's twrp with Resurrection remix ( slot_a) official and Dotos official ( slot_b). I want to mount userdata_b in resurrection remix or vice verse.
I have already tried these steps but no result.
1. create a folder named 'data2' in " /data/local/tmp/data2" .
2. open terminal.
3. run su.
4. Enter " mount -o rw /dev/block/mmcblk0p52 /data/local/tmp/data2" (as 52 is my userdata_b partition).
5. no error showing but nothing mounted.
Is there any way to mount this?

managed to repair imei on Sawshark (LEO-DLXX)

Hi,
Just wanted to share that I was able to repair the imei on a Huawei Watch 2 (Sawshark,LEO-DLXX).
It goes on just as any other snapdragon imei repair. There are many tutorials out there.
The step I was stuck at was opening a diag port on the watch after issuing this command as root.
Code:
setprop sys.usb.config diag,adb
The usb device does change, but not recognized even though Qualcomm drivers are installed.
The solution? Manually load this driver named:
Qualcomm HS-USB Diagnostics 9404
Some tutorials say some partitions need to be cleared for imei repair to work. Not sure if this is necessary, but these are the partitions that need clearing.
Code:
ls -al /dev/block/platform/soc/7824900.sdhci/by-name/ <
total 0
drwxr-xr-x 2 root root 740 1970-01-29 07:08 .
drwxr-xr-x 4 root root 820 1970-01-29 07:08 ..
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 DDR -> /dev/block/mmcblk0p21
lrwxrwxrwx 1 root root 20 1970-01-29 07:08 aboot -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 20 1970-01-29 07:08 abootbak -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 boot -> /dev/block/mmcblk0p29
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 cache -> /dev/block/mmcblk0p34
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 cmnlib -> /dev/block/mmcblk0p24
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 cmnlibbak -> /dev/block/mmcblk0p25
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 config -> /dev/block/mmcblk0p18
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 devinfo -> /dev/block/mmcblk0p23
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 fsc -> /dev/block/mmcblk0p13
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 fsg -> /dev/block/mmcblk0p22
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 keymaster -> /dev/block/mmcblk0p26
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 keymasterbak -> /dev/block/mmcblk0p27
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 keystore -> /dev/block/mmcblk0p17
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 misc -> /dev/block/mmcblk0p15
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 modem -> /dev/block/mmcblk0p32
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 modemst1 -> /dev/block/mmcblk0p11
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 modemst2 -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 nfc -> /dev/block/mmcblk0p19
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 nvbin -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 20 1970-01-29 07:08 nvdata -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 oem -> /dev/block/mmcblk0p28
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 recovery -> /dev/block/mmcblk0p31
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 reserved -> /dev/block/mmcblk0p20
lrwxrwxrwx 1 root root 20 1970-01-29 07:08 rpm -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 20 1970-01-29 07:08 rpmbak -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 20 1970-01-29 07:08 sbl1 -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 20 1970-01-29 07:08 sbl1bak -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 sec -> /dev/block/mmcblk0p30
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 splash -> /dev/block/mmcblk0p16
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 ssd -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 system -> /dev/block/mmcblk0p33
lrwxrwxrwx 1 root root 20 1970-01-29 07:08 tz -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 20 1970-01-29 07:08 tzbak -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 21 1970-01-29 07:08 userdata -> /dev/block/mmcblk0p35
sawshark:/ #
sawshark:/ # dd if=/dev/zero of=/dev/block/mmcblk0p11
dd: /dev/block/mmcblk0p11: No space left on device
8193+0 records in
8192+0 records out
4194304 bytes transferred in 1.069 secs (3923577 bytes/sec)
1|sawshark:/ # dd if=/dev/zero of=/dev/block/mmcblk0p12
dd: /dev/block/mmcblk0p12: No space left on device
8193+0 records in
8192+0 records out
4194304 bytes transferred in 0.854 secs (4911362 bytes/sec)
1|sawshark:/ # dd if=/dev/zero of=/dev/block/mmcblk0p22
dd: /dev/block/mmcblk0p22: No space left on device
8193+0 records in
8192+0 records out
4194304 bytes transferred in 0.951 secs (4410414 bytes/sec)
1|sawshark:/ #
The rest is same as any other snapdragon imei repair.
Hope this helps some of you out there.

Categories

Resources