Request : XZ1 Settings apk - Sony Xperia XZ1 Compact Questions & Answers

Hey,
Could someone please upload the apk file for system settings. It can be found in system/priv-app/settings/

korom42 said:
Hey,
Could someone please upload the apk file for system settings. It can be found in system/priv-app/settings/
Click to expand...
Click to collapse
The XZ1c version is 40MB in size deodexed. Once zipped, it's about 14MB so I can attach it to a post if you want.
It's the XZ1c version from FW 47.1.A.2.324.
You can also get it yourself by downloading the firmware you want with XperiFirm, then extracting the system sin file with UnSIN, then opening the resulting ext4 image with 7zip.

pbarrette said:
The XZ1c version is 40MB in size deodexed. Once zipped, it's about 14MB so I can attach it to a post if you want.
It's the XZ1c version from FW 47.1.A.2.324.
You can also get it yourself by downloading the firmware you want with XperiFirm, then extracting the system sin file with UnSIN, then opening the resulting ext4 image with 7zip.
Click to expand...
Click to collapse
I know how to extract it from firmware if I were home but, with my current limited and super slow data plan downloading +2gb file is no big deal .. so I appreciate if you can zip it and share it

korom42 said:
I know how to extract it from firmware if I were home but, with my current limited and super slow data plan downloading +2gb file is no big deal .. so I appreciate if you can zip it and share it
Click to expand...
Click to collapse
Attached as requested.

Related

[Q] How do I extract files from ROM?

Is it possible to extract an APK from a ROM File?
If i take the JM5 ROM, I can unRar it and then I can unTar the md5 file that is the ROM - but from there I just get a bunch of system files that I assume are images of partitions. The big one is the factoryfs.rfs - is there a way to pull an apk out of here, or do i have to install on a device first and save the APKs i want?
Thanks.
alphadog00 said:
Is it possible to extract an APK from a ROM File?
If i take the JM5 ROM, I can unRar it and then I can unTar the md5 file that is the ROM - but from there I just get a bunch of system files that I assume are images of partitions. The big one is the factoryfs.rfs - is there a way to pull an apk out of here, or do i have to install on a device first and save the APKs i want?
Thanks.
Click to expand...
Click to collapse
Just tell us what application your looking for(remember to follow the forum rules before replying )

[TOOL]LG Bin Firmware Extractor

