Treble questions - Sony Xperia XZ1 Questions & Answers

Hi all,
I'm currently running some Treble experimentations (you can see them on https://forum.xda-developers.com/es...ent/dev-using-project-treble-to-boot-t3705253 ), and I'm trying to see what Treble devices are available, with what configuration.
Treble should enable the community to have one single ROM for a big range of devices.
And I'm currently working on making an AOSP Treble build.
So first. Did some people fastboot unlock their devices, and are up for some testing?
Then, I'd need to know:
- Does this device have a "vbmeta" partition? (i.e. does it uses AVB?)
- Would someone have a dump of stock boot.img?
- Does this device support A/B partitions?
(Of course, XZ1 and XZ1c should work both just as well)
Thanks all!

I have an XZ1c, but have not unlocked my bootloader at this time.
As for your questions:
1] The XZ1 and XZ1c do have a vbmeta partition.
2] The devices do not have A/B system partitions.
3] Firmware for the phone, which includes the boot image can be downloaded with the XperiFirm software.
3b] The software will download and extract multiple "*.sin" files (signed sparse images) which can be extracted to full images with UnSIN.
The Sony "boot" images are named "kernel_X-FLASH-ALL-XXXX.sin" where "XXXX" is a device dependent identifier.
It is a 20MB, standard android image which contains a 14MB kernel zImage and a ~5.5MB gzipped CPIO ramdisk.
EDIT: Here's a list of the partitions on the phone:
Code:
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 FOTAKernel -> /dev/block/sda47
0 lrwxrwxrwx 1 root root 15 1970-01-31 19:27 LTALabel -> /dev/block/sda2
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 Qnovo -> /dev/block/sda60
0 lrwxrwxrwx 1 root root 15 1970-01-31 19:27 TA -> /dev/block/sda1
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 abl -> /dev/block/sda11
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 ablbak -> /dev/block/sda12
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 apdp -> /dev/block/sda40
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 appslog -> /dev/block/sda58
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 bluetooth -> /dev/block/sda39
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 boot -> /dev/block/sda38
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 cache -> /dev/block/sda53
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 cmnlib -> /dev/block/sda16
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 cmnlib64 -> /dev/block/sda18
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 cmnlib64bak -> /dev/block/sda19
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 cmnlibbak -> /dev/block/sda17
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 ddr -> /dev/block/sda48
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 devcfg -> /dev/block/sda21
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 devcfgbak -> /dev/block/sda22
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 devinfo -> /dev/block/sda13
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 diag -> /dev/block/sda59
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 dpo -> /dev/block/sda42
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 dsp -> /dev/block/sda37
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 frp -> /dev/block/sda56
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 fsc -> /dev/block/sda51
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 fsg -> /dev/block/sda34
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 fsmetadata -> /dev/block/sda61
0 lrwxrwxrwx 1 root root 15 1970-01-31 19:27 hyp -> /dev/block/sda7
0 lrwxrwxrwx 1 root root 15 1970-01-31 19:27 hypbak -> /dev/block/sda8
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 keymaster -> /dev/block/sda14
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 keymasterbak -> /dev/block/sda15
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 keystore -> /dev/block/sda55
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 limits -> /dev/block/sda44
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 logfs -> /dev/block/sda46
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 misc -> /dev/block/sda54
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 modem -> /dev/block/sda36
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 modemst1 -> /dev/block/sda49
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 modemst2 -> /dev/block/sda50
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 msadp -> /dev/block/sda41
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 oem -> /dev/block/sda63
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 persist -> /dev/block/sda33
0 lrwxrwxrwx 1 root root 15 1970-01-31 19:27 pmic -> /dev/block/sda9
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 pmicbak -> /dev/block/sda10
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 rdimage -> /dev/block/sda62
0 lrwxrwxrwx 1 root root 15 1970-01-31 19:27 rpm -> /dev/block/sda3
0 lrwxrwxrwx 1 root root 15 1970-01-31 19:27 rpmbak -> /dev/block/sda4
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 sec -> /dev/block/sda35
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 splash -> /dev/block/sda43
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 ssd -> /dev/block/sda52
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 sti -> /dev/block/sda20
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 storsec -> /dev/block/sda23
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 storsecbak -> /dev/block/sda24
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 system -> /dev/block/sda65
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 toolsfv -> /dev/block/sda45
0 lrwxrwxrwx 1 root root 15 1970-01-31 19:27 tz -> /dev/block/sda5
0 lrwxrwxrwx 1 root root 15 1970-01-31 19:27 tzbak -> /dev/block/sda6
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 tzxfl -> /dev/block/sda29
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 tzxflattest -> /dev/block/sda27
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 tzxflattestbak -> /dev/block/sda28
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 tzxflbak -> /dev/block/sda30
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 userdata -> /dev/block/sda66
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 vbmeta -> /dev/block/sda57
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 vendor -> /dev/block/sda64
0 lrwxrwxrwx 1 root root 15 1970-01-31 19:27 xbl -> /dev/block/sdb1
0 lrwxrwxrwx 1 root root 15 1970-01-31 19:27 xblbak -> /dev/block/sdc1
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 xfl -> /dev/block/sda25
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 xflbak -> /dev/block/sda26
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 xflkeystore -> /dev/block/sda31
0 lrwxrwxrwx 1 root root 16 1970-01-31 19:27 xflkeystorebak -> /dev/block/sda32

