[TUTORIAL][How-To] Edit .jar or .apk files using VTS - Xperia Play Android Development

----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------
PREFACE
Hello guys, first of all I want to say thanks to all the real developers (and not just rom-modder like me) that are here, helping us to get better performance and features everyday, so thanks to FXP, CosmicDan, DooMLorD, wedgess, smokerman, krisdee, Spizzy, Keiran, fareneith, Pizza_Dox, Bakisha, and many, many others.​
This guide is intended for those who want to make some mods, for example touchpads fix to their rom, and it's not too hard to understand how to do it (we will just use an IDE to achieve that, so it'll be pretty simple).
Let's start!​
Click to expand...
Click to collapse
----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------
DECOMPILING .APK AND .JAR FILES
without custom framework
Make sure you have installed NetFramework 4.5,
if not download it from here and then install ;
You can now install Virtuous Ten Studio (VTS):
download it from here and follow the passages to install it ;
Run VTS (you could easily find it under Start) ;
Now you can create a new Project:
simply click on File (on the left top) and select New Project ;
Projects can be of 4 kinds: apk, jar, m10 and boot.
Select apk if you want to edit an apk; select jar if you want to edit a jar ;
Compile the fields on the bottom (Solution and Project name) ;
Wait for VTS to create the folders...;
Now you can import the file you want to edit:
simply right-click on the project you have created (you can find it under Solution Explorer bar, on the left)
and select Import File, then find and select the file you want to edit ;
Here we go! VTS will now decompile our file, and when it finishes,
Solution Explorer bar will be updated to show you what your file contains (smali files and whatever) ;
Now you can make every modification you want to do;
When you have finished, you can recompile that file by right-clicking your project and selecting Build Project:
you can easily find your modded file, just click Binary (under Home tab on the top) and select your file project name;
Here we are! If you've got some questions, just ask here!
Click to expand...
Click to collapse
​​
Click to expand...
Click to collapse
​​
​
----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------
DECOMPILING .APK FILES
with custom framework
first of all, you must know what to do: just take a look at the guide above and follow the steps (from 1 to 7) ;
now you must take the custom resources needed from the apk you want to decompile to work (that resources file is another apk, generally located under /system/framework and its name contains always something like Res or Resources - for example SemcGenericUxpRes -) then place it wherever you want ;
once you've done that you can create your project (DON'T import now the app you want to modify, because you'll get errors related to missing resources) and set-up a custom framework: just right-click on your project and go under Properties ;
find External tools on the left and click on apktool: select Add single framework, import the custom-resources apk that you took from your rom ( see first step ) and set a Tag (the name you want to assign to that file) ;
now you must select that framework to be used instead of the default one: right-click on your project and go under properties; here you can find a selector called Framework tag: select the one you've just setted ;
that's it! Now you can import your custom-framework-based apk ( if you don't know how just take a look at the guide above - step 8 ) .
​
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------​

When i have the time, i really have to give this program a chance. Tnx for tutorial
Sent from my R800i using xda app-developers app

Good job, I've used vts.for awile now.its a great program.
Dark Lords Development Team

Needed to learn Apk Decompiling, now i can!,

simpler than apk tool..and easy to use in small changes..comes handy. nice post.

i have a problem with decompiling resource files can anyone help plz???
{
"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"
}

and this is my log

raminta said:
and this is my log
View attachment 2048601
Click to expand...
Click to collapse
It seems apktool is missing, maybe an incorrect installation? Have you tried reinstalling?

CriGiu said:
It seems apktool is missing, maybe an incorrect installation? Have you tried reinstalling?
Click to expand...
Click to collapse
Yes but nothing has changed
Sent from my R800i using xda premium

raminta said:
Yes but nothing has changed
Sent from my R800i using xda premium
Click to expand...
Click to collapse
try using an older version of VTS, but I can't promise anything
it's clearly related to missing binary, and that's strange. does this happen just with that specific apk, or with all of them?
And keep in mind that you're decompiling an apk with a custom framework, so before you can decompile it, you must add its resources by right-clicking on your project, selecting properties, going under External tools and clicking on Apktool, selecting Add single framework (here you must place your resources apk file: it's generally located under /system/framework folder of your rom - the rom from which you're taking the apk you're modifing - it's something having for name SonyResources or something like that).
Then you must set that framework to be used instead of the "stock" one by right-clicking on your project and going under properties; here you can find a selector called Framework tag: select the one you've just placed in.

CriGiu said:
try using an older version of VTS, but I can't promise anything
it's clearly related to missing binary, and that's strange. does this happen just with that specific apk, or with all of them?
And keep in mind that you're decompiling an apk with a custom framework, so before you can decompile it, you must add its resources by right-clicking on your project, selecting properties, going under External tools and clicking on Apktool, selecting Add single framework (here you must place your resources apk file: it's generally located under /system/framework folder of your rom - the rom from which you're taking the apk you're modifing - it's something having for name SonyResources or something like that).
Then you must set that framework to be used instead of the "stock" one by right-clicking on your project and going under properties; here you can find a selector called Framework tag: select the one you've just placed in.
Click to expand...
Click to collapse
Ok thanks for replying:thumbup:
Sent from my R800i using xda premium

