[Q] How to Unrepack & Repack System.img using Windows - Android Q&A, Help & Troubleshooting

How can i unpack & repack system.img? I have no linux and I only have Windows Xp s3. I just want to create a custom rom for my device. I use kitchen but i have an error status 6. so i want to try repacking my system.img so that i can install my rom. thanks in advance!

badtreep said:
How can i unpack & repack system.img? I have no linux and I only have Windows Xp s3. I just want to create a custom rom for my device. I use kitchen but i have an error status 6. so i want to try repacking my system.img so that i can install my rom. thanks in advance!
Click to expand...
Click to collapse
Google is our friend , try to google compile and decompile apk tool + xda developers
Hit the thx button if i helped ya in anyways

i don't think the apktool is the solution with my problem. i want to decompile and recompile a system.img not an apk file.

badtreep said:
i don't think the apktool is the solution with my problem. i want to decompile and recompile a system.img not an apk file.
Click to expand...
Click to collapse
Oops my bad
Hit the thx button if i helped ya in anyways

it might help .....
http://forum.xda-developers.com/showthread.php?t=1477845

thebdcoder said:
it might help .....
http://forum.xda-developers.com/showthread.php?t=1477845
Click to expand...
Click to collapse
This needs Linux, as written in the Guide. But yes, installing Linux through VirtualBox in Windows will do the trick, on the other hand if you ask.
@ OP, this is a tool for windows. Check this out, and see whether it works.
[WINDOWS][TOOL]Android ICS JB EXT4 ImageFile Unpacker!!!

Related

[CLOSED][How To]Make your Own Custom ROM ~~By NeroYoung~~ [3/4/2012]

This Thread is closed now
Visit new thread for more tutorials
Look link in my signature​
Hi,
If you willing to learn to build custom ROM then you should have following things
Basic Knowledge about handling Command Promt
Basic Windows software knowledge
PC with all tools properly installed
And a mobile with bootloader unlocked
This tutorial is for "Windows OS (Windows 7 x64 in my case)" And Android 2.3+ OS (2.3.4 GingerBread in my case).
In this whole post you will learn How To -
Make custom ROM
Unpack .ftf packages
Use Cygwin
Setup Android Kitchen
Edit .apk files
Edit .jar files
Edit .9.png files
Rooting System
Writing scripts
Making flashable zips
Porting apk software
A2SD Techs
Editing build.prop
Editing init.d tweaks
Information of every customizable file
Making Hosts
apn configs
editing boot.img
converting png to rle or vice versa
more and more things to arrive
Tools Required :
Download the tools as per your need.Link is given in the name itself below....
Flashtool - For Flashing stock ROM if anything goes wrong (Download link in the installation tab of website)
apktool - for editing apk files and jar files (you can use APK manager but apktool is simpler)
Cywign - Linus Terminal For Windows
ROM Kitchen (ROM Development Tool) - For Cooking custom ROM + boot.img related tools - to edit boot.img files (Its inside the ROM Kitchen Files)
ftf-extractor - It will extract system files from the ftf package which you will use to make your ROM
fastboot - For flashing kernel to your device
DoomLords Easy Root Kit v4 - To Root Stock/Custom ROM
Demo META-INF Folder - For Making Flashable zip files
DroidExplorer - For advance tools regarding real time phone memory handling through windows.
Flashable Zip Demo - For those who want to just apply some stuffs through CWM
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Tools Overview​
Introduction​
This video gives information about the basic tools for ROM development.
Tools will be uploaded once the tutorial is completed.And the links will be posted in 1st post.This tutorial is for all kinds of devices.No matter what your device is ... you can use this tutorial...
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Settings Up Cygwin And Kitchen​
This video teaches you how to setup Cygwin And Kitchen.The softwares told in this video can be downloaded from first post
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Setting Up Remaining Tools (ftf extractor,flashtool,fastboot etc)​
This video teaches you how to setup all remaining files and folders...
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Getting System Folder​
Extracting .FTF File​This tutorial guides you how to extract system folder from .ftf packages and get system folder for your custom ROM easily.
For this we have used ftf extractor.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Working With Android Kitchen​
Getting Started​This tutorial will tell you how to setup working folder in kitchen and how to root your ROM,change name,add busy box etc.
This is pre requirement on ROM development.So this video will continue after total customization is done !
After this video you can jump to next post to proceed with customization and then come back to setup to second video in this post so you can continue packing of system folder in flashable zip
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Finalizing ROM​This video shows you how to finalize making zip file of your ROM and use it for flashing.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Working With APKTOOL​
Editing .APK Files​​
This video teaches you how to setup APKTOOL folder as well as teaches you how to edit .apk files.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Editing .JAR Files​In this next video you will get information on how to edit .jar files like services.jar using APKTOOL.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Customization Tutorials​
Dealing With .9.png Files​​
This video teaches you how to edit draw9 i.e .9.png image files easily without any errors.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Reserved for more work 6
Reserved for more work 7
Reserved for more work 8
Reserved for more work 9
Would love this tutorial. Hope you complete it soon.
Really looking forward for this!
Android is based on Linux(and kind of java also) so you would need Linux and java knowledge also, if you want to customize the ROM throughly.
Sent from my WT19i using xda premium
I always knew buying a Mac was a bad idea :'(
Someguyfromhell said:
Android is based on Linux(and kind of java also) so you would need Linux and java knowledge also, if you want to customize the ROM throughly.
Sent from my WT19i using xda premium
Click to expand...
Click to collapse
Yes thats true BUT this tutorial is for windows and it doesn't require any kind of expert knowledge.
Its damn simple to make a custom ROM
BudgyN1 said:
I always knew buying a Mac was a bad idea :'(
Click to expand...
Click to collapse
Not at all !!
You can Run windows 7 virtually on your Mac and use this tutorial
Isn't it cool ?
Its damn simple to make a custom ROM
Click to expand...
Click to collapse
Simple custom ROM, yes. But it is only MY IMO. You NEED Linux knowledge, you need some android knowledge, and you need to understand what are you doing to make really OUTSTANDING ROM.
respawned said:
Simple custom ROM, yes. But it is only MY IMO. You NEED Linux knowledge, you need some android knowledge, and you need to understand what are you doing to make really OUTSTANDING ROM.
Click to expand...
Click to collapse
Can you explain what linux knowledge you talking about ?
For example, in your v4, i saw remount tweak, and there was JOURNALISM removing for ext4 partition. But you noticed that it is only for /data /system? Our partitions are in yaffs2, so we don't have journal.
Knowledge comes with experimentation ... keep it up dude