Thanks!
So, it looks like you have the same configuration as the Huawei Mate 9 (AVB, A-only), so theorically the same system.img should work
The system.img that "worked" on Mate 9 is:
https://wetransfer.com/downloads/2e32e4e95182505e62178eb3e252c9e220171122223407/9690fe
If someone feels lucky...

I'm on XZ1C which has the same partition layout. Fully flashed Sony's stock UK firmware with newflasher then flashed your system.img with fastboot.
Phone boots successfully, Wifi and BT turn on and scan, wifi connects and works fine, I get a cell connection (no data yet), fingerprint scanner works, sound works, all apps run but keyboard crashes when I go to the symbol section, and camera doesn't work. Interestingly, the camera seems to work in video mode but not stills.
EDIT: Keyboard crashes with this log:
Code:
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: keyboard XML parse error
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: com.android.inputmethod.latin.utils.XmlParseUtils$ParseException: Empty keySpec at Binary XML file line #39
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseKey(KeyboardBuilder.java:482)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseRowContent(KeyboardBuilder.java:362)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseDefault(KeyboardBuilder.java:798)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseSwitchInternal(KeyboardBuilder.java:609)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseSwitchRowContent(KeyboardBuilder.java:595)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseRowContent(KeyboardBuilder.java:368)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseMerge(KeyboardBuilder.java:578)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseIncludeInternal(KeyboardBuilder.java:557)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseIncludeRowContent(KeyboardBuilder.java:518)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseRowContent(KeyboardBuilder.java:366)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseKeyboardContent(KeyboardBuilder.java:310)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseMerge(KeyboardBuilder.java:576)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseIncludeInternal(KeyboardBuilder.java:557)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseIncludeKeyboardContent(KeyboardBuilder.java:513)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseKeyboardContent(KeyboardBuilder.java:315)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.parseKeyboard(KeyboardBuilder.java:229)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.internal.KeyboardBuilder.load(KeyboardBuilder.java:172)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.KeyboardLayoutSet.getKeyboard(KeyboardLayoutSet.java:227)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.KeyboardLayoutSet.getKeyboard(KeyboardLayoutSet.java:204)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.KeyboardSwitcher.setKeyboard(KeyboardSwitcher.java:153)
11-23 13:46:43.960 3930 3930 W Keyboard.Builder: at com.android.inputmethod.keyboard.KeyboardSwitcher.setSymbolsKeyboard(KeyboardSwitcher.java:258)
Camera gives me so much log I don't know what to do with it so I attached it.

That's awesome. So same system.img working on two different devices
Can you provide the logcat for camera?
For mobile data, you need to setup the APN

phhusson said:
That's awesome. So same system.img working on two different devices
Can you provide the logcat for camera?
For mobile data, you need to setup the APN
Click to expand...
Click to collapse
Attached the logcat for the camera to my first post. Just set up the APN and rebooted but no luck unfortunately.
I'm going to try formatting the cache and userdata to see if that helps anything. I suspect AOSP system.img with Sony userdata and cache might cause problems.
---------- Post added at 10:28 PM ---------- Previous post was at 09:57 PM ----------
I thought to try this after flashing the US firmware and interestingly it doesn't boot at all. Erasing userdata and cache also didn't resolve the keyboard and camera issues.