Related

[TUT] Metamorph on X8

lets try something new today..
before I start let me ask you this questions.
do you like customizing your phone?
do you want to edit your apk's without a pc?
do you have belief in xrecovery (&me probably)
if you answered YES for the above questions. I've something good for you.
our map for the treasure in this journey would be a small application named
METAMORPH
MetaMorph, at heart, is simply a program that takes files from a directory and adds them to an already existing zip package.
In this case, our zip packages are apk and jar files.
Click to expand...
Click to collapse
THINGS YOU'LL NEED :
Metamorph (attached)
RootExplorer (any apk which can edit xml files)
Androzip/Astro (zip app)
Creativity & Willingness to take the Risk
Metamorph uses a zip file to apply the customize apk on your phone.
the zip file contains two things
a xml file
folder containing your mods
lets cut it sweet with an example.
----------------------------------------------------------------------------------------------------------------------------------------------------
lets suppose I want to change the icon of my apk. lets say I want to change icon of Calculator
{
"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"
}
to
----------------------------------------------------------------------------------------------------------------------------------------------------
Metamorph is CaseSensitive. Following Steps need the correct name & case
Click to expand...
Click to collapse
we'll do it in 2 parts
PART - 1
to do this I'll first need to create a folder named Calculator
now the icon of calculator is in the folder res\drawable-mdpi
so I'll create those folders in the Calculator folder
so the line is Calculator->res->drawable-mdpi
all I need to do now is the monster icon into this folder and name it exactly the same way it is in the original so lets rename monster.png to icon.png
PART - 2
the xml file should contain this code
Code:
[B]<?xml version="1.0"?>
<themename>[COLOR=Red]theme_name[/COLOR]</themename>
<themeversion>0.1beta</themeversion>
<screenshot></screenshot>
<author>Suhel</author>
<authorweblink>N/A</authorweblink>
<phone>Xperia X8</phone>
<rom>Sony Xperia X8 2.1 </rom>
<themedescription>Converted Theme</themedescription>
<item>[COLOR=Red]your_apk.apk[/COLOR]</item>
<path>[COLOR=Red]path_of_your_apk[/COLOR]</path>
<description></description>
[/B]
ok the red things in the above code are crucial.
1. theme_name (I'll come to this later)
2. your_apk.apk this is the name of your apk
3. path_of_your_apk this is the path of your apk
for our Calculator it should be something like this
Code:
<?xml version="1.0"?>
<themename>X8Champ</themename>
<themeversion>0.1beta</themeversion>
<screenshot></screenshot>
<author>Suhel</author>
<authorweblink>N/A</authorweblink>
<phone>Xperia X8</phone>
<rom>Sony Xperia X8 2.1 </rom>
<themedescription>Converted Theme</themedescription>
<item>[B][COLOR=Red]Calculator.apk[/COLOR][/B]</item>
<path>[COLOR=Red][B]/system/app/[/B][/COLOR]</path>
<description></description>
hope you understand. now you need to save the xml file.
now the first point. the theme_name you are going to type should be the same name as of your xml file name
ok now you're done.
all you need to do now is create a zip file and place the folder & xml file in that zip file. again make sure the name of the zip file should be the same as the xml file
put the zip file in your sdcard root
-------------------------------------------------------------------------------------------------------------------------
Applying theme with Metamorph
Tap Unzip/Extract new theme
Select the Zip file
Tap the apk you want to apply and tap apply it
Reboot your phone
-THE END-​
Why Metamorph?
​ 1. Easily Edit your Apk's & Jar files on your phone without hazzle of extracting and replacing.
(Jar files will need pc. awww but you dont edit jars too much )
2. You can Mod multiple Apk's
Code:
[B]<item>[COLOR=Red]your_apk1.apk[/COLOR]</item>
<path>[COLOR=Red]path_of_your_apk[/COLOR]</path>[/B]
[B]<item>[COLOR=Red]your_apk2.apk[/COLOR]</item>
<path>[COLOR=Red]path_of_your_apk[/COLOR]</path>
[/B]
[B]<item>[COLOR=Red]your_apk3.apk[/COLOR]</item>[/B]
[B] <path>[COLOR=Red]path_of_your_apk[/COLOR]</path>
<description></description>
[/B]
you can even edit your Framework-res.apk. just make sure the path of it is /system/framework and not /system/app
3. I don't know. I need to try it out more. I'm trying to edit a jar file for now. will tell you the results. but the potential of it are endless
4. However it doesn't work with market apps. its intended to only bug the stock things
IMPORTANT : Meta is very stringent about its filenames and fonts case and name. If you miss one thing the apk will disappear from your menu. so make sure you've a
BACKUP B4 U MESS-UP
WOW IT RHYMES LOL
Click to expand...
Click to collapse
EDIT : well you don't need to entirely backup just copy/paste the apk you want to edit. entire backup may require if you are playing with jar files or crucial apk's.
I'm not responsible for any mess done to your phone
Edit 2 : Works with framework-res.apk too
Ok. How can I change icon Phone or Music Player? I try your method and I can change only Calculator, Calender and Settings. Any ideas?
bananoss said:
Ok. How can I change icon Phone or Music Player? I try your method and I can change only Calculator, Calender and Settings. Any ideas?
Click to expand...
Click to collapse
folder path
SemcMusic\res\drawable
icon name
music_app_icon.png
Code:
[B]<?xml version="1.0"?>
<themename>SemcMusic</themename>
<themeversion>0.1beta</themeversion>
<screenshot></screenshot>
<author>Suhel</author>
<authorweblink>N/A</authorweblink>
<phone>Xperia X8</phone>
<rom>Sony Xperia X8 2.1 </rom>
<themedescription>Converted Theme</themedescription>
<item>SemcMusic.apk</item>
<path>/system/app/</path>
<description></description>[/B]
Nice tut
edit: if i need to change a app on sdcard whats the path? :S
/sdcard/foldername
Foldername would be the folder in which your app is stored
Click to expand...
Click to collapse
WHOOAA. Can I get a source for the background please? And what font are you using there?
Edit: This looks so damn good, holy crap.
a-k-t-w said:
WHOOAA. Can I get a source for the background please? And what font are you using there?
Edit: This looks so damn good, holy crap.
Click to expand...
Click to collapse
sure buddy
what about folders in zip file for framework.apk ? Where should be semc_bg.png and fonts ? Near .xml or in folder .......
Sorry for offtopic... But: Which framework do you (suhel) use? It's so awesome
thanks for this tutorial!
herbi69 said:
what about folders in zip file for framework.apk ? Where should be semc_bg.png and fonts ? Near .xml or in folder .......
Click to expand...
Click to collapse
the semc_bg should be placed in /res/drawable-mdpi
for the fonts refer this topic http://forum.xda-developers.com/showthread.php?t=933406
[email protected] said:
Sorry for offtopic... But: Which framework do you (suhel) use? It's so awesome
Click to expand...
Click to collapse
are you talking about the blue background??? I've already attached the file and fonts two posts above your post
thanks for sharing~

[LEARN] modding apks the easy way!

Hi friends of XDA,
today, i present you a easy method (more like a idea) on how to learn about what is actually modified in a apk and help you to
get an idea about creating your own mod by understandig other mods.
first is first!
#include
/*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because of you following this guide.
* do some research if you have any concerns.
* YOU are choosing to make these modifications.
* you cannot point the finger at me for messing up your device.
* yes, i copied this disclaimer from FXP coz itz cool and i am lazy!
*/
okay now let´s get started,
things you need,
1. apktool
2. WinMerge (WinMerge is Open Source software under the GNU General Public License)
3. a modded apk and it's original untouched unmodded apk for your device.
4. A LOT OF PATIENCE (learning modding apks is not so easy).
step by step,
1) apktool part,
1.1) install framework-res.apk, SystemUI.apk, SemcGenericUxpRes.apk in apktool
.
NOTE: below, any apk can be used, i'm using SystemUI.apk as a example.
1.2) decompile and compile both the original SystemUI.apk pulled from your device and the SystemUI.apk from the mod
which you are going to learn what has been changed.
NOTE: step 1.2 is done to make sure that the apktool you are using is comaptible with your apks if it throws errors
while compiling and/or decompiling unmodified system apks then use a different version of apktool which works with your
device and version of android you are going to use (google it).
1.3) after succesfully installing required apks and testing the apktool, clean the apktool folder (remove decompiled apk folders and
remove unwanted apks from the folder).
1.4) copy the pulled original SystemUI.apk from device (or pull it again) to apktool folder and rename it to make you remember that it
is the original apk (i named it as SystemUI_ori.apk).
1.5) copy the modded SystemUI.apk from the mod and rename it to make you remember that it is the modded apk
(i named it as SystemUI_mod.apk).
1.6) decompile SystemUI_ori.apk and SystemUI_mod.apk.
2) winmerge part,
2.1) open winmerge
click 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"
}
2.2) you'll get the following window (select files and folders)
2.3) in the left and right path box type in your path to the decompiled original and modded apks directory.
as shown below and click ok (ok button will be only visible if you choose two valid directories)
2.4) now the two directories you selected will be opened and their similarities in files and
directories will be displayed in the comparison result column as shown below,
2.5) the comparision result column will display what type of file it is and whether they are different or identical as shown below,
2.5) if the file or directory is only present in one directory of the two selected directories (see 2.3) then the comparision result column
will show as highlited in the below image.
2.6) from 2.4 and 2.6 you can easily determine what files have been edited and/or added by the modder to achieve the corresponding
changes in the mod.
2.7) Now when you double click the file which is present in both the left and right directories, those files will be opened and their
differences will be highlighted.
for example let us open a text file (normally all files are text type in a decompiled apk except images) whose comparison result
show that they are different,
the text file in both left and right opens side by side and the lines which contains the differences will get highlighted in yellow,
the part of the line which is actually different from one another will be highlighted in light yellow as shown below.
NOTE: since the apk is decoded by apktool, the files will be always in human readable source form so just by looking at the differences in the
text we can get a clear picture on what is changed in the file and how does it impact in the final modded apk. If you yourself have a good
knowledge of xml and java it'll be a breeze for you to understand it!
you can also copy the whole changes of one file to another or just copy the changes line by line, to learn more about this see the further
reading part below.
3) PLEASE do not ask me about apktool errors or what to edit in a apk to get this etc., type of questions
i'm still in the nascent phase of learning about modifying apks and theming, i am using this method to learn so i am recommending this
to interested friends.
4) if you have doubts and/or errors in using apktool post here.
FURTHER READING:
5) I HAVE COVERED ONLY THE VERY BASICS OF LEARNING MODDING USING WinMerge.
to learn more about the shortcuts and functionalities of winmerge read winmerge quick guide and complete guide..
CREDITS:
authors of winmerge
authors of apktool
HAPPY LEARNING MODDING!
PLEASE PRESS THANKS IF THIS THREAD IS USEFUL!
fix urls
mv_style said:
fix urls
Click to expand...
Click to collapse
DONE man!
Damn awesome tut bro!!
Was manually comparing both files inside apk to find which file has been modified..
U made it easier for me..
Cheers:fingers-crossed:
ssanjay19 said:
Damn awesome tut bro!!
Was manually comparing both files inside apk to find which file has been modified..
U made it easier for me..
Cheers:fingers-crossed:
Click to expand...
Click to collapse
thanks sanjay
Apktool doesnt open on my pc. It just shows up for a sec and then disappears!
thejkamath said:
Apktool doesnt open on my pc. It just shows up for a sec and then disappears!
Click to expand...
Click to collapse
Install java first,
In win7 open the directory where you placed the apktool.jar , hold shift and right click inside the folder, in the menu click "open command window here" and in the command window type,
java -jar apktool.jar
Click to expand...
Click to collapse
In xp
Open command prompt change directory to the apktool.jar directory and type the above quoted.
Hit thanks if I helped you.
Sent from my ST15i using xda app-developers app
Sir I can't see the pictures u have posted... fix their links please
Thanks

