[GUIDE] Deodexing your custom rom the easy way - Samsung Galaxy S II Plus

Hello Guys,
@android.zealot.fervor wanted me to post this guide so why not
There is already a guide by Panda00 but that one is a bit outdated...
Requirments:
- A Windows PC
- Zip opener (7zip,winrar,winzip)
- Dsixda's kitchen and cygwin
- sgs2ext4.jar
- linux reader
- A Brain and hands
So let's begin:
Step 1)
- Download the stock firmware from sammobile samsung-updates search for yourself and open the file with 7zip inside the file you will find a md5 file open that with 7zip it should give you a error ignore that! Take out the system.img and open up sgs2ext4.jar and drop the system.img into there now after some time the system.img.ext4 will be placed onto your desktop!
Step 2)
- Open up Linux Reader and mount the system.img.ext4 drive open it up and take out only the app and framework folder save them to your desktop!
Step 3)
- Now make a WORKING_DEODEX folder name it exact as i say you and make inside that folder a system folder! drop the app&framework folder in the system folder and copy WORKING_DEODEX to C:/kitchen or where ever you have kitchen on your PC!
Step 4)
- Open up kitchen with cygwin by typing in the following:
cd C:/kitchen and hit Enter! (I take the C drive as example but your drive letter could be diffrent!!!)
sh menu Hit Enter again!
Now it should load up kitchen if not do not ask me!
go in kitchen to advanced options by typing in 0 and after that go to 11 now select the correct api version it should be 17!
Now type in b for deodexing both folders! let kitchen do his work here this can take up to 20min!!!
Step 5)
When kitchen is done go back to your C:/kitchen drive and take out the system folder of the WORKING_DEODEX and drop it onto your desktop!
What you need to do now is download the zip file from the attachments and drop the system folder in it!
Step 6)
Copy the zip to your device and flash enjoy your deodexed phone!
Credits:
Panda00 for his zip file
CoolDevelopment for his CWM

Some things you need to know:
1) secemail_j will not deodex!!!
2) you must be on the firmware you are deodexing!
3) Install custom recovery for flashing

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

android.zealot.fervor said:
Click to expand...
Click to collapse
Thanks man if you want more guide's etc just ask

safariking said:
Thanks man if you want more guide's etc just ask
Click to expand...
Click to collapse
Thanks a lot. That's so generous of you. Well i just want to ask right now....in your guide i couldn't found the ZipAlligning step.Is zipalligning necessay after deodexing. Thanks

android.zealot.fervor said:
Thanks a lot. That's so generous of you. Well i just want to ask right now....in your guide i couldn't found the ZipAlligning step.Is zipalligning necessay after deodexing. Thanks
Click to expand...
Click to collapse
not needed to zipalign btw: new link for deodex xxbml1

safariking said:
not needed to zipalign btw: new link for deodex xxbml1
Click to expand...
Click to collapse
Thanks.....well i already fixed the update-script and it worked.
Thanks once again for your efforts.

Related

[INGRESS][12-15-2012] Ingress Lockrings