I need developer HELP

Who here is developer? i need to modify one nexus 4 for rom it's very simple what i have to modify but i still need a help i will be pleasurable if anybody offer for help me :victory:
Acfanderson said:
Who here is developer? i need to modify one nexus 4 for rom it's very simple what i have to modify but i still need a help i will be pleasurable if anybody offer for help me :victory:
Click to expand...
Click to collapse
what do you want to modify?
ricky310711 said:
what do you want to modify?
Click to expand...
Click to collapse
Is it very simple man i would like to replace launcher2.apk in the nexus 4 factory image to googlehome.apk becouse thia is TVE nexus 5 launcher. Van you help me to do this?
Acfanderson said:
Is it very simple man i would like to replace launcher2.apk in the nexus 4 factory image to googlehome.apk becouse thia is TVE nexus 5 launcher. Van you help me to do this?
Click to expand...
Click to collapse
Remove launcher2.apk and replace it with googles? i released a modpack for the s3 that includes the requirements, just pluck them from the package(i grant permission) and done
ricky310711 said:
Remove launcher2.apk and replace it with googles? i released a modpack for the s3 that includes the requirements, just pluck them from the package(i grant permission) and done
Click to expand...
Click to collapse
Yes this is what i have to do =D can you help me?
Acfanderson said:
Yes this is what i have to do =D can you help me?
Click to expand...
Click to collapse
Hahahaha why do you need help? The task is simple? Delete the launcher2.apk and grab all the apps from my modpack? Its easy!
ricky310711 said:
Hahahaha why do you need help? The task is simple? Delete the launcher2.apk and grab all the apps from my modpack? Its easy!
Click to expand...
Click to collapse
of course is simple, but i need to moodify the STOCK ROM .TGZ file (factory image) when i extract this file i have some file with .IMG extension and one of this files is System.IMG in this file haver the folder called Priv-apps and the old launcher is it there so i need to replace this apk and repack the rom to original FORM but i don't have idea for do this
Acfanderson said:
of course is simple, but i need to moodify the STOCK ROM .TGZ file (factory image) when i extract this file i have some file with .IMG extension and one of this files is System.IMG in this file haver the folder called Priv-apps and the old launcher is it there so i need to replace this apk and repack the rom to original FORM but i don't have idea for do this
Click to expand...
Click to collapse
Look up how to decompile .img files, im pretty sure you use unyaffs.exe to do it! I done it once but I dont remember how
ricky310711 said:
Look up how to decompile .img files, im pretty sure you use unyaffs.exe to do it! I done it once but I dont remember how
Click to expand...
Click to collapse
is it necessary have LINUX for use this method and my computer use WINDOWS and i can't run a virtual machine here
Acfanderson said:
is it necessary have LINUX for use this method and my computer use WINDOWS and i can't run a virtual machine here
Click to expand...
Click to collapse
No need for linux, also consider using my rom kitchen for windows, cygwin isnt needed!
ricky310711 said:
No need for linux, also consider using my rom kitchen for windows, cygwin isnt needed!
Click to expand...
Click to collapse
who will do this for me my computer is LOW and i don't have idea for do this =\ THX for try to help me =D

