{Tutorial} How To Decompile/Compile Apk - Galaxy Ace S5830i General

Okay So Alot Of People Asking On How To Decompile/Compile .APK ITS EASY!! You Are Just Too Lazy To Read And Learn it the Proper way
No Offense The First Thing You Need to Do is Download Boudz-Filezzz.zip in Attachments you will find aapkt apktool.jar and apktool.bat and baksmaali
Okay So Extract
The First Thing To DO is :
--First Get framework-res.apk From System/Framework/Framework-res.apk,And SystemUI From System/App/SystemUI.apk And TWframework-res.apk From System/Framework/TWFramework-res.apk And Place With The File You Extracted..
--Next Press Shift+Alt and Right Click on An the white space in the File (Boudz-Filezz)
and Press open Command Prompt
Now Type ::
Code:
apktool if framework-res.apk
Now it Will Install the Framework
Next is To Install SystemUI,its the same just replace framework-res.apk with SystemUI.apk (IT IS IMPORTANT TO MENTION THE APK)
Code:
apktool if SystemUI.apk
And
apktool if twframework-res.apk
Click to expand...
Click to collapse
Okay Now We Installed The Files Now I Want To Decompile SystemUI.apk For Example With Half Of Ace i Users Fail in..
open Command Prompt by Pressing Shift+Alt and Right Click on An the white space in the File (if its open no need)
And Type
Code:
apktool d SystemUI.apk Test
Okay So Lemme explain The Code apktool is the file and D stands For Decompile And SystemUI.apk Which is the apkname And Test Is the Folder that the SystemUI.apk will be Decompiled To.
That Wasn't Bad Wasn't it?
Now Edit Something in test folder (Decomplied SystemUI.apk) Change Some 9.PNG From Some ROM TO your SystemUI and Xml is Also readable edit some codes ... :silly::silly:
Now After Doing That we Need To Compile It Back to An APK this is Easy... just Type in Command Prompt
Code:
apktool b test
Okay So apktool is the file itself and B Stands For Compile And Test is the Folder that i Want to Compile it To a APK so press enter and Open the test>systemUI>dist SystemUI.apk Thats It You Successively Modded A SystemUI Okay So I Wont Provide Any Credits Because i Wrote all This myself and Didn't Need any help all was done by me Please If I Helped You In This Tutorial Dont Forget To Hit The Thanks Button
Boudz-FILEZZ:[URL="http://www.mediafire.com/?qq3zf5yw1mwy5o8"]http://www.mediafire.com/?qq3zf5yw1mwy5o8[/URL]​

I always get an error

Related

[GUIDE]Port Jelly Bean transition animations on EVERY ROM & EVERY PHONE