Gairtial said:
Attached the logcat for the camera to my first post. Just set up the APN and rebooted but no luck unfortunately.
I'm going to try formatting the cache and userdata to see if that helps anything. I suspect AOSP system.img with Sony userdata and cache might cause problems.
Click to expand...
Click to collapse
Erm sorry, I don't see any attachment?!?
---------- Post added at 10:28 PM ---------- Previous post was at 09:57 PM ----------
Click to expand...
Click to collapse
I thought to try this after flashing the US firmware and interestingly it doesn't boot at all. Erasing userdata and cache also didn't resolve the keyboard and camera issues.
Click to expand...
Click to collapse
Falling back to (european I guess?) other firmware makes it work again? Or its just that you had to factory reset again?

phhusson said:
Erm sorry, I don't see any attachment?!?
Falling back to (european I guess?) other firmware makes it work again? Or its just that you had to factory reset again?
Click to expand...
Click to collapse
Weird, I see it fine. It's here as well anyhow: https://kgmi.moe/dump/camlog.txt
And yes, flashing UK firmware, then system.img over the top of it again had it booting once more.

Now I can see the attachment of your post... wtf.
Ok, so somehow the camera application is asking for ZSL mode, and the HAL says nope.
Can you paste the result of adb shell dumpsys media.camera?
Also... XZ1 does have ZSL, right?

Can you test with the attached APK?
I've force disabled ZSL

phhusson said:
Can you test with the attached APK?
I've force disabled ZSL
Click to expand...
Click to collapse
Done, this time I get a working viewfinder but when I actually capture I get a flat green screen. I'm pretty sure I know what it is.
Code:
11-24 19:39:17.047 930 3396 D ckb : keymgr_createDecryptedData failed. category=0x434d424c, shaderType=40
It's Sony's DRM failing due to the bootloader being unlocked.

Gairtial said:
Done, this time I get a working viewfinder but when I actually capture I get a flat green screen. I'm pretty sure I know what it is.
Code:
11-24 19:39:17.047 930 3396 D ckb : keymgr_createDecryptedData failed. category=0x434d424c, shaderType=40
It's Sony's DRM failing due to the bootloader being unlocked.
Click to expand...
Click to collapse
But stock ROM has working camera with bootloader unlocked no?

phhusson said:
But stock ROM has working camera with bootloader unlocked no?
Click to expand...
Click to collapse
Sometimes. It's inconsistent, sometimes you get a working but low quality photo, other times you just get a green blob. I suspect there's some condition that determines which you get but I'm not sure what it is.
There's a fix in the works for that though: https://forum.xda-developers.com/xz...hack-mod-sony-xperia-xz-premium-twrp-t3695171
I generally run AOSP on my device. Sony's AOSP ROM is actually an entirely different distro of Android, different devs, different binaries, different everything. Camera works fine on AOSP (and supports Camera2 which is nice).
Unfortunately I don't believe the AOSP distro supports Treble just yet. Last I heard they were hoping to get to that around P.

If I can help in some way, let me know

sToRm// said:
If I can help in some way, let me know
Click to expand...
Click to collapse
If you have something working on XZ1C already, I'd like to test it to see if it does indeed fix this problem, otherwise just keep doing what you're doing

Gairtial said:
If you have something working on XZ1C already, I'd like to test it to see if it does indeed fix this problem, otherwise just keep doing what you're doing
Click to expand...
Click to collapse
Yeah, me too hehe

xperia xz1 contacts
i lost my my sony xperia xz1. i have used the tool contact backup using xperia companion ... but i couldnt understand how to extract my contacts....every com folder has file named "fulldatabackup" .....the xml file contact file is hard to understand..... kindly tell me which file i have to send u

Related

How to edit the param.lfs on Samsung Note 4 910F