LG BIN/TOT Extractor
This is a tool for extracting LG Bin/Tot Firmware files.
I update the git a lot more than what I update the thread so check there for latest news.
Features
Split Bin file into relevant partitions
Split Tot file into relevant blocks and merge blocks into partitions
Display AP Header
Display GPT Header
Extract Header from Bin/Tot File
Features I like to implement (and probably won't get around to)
Extracting boot img (The tools currently available don't work in all cases and it's very easy to read the header since it's open source.)
Extracting ext4 partitions. So that it's easy to access the file. Theres already other tools that can do this so this isn't essential.
Mergeing tot partitions based on data from partitions itself and not GPT
Inject Alternate Data into partitions. I'll block access to X-loader,U-boot and GPT so that You can't kill your phone.
Source
https://github.com/Xonar/LGBinExtractor
Confirmed to work with
Quite a few phones.
I lost track of which ones work.
To check just run with -daph. You'll get file information if it works and either garbled data or an error message if it doesn't.
If your phones not supported follow the steps on git readme.
Thanks
SnowLeopardJB - for lots and lots of testing
navossoc - his tool that extracts kdz and wdb files
vim1 - D821 support
scotty755 - LGL22 support
tkawajir - L-04E and LG G Flex F340K support
If you feel I forgot to thank you, msg me and I'll add you.
If it can extract BIN files then yes. We believe the nandroid V30* of KU5900 that was supplied was incomplete. So If KDZ is converted to BIN and FLS (which we can), then extract contents of BIN, then you can have complete files without looking for Koreans and Chinese to relay that the nandroid was incomplete and can have untampered files.
xonar_ said:
Question to other Devs
Will you use a tool like this or am I wasting my time?
Is a tool like this allowed or would it be considered reverse engineering? (If its not allowed I'm going to stop IMMEDIATELY)
Click to expand...
Click to collapse
Yes I will. If I myself can build a program to extract this EFI partition..
It is reverse engineering, but I don't know if it's legal or not (in this case), but for me it's legal as I'm considered this to educational purpose
Many others tool was created to have purpose like this, for example http://psas.revskills.de/?q=node/5
-CMIIW-
I've attached an image of the system partition of the V20E_00 for you guys to see.
I am going to download the v30H_00.kdz today. So I'll keep you posted about how the extracting goes. I probably won't have time to check it out until the weekend so please don't hold your breath.
I've only recently managed to find the necessary information about the ext4 file system to integrate the functionality into my tool. For now Ext2Read can extract the ext4 file system just fine. I'll add that somewhere over the weekend (Provided something doesn't come up).
Could you as soon, as you are able to unpack it fully maybe upload a complete backup of the system partition and also system2, cause we think, that in the nandroid there are some files missing and we need those, to probably be able to boot that system. Great job btw
Thanks for the positive feedback.
I am getting the v30h_00.kdz in a few hours (I got a friend to download it for me, I don't have that much cap ).
There is no way I will be able to upload the file since it will be big but if it works I'll post the tool and how to do it.
GitHub is giving me an error : "Page did not respond in a timely fashion". I am going to try again tonight to post the source.
I already tried to extract the bin files, but I didn't see any pattern to know where start or ends a partition.
Some partitions you can identify by it's header and try to extract the file size from there (i did that with recovery.exe).
If you know for sure the partition name and the address, I can improve the recovery.exe to patch always the right partition.
So, what is the trick?
[]'s
navossoc said:
I already tried to extract the bin files, but I didn't see any pattern to know where start or ends a partition.
Some partitions you can identify by it's header and try to extract the file size from there (i did that with recovery.exe).
If you know for sure the partition name and the address, I can improve the recovery.exe to patch always the right partition.
So, what is the trick?
[]'s
Click to expand...
Click to collapse
The first meg of the file contains the names of the data blocks size on file,size on disk and where they start on file. I'll post exactly how it is set out later.
The data blocks aren't only partitions though for example the first one is the GPT header with it's corresponding entries and also some blocks are empty.
I recognized the start the two partitions from your tool.
Sent from my LG Optimus Black
xonar_ said:
The first meg of the file contains the names of the data blocks size on file,size on disk and where they start on file. I'll post exactly how it is set out later.
The data blocks aren't only partitions though for example the first one is the GPT header with it's corresponding entries and also some blocks are empty.
I recognized the start the two partitions from your tool.
Sent from my LG Optimus Black
Click to expand...
Click to collapse
You are talking about the first 1MB from BIN? right?
They are using little endian or big endian to represent the numbers?
The name of the sections I already knew, but never found the initial offset.
I will try to take a look later.
[]'s
navossoc said:
You are talking about the first 1MB from BIN? right?
They are using little endian or big endian to represent the numbers?
The name of the sections I already knew, but never found the initial offset.
I will try to take a look later.
[]'s
Click to expand...
Click to collapse
Yes the BIN. They are using little endian. All the offsets and sizes are in LBA's (512 bytes in this case) with LBA 0 starting at 0x100000.
Sent from my LG Optimus Black
Source of Bin Fls Extractor (So far)
GitHub isn't working out as planned. The client stopped downloading in the middle and I don't want to waste more cap so here is the source as an attachment.
This is still a work in progress and is only confirmed to work with v20E_00 South Africa.
Linux users can just mount the *.img file of system to access it. Windows users have to use a tool like Ext2Read. Mac users I'm not sure : Google it.
EDIT : I wont be able to get the v30 kdz for another day unfortunately. Feel free to try and change my tool to work with it.
EDIT2: These sources are old. I'll upload my fixed ones later. Reads in chunks and works on P970 and KU5900 ( I don't have any other files to test it with but it should work with almost all BIN files extracted from kdz files )
xonar_ said:
GitHub isn't working out as planned. The client stopped downloading in the middle and I don't want to waste more cap so here is the source as an attachment.
This is still a work in progress and is only confirmed to work with v20E_00 South Africa.
Linux users can just mount the *.img file of system to access it. Windows users have to use a tool like Ext2Read. Mac users I'm not sure : Google it.
EDIT : I wont be able to get the v30 kdz for another day unfortunately. Feel free to try and change my tool to work with it.
Click to expand...
Click to collapse
Nah! The damn trick was the 512 bytes + 0x100000 base.
I never thinked about it...
I take a look at your code, I understand the whole concept now.
I have successfully extracted the system.img and system2.img from the V30H_00.kdz
Nice, maybe later I can do some modifications on recovery.exe, so they can find always the correct partition for recovery.img. (without the user choose one)
[]'s
navossoc said:
Nah! The damn trick was the 512 bytes + 0x100000 base.
I never thinked about it...
I take a look at your code, I understand the whole concept now.
I have successfully extracted the system.img and system2.img from the V30H_00.kdz
Nice, maybe later I can do some modifications on recovery.exe, so they can find always the correct partition for recovery.img. (without the user choose one)
[]'s
Click to expand...
Click to collapse
Nice! Great job you guys. :good:
navossoc said:
Nah! The damn trick was the 512 bytes + 0x100000 base.
I never thinked about it...
I take a look at your code, I understand the whole concept now.
I have successfully extracted the system.img and system2.img from the V30H_00.kdz
Nice, maybe later I can do some modifications on recovery.exe, so they can find always the correct partition for recovery.img. (without the user choose one)
[]'s
Click to expand...
Click to collapse
can you upload system files asap?
George Jetson said:
can you upload system files asap?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=31443301&postcount=270
Thanks to navossoc there
navossoc said:
Nah! The damn trick was the 512 bytes + 0x100000 base.
I never thinked about it...
I take a look at your code, I understand the whole concept now.
I have successfully extracted the system.img and system2.img from the V30H_00.kdz
Nice, maybe later I can do some modifications on recovery.exe, so they can find always the correct partition for recovery.img. (without the user choose one)
[]'s
Click to expand...
Click to collapse
That's good news.
I won't be able to work on the program during the rest of this week. With the system files extracted there's nothing that needs to be urgently done.
Next Step is to to try and build the BIN from other files. I think I can improve on your recovery.exe to add su binary and apk aswel (Might take a bit longer since I need to extract the ext4 partition, add su then put it back together )
Well, it's just a beta, because it use too much ram to write the files.
I need to read the file in chunks, but, for now it's a good prototype, we can using it.
extract.7z
Code:
CRC32: 2199d10f
MD5: 5b8d8031ff5d66ec2832d182e98505be
SHA-1: b6d729a20d4370e25ebc4eddfc27e25673b1d2f2
To use the tool is just run...
Code:
extract.exe filename_AP.bin
It should work on any bin file, tested on P920, P970 and KU5900.
Please report any error.
[]'s
Thanks navossoc its working well on ginger p970 bin file.
Great stuff thanks alot! You to make a great team.
Sent from my LG-P920 using xda app-developers app
Now how can we make a new bin file with that img files?

[Q] SO-04E system with deodex???

I am a complete noob in phones and androids and crap.
I'm not sure what on earth this thing is, it is a .7z file and has a folder called system.
It has all the files in the system folder and even as build.prop.
Does anyone know what a .7z file is and what can I do with the file in it.
And also I'm not sure what a deodex is...
Do I copy and replace the whole system file in my xperia SP?
I got it off here: (First post, highlighted with (NEW!)
http://forum.xda-developers.com/showthread.php?t=2452139
Link to the .7z file that I'm curious with:
https://docs.google.com/file/d/0ByYxifSPiyiMVGNqZmsydWpJVFE/edit
nobu1106 said:
I am a complete noob in phones and androids and crap.
I'm not sure what on earth this thing is, it is a .7z file and has a folder called system.
It has all the files in the system folder and even as build.prop.
Does anyone know what a .7z file is and what can I do with the file in it.
And also I'm not sure what a deodex is...
Do I copy and replace the whole system file in my xperia SP?
I got it off here: (First post, highlighted with (NEW!)
http://forum.xda-developers.com/showthread.php?t=2452139
Link to the .7z file that I'm curious with:
https://docs.google.com/file/d/0ByYxifSPiyiMVGNqZmsydWpJVFE/edit
Click to expand...
Click to collapse
odex file means the system keep in a bundle... it does not allow adv custamization.. some mod flash need deoxed yr system first or u maybe end up in bootloop... u need to deodex yr firmware before flashing the file... check the android development for proper guide...
the file u posted does not need to deodex... but it always a good things to deodex first... cheers :laugh:
flash the bootanimation(720x1280).zip one... i think that one for our xsp

Help ! Need SemcCameraUI.apk for .108

Hey guys , i was trying to flash a camera mod , but i got a problem and every time i lunch it i have force close so please i need anyone to upload "SemcCameraUI.apk" From "system/priv-app" and another frile name is "media_profiles.xml" from System/etc
-Thanks in advance
Before you do that, have you tried clearing the data in
settings/apps
for ALL the camera apps
gregbradley said:
Before you do that, have you tried clearing the data in
settings/apps
for ALL the camera apps
Click to expand...
Click to collapse
yea i did but the same :|
well,
I am sure you can restore the backup you made before flashing something new..
In the mean time, which FW of the SemCamerisUI do you need, you can always download a FTF and extract it from that..by now you will have had it...
gregbradley said:
well,
I am sure you can restore the backup you made before flashing something new..
In the mean time, which FW of the SemCamerisUI do you need, you can always download a FTF and extract it from that..by now you will have had it...
Click to expand...
Click to collapse
i tried to extract from the ftf , but it didn't work the tool i have to extract files from .ext4 only for ICS/JB , i had searched on the internet for the for the KK but i didn't find .
m0urazz said:
i tried to extract from the ftf , but it didn't work the tool i have to extract files from .ext4 only for ICS/JB , i had searched on the internet for the for the KK but i didn't find .
Click to expand...
Click to collapse
If you're looking for that APK, try downloading [NUT]'s .108 flashable zip file from here. In this zip file there is a file called "system.tgz", extract it, then in "system.tgz" there is a file called "system.tar". Extract the "system.tar" file and you'll see the folder structure of your "/system" partition, including the "priv-app" folder which contains the APK you're looking for. Bare in mind that this APK is odexed, so you'll have to copy the .odex file as well.
If you need the de-odexed version of said APK, download the de-odex package instead and grab the APK from there.
thanks guys , fixed

How to get CSC from stock ROM base (update)

Many users wanted to flash their own CSC on custom ROM. Here is small guide how to get original CSC from base and add to custom ROM.
1.Download your desired ROM from SamMobile (OR use if you have any base already with you from same region)
2.Extract zip to get tar.md5 - again extract it to get cache.img.
3.Get Img Extractor from here Extract exe file on a new folder. copy extracted Cache.img in this folder as well.
4.Drag and drop cache.img you have extracted from base on ImgExtractor.exe
5.You will see newly created folder cache.img_ along with exe
6.Open cache.img_ - recovery - sec_csc folder, you will see system folder. - Drag and drop that system folder on you desktop.
7.Now download csc_changer_new.zip template from here and drag and drop system folder on root of zip. (so after this when you open zip you should see three folders data, META-INF and system)
8.Flash that zip immediately after flashing ROM.
Update : Updated script so it will auto backup all ROM CSC features and auto restore after changing CSC
Repo
Here is sample ready made pack. (you can submit if you make for your region)
1.India CSC for N910G - Download and flash zip immediately after flashing ROM.
2.DBT CSC - Download and flash zip immediately after flashing ROM
.
Updated script so user have not to manually copy ROM CSC features.
.
thx doc.
Your download link drops csc_N910G_India.zip.exe which is malware, WTF?
https://www.virustotal.com/en/file/...5be0c844a946a25ff87a1aa5/analysis/1434632411/
2.Extract zip to get tar.md5 - again extract it to get cache.img.
Click to expand...
Click to collapse
Using 7zip on Windows I get a cache.img.ext4 file which does not create the expected files when dropped onto ImgExtractor.exe.
May I get a clue?
catseyenu said:
Using 7zip on Windows I get a cache.img.ext4 file which does not create the expected files when dropped onto ImgExtractor.exe.
May I get a clue?
Click to expand...
Click to collapse
Don't drop cache.img direct from zip. First drag to desktop then drop on exe
Sent from my SM-N910G using xda premium
dr.ketan said:
Don't drop cache.img direct from zip. First drag to desktop then drop on exe
Sent from my SM-N910G using xda premium
Click to expand...
Click to collapse
Thank you for your reply...
I put both files on my desktop and then dropped the file onto the .exe.
It seemed to do something but still no folder.
Log saying folder created. Look again folder somewhere on desktop. Better you make new folder and put exe inside it then drop cache.img so it's can easily located inside that new folder
Sent from my SM-N910G using xda premium
dr.ketan said:
Better you make new folder and put exe inside it then drop cache.img so it's can easily located inside that new folder
Click to expand...
Click to collapse
Tried it in a new Temp folder on my desktop, it is still not working for me.
catseyenu said:
Tried it in a new Temp folder on my desktop, it is still not working for me.
Click to expand...
Click to collapse
The link where you downloaded image extractor has a guide for how to extract.
Got it, thanks!
dr.ketan said:
Here is sample ready made pack. (you can submit if you make for your region)
LINK REMOVED - Download and flash zip immediately after flashing ROM.
Your download link drops csc_N910G_India.zip.exe which is malware, WTF?
https://www.virustotal.com/en/file/...5be0c844a946a25ff87a1aa5/analysis/1434632411/
.
Click to expand...
Click to collapse
Okey dokey, I think I'll settle this once and for all.
@catseyenu was using the wrong download link. As you can see from going to the download page there are 2 download buttons, the first which says "Download" is a fake download link and will redirect you to another site and try to get you to download some sort of software in .exe form.
The correct link is the one that says "Download Now" which I have verified this and was able to download it without any problems.
With Dev-Host it is a case of knowing which download link to press. On a side note, our (XDA's) partnership with Dev-Host has ended due to them not wanting to control the ads that they have and often redirecting users to other sites and trying to get them to download possibly malicious software. Due to this I would encourage the OP to use other file hosts such as AndroidFileHost for example.
Thank you Jonny for clarifying the status of the malicious host.
Jonny said:
Due to this I would encourage the OP to use other file hosts such as AndroidFileHost for example.
Click to expand...
Click to collapse
Actually for small Download I also prefer mega which is now a days offers highest Download speed and most users prefer it. Initially I have posted link was mega. But I need to update it and particularly this file targeted for Indian users, and many provider in India have blocked mega so this time I made dev host upload.
For rom I prefer dev /pCloud and Media fire bcoz all three gives Web upload (remote uoload) option so I can provide three mirrors by uploading at one place.
Again thank you very much for being with us always.
Regards
Sent from my SM-N910G using xda premium
One question: Can i loss some tweaks or features of the custom ROM flashing my original CSC files?
dr.ketan said:
Many users wanted to flash their own CSC on custom ROM. Here is small guide how to get original CSC from base and add to custom ROM.
1.Download your desired ROM from SamMobile (OR use if you have any base already with you from same region)
2.Extract zip to get tar.md5 - again extract it to get cache.img.
3.Get Img Extractor from here Extract exe file on a new folder.
4.Drag and drop cache.img you have extracted from base on ImgExtractor.exe
5.You will see newly created folder cache.img_ along with exe
6.Open cache.img_ - recovery - sec_csc folder, you will see system folder. - Drag and drop that system folder on you desktop.
7.Now download csc_changer_new.zip template from here and drag and drop system folder on root of zip. (so after this when you open zip you should see three folders data, META-INF and system)
8.Flash that zip immediately after flashing ROM.
Update : Updated script so it will auto backup all ROM CSC features and auto restore after changing CSC
Click to expand...
Click to collapse
Sir, this method can be used for completely stock rom?
German CSC for N910F
Hey Guys,
if anybody is looking for the german csc you can download it from here: http://workupload.com/file/Km2FjCof
I made it according to dr. ketans explanation. Just one thing when I go into phone info / CSC-Code it states:
Original CSC.-Code: INU
Firmware CSC-Code: DBT
Active CSC Code: INU/ DBT
Available CSC.-Codes: BTU, CPW, DBT, ITV, KOR, XEF, XEO
CSC Country: Germany/DE
Do I need to use the csc changer apk and therefore wipe everything? Or am I good even though active CSC is Indian and German??
I am on Nameless Rom 4.2 and the reason for me doing this was because of the message I receive on every boot up stating: Texting just got better.... Where you need to give your mobile number (you can also just click 2 times on no but thats not an option for me) But even after I flashed my CSC zip it still shows up.
@dr. Ketan do you have a solution or did i do something wrong? I did it step by step. Hope to receive an answer.
Probably that is issue of rom and not csc.
Indian csc causing send a text message to Indian number that should be fixed (on latest nameless I think prefixed) by changing csc
Sent from my SM-N920I using xda premium
I solved with the csc changer app, i switched to dbt and had to wipe everything. Restored my apps and date with titanium backup, now i am running with german csc on nameless rom 4.2
And the texting got better pop up disappeared
CSC Note 5
I tried this on my new note 5. I flashed a TMOBILE rom and that totally screws with csc and features. This does work in the sense that it brings back my multi csc for my Canadian note. However where I get the problems is similar to the gentleman above. It only partially applies the csc that I need. When I flash the zip. It attributes a generic out of the US csc XAC. When i try something like Phone info Samsung to change it to RWC. It only changes where its says active csc and it still shows XAC as also active. ANd firmware csc and original csc still show as XAC. Why when i flash the stock rom does it default to RWC eventhough the csc files are the same, but with a custom rom XAC?

Categories

Resources