Showing posts with label partitions. Show all posts
Showing posts with label partitions. Show all posts

Friday, 5 August 2016

How to flash firmware on a Oppo R5 without partitions, OS and adb not working

Hello. Today i wanted to update my Oppo R5s R8106 from ColorOS to Mokee.

First i had to install Project Spectrum V1.1i Beta, and here it was fine.

Next step, i followed this guide to install CM (as someone on Oppo forum told me that the procedure for Mokee is the same).

Here i had problems, because TWRP for oppo r5 were not working (volume down + power button weren't getting me in recovery menu). I tried all the version for this phone from website but nothing.
So I tried to flash the CM recovery image from the nightly page of CyanogenMod for Oppo R5s and here i could go inside recovery menu.

Next problem now, was that for every zip of Mokee i was trying to flash, i got a message like "can't install this package on top of incompatible data" and here i did a big mistake: i did a factory reset which erased me all system partitions, data, and everything (also zip files of ROMs).

Looking on internet i saw that it was possible use adb to create again folder on /data/media/0 (emulation of sd card) and load zip that i can use from recovery to restore again the OS. The problem is that now, when i type "adb devices" i see my device "unauthorized" (before my mistake i could see my phone), so i'm not able to load zip on my phone. Tried to kill server, reboot, delete .android folder... nothing works.

I tried fastboot update <name_of_my_zip>.zip but i get message "archive does not contain 'android-info.txt".
I tried to put inside an empty txt file named like this, but now i get "archive does not contain 'boot.sig', archive does not contain 'system.img'"
I tried to fastboot these zip files: R8106_Spectrum_V1.1_Beta_full_wipe.zip, R8106EX_11.A.16_OTA_INT_016_all_150806_wipe.zip , MK60.1-r5-160801-RELEASE.zip, cm-13.0-20160803-NIGHTLY-r5.zip but i always got these errors.

The only thing that i can do now is flash CM recovery or ColorOs & ProjectSpectrum recovery .

Unlukily, any of these recovery allow me to mount folders from my pc.

So i would like to ask for your kind help to know how can i load zip file on my phone, or how can i install a zip from fastboot, or how can i get adb work again or if there is a tool for flash oppo (i remember there was something like this for Xperia...) or if do you know if there are some where some firmware which are good to be flashed with fastboot.

Many thanks

Friday, 29 July 2016

Thursday, 28 July 2016

How do I access other partitions in Remix OS 3 and change size of Play Store?



I can see my partions in remix os 2, but why not in remix os 3.
And any way to change size of play store? It pauses my game.



Monday, 25 July 2016

[ROOT] Partitions backup & other partition info :



Before rooting, do backup your /boot and /system partitions via SPFT, as described here (whenever the post is filled in properly :D ) :
http://forum.xda-developers.com/r1-h...oting-t3426041
Since it's pretty tedious to run that for each and every partition, I propose to backup other ones after you get root. But note that copying the partitions back to the device is a lot quicker since all the necessary info can be preset in a scatter file !

I recommend that you follow other threads to get root, such as, for example, here :
http://forum.xda-developers.com/r1-h...-root-t3425677

Some partitions will still be mounted, but I don't think it matters that much. Anyway, here is a list of what is usually mounted :

Code:


Filesystem              Size    Used    Free  Blksize
/dev                  970.2M    84.0K  970.1M  4096
/sys/fs/cgroup        970.2M    12.0K  970.2M  4096
/mnt                  970.2M    0.0K  970.2M  4096
/mnt/runtime/default/emulated    11.2G  522.4M    10.7G  4096
/mnt/runtime/read/emulated    11.2G  522.4M    10.7G  4096
/mnt/runtime/write/emulated    11.2G  522.4M    10.7G  4096
/system                  2.5G    2.0G  516.5M  4096
/data                  11.2G  522.4M    10.7G  4096
/cache                387.4M  988.0K  386.5M  4096
/protect_f              5.8M    60.0K    5.8M  4096
/protect_s              5.8M    56.0K    5.8M  4096
/nvdata                27.5M    2.2M    25.3M  4096
/storage              970.2M    0.0K  970.2M  4096
/storage/emulated      11.2G  522.4M    10.7G  4096
/su                    90.5M  676.0K    89.8M  4096


To backup whatever partitions are out there, run these commands :

Code:


adb shell
su
mkdir /sdcard/images/
cd /sdcard/images
dd if=/dev/block/mmcblk0boot0 of=00_boot0.img
dd if=/dev/block/mmcblk0boot1 of=01_boot1.img
dd if=/dev/block/mmcblk0rpmb of=02_rpmb.img
dd if=/dev/block/mmcblk0p1 of=p1_proinfo.img
dd if=/dev/block/mmcblk0p2 of=p2_nvram.img
dd if=/dev/block/mmcblk0p3 of=p3_protect1.img
dd if=/dev/block/mmcblk0p4 of=p4_protect2.img
dd if=/dev/block/mmcblk0p5 of=p5_lk.img
dd if=/dev/block/mmcblk0p6 of=p6_para.img
dd if=/dev/block/mmcblk0p7 of=p7_boot.img
dd if=/dev/block/mmcblk0p8 of=p8_recovery.img
dd if=/dev/block/mmcblk0p9 of=p9_logo.img
dd if=/dev/block/mmcblk0p10 of=p10_expdb.img
dd if=/dev/block/mmcblk0p11 of=p11_seccfg.img
dd if=/dev/block/mmcblk0p12 of=p12_oemkeystore.img
dd if=/dev/block/mmcblk0p13 of=p13_secro.img
dd if=/dev/block/mmcblk0p14 of=p14_keystore.img
dd if=/dev/block/mmcblk0p15 of=p15_tee1.img
dd if=/dev/block/mmcblk0p16 of=p16_tee2.img
dd if=/dev/block/mmcblk0p17 of=p17_frp.img
dd if=/dev/block/mmcblk0p18 of=p18_nvdata.img
dd if=/dev/block/mmcblk0p19 of=p19_metadata.img
#dd if=/dev/block/mmcblk0p20 of=p20_system.img
#dd if=/dev/block/mmcblk0p21 of=p21_cache.img
#dd if=/dev/block/mmcblk0p22 of=p22_userdata.img
dd if=/dev/block/mmcblk0p23 of=p23_flashinfo.img
md5sum *.img
exit
exit
adb pull /sdcard/images


These are the files that you'll get

Code:


-rw-rw---- root    sdcard_rw  4194304 2016-01-01 18:31 00_boot0.img
-rw-rw---- root    sdcard_rw  4194304 2016-01-01 18:31 01_boot1.img
-rw-rw---- root    sdcard_rw        0 2016-01-01 18:47 02_rpmb.img
-rw-rw---- root    sdcard_rw  3145728 2016-01-01 18:31 p1_proinfo.img
-rw-rw---- root    sdcard_rw  5242880 2016-01-01 18:31 p2_nvram.img
-rw-rw---- root    sdcard_rw 10485760 2016-01-01 18:31 p3_protect1.img
-rw-rw---- root    sdcard_rw 10485760 2016-01-01 18:31 p4_protect2.img
-rw-rw---- root    sdcard_rw  524288 2016-01-01 18:31 p5_lk.img
-rw-rw---- root    sdcard_rw  524288 2016-01-01 18:31 p6_para.img
-rw-rw---- root    sdcard_rw 16777216 2016-01-01 18:31 p7_boot.img
-rw-rw---- root    sdcard_rw 16777216 2016-01-01 18:31 p8_recovery.img
-rw-rw---- root    sdcard_rw  8388608 2016-01-01 18:31 p9_logo.img
-rw-rw---- root    sdcard_rw 10485760 2016-01-01 18:31 p10_expdb.img
-rw-rw---- root    sdcard_rw  524288 2016-01-01 18:31 p11_seccfg.img
-rw-rw---- root    sdcard_rw  2097152 2016-01-01 18:31 p12_oemkeystore.img
-rw-rw---- root    sdcard_rw  6291456 2016-01-01 18:31 p13_secro.img
-rw-rw---- root    sdcard_rw  8388608 2016-01-01 18:31 p14_keystore.img
-rw-rw---- root    sdcard_rw  5242880 2016-01-01 18:31 p15_tee1.img
-rw-rw---- root    sdcard_rw  5242880 2016-01-01 18:31 p16_tee2.img
-rw-rw---- root    sdcard_rw  1048576 2016-01-01 18:31 p17_frp.img
-rw-rw---- root    sdcard_rw 33554432 2016-01-01 18:31 p18_nvdata.img
-rw-rw---- root    sdcard_rw 38797312 2016-01-01 18:32 p19_metadata.img
-rw-rw---- root    sdcard_rw 16777216 2016-01-01 18:32 p23_flashinfo.img


And this is another map of partitions to names :

Code:


lrwxrwxrwx root    root              2016-01-01 17:30 boot -> /dev/block/mmcblk0p7
lrwxrwxrwx root    root              2016-01-01 17:30 cache -> /dev/block/mmcblk0p21
lrwxrwxrwx root    root              2016-01-01 17:30 expdb -> /dev/block/mmcblk0p10
lrwxrwxrwx root    root              2016-01-01 17:30 flashinfo -> /dev/block/mmcblk0p23
lrwxrwxrwx root    root              2016-01-01 17:30 frp -> /dev/block/mmcblk0p17
lrwxrwxrwx root    root              2016-01-01 17:30 keystore -> /dev/block/mmcblk0p14
lrwxrwxrwx root    root              2016-01-01 17:30 lk -> /dev/block/mmcblk0p5
lrwxrwxrwx root    root              2016-01-01 17:30 logo -> /dev/block/mmcblk0p9
lrwxrwxrwx root    root              2016-01-01 17:30 metadata -> /dev/block/mmcblk0p19
lrwxrwxrwx root    root              2016-01-01 17:30 nvdata -> /dev/block/mmcblk0p18
lrwxrwxrwx root    root              2016-01-01 17:30 nvram -> /dev/block/mmcblk0p2
lrwxrwxrwx root    root              2016-01-01 17:30 oemkeystore -> /dev/block/mmcblk0p12
lrwxrwxrwx root    root              2016-01-01 17:30 para -> /dev/block/mmcblk0p6
lrwxrwxrwx root    root              2016-01-01 17:30 proinfo -> /dev/block/mmcblk0p1
lrwxrwxrwx root    root              2016-01-01 17:30 protect1 -> /dev/block/mmcblk0p3
lrwxrwxrwx root    root              2016-01-01 17:30 protect2 -> /dev/block/mmcblk0p4
lrwxrwxrwx root    root              2016-01-01 17:30 recovery -> /dev/block/mmcblk0p8
lrwxrwxrwx root    root              2016-01-01 17:30 seccfg -> /dev/block/mmcblk0p11
lrwxrwxrwx root    root              2016-01-01 17:30 secro -> /dev/block/mmcblk0p13
lrwxrwxrwx root    root              2016-01-01 17:30 system -> /dev/block/mmcblk0p20
lrwxrwxrwx root    root              2016-01-01 17:30 tee1 -> /dev/block/mmcblk0p15
lrwxrwxrwx root    root              2016-01-01 17:30 tee2 -> /dev/block/mmcblk0p16
lrwxrwxrwx root    root              2016-01-01 17:30 userdata -> /dev/block/mmcblk0p22


And mount output :

Code:


rootfs / rootfs ro,seclabel 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,seclabel,relatime 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0
pstore /sys/fs/pstore pstore rw,seclabel,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
/dev/fuse /mnt/runtime/default/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/read/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/write/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,resuid=10010,data=ordered 0 0
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/protect1 /protect_f ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered 0 0
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/protect2 /protect_s ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered 0 0
/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/nvdata /nvdata ext4 rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered 0 0
tmpfs /storage tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
/dev/fuse /storage/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/loop1 /su ext4 rw,seclabel,noatime,data=ordered 0 0


And partition sizes in blocks:

Code:


major minor  #blocks  name

  7        0      1254 loop0
  7        1      98304 loop1
 179        0  15392768 mmcblk0
 179        1      3072 mmcblk0p1
 179        2      5120 mmcblk0p2
 179        3      10240 mmcblk0p3
 179        4      10240 mmcblk0p4
 179        5        512 mmcblk0p5
 179        6        512 mmcblk0p6
 179        7      16384 mmcblk0p7
 179        8      16384 mmcblk0p8
 179        9      8192 mmcblk0p9
 179      10      10240 mmcblk0p10
 179      11        512 mmcblk0p11
 179      12      2048 mmcblk0p12
 179      13      6144 mmcblk0p13
 179      14      8192 mmcblk0p14
 179      15      5120 mmcblk0p15
 179      16      5120 mmcblk0p16
 179      17      1024 mmcblk0p17
 179      18      32768 mmcblk0p18
 179      19      37888 mmcblk0p19
 179      20    2736128 mmcblk0p20
 179      21    409600 mmcblk0p21
 179      22  12049920 mmcblk0p22
 179      23      16384 mmcblk0p23
 179      96      4096 mmcblk0rpmb
 179      64      4096 mmcblk0boot1
 179      32      4096 mmcblk0boot0





Wednesday, 6 July 2016

Honor 7 partitions - information needed



Hello,

some discussions on android-hilfe.de about the Honor 7 modem partition and additionally Wanams App "Partitions Backup & Restore" brought me to the following issue:

The Honor 7 has a bunch of partitions and some partitions seem to be very device specific.
Looking into Wanams App (s. attachments) several partitions are marked with a yellow background as "IMEI / EFS related". Because of that I am assuming that device specific informations like IMEI, serial nummber, mac addresses for WLAN and Bluetooth etc. are stored on one or more of those special partitions (I think that the time to burn such informations on EPROMs is gone, isn't it?).

That's leading to my question: Can somebody tell me which device specific information is stored on what partition?

I think that this aspect is very important for those who want to create their own Custom ROM because it would be very "stupid" if you provide a ROM that changes one of those partitions and later on you have to recognize that all affected devices have (for example) the same IMEI.

Thank you in advance and best regards
m_esser








Attached Thumbnails


Click image for larger version<br/><br/>Name:	Screenshot_2016-07-05-18-03-10.png<br/>Views:	N/A<br/>Size:	146.5 KB<br/>ID:	3805114
 

Click image for larger version<br/><br/>Name:	Screenshot_2016-07-05-18-03-21.png<br/>Views:	N/A<br/>Size:	150.4 KB<br/>ID:	3805115
 














Monday, 4 July 2016

how to flash lg g4 (ls991) dump files/stock partitions



my phone in deadboot condition..need to repair bootloader.
i have downloaded these dump files from this site :
http://downloads.codefi.re/autoprime...LS991/LS991ZV6
now how is there any way to flash those files?



Sunday, 3 July 2016

HELP! Soft bricked S-ON re-locked bootloader with no system or recovery partitions!



Hi, I am having some serious issues with my HTC One M9 and am wondering if anyone could lend a hand...

A bit of background
Originally, I set out on the task to update to the latest CyanogenMod version, but was having trouble as none of the nightly releases were installing (I was using TWRP and was constantly getting error messages). After much research, I found some instructions to unroot my phone, reinstall the stock image, and then download the OTA update. After this, it said that I would be able to install the latest CyanogenMod build. I went to the HTC ROM download support forum and downloaded the HTC One M9 version 3.35.617.12 ROM, and then proceeded to run the executable. I downloaded the Unlocked/Developer version because I live in Australia and none of options were my carrier (Telstra). This turned out to be a mistake, as after I got half way through the installation, I received the following:

Code:


error 131: customer id error

The main issue was, that the installer already went through the wiping phase, so my system was completely empty!

Where I messed up...
After my system being wiped, I read several forum posts as to why this error was occurring. I was following the instructions on one of the posts, which said to re-lock my boot loader... So, i ran:

Code:


fastboot oem lock

This turned out to be a huge mistake, as not only did it not fix the issue, but I cant even access my recovery partition.

Where I am at now
Currently, I can not access anything on my phone. I only have access to the boot loader (which is locked and is S-ON), as well as download mode. I tried to unlock the boot loader again with:

Code:


fastboot flash unlocktoken Unlock_code.bin

but after completing the steps and rebooting, the phone is still in a re-locked state. I tried to flash twrp back onto the recovery partition, or the stock ROM extracted from the RUU executable, but I would constantly get one of the two errors:

Code:


FAILED (status read failed (Unknown error))
FAILED (data transfer failure (Too many links))


So, I have a soft bricked phone that is S-ON, has a re-locked boot loader, and has no system or recovery partitions. All of the data was backed up, so I am literally open to anything to get it to a working state again.

Extra info about the phone

Code:


htc_himauhl PVT S-ON
LK-1.0.0.0000
RADIO-01.04_U11440601_71.02.50709G_F
OpenDSP-v29.2.6-00492-M8994_0702
OS-2.9.81.5
Sep 30 2015,12:34:35(573756)

cid: TELST001


Thank you anyone who can lend a hand :)
- Alex