I wrote this tutorial that explains how to port Jelly Bean transition animations on EVERY ROM & especially on EVERY PHONE!!!.
1) First of all, you need to download and install APK MANAGER:
http://apkmultitool.com/?q=node/5
2) Extract with WinRAR, from the ROM you want to modify, the file framework-res.apk, that you can find in the directory \System\framework\.
3) Go to the apk manager folder and place the framework-res.apk file in the folder "place-apk-here-for-modding".
4) In the apk manager folder, double click on the file "Script". A cmd window will open.
5) Where it says "Please make your decision", write "22" (Set current project) and enter. Then enter "1" (to choose the first apk) and enter. Then enter "9" (Decompile apk) and enter.
The script will decompile the framework-res.apk.
6) Now go to your apk manager folder, go to projects\framework-res\res\anim\.
In this folder there are the animations of your rom. They consist in some .xml files decompiled.
7) Download this:
http://www.mediafire.com/download.php?8u5y88ais0awj1r
8) Copy the files from the folder "anim" of the zip downloaded into the anim folder and you are asked to replace the files; choose yes.
9) Now go to your apk manager folder, go to projects\framework-res\res\values\. Edit the file integers.xml.
Modify the values in those lines:
Code:
<integer name="config_shortAnimTime">150</integer>
<integer name="config_mediumAnimTime">300</integer>
<integer name="config_longAnimTime">400</integer>
to:
Code:
<integer name="config_shortAnimTime">200</integer>
<integer name="config_mediumAnimTime">400</integer>
<integer name="config_longAnimTime">500</integer>
and add these just below:
Code:
<integer name="config_activityShortDur">150</integer>
<integer name="config_activityDefaultDur">220</integer>
Save.
10) Return to Script. Enter "11" (Compile apk) and enter.
The script will rebuild the framework-res.apk.
11) You are asked if this is a system application. Enter "n" and enter.
12) Go to the folder "place-apk-here-for-modding" delete the file "unsignedframework-res.apk", click with the right mouse button on "framework-res.apk" and select "7zip > Open file", delete the folder "res" and "resource.arsc", go to the folder "projects\framework-res\build\apk\" select the folder "res" and the "resource.arsc", drag to zip and close.
13) Ready, now just replace.
CONGRATRULATIONS!!! YOU ARE DONE!!!
And if you think this tutorial is useful, CLICK THANKS!!!
P.S.: If you think that this post can help or interest people of other forums (with other devices), please share this post
Credits: Dinhodroid
Thanks nice guide and animations
Sent from my HTC Explorer A310e using xda premium
Thanks a lot
Sent from my GT-S5830 using Tapatalk 2
Good work. This is being used on my custom rom called ICS Redux for the Sidekick 4G! :good:
AW: [GUIDE]Port Jelly Bean transition animations on EVERY ROM & EVERY PHONE
Does that also work for gingerbread ??
I scratch that. I keep getting an error when recompiling.
KageBeast said:
I scratch that. I keep getting an error when recompiling.
Click to expand...
Click to collapse
that has nothing to do with this.
mv_style said:
that has nothing to do with this.
Click to expand...
Click to collapse
So me trying to put the animations on my phone and getting error when recompiling the framework-res has nothing to do with this? I believe you are wrong sir.
KageBeast said:
So me trying to put the animations on my phone and getting error when recompiling the framework-res has nothing to do with this? I believe you are wrong sir.
Click to expand...
Click to collapse
Can u compile and recompile other apps?
hey OP have u taken the original modders permissions to port here ?
mv_style said:
Can u compile and recompile other apps?
Click to expand...
Click to collapse
Yeah I can but i got this work. I had issues compiling the first time because i was also editing another xml but it worked the 2nd time.

[FULL][Procedure] How To Decompile Recompile apk and How to Setup Apktool