[TUTORIAL] How to Decompile and Recompile ICS .Apk Files][Easy ONE]

This is an Easy Tutorial, How to Decompile .apk and Recompile .apk Files​If u like this Tutorial, Hit THANKS Button​CREDITS
Memnoc - For Gud Ideas.
Xavierjohn22 - the amazing author of AutoApktool go Here, Hit thanks to Him Too.
Sandy7-For Motivation.
Requirements
Java (last version)
JDK (last version)
JDR (last version, usually included in JDK or Java)
Auto_Apktool 2.0.0 (DOWNLOAD THIS ONE NOT OTHERS)
HOW TO DO
NOTE: before start, select Apktool version with option 21, YOU MUST CHOOSE 1.4.1 version
1) Download and simply unpack Auto_ApkTool
2)Click on "autoapktoolmain.bat", prompt will 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"
}
3)put the apk you want to EDIT, in "_INPUT_APK"
4) Nw u Should Choose "option 6" for 'decompiling .apk
5) when option 6 is being selected, drag the apk from _INPUT_APK folder into the windows prompt and click enter
6) A Note window will appear, and will show IF the decompiling process has been done properly. Once you close that window, you will see the decompiled folder in _INPUT_APK folder
7) do your edits (xml, smali, or png, WHATEVER)
8) recompile with option 7 (NOTE: this time you MUST drag all the FOLDER, NOT the apk)
9) Once recompiling finished, u will Get a Dcompiled NOTE window that Shows your apk is sucessfully Compiled, Close that Window, Once open the decompiled folder, go to "dist" folder, and here you got your edited apk
10) NOW this is the Last step, since u cannot Sign System app, u will have to Copy the META-INF foldrer frm the Orginal apk to the edited apk, for more Info See the "Screen"
11) Rename the apk if Needed, and push it.
Reserved, HOW to decompile .jar file and recompile it, Soon.
Reserved 2, If i get Time, All in one Video Tutorial.
FAQ's​Why can't we use Apktool???
Well, you can, but it's more difficult, that's it.
Why do you say "must use 1.4.1 apktool version"??
The reason why is that since 1.4.2 version, apktool generate java code while recompiling process is going on, and this lead to errors that 9/10 makes decompile process fail
good job my friend.
One little suggestion to add.
if you install jdk leaving its custom destination directory you might get "java not found" error (even if there's the jdk file in system32 folder).
To solve this (on win 7) you need to:
- open start menu and type system in search bar
- Select "advanced system settings" from menu on the left
- Open the "system variables" on the bottom of the page
- Go to the PATH value and add the path to the jdk bin folder
- Create a new variable named JAVA_HOME and give it the same path as above.
Cheers.
Rudjgaard said:
One little suggestion to add.
if you install jdk leaving its custom destination directory you might get "java not found" error (even if there's the jdk file in system32 folder).
To solve this (on win 7) you need to:
- open start menu and type system in search bar
- Select "advanced system settings" from menu on the left
- Open the "system variables" on the bottom of the page
- Go to the PATH value and add the path to the jdk bin folder
- Create a new variable named JAVA_HOME and give it the same path as above.
Cheers.
Click to expand...
Click to collapse
Bro, in this Apktool u Wont have tis Problem, Jst need to install java acoording to ur system, Ex 64 or 32 bit, and also install the Java rutime environment, tool will work perfet..!
stanlin salu said:
FAQ's​Why can't we use Apktool???
Well, you can, but it's more difficult, that's it.
Why do you say "must use 1.4.1 apktool version"??
The reason why is that since 1.4.2 version, apktool generate java code while recompiling process is going on, and this lead to errors that 9/10 makes decompile process fail
Click to expand...
Click to collapse
While i have apktool 1.5 by iBotpeaches , nothing is wrong with that.Im saying that because ibotpeaches is actively developing apktool. Its faster to get updates from him. Autoapktool may still need to wait for source codes from ibotpeaches not trying to spoil your thread. Just siggesting you to add one more additional info.
And there are just simple codes. I suggest you to add them too. Its just a framework code. And two commonly used codes to decompile and recompile. And yes i do know the codes. Hard to even forget.
Personally i make batch files for commonly decompiled apk for faster decompiling.
Sent from my WT19i with Real Xperia r1
kokzhanjia said:
While i have apktool 1.5 by iBotpeaches , nothing is wrong with that.Im saying that because ibotpeaches is actively developing apktool. Its faster to get updates from him. Autoapktool may still need to wait for source codes from ibotpeaches not trying to spoil your thread. Just siggesting you to add one more additional info.
And there are just simple codes. I suggest you to add them too. Its just a framework code. And two commonly used codes to decompile and recompile. And yes i do know the codes. Hard to even forget.
Personally i make batch files for commonly decompiled apk for faster decompiling.
Sent from my WT19i with Real Xperia r1
Click to expand...
Click to collapse
If so, jst PM me the codes, I wil look to it , and wil add it .
Sent from my WT19i using xda premium
And guys, tis too, is faster, easy and userfriendly , try and report to me guys! :beer:
Sent from my WT19i using xda premium
stanlin salu said:
Bro, in this Apktool u Wont have tis Problem, Jst need to install java acoording to ur system, Ex 64 or 32 bit, and also install the Java rutime environment, tool will work perfet..!
Click to expand...
Click to collapse
I had this issue, that's why i reported it. it happens when you install sdk on a partitioned hd without putting it in the C:\ directory, it then goes in %appdata% and gives the java not found error, talking out of experience not my a$$
Rudjgaard said:
I had this issue, that's why i reported it. it happens when you install sdk on a partitioned hd without putting it in the C:\ directory, it then goes in %appdata% and gives the java not found error, talking out of experience not my a$$
Click to expand...
Click to collapse
No offence bro, any how tat was a gud tip, I wil look to it, thanks!
Sent from my WT19i using xda premium
Can you link the JAVA required and JDR req pls .......I'm not sure about which one should i dl ?
Sorry for the Noob question.
Ghostfreak NB said:
Can you link the JAVA required and JDR req pls .......I'm not sure about which one should i dl ?
Sorry for the Noob question.
Click to expand...
Click to collapse
Bro, u can download the java frm 'java.com' and jst search in google for EX: 'JRE for windows 7 - 32 or 64 bit' wich u r running jst install both these ten u r ready to go!
Sent from my WT19i using xda premium
Ty,bro... Will try tonight!
Btw you could just link it to that page in your OP
It could avoid such noob questions!
Sent from my MT11i using xda premium
Ghostfreak NB said:
Ty,bro... Will try tonight!
Btw you could just link it to that page in your OP
It could avoid such noob questions!
Sent from my MT11i using xda premium
Click to expand...
Click to collapse
Ok!
Sent from my WT19i using xda premium
stanlin salu said:
7) do your edits (xml, smali, or png, WHATEVER)
Click to expand...
Click to collapse
would you please create some tutorial for it? like deleting some message dialog?
superderon said:
would you please create some tutorial for it? like deleting some message dialog?
Click to expand...
Click to collapse
Alread there are many great tutorial how to edit xmls and stuffs to modifiy the apk, I can do a help my adding all the thread links to the OP, so u can easily get wat u want!
Sent from my WT19i using xda premium
Trying to use your tool here, but when I try to recompile - #7 - I get this:
[*] C:\auto-apk\AutoAPKTool2.0.4\_INPUT_APK\AngryBirdsSeason
recompiling C:\auto-apk\AutoAPKTool2.0.4\_INPUT_APK\AngryBirdsSeason...
I: Smaling...
I: Building resources...
I: Copying libs...
I: Building apk file...
The system cannot find the drive specified.
I followed your instructions closely, though when I ran the decompile and hit return after dragging and dropping the .apk onto the Command window, it showed the whole path to the .apk file; I hit return, and the word "test" came up. The decompile went well - the Notepad popped up and all that - but then after I edited one .png file and went to recompile, I couldn't drag the folder onto the Command window, so I had to kill the notepad and the Command window and restart, in order to select #7. That's when I got the above error.
Any ideas here? Win 8, 64-bit, BTW. Java 1.6.0.4
Thanks! My ONLY goal is to make hi-res icons for my Kindle Fire HD, 7". If you know a simpler way, I'd love to hear it!
Eric
ClarkSt said:
Trying to use your tool here, but when I try to recompile - #7 - I get this:
[*] C:\auto-apk\AutoAPKTool2.0.4\_INPUT_APK\AngryBirdsSeason
recompiling C:\auto-apk\AutoAPKTool2.0.4\_INPUT_APK\AngryBirdsSeason...
I: Smaling...
I: Building resources...
I: Copying libs...
I: Building apk file...
The system cannot find the drive specified.
I followed your instructions closely, though when I ran the decompile and hit return after dragging and dropping the .apk onto the Command window, it showed the whole path to the .apk file; I hit return, and the word "test" came up. The decompile went well - the Notepad popped up and all that - but then after I edited one .png file and went to recompile, I couldn't drag the folder onto the Command window, so I had to kill the notepad and the Command window and restart, in order to select #7. That's when I got the above error.
Any ideas here? Win 8, 64-bit, BTW. Java 1.6.0.4
Thanks! My ONLY goal is to make hi-res icons for my Kindle Fire HD, 7". If you know a simpler way, I'd love to hear it!
Eric
Click to expand...
Click to collapse
The above process, is nt an error, jst go to the 'dist' folder u wil find the recompiled apk.
Sent from my WT19i using xda premium

[Tool][App-Modder] Sony System App Editor Ver.1.1 - {divinemamgai}

This Tool has been replaced by - Junohttp://forum.xda-developers.com/showthread.php?p=45990300#post45990300
Please visit the new thread!
For older Thread click the button below.
{
"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"
}
Welcome To Sony System App Editor Ver.1.1​Installation
Please follow the instructions carefully, cause this is very crucial to the programs working.​
Step 1
Download the following resources :​
Android SDK (drawPatch9)
Java SE Runtime Environment 7 (Java)
Step 2
Go to Advanced System Properties.
It should look like this:
Go to Environment Variables, then create a new System Variable, having name JAVA_HOME and value according to the path where you have installed the JRE(7).
It should look like this:
Now after creating the JAVA_HOME variable, search for Path system variable in the System Variables list. Now this is a bit tricky. Once found click on it and then on Edit. Now if your value is ending with ";" (without quotes) then just add the path to your JRE(7) bin folder. If the ";" is not present then just add it and follow the rest of instruction as given.
It should look like this:
Now just Save it. (Just keep on clicking OK it will be done automatically.)
Step 3
Download Ver.1.1.zip.
[*] Download
[*] Size: 17.85 MB (18714229 bytes)
Now Extract the zip where ever you want in your computer.
Step 4
Open the folder in which you have extracted the files and then the res directory in it.
Now make sure that the folder looks like this -
If you want you can add your modified resource files too.​Note: If you are using any other ROM or PHONE of Sony (This program might be compatible with all types of Phones and Roms though!), then you should over-write the already present resource files in the res directory with your own ROM or PHONE resource files. (This is important!)
Now open the program by executing - Sony System App Editor.bat, like this -
Then type LOADRESOURCES, and let the program install the required resources. Once done add your APK file to this program's directory and get started, cause you are all done!
It should look like this:
How to use?
Step 1
Make sure you have the original version of the system apk. (This is important cause in other situations I cannot guarantee it's working as I haven't tested it. ) Copy it to the program's main directory.
Now open the Program by executing - Sony System App Editor.bat, and type only the name of the System app.
For eg.: If you want to edit UxpNxtLockScreen.apk, then copy it to the main directory, and then by executing the program type UxpNxtLockScreen. (Notice no .apk!)​
Now press Enter and let the program handle the rest.
Still it should look like this:
Now check for any errors in the Apktool output screen, if none found you are good to go or else I don't know what to do?...p)
If everything went fine it should look like this -
Step 2
Edit your APK to your carnal needs! But still make sure everything you do is syntactically correct and there are no erroneous codes.
For editing APK's go to the working folder of the program, and look for the folder that is named after the file-name of your System Apk.
It should look like this:
​
Now open it and start editing.
Step 3
Now assuming you have finished editing the System app, execute the main program once again - Sony System App Editor.bat.
Type the APK's file-name (no exts.) which you where editing, and press enter.
It should look like this:
Make sure everything goes right and check for any errors in the APKTOOL output screen, cause program at the current stage will still produce a build even if there is any error with apktool! (Will be solved soon.)
Now assuming you have checked everything and nothing is wrong, then you are good to go! And still it should look like this -
Step 4
Assuming that everything has been fine till now, so then you can have your APK file in the build folder of the Program's main directory.
It should look like this:
​
Now copy it to a place where you can create a flash-able zip out of it! :laugh:
Note: If you want to start modification of the new apk file of the same name, first delete the folder in the working directory of the previous APK's file-name. (It's important.)
Condition of it's use
Please use this program at your own risk. It has only been tested to mod UxpNxtLockScreen.apk.
This program utilizes a technique that I learned while creating my first mods, and was not able to find a perfect tutorial.
The technique this program utilizes might not be applicable for all types of System Apps.
The program is just created by me today (23/9/13), so please bear with it's simple and non-wanting UI and features.
So start using it and start modding today! - Become a World-Class Developer! (.........:laugh:...............:laugh:........)
Download Ver.1.1​Please wait till this program is completely face-lifted!​Credits
Apktool developer for developing such a great tool.
Google for making such a wonderful OS!
Me for making it's modification so simple! (divinemamgai)
This Tool is gonna suffer from Face-Change! So please co-operate.
@divinemamgai
Awesome.
I just edited my lockscreen using this, removed the clock(as I requested in PM)
Thanks a lot.
heatseeker_x04 said:
@divinemamgai
Awesome.
I just edited my lockscreen using this, removed the clock(as I requested in PM)
Thanks a lot.
Click to expand...
Click to collapse
Hey dude use the latest version to be sure of not getting into any trouble! :laugh:
divinemamgai said:
Hey dude use the latest version to be sure of not getting into any trouble! :laugh:
Click to expand...
Click to collapse
sure, I will download it.
hey man i try use your tool this hopefully helping me,,, thanks so far so good as i use
Encang_Rojali said:
hey man i try use your tool this hopefully helping me,,, thanks so far so good as i use
Click to expand...
Click to collapse
Welcome but please try the new Tool! As it is the better than this one.
divinemamgai said:
Welcome but please try the new Tool! As it is the better than this one.
Click to expand...
Click to collapse
where is the NEW tool? cant u share ?
Encang_Rojali said:
where is the NEW tool? cant u share ?
Click to expand...
Click to collapse
Dude see the main post of this thread and you will get it, or just search for Juno! :laugh:
Can I use this in Fedora ?
Little Zed said:
Can I use this in Fedora ?
Click to expand...
Click to collapse
I guess but I'm not sure cause there maybe some functions used in this program which might not be available in Fedora. I have developed it in Windows, so I think you can try out and tell me what happens. But as far as I'm know it my not work.
divinemamgai said:
I guess but I'm not sure cause there maybe some functions used in this program which might not be available in Fedora. I have developed it in Windows, so I think you can try out and tell me what happens. But as far as I'm know it my not work.
Click to expand...
Click to collapse
So. You mean no linux support?
Sent from my ST25i using Tapatalk 2
Little Zed said:
So. You mean no linux support?
Sent from my ST25i using Tapatalk 2
Click to expand...
Click to collapse
Dude I don't have Linux system, so I can't test, all I'm asking you is to test it and tell me if it works or not?
divinemamgai said:
Dude I don't have Linux system, so I can't test, all I'm asking you is to test it and tell me if it works or not?
Click to expand...
Click to collapse
Will surely test with WINE software on linux.
Sent from my ST25i using Tapatalk 2
OK... Thanks bro...
Sent from my Xperia U using XDA Premium 4 mobile app
Little Zed said:
Will surely test with WINE software on linux.
Sent from my ST25i using Tapatalk 2
Click to expand...
Click to collapse
And he is not saying it metaphorically.... ...
divinemamgai said:
And he is not saying it metaphorically.... ...
Click to expand...
Click to collapse
Ok then ket's port this to linux.
Sent from my ST25i using Tapatalk 2
Little Zed said:
Ok then ket's port this to linux.
Sent from my ST25i using Tapatalk 2
Click to expand...
Click to collapse
Dude just so you know I was referring to the word WINE in your previous post. , and hey can you continue this discussion in the new thread please.