Change your default lockring to this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
We need to modify the framework-res.apk, so we need a file explorer with root access, like Solid Explorer Beta2
PLEASE MAKE SURE THAT YOU MAKE A NANDROID BACKUP BEFORE TRYING THIS!
Step 1 Download the lockring that you like.
There are two options for each style: HDPI or XHDPI.
Download from here:
Ingress style 1: HDPI or XHDPI.
Ingress style 2: HDPI or XHDPI.
Click to expand...
Click to collapse
Step 2 Copy your framework-res.apk from /system/framework to SD card and from SD card to the computer. If you have your current ROM on the computer as a zip file, copy the framework-res.apk from there, it`s faster.
Step 3 Open the framework-res.apk with 7Zip.
Navigate to res\drawable-hdpi\ or res\drawable-xhdpi\. You should find a file named "ic_lockscreen_handle_normal.png". This is for ICS and JB.
Step 4 Go to the archive that you downloaded and unzip it, open the folder and Drag and Drop the .png file from here to the res\drawable-hdpi\ or res\drawable-xhdpi\. Click yes to confirm.
Step 5 Close the 7Zip archive and copy your modified framework-res.apk to the SD card. Keep the original framework-res.apk for backup.
Step 6 On the phone open Solid Explorer Beta2 and navigate to the modified framework-res.apk, long press it, select Copy. Navigate to /system and Paste it. Long press it again and select Properties. Under Attributes tab select Change. Set permissions to 644 -rw-r--r-- Click OK.
Long press the framework-res.apk again and select Cut. Now navigate to /system/framework and select Paste and overwrite the framework-res.apk from here.
Step 7 Your phone should reboot now, if it doesn't, reboot manually.
You should now have the new lockring installed.
Feel free to alter the design or make you own.
Here are the dimensions in pixels for HDPI: 162x162 and XHPDI: 216x216. The image must be a .png file.
Thanks to Senior Member sharingan92 for the flashable zips! Second post.
Post a reply and click the Thanks button if this helped and you like it. I would appreciate it!
hey mate love the idea but a bit to much work for some users so i made you some flashable zips
sharingan92 said:
hey mate love the idea but a bit to much work for some users so i made you some flashable zips
Click to expand...
Click to collapse
Thanks!

[Tutorial]Decompiling Or Editing Android's APK

How To Decompiling Or Editing Android's APK
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
step 1 : first apk file rename and last .zip to create zip file.
step 2 : then open *.zip file and classes.dex copy to dex2jar-0.0.9.9 folder.
step 3 : then folder on shift+right aerow and click open command window here.\
step 4 : then write on cmd in dex2jar classes.dex and enter press. this process is given on images.
step 5 : then getting classes_dex2jar file.
step 6 : then open jd-gui application and open file-> open file and open classes_dex2jar file.
step 7 : getting the code of application.
For Download This Software::
Click Here...
If You liked my work,Atleast Click Thanks Button,its Free,It encourages me.
awesome guide
helped me get a source code to popular android game so i can create my own game using the touch feature of source code:highfive::good:
Its the most complex guide I have ever seen
iamareebjamal said:
Its the most complex guide I have ever seen
Click to expand...
Click to collapse
It really is. Lol. I'm not going to keep looking at the screenshot and i'll just see if I can make it work on my own.
how do you get the resulting .zip from saving all sources of jd-gui since jd-gui doesnt actually allow modifications you have to save all sources wll end up with .java in a zip file, after editing the java files in the zip how do i get that zip back into the jar file to re dex it>?????
fieldsweeper said:
how do you get the resulting .zip from saving all sources of jd-gui since jd-gui doesnt actually allow modifications you have to save all sources wll end up with .java in a zip file, after editing the java files in the zip how do i get that zip back into the jar file to re dex it>?????
Click to expand...
Click to collapse
There are other, more straight forward guides to help.
its not hard, its impossible to understand!
FAILED!!!
Thank you so much, took. I will act.

[Guide][Tool] How to create flashable zip (noob proof - the easiest way)

Hello everyone..
In my tutorial here, I want to show newbies how to create their own flashable zip file to flash by recovery mode (CWM)...
Now installing your mods become easier and faster
Needed tools for newbies:
1) Download your desired template:
Template - for auto-perm-fix kernel support.zip
Template - for non auto-perm-fix kernel.zip
more details is down there!!
2) WinRAR or 7-zip program installed in your computer.
3) Auto-ZIP-Signer patch in case your kernel needs it
4) Cup of hot tea!!!
Which template should I use?
It depends on kernel you are using whether it supports auto permission fix or not (most of custom kernels support this feature)..
To know if you are using kernel with auto permission fix or not, boot into recovery mode and check if you have fix permissions option or not (usually under advance). If your kernel has fix permissions option, then use Template - for auto-perm-fix kernel support.zip otherwise, use Template - for non auto-perm-fix kernel.zip.
What will happen if you use wrong template?
If your kernel supports auto permission fix feature and you used Template - for non auto-perm-fix kernel.zip, nothing will go wrong (so don't worry!!) but the flashing process will take unnecessary longer time for fixing permissions!!.
If your kernel doesn't support auto permission fix feature and you used Template - for auto-perm-fix kernel support.zip, then you might need to fix permissions of the flashed mod manually or to add extra permissions line in updater-script (not advised for newbies)
How is it working?
Open the template zip file by WinRAR or 7-zip (don't extract!! Just open)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
​
Now what you need to do is just to drag & drop your modded file into its corresponding destination inside the zip file.
​
Copy your finished zip file to your external SD card.
​
Boot into recovery mode and flash your file... Now you can treat yourself the cup of tea.. you deserve it
Extra step:
If you are using stock kernel that needs varification key from flashable zip file, then you need to use Auto-ZIP-Signer to sign your finished zip file.
First copy your finished zip file from previous step and open ZIP Auto-Signer folder (download from above).
Now paste your zip file in "put-zip-to-sign-here" folder and run the script patch.
Now go to "Finished" folder and copy "Signed.zip" into your external SD card.
Boot into recovery mode and flash your signed file
Simple and noob proof tutorial, I hope it will help you all new xda members

can not deodexing Rom with xUltima & Android Kitchen, v0.223

Hey together.
(at first: I do not want use a finished custom rom. I am happy as my Rome is now running)
I Would like to deodex my JB Stock Rom to coustomize my self with Mods and other but for almost everything i used a deodexed Rom. I tried xUltima and the Android Kitchen, v0.223 by dsixda and both doesn't work.
On the Android Kitchen, v0.223 by dsixda i can't find my TWRP Backup and i don't know how i convert it or somthig else.
On xUltima i become instantly an Error. When i delete the odex file which caused the error i become instantly a another error.
Here is a Picture from xUltima:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i have no idee how i fix this.
no one an idea?
Make a imitation ROM:
Create a dump.
Download Rhythm Manager's version of file manager.
Now go to / (self explanatory) and copy system.
It'll take a while, but copy it to sdcard.
Now copy the file onto computer. Find a ROM and copy the META_INF.
Make a empty boot.img.
Put the boot.img, system, and meta_inf into a zip folder. THis would be your ROM.
You can take it from there.
mr_verystock said:
Make a imitation ROM:
Create a dump.
Download Rhythm Manager's version of file manager.
Now go to / (self explanatory) and copy system.
It'll take a while, but copy it to sdcard.
Now copy the file onto computer. Find a ROM and copy the META_INF.
Make a empty boot.img.
Put the boot.img, system, and meta_inf into a zip folder. THis would be your ROM.
You can take it from there.
Click to expand...
Click to collapse
okay sounds quite simple but i have some questsions. it does not matter whitch META_INF i use? And how i make a empty boot.img? Can i put the Deodexed file back in the Data und Jar Folder or must i flash it?
Specimann said:
okay sounds quite simple but i have some questsions. 1) it does not matter whitch META_INF i use? 2) And how i make a empty boot.img? Can i put the Deodexed file back in the Data und Jar Folder or must i flash it?
Click to expand...
Click to collapse
1) Yes. Any ROM is okay. Just get it from an actual ROM.
2) Step 1: unhide extension by going explorer.exe --> organize --> Folder and search options --> view --> uncheck Hide extension ... --> click apply to folders--> Apply. Now simply make a .txt file on desktop and rename the extension as img, and the file name make it boot.

[Guide] Unpack-Repack Boot, Recovery .img without Kitchen

I have searched a lot, but couldn't find any post like this. So I thought I would post it here. This is NOT purely my work, and I do not take credit for it as such .
NO NEED ANDROID KITCHEN FOR UNPACK REPACK IMG's
This is the easiest way to unpack .img files with extracted ramdisk. So, Lets Start
At first Download the tool from HERE
For MTK (chineese) phones - use MTK_unpack.bat (MTK_pack.bat)
For android standard phones - use STD_unpack.bat (STD_pack.bat)
Here I am showing you about MTK (chineese) phones .img unpack-repack....
Instructions
1. Extract the file in any where you want
2. You will see this files
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3. Then Copy your .img file in this folder like this
Remember the file should be named as boot.img or recovery.img
4. Just Drag and Drop .img files into unpack.bat for unpacking. Then you will see this.
5. A folder will be created there. I unpacked boot.img so here is the all file you want
6. To repack, again just drag and drop the folder into pack.bat. you will see this
7. New .img file created. Rename it as you want. So All done. Enjoy.
[ NOTE: It's Only for Windows]
Thanks to
Michfood for making this tool
DON'T FORGET TO HIT THANKS IF I HELPED YOU
NO NEED TO DONATE ME, JUST SAY THANKS TO ENCOURAGE ME
Thanks for this awesome guide
Thanks bro for this awesome guide and Tool
I will so much try...... but I don't success bcoz ramdisk folder empty.....
I will so much try...... but I don't success bcoz ramdisk folder empty.....
try with patience
A.S.Noman Khan said:
I will so much try...... but I don't success bcoz ramdisk folder empty.....
Click to expand...
Click to collapse
do it carefully bro.. this tool extract ramdisk nicely bro
problem
Bro, when I am going to repack my boot.img, its not repacking correctly. Help me out. Please.
golam1962 said:
Bro, when I am going to repack my boot.img, its not repacking correctly. Help me out. Please.
Click to expand...
Click to collapse
did u deleted something? Make sure that your boot.img has all the files what needed.
check
I will just check. By the way, thanks again for this.
golam1962 said:
I will just check. By the way, thanks again for this.
Click to expand...
Click to collapse
Ok. I will wait. And don't thank me. Thank the main dev MICHFOOD who created this tool
Succeeded
aalakib07 said:
Ok. I will wait. And don't thank me. Thank the main dev MICHFOOD who created this tool
Click to expand...
Click to collapse
it worked bro thanks
My device is LG GX F310, original boot.img 24MB, https://docs.google.com/file/d/0Bx0NlR3rjLYeUS14YmxESGc3bWc/edit?usp=docslist_api after unpacked and repacked new boot.img only has 11MB. And can't boot into system. Could you help me?
Work with MT6752?
this tool isn't working under Windows 10, that unpack all files except "rmdisk" folder.
the rmdisk is empty...
I tried to use this tool to unpack the lienageOS recovery ROM from https://wiki.lineageos.org/devices/s5neolte/install
When I change the name and drag it to unpack it, it doesn't work and I get these error messages.
'chcp' is not recognized as an internal or external command,operable program o - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
Am I doing something obvious wrong?
I tried it for my stock boot.img(Mi 11 lite 5g NE-Snapdragon 778G) and the unpacked items didn't satisfy me. Looks like it isn't for snapdragon chipset. BTW I'm looking for similar tool to extract kernel from boot.img of this device.Thnaks though for uploading the tool.

Categories

Resources