[Q] Create Custom ROM on linux - Xperia Z1 Q&A, Help & Troubleshooting

Hello,
i use Linux as my System. Today i would create an flashable ZIP from the latest Lollipop ftf from Germany.
I use Flashtool and the SIN Editor. Now i have the system.ext4 and mounted this to an folder to copy the files to my new system Folder.
I that correct?
The System Folder looks like the attached image. Folder-Tree is
/system/[system app]/arm
and
system/[system app]/[some apk]
I only found howto’s for Windows :-/

Related

.Img file extracter

My default browser went foobar on me when i tried to go into the about menu.
Could someone upload the 2.1 apk and odex pls.
Thanks
EDIT: Changed the topic name to reflect the newly found utility that helped me recover my files since. I had no current backup and did not want to start from scratch. Figured it could help if you ever find yourself in that situation or want to extract files from other rom backup.
nm 10 chars
Unyaffs
Did some digging around and found a nice utility to extract the files from the .img. Extracted the system.img from the stock rom unpackaged it with unyaffs.
Here's the utility
Code:
Usage: unyaffs name_of_file.img
WARNING **This will extract all the files in the working directory**

[help] updete-script for deodex stock firmware

I want to deodex stock firmware (2.36 - XWKTH) and i made the zip file with system folder include 'app' and 'framework' folders.
I can't create update-script for this.
any bady can make me a list of commands For the following? (of course with mount system and what is needed for this)
Code:
deleting .odex files forom app and framework.
copying system folder (in the zip file) to /system
Many thanks!

[Q] Extract sytem.sin

I need some help, I don't seem to be able to extract the sytem.sin, then I get a gZ archive witch I can't open with 7zip, annyone has a method that works? or a ext4 extractor?
extract system.sin from archive, then use flashtool and option sin editor, it will make .ext4 file...and last step use ext2explore-2.1.65 and open ext4 file
ArmaNineTSeven said:
I need some help, I don't seem to be able to extract the sytem.sin, then I get a gZ archive witch I can't open with 7zip, annyone has a method that works? or a ext4 extractor?
Click to expand...
Click to collapse
as our friend said, the procedure is that easy, and that was complete, just for making your burdun a bit lighter, this is link for that explorer you need at the last step
wish you luck bro
http://sourceforge.net/projects/ext...xt2explore-2.1.65.zip/download?use_mirror=dfn
hoping to make a stock based rom for LT30p so we can keep the polished stock rom, with maybe some nexus look-a-like xp I'll see
No need for the ext2 explorer.
Once you have dumped the data in flash tool just use that ext4 file as the working file for your Rom in dsixdas kitchen
Sent whilst sat on the toilet.
I put the system.ext4 in the original update folder , but still get this: Ensure there is at least one ROM under the 'original_update' folder!
ArmaNineTSeven said:
I put the system.ext4 in the original update folder , but still get this: Ensure there is at least one ROM under the 'original_update' folder!
Click to expand...
Click to collapse
Make sure you read the instructions in the kitchen OP and post 2
Sony Xperia 2011-12 devices, specifically:
- TX, P, U, Sola
- Active, Arc, Arc S, Mini, Mini Pro, Neo, Neo V, Neo L,
Play, Ray (follow steps below):
- Can only build ROM without boot.img
- If using stock FTF for kitchen:
1) Unzip FTF file, extract the system.sin
2) Dump system image from system.sin w/ Flashtool
(Advanced-> SIN Editor)
3) Rename dumped file to system.img
- OR If using Nandroid backups: Rename system.yaffs2.img to system.img
- Use this system.img in kitchen's original_update folder
- WARNING - If using a ROM made from system.sin (not Nandroid), it
is recommended to flash from the temporary (fastboot) Clockwork
Recovery, rather than the regular Clockwork Recovery, otherwise
device may not boot (possibly because custom recovery files in
system folder are not added to ROM? e.g. recovery.tar).
Click to expand...
Click to collapse

STOCK ROM (tar file to zip file)

If someone can teach me how convert the rom.... I really appreciate it.
Use this method..
rizal2105 said:
If someone can teach me how convert the rom.... I really appreciate it.
Click to expand...
Click to collapse
Download a valid update.zip to
use as a template - for example,
my CyanogenMod 0.7.
Extract the zip to a new folder and
rename it - let's call the folder
updatezip .
Inside the updatezip folder, delete
the system folder and boot.img
file (as these are the
CyanogenMod files that you don't
want).
For the ROM you want to convert,
extract the contents of its
system.rfs image to a new folder
called system.
Copy this new system folder to the
updatezip folder.
Copy the boot.img file from your
ROM to the updatezip folder.
Re-zip the contents of the
updatezip folder (but not the
updatezip folder itself). If you see
warnings about symlinks not
being added, don't worry - we
don't want to add them anyway.
You need to have some Linux shell
experience in order to do this. You
can't do it from Windows.
rizal2105 said:
If someone can teach me how convert the rom.... I really appreciate it.
Click to expand...
Click to collapse
Use dsxida kitchen
Search about it.
Sent from my Nexus 5 using Tapatalk 2
Thanks for to all of your concerns. I really appreciated.
@sangalgojoe
Thanks Dude???
thanks for this i was seraching for this

How to unpack a SYSTEM.IMG file? Older tools won't work

Hi! I need a very specific system dump to try some mods, Unfortunately most of the tools I used no longer work. I tried with Ext2explore, Ext4Unpacker and some others but they all give a error message. What is the correct method for doing a Samsung system dump? I'm on Windows 8.1 (x64)
I guess I found the perfect tools right here on XDA: https://forum.xda-developers.com/s6...ol-tools-file-extraction-img-tar-md5-t3236605
Download the tool and unzip. Extract the system.img file using WinRAR o 7zip. Drag and drop system.img into NEWIMG2EXT2 This will convert the .img into a .ext4, to be opened with Ext2explore. Now that you have a complete dump you can deodex and start tinkering.

Categories

Resources