[TOOL][SHARE] Remote Theme Injector - theme your favourite paid apk!

Note : I'm just sharing the work of the XDA Member Diamondback.Here's a little introduction :
Diamondback said:
Themers on XDA face a huge problem when it comes to paid apks. They can't theme apks and distribute their work since that would be considered warez.
Since we - the moderators - spend a lot of time closing threads where someone accidentially published such a theme, Forum Moderator Whiskey103 came up with an idea.
What if the themer doesn't distribute the entire apk, but only his themed parts? This would be totally allowed on XDA.
So Whiskey asked me if I can come up with a solution to this problem. And today we announce RTI - The remote theme injector!
Note: while this project is intended for paid apks, it still works with free apks too of course. This app might help you migrating themes to a new version of the apks too.
RTI basically consists of two parts:
The patcher (or themer)
And the editor which is needed to create themes
Patcher
This is a little windows app which takes the target apk and a theme file (more on that later) and automatically injects the theme into the desired apk.
Todo this, the apk gets decompiled, patched, recompiled, signed and zipaligned. All this happens automatically and requires no input from the user (which is in this case the user who wants to USE the theme)
The user has to provide the target apk on his own, this ensures no apks are distributed as part of the theme.
It can be pulled via ADB or Rootexplorer from the phone for example.
Editor
The first app was for applying a theme, the editor is for creating such themes.
It's a simple wizard style app which guides the themer through the required steps to create a theme file.
Each theme file contains not only the actually themed files but also its own version of apktool to ensure maximum compatibility and a set of settings specifically for the target apk
The settings include:
Package name of the target apk
Version number of the target apk
Which sign method to use (keep old signature, sign with a default key, sign with own key)
Whether the apk gets zipaligned or not
The workflow for the user is very easy:
Download theme (it contains the patcher and the theme file (or even multiple themes)
Fetch target apk from phone and copy it in the same directory as the patcher
Start patcher and wait until it's done
Install themed apk on device
The workflow for the themer isn't much harder:
Theme your apk just as you are used to it
provide TWO folders to the Editor, both folders need to contain the decompiled output of apktool
The first folder contains the unthemed, decompiled apk, the second one contains the themed and decompiled apk
Set the required settings in the editor and wait until generating the theme is done
Provide the user a download which contains the patcher and your created theme file
Screenshots:
Editor:
{
"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"
}
Patcher:
Changelog
2.12.1.5665
Added support for smali modification for advanced themes
Some bug fixes and UI improvements
1.9.5.191
Important: This version brings some breaking changes, so please do not mix an old rti file with the new patcher. It won't work. You have to recreate your theme files if you want to use the new patcher.
Changed signing options. Removed java jarsign and added signapk.jar instead. This has a far better compatibility and doesn't require an installed Visual C++ runtime.
Possible signing options now:
Use 'test keys': Use a pre defined set of keys from me to sign the apk
Use 'own keys': you have to provide your own set of keys (key.pk8 and certificate.pem) to sign the apk
Keep old signature: NOT recommend, this has a few use cases, but usually won't work. Use one of the other two options if you are not sure.
Improved error detection on the folder selection page. It can tell you some common errors now if you make them.
1.7.6.113
Initial release
Example themes
Tapatalk Pro/Free by Whiskey103
XDA Premium Red and Blue by Whiskey103
Requirements (this is both for Editor and Patcher)
Windows XP SP3 or newer (excluding all Windows 8 versions)
Microsoft .NET framework 4.0 FULL
Oracle JRE (Java) (Always try to use the latest Java version)
Download
RTI 2.12.1.5665
Old versions:
RTI 1.9.5.191
RTI 1.7.6.113
Credits
Whiskey103 for the excellent idea
brut.all for apktool
Google for Android
My girlfriend for tolerating my work on XDA
My dog for keeping me happy
Click to expand...
Click to collapse
Here's a explanation on how to use this :
Whiskey103 said:
I will write a guide here, for now just screenshots and a little explanation on how to use the "Patcher"
We will do our best to answer the questions about how to use and all that
Basically i came up with the idea because of the fact we have to delete a lot of themed paid apps.
Thats not nice since i know there is much time spend on it.
So now we have a solution for all the themed Swype apk,s etc etc
I really felt sorry sometimes after i had to remove some masterpiece because it was "warez"
If we start to use this, its all fine
BIG Thanks to Diamond who really liked the project from the beginning, without him this wasn't even possible.
He really was enthusiast from the moment i contacted him till where we are now.
Once again, thanks Diamond
The patcher:
You have to download a patcher theme (XDA Premium App example) my thread for screenshots
Extract that folder and grab the installed apk from your phone with Rootexplorer or ES File Explorer.
Place that apk in the extracted theme folder and run the RemoteThemeInjector.exe
In this case the RTI (Remote Theme Injector) will give you a list since i placed two themes in one folder. Just make your choice.
The patcher will do his job and spit out a Themed APK.
Copy that Themed APK to your phone (SD-Card) and install it after you removed your previous installed version of the App.
Once the apk is installed , goto menu / more / settings / Display Style / and select XDA Free.
The Editor
Click to expand...
Click to collapse
Original Thread : http://forum.xda-developers.com/showthread.php?t=1756020
Credits : Diamondback
Click to expand...
Click to collapse

Categories

Resources