[Q] how to change kernel before flashing rom?

i want to change the rom kernel before installing it please tell me how to do it? i have a rom which has a very good kernel but i dont know how to put that in the new rom which im going to flash today please guide your help is appreciated
FarrukhQadri said:
i want to change the rom kernel before installing it please tell me how to do it? i have a rom which has a very good kernel but i dont know how to put that in the new rom which im going to flash today please guide your help is appreciated
Click to expand...
Click to collapse
Open original rom with WinRAR or 7zip, overwrite the boot.img file with the kernel you want to add, flash the rom.
C13v3r0n3 said:
Open original rom with WinRAR or 7zip, overwrite the boot.img file with the kernel you want to add, flash the rom.
Click to expand...
Click to collapse
Thanks buddy
hi
extract zimage using kitchen and rebuild with the modified zimage.
omarrana said:
extract zimage using kitchen and rebuild with the modified zimage.
Click to expand...
Click to collapse
How I can find zimage? In which folder it's located in? And kitchen works on Windows?
FarrukhQadri said:
How I can find zimage? In which folder it's located in? And kitchen works on Windows?
Click to expand...
Click to collapse
thanks for answering

Off-Topic Discussion for kitchen users

This thread should serve as a much needed place for kitchen users to discuss anything not exactly kitchen related
Reserved
Sent from my Redmi Note 3 using Tapatalk
SuperR. said:
It unpacks in AIK without issues running 64-bit Ubuntu 16.04. You are probably right and just missing a dependency that comes pre-installed in Debian based systems. Let me know if you figure out a way to deal with it
edit: do you have cpio installed? If not that may solve the issue
Click to expand...
Click to collapse
I had flashed AIK in custom recovery, but I can't seem to get it to work properly..
The Exploiter said:
That's good I'm glad to hear that
Click to expand...
Click to collapse
Bro 2 more things i want to learn
1st how add multi languages in extracted rom?
And how fix gapps also in extracted rom?
Mr Hassan said:
Bro 2 more things i want to learn
1st how add multi languages in extracted rom?
And how fix gapps also in extracted rom?
Click to expand...
Click to collapse
What do you mean by that sir? I will be happy to help you
---------- Post added at 06:04 AM ---------- Previous post was at 06:02 AM ----------
Mr Hassan said:
Bro 2 more things i want to learn
1st how add multi languages in extracted rom?
And how fix gapps also in extracted rom?
Click to expand...
Click to collapse
For multi languages its usually built into the ROM. Fixing gapps depends on what's wrong with it.
When you extract your rom what gapps are you trying to fix?
@Mr Hassan, @The Exploiter
Moved your posts into this thread as they are off topic for the kitchen. Feel free to continue here if you would like
SuperR. said:
@Mr Hassan, @The Exploiter
Moved your posts into this thread as they are off topic for the kitchen. Feel free to continue here if you would like
Click to expand...
Click to collapse
Thank you I'll be sure to come back
The Exploiter said:
What do you mean by that sir? I will be happy to help you
?
Click to expand...
Click to collapse
can you give me little details about add multi languages in extracted rom
and also add gapps
Mr Hassan said:
can you give me little details about add multi languages in extracted rom
and also add gapps
Click to expand...
Click to collapse
If you have a custom ROM build without gapps then grab a version perspective to your device too flash in recovery
To add multi languages (depending on the ROM) I would look around on XDA.. I haven't ever heard of multi language..
I'm having the worst time trying to get java6 installed.. Does anyone have a good way?
The Exploiter said:
I'm having the worst time trying to get java6 installed.. Does anyone have a good way?
Click to expand...
Click to collapse
Java 6?
sudo apt-get install openjdk-6-jdk openjdk-6-jre
You need Java 8 for the SuperR Kitchen tho..
Sent from my N9515 using Tapatalk
bcrichster said:
Java 6?
sudo apt-get install openjdk-6-jdk openjdk-6-jre
You need Java 8 for the SuperR Kitchen tho..
Click to expand...
Click to collapse
Its for CM11 source code since I'm building CWM for nthe SM-T113
---------- Post added at 02:15 AM ---------- Previous post was at 01:34 AM ----------
bcrichster said:
Java 6?
sudo apt-get install openjdk-6-jdk openjdk-6-jre
You need Java 8 for the SuperR Kitchen tho..
Click to expand...
Click to collapse
Its telling me there's no install canadate.. I'm gonna go break my PC now..
Temp Clockworkmod is now built for the SM-T113
Clockworkmod for SM-T116
hi guys...
can someone help me please?
I'm really new to superr kitchen...
I'm trying to make an deodexed rom for an S8+.
I can't get it it start. it boots but stucks at samsung logo.
so, what are the right way to make an deodexed rom?
thanks in advance
Hey @SuperR. I have a general apktool question.
I want to make some SystemUI mods for my ROM.
When recompiling SystemUI does it need to be signed, zipaligned, or both?
Your tool is awesome btw.
bkores said:
Hey @SuperR. I have a general apktool question.
I want to make some SystemUI mods for my ROM.
When recompiling SystemUI does it need to be signed, zipaligned, or both?
Your tool is awesome btw.
Click to expand...
Click to collapse
I am not the best to answer this honestly. I have not modified an apk since KitKat. The plugin is there for people such as yourself who want to use it. It has all the signing options I am aware of. If you don't get any other answers, I suggest trying them all to see what works for you
bkores said:
Hey @SuperR. I have a general apktool question.
I want to make some SystemUI mods for my ROM.
When recompiling SystemUI does it need to be signed, zipaligned, or both?
Your tool is awesome btw.
Click to expand...
Click to collapse
For system apps, I use winrar, or if using linux the default archive manager, to move the modified files into the original. I try to keep the meta-inf, sec-inf, and androidmanifest.xml intact on the original app and just drag the res, classes.dex (if modifying smali), and resources.arsc into the original. Then just zipalign.
Thats worked for me on 6.0.1, I think some things may have changed with 7.0.1 and I'm by no means an expert but thats how I do it.
kevintm78 said:
For system apps, I use winrar, or if using linux the default archive manager, to move the modified files into the original. I try to keep the meta-inf, sec-inf, and androidmanifest.xml intact on the original app and just drag the res, classes.dex (if modifying smali), and resources.arsc into the original. Then just zipalign.
Thats worked for me on 6.0.1, I think some things may have changed with 7.0.1 and I'm by no means an expert but thats how I do it.
Click to expand...
Click to collapse
So would it be like this:
1) Install frameworks
2) Decompile apk
3) Make modifications
4) Rename APK file to .zip to allow for pasting res and resources.arsc
5) Paste modified res and resources.arsc into the zip archive.
6) Rename the zip archive back to an apk file.
7) Push apk to /system/priv-app/SystemUI/SystemUI.apk.
8) Perform chmod 0644 on the apk.
I'm a complete noob at this so I want to make sure I'm doing everything right.
bkores said:
So would it be like this:
1) Install frameworks
2) Decompile apk
3) Make modifications
4) Rename APK file to .zip to allow for pasting res and resources.arsc
5) Paste modified res and resources.arsc into the zip archive.
6) Rename the zip archive back to an apk file.
7) Push apk to /system/priv-app/SystemUI/SystemUI.apk.
8) Perform chmod 0644 on the apk.
I'm a complete noob at this so I want to make sure I'm doing everything right.
Click to expand...
Click to collapse
Yep, that's how I do it. Except you dont have to rename your apk files, they'll open up in archive just like a zip. With jar files I just push without having to drag anything to the original and they'll work.
If you ever decide to modify the framework-res or certain system apps like secsettings, camera, contacts, and probably some others, I have to do those with Windows and winrar because they dont seem to work with the normal compression mode. Winrar lets you change the compression mode from normal to store. Thats the only I can get those working.

[Q]Unpacking and repacking system.img

Hey guys,
Can I unpack and repack system.img using Android Kitchen? If yes, please tell me how to do it.
Augustoandro said:
Hey guys,
Can I unpack and repack system.img using Android Kitchen? If yes, please tell me how to do it.
Click to expand...
Click to collapse
Use this tool to do so :
https://forum.xda-developers.com/an...-conver-lollipop-dat-files-to-t2978952/page82
RaiZProduction said:
Use this tool to do so :
https://forum.xda-developers.com/an...-conver-lollipop-dat-files-to-t2978952/page82
Click to expand...
Click to collapse
I can't use it since I don't have a system.dat file. I only have system.img file.
Augustoandro said:
I can't use it since I don't have a system.dat file. I only have system.img file.
Click to expand...
Click to collapse
Oh , I thought you were running Ubuntu , because with Ubuntu you can mount the system.img with a command and browse it with the file explorer as if it was an USB removable disk.

Categories

Resources