Downloaded Chinese firmware but can't extract Call Recorder - IMG file not EXT4 ! - Huawei P40 Pro Questions & Answers

Please anyone senior to comment of what I do and what's the right way ?
- I decompressed Chinese firmware for P40Pro. Finally extracted bunch of partitions as IMG files and I am lost now:
Linux says
>file system.img
> DATA
while I expected EXT4. Maybe extraction went wrong ? How do I now open IMG partition and get my Call recorder from it ? What other API I would need to extract to allow access to mic and speakers... Anyone can put some light on all this topic ?

Where did you get the firmware, If I could give it a try, I might be able to retrieve the apk (not sure, but there's always a chance if the apk exists).

Huawei switched away from the EXT4 file system to EROFS

Works like charm :
https://forum.xda-developers.com/sho....php?t=1441643
Thanks to: Tonycid
mega.nz/file/4U5WRL4T#BbIBIV5CSOpKC326z3S-ocWCt63NuTfSVBKMnOmUWr4

arturo.mg said:
Where did you get the firmware, If I could give it a try, I might be able to retrieve the apk (not sure, but there's always a chance if the apk exists).
Click to expand...
Click to collapse
I found it here at easy firmwares. I also have found a script on XDA which should extract content of IMG file which is not EXT3 indeed.
Here is a thread about mounting EROFS
Maybe this helps someone ?

I get an error when I updated. it looks so error 412 #23234sQwerRddgg? Who can help me?

Related

[Request] somebody that can create update.zip for cwm

can someone create a update.zip for cwm with this old firmware v08 , i just badly need it , i have a prototype o3d and i updated it to v10d and after that my battery is always 0%.. the old firmware that is ok with my o3d is v08.
this is the link of the 1st rom that i need.
http://www.multiupload.com/UQPQO1SJ0S
i am hoping that someone can help. thanks
isaias19 said:
can someone create a update.zip for cwm with this old firmware v08 , i just badly need it , i have a prototype o3d and i updated it to v10d and after that my battery is always 0%.. the old firmware that is ok with my o3d is v08.
this is the link of the 1st rom that i need.
http://www.multiupload.com/UQPQO1SJ0S
i am hoping that someone can help. thanks
Click to expand...
Click to collapse
If that's the firmware you need, just download it and put in a zip file.
right click on the folder then add to archive. use the compression method store.
That should work but do a backup before hand just in case.
I tried to zip it and rename it to update.zip and install it via cwm recovery but the recovery said that it failed on signature.. Something.,,
isaias19 said:
I tried to zip it and rename it to update.zip and install it via cwm recovery but the recovery said that it failed on signature.. Something.,,
Click to expand...
Click to collapse
The file is already a zip file, it's just in the wrong compression method...
using winrar, open the zip file, then tools, then convert archive.
A box should appear, change the archive format to zip, and compression method to store.
Hi, isaias19, I also have a prototype o3d. I can not use it after rom(v10d, v10e) upgrade. If possible, could you post your v08 rom backup file using cmw?? Thanks.
@ modernbruce
we have the same problem , i did not backup my stock rom thats why iam searching for the v08 firmware. =C
Hi ,
For your case update.zip will not solve your problem.
you need dump your system and replace by another one:
To see your partition :
adb shell cat /proc/partitions
After try use these command to put your new system :
http://www.omappedia.org/wiki/Android_eMMC_Booting
++

[Q] Problem with flashtool extracting firmware?

Hello! Before posting, i search this forum but not found nothing understandable. I wont to modify .ftf file of sony xperia e single sim, edit some apps and repack in fleshable ftf again, but i have some problems. Ok i'm doo next:
1. Extract flashtool via winrar.
2. Copy system.sin to flashtool directory and extract with sin editor, and get 2 files system.ext4 and system.partinfo, but with flashtool only possible to extract yaffs2 files. 3. Here is big problem, i tryed menny softwares for opening ext4 images in windows, but only ext2 exploer can modify this files, but totaly inaccesible with screen readers like as jaws.
4. I found some tutoryals for mounting in linux but i can not understand linux commands as well, for example did i must know exactly syze of system partition to mount ext4 image, maby exist some gui program for linux from wich can mount end edit ext4 images?
Finally, does possible making flashable img or ftf file for sonny phones for custom roms? For example, easyer to me is flashing custom roms via fastboot, because in some situations for cm recovery i need sited assistance.
Thanks, and best regards.
iksi said:
Hello! Before posting, i search this forum but not found nothing understandable. I wont to modify .ftf file of sony xperia e single sim, edit some apps and repack in fleshable ftf again, but i have some problems. Ok i'm doo next:
1. Extract flashtool via winrar.
2. Copy system.sin to flashtool directory and extract with sin editor, and get 2 files system.ext4 and system.partinfo, but with flashtool only possible to extract yaffs2 files. 3. Here is big problem, i tryed menny softwares for opening ext4 images in windows, but only ext2 exploer can modify this files, but totaly inaccesible with screen readers like as jaws.
4. I found some tutoryals for mounting in linux but i can not understand linux commands as well, for example did i must know exactly syze of system partition to mount ext4 image, maby exist some gui program for linux from wich can mount end edit ext4 images?
Finally, does possible making flashable img or ftf file for sonny phones for custom roms? For example, easyer to me is flashing custom roms via fastboot, because in some situations for cm recovery i need sited assistance.
Thanks, and best regards.
Click to expand...
Click to collapse
I have looked around to repack an extacted system.sin but never found how to do it. To dump the ext4 img just use ext2 explorer after it has finished extracting & loading click save in the toolbar and choose the folder where you want to save it.
gavster26 said:
I have looked around to repack an extacted system.sin but never found how to do it. To dump the ext4 img just use ext2 explorer after it has finished extracting & loading click save in the toolbar and choose the folder where you want to save it.
Click to expand...
Click to collapse
hello! I can't found ext2 explorer, i only found ext2explore, but this software is totaly unusable for me, don't works with screen readers.
P. s. whats your problem when you try making system.sin?
iksi said:
hello! I can't found ext2 explorer, i only found ext2explore, but this software is totaly unusable for me, don't works with screen readers.
P. s. whats your problem when you try making system.sin?
Click to expand...
Click to collapse
There's no tutorial on how to build one or a tool. Not for windows anyway.

[Q] How to extract build.prop from system.img

I have the stock rom for the Galaxy S6 Cricket variant... I am having trouble in getting the build.prop from the system.img. I have tired many methods from other threads but none seem to work. Any suggestions or working ways to extract the build.prop from the system.img or any way to open up the .img file.
I am doing this to post the rom in the ROM WIP section for the root.
gmx1994 said:
I have the stock rom for the Galaxy S6 Cricket variant... I am having trouble in getting the build.prop from the system.img. I have tired many methods from other threads but none seem to work. Any suggestions or working ways to extract the build.prop from the system.img or any way to open up the .img file.
I am doing this to post the rom in the ROM WIP section for the root.
Click to expand...
Click to collapse
Try the tools in this thread . I used them last week to extract a build prop.
Just load up the system.IMG and drag the file from the system folder to your desktop.
gmx1994 said:
I have the stock rom for the Galaxy S6 Cricket variant... I am having trouble in getting the build.prop from the system.img. I have tired many methods from other threads but none seem to work. Any suggestions or working ways to extract the build.prop from the system.img or any way to open up the .img file.
I am doing this to post the rom in the ROM WIP section for the root.
Click to expand...
Click to collapse
The tar file for Cricket has already been posted in the general section of ATT
Sent from my SAMSUNG-SM-G920AZ
daniel4653 said:
The tar file for Cricket has already been posted in the general section of ATT
Sent from my SAMSUNG-SM-G920AZ
Click to expand...
Click to collapse
I already downloaded that file.... I just need to extract the build.prop from the system.img which I already have. The thing is I am having trouble getting the build.prop
Sent from my SAMSUNG-SM-G920AZ
gmx1994 said:
I have the stock rom for the Galaxy S6 Cricket variant... I am having trouble in getting the build.prop from the system.img. I have tired many methods from other threads but none seem to work. Any suggestions or working ways to extract the build.prop from the system.img or any way to open up the .img file.
I am doing this to post the rom in the ROM WIP section for the root.
Click to expand...
Click to collapse
I got your PM. Sorry for the late reply. I'm posting here in case someone else needs the info.
Download Ext2explore.
Extract to your PC.
Run as administrator.
In app: go to file - open image - (find your system image) and open
It will display your image in tree and folder view
Use either one (depending on your preference) (but your build.prop will be in the first view as its in the root of the system).
Right click the file/s you want to extract
Select save
Save your file.......profit
Hope this helps
tiboric said:
I got your PM. Sorry for the late reply. I'm posting here in case someone else needs the info.
Download Ext2explore.
Extract to your PC.
Run as administrator.
In app: go to file - open image - (find your system image) and open
It will display your image in tree and folder view
Use either one (depending on your preference) (but your build.prop will be in the first view as its in the root of the system).
Right click the file/s you want to extract
Select save
Save your file.......profit
Hope this helps
Click to expand...
Click to collapse
When I try to open the file the program just closes and i go to the log and this is what it says.
Error Opening \\.\PhysicalDrive1. Error Code 2
No of disks 1
Scanning \\.\PhysicalDrive0
index 0 ID 7 size 976769024
Partition Table Error on C:/Users/giovany/Desktop/New folder (2)/system.img
Invalid End of sector markerBad Super Block. The drive is not ext2 formatted.
Drive is not right formatted.
solution for img extraction/fix here

[REQUEST] OTA .182 update Zip

Hi!
I'd like to know where the OTAs are stored in our M2. Anyone that hasn't done yet the update download, and that has Root permissions, can use this app to find where they're stored, and if possible, upload it and post a link to it.
Thank you!
Do you still needed the file, sir ?
FunSucker said:
Do you still needed the file, sir ?
Click to expand...
Click to collapse
Yep. It's for some research
I think, the app didn't work sir. After I wait 30 minutes, none of the files were copied to my storage. Then I try searching using manual method, I found one file, the file size is as large as my OTA update. The nama file is "update-package".
The file extension is not ".zip", in the folder recovery (internal storage). My estimate, the file extension .LZMA or .tar.LZMA or .zipx.
I've tried to extract and decompress in the PC (windows os) using some programs, but failed.
If you still need the file, I'll upload it now .
FunSucker said:
I think, the app didn't work sir. After I wait 30 minutes, none of the files were copied to my storage. Then I try searching using manual method, I found one file, the file size is as large as my OTA update. The nama file is "update-package".
The file extension is not ".zip", in the folder recovery (internal storage). My estimate, the file extension .LZMA or .tar.LZMA or .zipx.
I've tried to extract and decompress in the PC (windows os) using some programs, but failed.
If you still need the file, I'll upload it now .
Click to expand...
Click to collapse
Yes please! Thanks
oke, sir. when finished i will share the link.
Oke sir, check this out --> Google Drive
FunSucker said:
Oke sir, check this out --> Google Drive
Click to expand...
Click to collapse
Great, thank you very much!
Okay, so this is what I got:
The update zip refuses to be flashed in UBL devices. FOTAkernel system is broken after you open the bootloader, which leads us with an unused partition (but that's other thing). The recovery logs just say: WARN: Status Rooted, ERR: Bootloader is unlocked.
I've tried to force it using AOSP Recovery commands
Code:
echo 'boot-recovery' > /cache/recovery/command
echo '--update_package=/sdcard/update.zip' >> /cache/recovery/command
reboot recovery
But just got a big nope.
So, now time to have a look at it. I tried to unpack it several times but no luck. The reason seems to be, very probably, because this is a LZMA compressed file (as 7-Zip reported) but with 2 additions at the end (which corrupts the entire read of it): An unencrypted/uncompressed XML which points out which is the software available right now in the phone (<source>), and which is the version that is going to be installed (<target>), plus, some a weird <generation> section. This is the XML
Code:
<?xml version='1.0' encoding='ISO-8859-1'?>
<metadata version="3.3">
<product>
<manufacturer>Sony</manufacturer>
<model>D2302</model>
<hwplatform>msm8226</hwplatform>
</product>
<update>
<generation>
<version>1.1.2</version>
<date>2015-12-28T12:10:19Z</date>
<rb_version>7.0.15.117</rb_version>
<rb_ua_version>7.0.15.117</rb_ua_version>
</generation>
<source>
<software>
<revision>18.6.A.0.175</revision>
</software>
<customization>
<variant>1281-0464</variant>
<revision>R2C</revision>
</customization>
</source>
<target>
<software>
<revision>18.6.A.0.182</revision>
</software>
<customization>
<variant>1281-0464</variant>
<revision>R2C</revision>
</customization>
</target>
</update>
</metadata>
And, right after that, I can perfectly see a SIN header, so I isolated it and, looks quite similar to the FOTAkernel.sin included in FTFs (330613072905Z010U S1_FOTA0 ‚"0), I personally guess it's a very, very small ELF binary, by the size of it.
So, the problem now comes to isolate the 3 parts, the LZMA file, the XML and the SIN, separetly. After that, I think we can probably have a look insde them.
How about linux os? Can we unpack or decompress that file on linux os, sir? Do you have tried?
FunSucker said:
How about linux os? Can we unpack or decompress that file on linux os, sir? Do you have tried?
Click to expand...
Click to collapse
I've tried many tools and combinations (ext4, .img, etc) and none of them worked... I'll think more about it.

[dump][v10f] G7 Stock Vendor and System

Hello, so i decided to use TWRP to dump the system and the vendor image so that everyone can do whatever they want with it.
Heres the link.
if theres something wrong with the files or with the link please let me know.
The archives are small because i compressed them . . . a lot.
Ask
Hello,
I am using lg G710N10z
Can you please teach me how to unlock bootloader and to root.
Can't find tutorial for Korean model
Thanks
shin2468 said:
Hello,
I am using lg G710N10z
Can you please teach me how to unlock bootloader and to root.
Can't find tutorial for Korean model
Thanks
Click to expand...
Click to collapse
Unfortunately the only model that can be unlocked right now is the European one and version 10z still doesn't exist (maybe a typo?)
Any chans u have the 10k unmodified boot?
Could you do a system dump of the V40? I see you did the vendor for the V40.
TotallyAnxious said:
Could you do a system dump of the V40? I see you did the vendor for the V40.
Click to expand...
Click to collapse
I don't have the v40. The vendor is from autoprime.
LameMonster82 said:
Hello, so i decided to use TWRP to dump the system and the vendor image so that everyone can do whatever they want with it.
Heres the link.
if theres something wrong with the files or with the link please let me know.
The archives are small because i compressed them . . . a lot.
Click to expand...
Click to collapse
First of all, thank you heaps LameMonster82, you are an absolute champion!!. I was searching for hours to find a kdz file for G710EM10p and your posting was the only one I found. For some reason the "thaks" buttob isn't visible to me.. maybe because I'm a new member.
I thought I could be helpful by listing the different KDZ files which are in your google drive folder so other people can find them while searching through google like I was.
In the above link from LameMonster82 there are following KDZ files for the LM-G710EM (European) variant of the LG G7 :
G710EM10b
G710EM10f
G710EM10k
G710EM10p
For the LG V40:
V405UA10c
V405UA10l
To install the KDZ file follow the guide here: https://forum.xda-developers.com/lg-g7-thinq/how-to/guide-how-to-flash-stock-firmware-lock-t3820888
Thanks again
I am having problem downloading G710EM10p kdz file, is there perhaps an alternative download link?
terirem said:
I am having problem downloading G710EM10p kdz file, is there perhaps an alternative download link?
Click to expand...
Click to collapse
What kind of problem? Is it corrupted?
LameMonster82 said:
What kind of problem? Is it corrupted?
Click to expand...
Click to collapse
Download manages to get to 1 GB and then it drastically slows down and eventually fails. Via a download manager the farthest I got was 1,5 GB: although the download manager continued to download (it downloaded ~5 GB of data), the file was only 1,5 GB.
terirem said:
Download manages to get to 1 GB and then it drastically slows down and eventually fails. Via a download manager the farthest I got was 1,5 GB: although the download manager continued to download (it downloaded ~5 GB of data), the file was only 1,5 GB.
Click to expand...
Click to collapse
Doesn't seem to be something from me. Maybe Google's server are acting up or youre using your phone to download it. If you're using a phone it will sometimes do that. Try downloading another file and if not find a 10p version here: https://lg-firmwares.com/lg-lmg710em-firmwares/#tab=firmwares
I managed to download it! It went fine this time, I did not change anything on my side.
Thanks!
Btw, what is system_b.image? I cannot find anything of it on my phone.
terirem said:
Btw, what is system_b.image? I cannot find anything of it on my phone.
Click to expand...
Click to collapse
It's the system partition but it's empty because when you install an update the system copies there. A/B support
Is it possible to extract any of the system apk files from the image without it being flashed?
veekay said:
Is it possible to extract any of the system apk files from the image without it being flashed?
Click to expand...
Click to collapse
Of course. You just need a 7Zip or WinRAR to open the image and fish it out
LameMonster82 said:
It's the system partition but it's empty because when you install an update the system copies there. A/B support
Click to expand...
Click to collapse
Actually, I have unpacked G7's kdz and there's 4.4 GB system_b image. When I mount it, I see bunch of odex and vdex files. I can't see where are those in my phone.
terirem said:
Actually, I have unpacked G7's kdz and there's 4.4 GB system_b image. When I mount it, I see bunch of odex and vdex files. I can't see where are those in my phone.
Click to expand...
Click to collapse
Odex and vdex files? Never heard of them. The image should still have a size but filled with 0.
Hi
Could you plz extract for me from you G7 a system app called LG InCallUi apk (use apk extractor from play store)
Thnak you
KarimAssiakh said:
Hi
Could you plz extract for me from you G7 a system app called LG InCallUi apk (use apk extractor from play store)
Thnak you
Click to expand...
Click to collapse
Is this what you're looking for

Categories

Resources