Hello XDA,
I want to edit my splash screen on my Note 4.
I already searched the interwebs and found a tutorial, but it didn't work for me :/
So I was trying to figure it out myself.
First I searched for the correct mmcblk
My devices are named like this
lrwxrwxrwx 1 root root 20 2014-07-17 00:58 aboot -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 20 2014-07-17 00:58 apnhlos -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 boot -> /dev/block/mmcblk0p17
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 cache -> /dev/block/mmcblk0p25
lrwxrwxrwx 1 root root 20 2014-07-17 00:58 dbi -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 20 2014-07-17 00:58 ddr -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 efs -> /dev/block/mmcblk0p13
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 fota -> /dev/block/mmcblk0p19
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 hidden -> /dev/block/mmcblk0p26
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 mdm1m9kefs1 -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 mdm1m9kefs2 -> /dev/block/mmcblk0p15
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 mdm1m9kefs3 -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 mdm1m9kefsc -> /dev/block/mmcblk0p16
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 misc -> /dev/block/mmcblk0p20
lrwxrwxrwx 1 root root 20 2014-07-17 00:58 modem -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 pad -> /dev/block/mmcblk0p11
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 param -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 persdata -> /dev/block/mmcblk0p23
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 persist -> /dev/block/mmcblk0p22
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 recovery -> /dev/block/mmcblk0p18
lrwxrwxrwx 1 root root 20 2014-07-17 00:58 rpm -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 20 2014-07-17 00:58 sbl1 -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 20 2014-07-17 00:58 sbl1bak -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 ssd -> /dev/block/mmcblk0p21
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 system -> /dev/block/mmcblk0p24
lrwxrwxrwx 1 root root 20 2014-07-17 00:58 tz -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 21 2014-07-17 00:58 userdata -> /dev/block/mmcblk0p27
I decided to "clone" the param block to '/sdcard/param.lfs' using this command:
dd if=/dev/block/mmcblk0p12 of=/sdcard/param.lfs
Click to expand...
Click to collapse
This worked without problems and I got my file.
Now I've got the problem that I can't open or extract it in anyway.
I tried the following things:
tar command
a python script I found
a bash script I found
Mounting it to a folder
None of them worked for me.
Here are the scripts:
Bash Script:
#!/bin/bash
# filename: extract-jpg.sh
starts=(`grep -Pabo $'\xFF\xD8' $1 | cut -f 1 -d :`)
ends=(`grep -Pabo $'\xFF\xD9' $1 | cut -f 1 -d :`)
for (( i = 0 ; i < ${#starts[@]} ; i++ )); do
end=$((ends[$i] + 2))
count=$((end - starts[$i]))
echo "-I- Extracting ${starts[$i]}.jpg"
dd if=$1 bs=1 skip=${starts[$i]} count=$count > ${starts[$i]}.jpg
done
Python Script
from os import system
import sys
sys.stderr = open("./log.txt", "wb")
#sys.stdout = open("./stdout.txt", "wb")
def pr_err(msg):
print(msg)
system("pause")
exit()
def try_to_open(file):
res = ""
try:
res=open(file,"rb").read()
except:
pr_err("%s not found or can't be opened" % file)
return res
def open_jpg(file):
jpg = try_to_open(file)
if (len(jpg) == 0):
pr_err("%s is empty" % file)
elif (len(jpg) > 64673):
pr_err("%s bigger than 64673 bytes" % file)
else:
print("opened %s" % file)
return jpg
param = try_to_open("./param.lfs")
print("opened param.lfs")
img_orig = open_jpg("./image_orig.jpg")
img_new = open_jpg("./image_new.jpg")
if (len(img_orig) < len(img_new)):
pr_err("image_new.jpg is bigger than image_orig.jpg. Try to decrease its size.")
img_start = param.find(img_orig)
if img_start == -1:
pr_err("image_orig.jpg is not found in param.lfs")
else:
print("found image_orig.jpg in param.lfs")
length = len(img_orig) - len(img_new)
img = img_new + "\x00"*length
if length:
print("created image_new_.jpg with same size as image_orig.jpg")
open("./image_new_.jpg","wb").write(img)
new_param = param[:img_start] + img + param[img_start + len(img_orig):]
#print(len(param[:img_start]), len(img), len(param[img_start + len(img_orig):]))
if (len(new_param) != len(param)):
pr_err("Error, sizes of param_mod.lfs and param.lfs not matches")
open("./param_mod.lfs", "wb").write(new_param)
print("created param_mod.lfs")
system("pause")
So, my question is... How do I extract and repack it so I can change the splash screen to something ... Fancy
Additional Details:
Device Brand: Samsung
Device Model: Note 4 910F - Snapdragon
ROM: Emotroid Android 6.0 ROM

What does control each partition?

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

Mount points and partition layout (oreo)

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.

Root (Magisk) possible?

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/

Unable to extract userdata partition size

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

Categories

Resources