Here i tells you. How to use apktool & Multitool
Step 1: Necessay files (Download From XDA-Developers.com)
Step 2: How to enter commands for .apk Files
Step 3: How to setup apktool
Step 4: Themeing & Modding
--> Step 1- /Java (Install java first)
/Apktool
OR
/Multi Tool (Download attachment with multitool name as visualbasic(VisualBasicPowerPacksSetup)_without this file it not work)
/.netFramework v4.5 or Higher (For Multitool)
/7zip (Extracting .apk and other archieve or extention)
/Notepad++(used to read .xml files in decompiled apk)
--> Step 2- 1/ For systemui.apk
/commands
cd..
cd..
cd android/apktool
/apktool if framework-res.apk
/apktool if systemui.apk
/apktool d systemui.apk (d- for Decompiling apk)
/Themeing (Dont messup Here and there without any reason or you get uncompiled apk)
/apktool b systemui systemui-new.apk (b- For Re-Compiling apk)
Sign your new apk in order to working.
after compiling apk your new apk looks like / systemui-new.apk
Now Decompile It with 7zip & also place original apk of the current rom in desktop into a folder(decompile it also)
/Take two files from original Decompiled apk / 1.META INF 2.Android Mainfest.xml
/Add these two files into extracted /systemui-new.apk/Recompile it with 7zip/Now you use your new apk
---------------------------> Done
2/ For Framework-res.apk
/commands
cd..
cd..
cd android/apktool
/apktool if framework-res.apk
/apktool if Twframework-res.apk
/apktool d framework-res.apk (d- for Decompiling apk)
/Themeing (Dont messup Here and there without any reason or you get uncompiled apk)
/apktool b framework-res framework-res-new.apk (b- For Re-Compiling apk)
Sign your new apk in order to working.
after compiling apk your new apk looks like / framework-res-new.apk
Now Decompile It with 7zip & also place original apk of the current rom in desktop into a folder(decompile it also)
/Take two files from original Decompiled apk / 1.META INF 2.Android Mainfest.xml
/Add these two files into extracted /framework-res-new.apk/Recompile it with 7zip/Now you use your new apk
---------------------------> Done
Note : if this command not work in order to recompile your framework/only this line /apktool b framework-res framework-res-new.apk
than use new command /apktool d framework-res.apk framework1 (d- for Decompiling apk)
/apktool b framework-res.apk framework1 (b- For Re-Compiling apk)
others / settings.apk (recompile,decompile like systemui.apk)
cd..
cd..
cd android/apktool
/apktool if framework-res.apk
/apktool if Twframework-res.apk
/apktool d settings.apk (d- for Decompiling apk)
/Themeing (Dont messup Here and there without any reason or you get uncompiled apk)
/apktool b settings (b- For Re-Compiling apk)
Sign your new apk in order to working.
For checking compiled settings.apk/ dist/settings.apk
after compiling apk your new apk looks like / build/apk/here
Now Decompile It with 7zip & also place original apk of the current rom in desktop into a folder(decompile it also)
/Take two files from original Decompiled apk / 1.META INF 2.Android Mainfest.xml
/Add these two files into extracted /settings.apk(check in build folder)/Recompile it with 7zip/Now you use your new apk
---------------------------> Done
--> Step 3- A)Setuping Apktool
/only apktool not multitool (both are different)
open your laptop/desktop/ Drive c: make folder named/ android/apktool (inside android folder make apktool folder)
locate where you save apktool/unpack it with winrar or 7zip and copy whole files/paste it into/
c:/android/apktool(paste here)
Now Add three files of your ROM/Systemyui.apk , Framework-res.apk , Twframework-res.apk
after this/ just open apktool folder of c: drive where you add files in small window
You see window button in taskbar /click on it/search/cmd/ when you see / hit enter
Type commands <--------------------------------------------------------------------------------------
cd..
cd..
cd android/apktool (this command locate your apktool folder in c:drive)
/apktool if framework-res.apk (add 1.apk >c:/user/hp/apktool/ 1.apk
/apktool if systemui.apk (add 127.apk >c:/user/hp/apktool/ 127.apk
/apktool d systemui.apk (Decompile your apk>see decompiled apk in / c:/android/apktool
/apktool b systemui.apk (Recompile your apk)
--> Done
--> Step - B)Setuping MultiTool(Also type of apktool - Easy to use
Unpack your multitool.zip
Looks like AndroidMultitool_3.0_win7/AndroidMultitool
cut AndroidMultitool / directly paste it to
c:/AndroidMultitool(inside folder and where to add files)
/Compiled_apk
/Compiled_jar
/Decompiled_apk
/Decompiled_jar
/Files
/Log
/Program_Files
/Signed_apk
/Android Multitool.exe
Add these files in /Files folder/Systemyui.apk , Framework-res.apk , Twframework-res.apk
Now Run Android MultiTool.exe
I think you know much very well after run Android Multitool.exe /how to decompile , recompile etc.
Save my time.......
--> Done
--> Step 4 - After Decompile theme your self or what ever.
--> Done
I Dont Know The Developers Name..!!! Who Develop APKTOOL AND MULTITOOL
Credits -
1.Developer Of Apktool
2.Developer Of Multitool
Credits - To Me Kartik [email protected]
Better To Use Advanced Apk Tool..Its So Fast and Easy To Use and User friendly...

[Guide]theme/mod anything on android phone

First of all i know that there is already threads like this but i hope this be more easy and usefull.
I wrote this simple guide for people who doesn't have a pc or have problems on their pc's.
Things u need
Android apktool here
Dev-drawable from here here
X-plore usefull filemanger with texteditor here
Steps
1.download apktool and extract it in sdcard then install it.
2.make a newfolder name it anything in sdcard and put ur framework-res.apk and twframework-res.apk in it.
3.open apktool and goto the newfolder u've made then select framework-res.apk and select install as framework after it finish do the same for twframework-res.apk
4.goto the .apk (.jar,.dex) u want to theme or mod it (ex.systemUi.apk) and select it then select decompile.
5.then make whatever u want to edit xml's or change some png's in drawable.
You can resize ur png's very easy with dev-drawable.
6.After u finish modding open apktool select the folder (systemUi-res)and select recompile.
Done

[TUT][MOD][Rom Logo In Settings/About]

Hello Xda Members Today I Bring You A Tutorial On How To Add Rom Logo To Settings About Phone
Okay Let's Start
What You Will Need:
Knowledge How To Decompile/Recompile Apk's
Apktool
Notepad++
Winrar
Settings.Apk
Framework-res.apk <From Rom>
Firstly, Move your Settings.apk and framework-res.apk to your "APKTOOL" Folder , And start the below steps
Open Apktool Folder And Type:
HTML:
apktool if framework-res.apk
For Xperia Devices:
HTML:
apktool if taframeworkname.apk
For Samsung:
HTML:
apktool if twframework-res.apk
Then Type
HTML:
apktool d Settings.apk
Download logo_row.xml file from This Link and put it in Settings/res/layout
Now go to xml folder.Search device_info_settings.xml and open it via Notepad++
Find Those Lines:
HTML:
<PreferenceScreen android:title="@string/about_settings"
xmlns:android="http://schemas.android.com/apk/res/android">
And Below Them Paste This:
HTML:
<PreferenceScreen android:key="rom_logo" android:layout="@layout/logo_row" />
Than Save the file and close it
After This, you need to have a romlogo in specific resolutions of your device,
Put the file into:- drawable-(your device resolution)
The Banner/logo should be named as "romlogo" {Without Double inverted commas- " ")
After you pasted the rom logo into the drawable(your resolution here)
Go to apktool and open cmd command prompt again and type
HTML:
apktool b (settings)
Or whatever your folder is called
Now We Need To Sign Apk
Now with Winzip/WinRar/7-zip, Open Original Settings.apk and Copy "Meta-inf" folder and "AndroidManifest" file
to settings/build/apk
After This, Come back to apktool folder and type the below code to Recompile apk
HTML:
apktool b (settings)
Now go to settings/dist and there you have your settings.apk with your logo
Press Thanks If This Guide Was Helpfull

[GUIDE][AOSP/MTK]Theming Guide For MT65XX Devices

Hello Guyzzz.....This Is My First Theming Guide Fro Mt65XX Devices
In This Guide I Will Tell You How To Do The Following Things:-
##Making Settings Holo Light##
##Changing The Switch##
##Changing The Spinners##
Requirements:-
##APKTOOL##
##NOTEPAD++##
##Knowledge About Decompiling And Recompiling##
##Time,Patience And Most Important Of All............A Working Brain--------- ##
OK......So Lets Get Started.......
For Making Settings Holo Light​
Decompile Settings.apk
Open Android Manifest.xml Using NotePad++
Search For This Line
Code:
<application android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher_settings" android:label="@string/settings_label" android:supportsRtl="true" android:taskAffinity="" android:theme="@android:style/Theme.Holo" android:uiOptions="splitActionBarWhenNarrow">
Change
Code:
android:theme="@android:style/Theme.Holo"
TO
Code:
android:theme="@android:style/Theme.Holo.Light"
Save And Exit Android Manifest.xml
Recompile Your Settins
Sign It Manually
MOVING ONNNN.......
For Changing The Switch
Decompile framework-res.apk
Download Any Switch Resource From Below
Copy The Items From The "res/drawable" Folder Of The Downloaded Folder And Replace Those Files In framework-res "res/drawable" Folder
Now Goto drawable-hdpi{depending on ur device}And Delete All The Switch Pngs Present There{NORMALLY THE NAME STARTS WITH "switch_...9.png"}
Thats IT.....Now Recompile And Sign framework-res
AGAIN......MOVING ONNNN.......
For Changing The Spinners
Decompile framework-res.apk
Download Any Of The Spinner Resources From The Second Post
Extract The File And Open the Folder
Copy All The Contents from The Drawable Folder And Paste It In Your Folder{You Will be Asked To Replace The Files....Just Do It}
Now Open The Downloaded Resource Folder And Copy All The PNG'S In The FOlder And Paste It In "drawable-hdpi" Folder Of Your framework-res{Replace All The Files.....IF ASKED!!}
Thats IT.....Now Recompile And Sign The APK
ENJOY.....-HIT THANKS IF YOU LIKE MY WORK!!
Chetan Lodha said:
Hello Guyzzz.....This Is My First Theming Guide Fro Mt65XX Devices
In This Guide I Will Tell You How To Do The Following Things:-
##Making Settings Holo Light##
##Changing The Switch##
##Changing The Spinners##
Requirements:-
##APKTOOL##
##NOTEPAD++##
##Knowledge About Decompiling And Recompiling##
##Time,Patience And Most Important Of All............A Working Brain--------- ##
OK......So Lets Get Started.......
For Making Settings Holo Light​
Decompile Settings.apk
Open Android Manifest.xml Using NotePad++
Search For This Line
Code:
<application android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher_settings" android:label="@string/settings_label" android:supportsRtl="true" android:taskAffinity="" android:theme="@android:style/Theme.Holo" android:uiOptions="splitActionBarWhenNarrow">
Change
Code:
android:theme="@android:style/Theme.Holo"
TO
Code:
android:theme="@android:style/Theme.Holo.Light"
Save And Exit Android Manifest.xml
Recompile Your Settins
Sign It Manually
MOVING ONNNN.......
For Changing The Switch
Decompile framework-res.apk
Download Any Switch Resource From Below
Copy The Items From The "res/drawable" Folder Of The Downloaded Folder And Replace Those Files In framework-res "res/drawable" Folder
Now Goto drawable-hdpi{depending on ur device}And Delete All The Switch Pngs Present There{NORMALLY THE NAME STARTS WITH "switch_...9.png"}
Thats IT.....Now Recompile And Sign framework-res
AGAIN......MOVING ONNNN.......
For Changing The Spinners
Decompile framework-res.apk
Download Any Of The Spinner Resources From The Second Post
Extract The File And Open the Folder
Copy All The Contents from The Drawable Folder And Paste It In Your Folder{You Will be Asked To Replace The Files....Just Do It}
Now Open The Downloaded Resource Folder And Copy All The PNG'S In The FOlder And Paste It In "drawable-hdpi" Folder Of Your framework-res{Replace All The Files.....IF ASKED!!}
Thats IT.....Now Recompile And Sign The APK
ENJOY.....-HIT THANKS IF YOU LIKE MY WORK!!
Click to expand...
Click to collapse
Good Job Bro I Think It Will Be Hard But It's Easy Good Job :laugh:
lol... this is all so NOT easy.
you missed few important parts in between your Simple Guide.
But Catchy Topic Header...
Add more Basic But important Steps
Dude.. you missed a lot of things in that tutorial ! i Hope in futute you will add more Things in that tutorial !
dare2know said:
lol... this is all so NOT easy.
you missed few important parts in between your Simple Guide.
But Catchy Topic Header...
Add more Basic But important Steps
Click to expand...
Click to collapse
SDShukla said:
Dude.. you missed a lot of things in that tutorial ! i Hope in futute you will add more Things in that tutorial !
Click to expand...
Click to collapse
I Dont Think bro...bcoz i followed these steps and everything worked!!
@chetan ,
it was jUST A POINTER nothing to make u feel bad,
Screenshots?
download from below!?!?!?
There is no resources to download in the 2nd post !!!

Categories

Resources