|TOOL| WINDOWS | Deviant Manager *2- APKs made simple Updated 2/4/13 - Android Q&A, Help & Troubleshooting

{
"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"
}
Deviant Manager 2​
Since Daneshm90 originally put out his APK manager, editing APKs has been much less of a headache. This tool is a modified/ updated continuation of APK Manager. This tool is not only a great asset to Developers in modifying/adding certain simple ROM features, but also to Themers and those who aspire to begin learning the wonderful world of Android.
Credits
Daneshm90-original APK Manager http://forum.xda-developers.com/showthread.php?t=695701
Brut.all- for Original Apktool
iBotPeaches for Updated Apktools http://forum.xda-developers.com/showthread.php?t=1755243
JF- Smali/Baksmali
Features
- Simple Extracion and Zipping of apk's.
- Optimization pngs (ignores .9.pngs)
- Zipalign apks
- Sign apks
- ADB Push
- Brut.all/ iBotPeaches apktool
- ADB Pull
- Batch optimize apk (Zipalign,optipng,or both)
- Quick sign an apk (Batch mode supported)
- Batch Ogg optimization
- Zip/Compile in Different Compression Levels
- Batch install apk from script (Optio
- Error detection. Checks if error occured anytime u perform a task, and reports it via LOG
- Read log
- Added framework dependent decompiling (For non propietary rom apks). Checks whether the dependee apk u selected is correct.
- Allows multiple projects to be modified, switch to and from.
- Allows to modify system apk's using apktool but ensures maximum compatibility in terms of signature / manifest.xml
NEW FEATURE
-New drag and drop -if- to get those frameworks installed from your manager
Instructions
(Be sure to have JAVA and ADB installed correctly before attempting to use this tool)
-Download Deviant Manager
-Extract Zip
----For Modifying-----
-Drag Apk You Want To Modify To The "place-apk-here-for-modding"
-Run Script
-Perform Desired Extract/ Decompile Action
-Modify Apk In The "projects" Folder
-Perform Desired Zip/Compile Action
-Find Your New Modified APK In The "place-apk-here-for-modding" Folder As "unsigned__(your apk)__.apk"
Downloads
Deviant Manager 2 - http://d-h.st/6YW
Right now this tool only supports windows. (Dual boot is a wonderful thing)
This Version Is Confirmed Working For Jelly Bean As Well As Ice Cream Sandwich​

Mine

Mine as well lol.

Ubuntu, Windows, Mac ? Thanks
-DELTA

iDannyPR said:
Ubuntu, Windows, Mac ? Thanks
-DELTA
Click to expand...
Click to collapse
Windows, It's in the title.

iDannyPR said:
Ubuntu, Windows, Mac ? Thanks
-DELTA
Click to expand...
Click to collapse
I reiterated in the OP just in case
Sent from my SGH-T989 using xda app-developers app

Damn deviant development is killing it lol
nice work bro!

been reading for this. Thanks Team Deviant Dev. you are Awesome.
Thanks, I got this working to decompile systemui.apk question is should I decompile that .apk as with a dependency or dependents . and if the systemui.apk has been modded can I alter it with this program? thanks a million

Thank you; I want to learn how to theme and all that but been having a hard time getting everything setup properly. This sounds like it might be at least a little easier I'll let you know after testing. Thanks again for all ur time and hard work!!!
Edit: Just did an apk that I wanted to theme for my personal use and even though I need to get more familiar with Gimp ur program worked flawlessly. Many thanks!!!

Updated. Updated apktool/aapt (thnks ibotpeaches) and new drag and drop -if-

its useful tools .. thanks !!

keeps telling me that java is not detected. I updated it and I am running windows 8. Any troubleshooting I should try?

cinsity said:
keeps telling me that java is not detected. I updated it and I am running windows 8. Any troubleshooting I should try?
Click to expand...
Click to collapse
A common problem associated with Java not being detected is the architecture. You're running windows 8 but which version:
32bit (x86 or X86_32 or i586) or
64bit (X86_64 or AMD64).
If you're running win8 64bit and install the 32bit binary for java, it installs it in the C:\Program Files (x86); whereas the ADT and Deviant Manager look for java in C:\Program Files (hence a "Java is not installed" error).
Because 64bit systems can run 32bit binaries, this is a common mistake that many people make and even though Java32 will work in in win8-64, its not the correct version.

I can't thank ptmr3 enough for putting this out here for everyone, now lots of people can theme apk's so people like me have more people to ask to have an apk themed

great tool tool .... thx for share

Hoping to get a understanding using this.
Sent from my SGH-T889 using xda premium

Greetings, all!
We on the Council have been speaking with ptmr3 of late, and real life is pushing him very, very hard right now. As a result, we’ve suggested to him, and he has accepted, that he should probably back off of all of his work on XDA for a bit. We would MUCH rather see him take a break for a while than burn out and just walk away.
As a result, updates will be few and far between for a while, and the Council, as well as the other members of these threads, I am confident will jump in and help any and every way they can. This is the essence of the Jedi spirit.
ptmr3, and we as the Council, appreciate everyone’s patience and understanding in this matter.
With respect and thanks to all,
-GT247 by request of the Jedi Council

@kushXmaster
sent from my JEDI ELITE Note 3
for best xda results, click to enlarge ?
http://img268.imageshack.us/img268/9564/searchitnoob.gif

Related

APK Manager 4.0 for Mac OSX (64-bit)

EDIT: How and why did this post end up in Atrix Q&A? That is entirely unrelated. If a mod sees this, please return this thread to it's original location at Moto Xoom Development.
After waiting for way too long to have apk manager working on OSX, (so i can do my themeing natively instead of GFX in OSX and compiling in windows/linux) I have decided to port it myself. This has only been tested on an intel-based core 2 duo mac running snow leopard 10.6.8.
Credit for original APK Manger (windows) goes to: Daneshm90
Credit for linux port which this is based off goes to: farmatito
Update: This has been superseded by one of the most excellent rewrites of an application which I have had the pleasure to use. You my find s0niqu3's great work here: http://forum.xda-developers.com/showthread.php?t=1285130
---------
And one more thing: Shout out to Team EOS!
Awesome!!!!!!!!!!!!!!!!!!!!!!!! +9999999999
What are the capabilities of this and his can i use it?
Never messed with a apk manager before but would like to
crackmulah said:
What are the capabilities of this and his can i use it?
Never messed with a apk manager before but would like to
Click to expand...
Click to collapse
Apk Manager is an "automated" environment for apktool and a couple other utilities. Together, it allows you to extract/zip/sign/decompile/recompile and otherwise change apk files. It is most widely used to change strings (sections of text) and graphics within popular apks such as framework-res.apk and SystemUI.apk (for theme development) or adobe's flash apk (for hulu support).
Wouldn't run out the box. Had to add my adb to path (might be easier just including adb in the "other" folder, as adb is resource-independent and nothing has to be installed for adb to work on a mac [Just download and run]).
The other is "sox". Seems to be a open-source command line audio converter, right? Not part of the standard OSX install. The apkmanger should either disable any sox related (It already does on reading the script), in which case it should be removed as a hard error, or include it in the other folder.
MAD Industries said:
After waiting for way too long to have apk manager working on OSX, (so i can do my themeing natively instead of GFX in OSX and compiling in windows/linux) I have decided to port it myself. This has only been tested on an intel-based core 2 duo mac running snow leopard 10.6.8.
Click to expand...
Click to collapse
Hey,
First, to the OP, Thanks for this!!!!
I had been casually working on my own port from the windows version, but now there's really no need. I've tested briefly on OSX 10.7.1, mid-2009 c2d macbook pro, 64-bit, and it seems to work great so far.
chaostic_2k1 said:
Wouldn't run out the box. Had to add my adb to path (might be easier just including adb in the "other" folder, as adb is resource-independent and nothing has to be installed for adb to work on a mac [Just download and run]).
The other is "sox". Seems to be a open-source command line audio converter, right? Not part of the standard OSX install. The apkmanger should either disable any sox related (It already does on reading the script), in which case it should be removed as a hard error, or include it in the other folder.
Click to expand...
Click to collapse
For the adb error, uhm, really? Anyone that's going to be using this should have the knowledge/ability to add adb to their path. And yeah, I know, it sounds like you were just trying to give the OP a pointer to make it idiot proof, but this really seems like the bare minimum knowledge requirement that someone should have if they're going to use a tool like this.
For anyone that doesn't know, here's one easy way (on osx there are about a million ways to add to $PATH) to add adb to your $PATH:
edit your bash profile file (create a new file if it doesn't exist yet) here: ~/.bash_profile
Add the following:
Code:
export PATH=/path/to/your/sdk/tools:$PATH
export PATH=/path/to/your/sdk/platform-tools:$PATH
(Technically only the second one is necessary for adb to function, I recommend adding them both for quick ddms access too.)
The sox issue on the other hand I can understand, since its not included with OSX. But it is simple enough to install SOX with all dependencies using macports or homebrew. If you plan on doing anything at all with android development, hacking, modding, etc., on OSX, using one of these tools is absolutely essential. I personally use homebrew, because its immensely faster than macports on my laptop, and homebrew will use OSX's default x11, python, etc. binaries, whereas macports will compile its own second copy of x11, python, etc..
for macports:
Code:
POSIXLY_CORRECT=1 sudo port install sox
for homebrew:
Code:
brew install sox
Anyway, hopefully someone finds this useful, else I'll just come back and delete the post in a few days.
Cheers
chaostic_2k1 said:
Wouldn't run out the box. Had to add my adb to path (might be easier just including adb in the "other" folder, as adb is resource-independent and nothing has to be installed for adb to work on a mac [Just download and run]).
The other is "sox". Seems to be a open-source command line audio converter, right? Not part of the standard OSX install. The apkmanger should either disable any sox related (It already does on reading the script), in which case it should be removed as a hard error, or include it in the other folder.
Click to expand...
Click to collapse
Though it is very easy to install/add adb to path, I agree that it wouldn't hurt to throw it in the other folder just in case.
As far as sox goes, i don't know many who are using apk manager for ogg files. Those who are I figured would speak up when the time came and I would work with them to come to some sort of solution. Are you getting errors from sox missing? If so, you are absolutely right that the errors should be fixed. I did take steps to disable it from the script. If i missed something, feel free to post a log and I will take care of it.
Just went through the whole installation, from installing ADB with it's own path to setting up SOX with homebrew and I gotta say, I'm a noob but I got it all done within a six pack! lol Thanks for the port mang! I can finally put away the PC to modify apk's!
All I did to "fix" it was change
Code:
# Test for needed programs and warn if missing
ERROR="0"
for PROGRAM in "optipng" "7za" "java" "sudo" "aapt" "sox" "adb"
to
Code:
# Test for needed programs and warn if missing
ERROR="0"
for PROGRAM in "optipng" "7za" "java" "sudo" "aapt" [COLOR="Red"]#[/COLOR]"sox" "adb"
Since sox isn't supported in the mac port yet (the options are not in the menu), no need to throw a fatal error, or require someone to install sox. You might just want to comment out "sox" in that line and leave adb uncommented though, since the adb commands are enabled.
As for adding adb to the package, well, it's a convenience thing. APKmanager should be a one stop shop for working with apks like that, and having adb added would help with that. I personally don't like mucking about too much with installing packages on my laptop, so I keep adb in my Applications folder, and just cd to it. And I manually run many things. I wouldn't be using APKmanager to install or pull apks anyway.
Hi again,
For anyone else that's doing their smali hacking on mac, I was seriously annoyed by the lack of syntax highlighting in my two favorite editors, Coda and SubEthaEdit, so I made my own syntax mode for them.
{
"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"
}
The screenshot is from subethaedit (notice it supports code-folding at the ".method" level, ) and is somewhat outdated, I fixed the mode already to properly hightlight all variables after parameters.
My thread for the mode on XDA is here: http://forum.xda-developers.com/showthread.php?t=1257025
or you can head straight to my blog to download them here: http://wp.me/p1JZM0-O
Cheers,
Hi again,
So I started hacking your APK manager for mac today to hopefully bring it closer in-line with the windows branch.
And first thing was simply verifying that optimize png and ogg work if you install optipng and sox, and yes, they both do. So in addition to my tip above to install sox, also install optipng:
Macports:
Code:
POSIXLY_CORRECT=1 sudo port install optipng
Homebrew:
Code:
brew install optipng
Then go into the script.sh and uncomment the relevant lines that call those functions (menu lines 2, 14, 16 and answers for opt, bopt and ogg) and comment out the removal/error lines instead.
So far I've done the easy steps, added user selectable compression level, max java heap size, batch signing support, and added the z/p/zp options for batch optimizing.
I'll try to get this all finished this weekend so somebody else can test it too, and I'll try to include at least the 64-bit optipng binary I compiled, and possibly 64-bit sox and all its dependencies too.
Cheers,
hi, i've tried this (decompile and compile Browser.apk):
http://forum.xda-developers.com/showpost.php?p=17682521&postcount=19
any ideas?
thx
maile76 said:
hi, i've tried this (decompile and compile Browser.apk):
http://forum.xda-developers.com/showpost.php?p=17682521&postcount=19
any ideas?
thx
Click to expand...
Click to collapse
Hi,
I've spent the past few days greatly improving the Mac version of APK manager. Well, really its almost a complete re-write. I've added 32-bit/64-bit all-in-one support, re-enabled old disabled features, added project support, system apk "keep" folder options, error checking, debug info, etc., etc., etc.
Really, after writing ~600+ lines of code, I can't even remember every change I've made at this point.
Anyway, I'm still testing and tweaking it multiple times a day, so I'm not really ready to release it here to the masses at XDA, but if you visit my blog, you'll find a current download link.
Until further notice though, I ask is that you please, PLEASE, don't link directly to the download, and please don't re-distribute here. If you want someone else to download my version, please just link them to this post.
I'm not trying to drive clicks or anything like that, I just don't want a billion questions about how to use my mod right now when its not finished, and is likely to change every few hours anyway.
Cheers,
Hey again,
So I'm finally happy enough with my version of APK Manager for OS X, that I released it here on XDA: http://forum.xda-developers.com/showthread.php?t=1285130
I've brought it completely up to date with the windows feature set, and exceeded it in many, MANY ways.
Cheers everyone

[Kitchen] Easy Development Studio (BETA 2) Released 5/1/12

{
"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"
}
Makes android development easy for novice developers while not
limiting experienced developers.
by: wes342 and Sac23
NOTE: LINUX ONLY ( WIN AND MAC when possible)
Follow this project:
Twitter
Website
A little demo video: (not the best but you get the idea)
EasyDevStudio
Videos Page
Status Updates: (Updated periodically)
(Beta 2) Released 5/01/12
​
Apk Options:
install framework files
decompile apks
recompile apks
sign apks
decompile .dex files
recompile .dex files
view java source code from any .apk, .jar or .dex file ( just for reference purposes code may have errors)
launch draw9patch tool (must have android sdk installed and folder named "android-sdk") Will be native in future builds
Adb Options:
Pull files from Android Device
Push files from Android Device
Fastboot Options:
Flash boot.img
Reboot to Recovery
Rom Options: ( This is not fully working yet Not included in beta)
Device Selection (Evo 3d first but more to come)
Base Rom Selection 100% stock ( Ruu based roms first then AOSP and ports)
Bloat Manager (you can select apps to remove)
Addon Apk Manager ( Choose from Many Free market apps. EX... Angry Birds )
(NO PAID APPS WILL BE INCLUDED WITH OUT ORIGINAL DEVELOPER PERMISSION)
Modified App Manager (Includes modified apps EX...Netflix with Rotation )
Theme Manager (Add a theme to your rom. EX...Full theme, Partital Theme, ect...)
Tweaks Manager (Add custom Tweaks. EX...Battery Calibration , Tweaks.apk. ect...)
Other Options: (Not implimented yet)
Unpack/Repack boot.img
Change Kernels (Custom Kernels will be included once each dev is asked for permission. If permission is not granted that kernel will not be included)
Misc Menu: (Not Included Included In Beta)
Script editor (Add/Remove options in multiple scripts)
Tutorial System ( Learn How Each mod can be done by hand)
Included Features:
Simple UI to make developing for android Easy.
Simple and advanced tools ( No one is left out. Experienced or Novice Devs)
E.D.S. Tool Updater (This will give you the option to update as soon as new release is published) Click check for updates and it will look for and download them.
Register E.D.S. (This feature will be activated in the future, all profit will go to further development)
Future Plans:
Cross Platform ( Linux, Windows, Mac ...Etc..)
More Supported Devices
More Supported Roms
More Features (Transitions, Boot animations, Etc....)
Possible Future features:
Source building for any device.
(Gingerbread , ice cream sandwich)
Kernel source building
Svn Rom downloading (warm , synergy, ext...)
Update zip creator ( Make an update.zip with files of your choice)
NOTE: PM Me with any feature requests.
Download Beta Now
( Get Beta 2 Now )
How To install:
Extract to your "home" directory
Double click on "EDS" file in your EDS folder (~/EDS/EDS.py)
Click on the "Run" option
Thats all:
NOTE: If you dont get the run option open "Terminal" do the following commands.
Code:
[SIZE=2] cd ~/EDS
sudo chmod a+x EDS/*[/SIZE]
If you dont have sudo or get an error try
Code:
[SIZE=2]cd ~/EDS
su
chmod a+x EDS[/SIZE]/*
Tons of thanks to
Sac23, tommytomato, bruit.all, Panxiaobo, Emmanuel Dupuy, Bryan Lunduke, AOSP, Google.
Reserved for later
One more .....
Very cool. How is the python experience? I'm currently working on a full c GUI.
Sent from my SGH-I777 using xda premium
It's not bad .
Sent from my PG86100 using Tapatalk
HOLY $#!+ Just the other day I was thinking someone should do this because I'm a beginner dev (that's being VERY generous) and I thought it would help noobs like me on our way. I can't think you enogh. Gonna d/l now and check it out. Good luck. If you need a noobs perspective let me know. I'm on the Inspire by the way
Thanks again
Edit; Im guessing as of now its only for linux? Anyways i will keep checking back for a windows version... Until then....
Diesel321 said:
HOLY $#!+ Just the other day I was thinking someone should do this because I'm a beginner dev (that's being VERY generous) and I thought it would help noobs like me on our way. I can't think you enogh. Gonna d/l now and check it out. Good luck. If you need a noobs perspective let me know. I'm on the Inspire by the way
Thanks again
Click to expand...
Click to collapse
I would like to know your thoughts , issues, requests.
A lot of stuff is not done yet.
Sent from my PG86100 using Tapatalk
wooo sound very interesting....
i will try and report you my impression....
thanks for your hard work....
llohcyoing said:
wooo sound very interesting....
i will try and report you my impression....
thanks for your hard work....
Click to expand...
Click to collapse
Let me know.
It's a beta so things are still a bit rough.
Sent from my PG86100 using Tapatalk
I'll check this out once I get some sleep.
私のEVO 3Dから送信される。
cool
checking it now
I will asap. But is it only for linux now because I'm on windows so I can use it yet. Unless I misunderstood
Diesel321 said:
I will asap. But is it only for linux now because I'm on windows so I can use it yet. Unless I misunderstood
Click to expand...
Click to collapse
You are correct it is only for linux. But we,are working on a windows version in the near future.
Sent from my PG86100 using Tapatalk
I'll ll see if I can get my VM of ubuntu working right and try to play around till then. You are doing an awesome thing here. Will it explain the steps its taking and why when you are doing stuff. It looks very simple to use and I'd like to be able to use it to learn how to develop and would like to use it as a Tudor almost
Diesel321 said:
I'll ll see if I can get my VM of ubuntu working right and try to play around till then. You are doing an awesome thing here. Will it explain the steps its taking and why when you are doing stuff. It looks very simple to use and I'd like to be able to use it to learn how to develop and would like to use it as a Tudor almost
Click to expand...
Click to collapse
It won't explain everything but there are help txt files ~/EDS/help
Some of them are working from within program itself some are not yet.
Sent from my PG86100 using Tapatalk
Cool, learning this stuff with absolutely NO programming experience is way harder than I thought so I was just curious if it would help fully explain what its doing and why. Not sure if that makes sense to anyone but me but either way this will be an awesome tool and ill see if I can't get it running on my ubuntu VM. How would I send the file to my VM to install it on ubuntu? I'm using Sun virtual box with ubuntu 11.1 I think it actually may be 10.1 its been awhile since Ive used it.
Diesel321 said:
Cool, learning this stuff with absolutely NO programming experience is way harder than I thought so I was just curious if it would help fully explain what its doing and why. Not sure if that makes sense to anyone but me but either way this will be an awesome tool and ill see if I can't get it running on my ubuntu VM. How would I send the file to my VM to install it on ubuntu? I'm using Sun virtual box with ubuntu 11.1 I think it actually may be 10.1 its been awhile since Ive used it.
Click to expand...
Click to collapse
Yeah you can use vm and just run it that way. I would recommend linux mint 12 over ubuntu 11.4 + or ubuntu 10.10 or linux mint 11.
I use linux mint 12.
Just download it from ubuntu with in the vm.
Sent from my PG86100 using Tapatalk
wes342 said:
Yeah you can use vm and just run it that way. I would recommend linux mint 12 over ubuntu 11.4 + or ubuntu 10.10 or linux mint 11.
I use linux mint 12.
Just download it from ubuntu with in the vm.
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
Packages are the same I'm Linux mint 12 and Ubuntu 11.10. Since of course mint is Ubuntu based.
Sent from my SGH-I777 using xda premium
lithid-cm said:
Packages are the same I'm Linux mint 12 and Ubuntu 11.10. Since of course mint is Ubuntu based.
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
Yeah it should work on all deb based distros. Have not tested it on rpm or arch yet.
I will be making it into a deb package and a windows exe in the near future.
It's a beta so I've only completed about 2% of the project so far.
There are about a million things that will/can be included. Just trying to prioritize them.
Lithid I was checking out your cm compiler. That's one feature I'm planing on including not really for cm but a stock aosp Rom compiler for any device.
Maybe we can work together on that if you are interested?
Sent from my PG86100 using Tapatalk
looks very interesting.
i'm windows user too. its possible run this tool with Cygwin? like dsixda's kitchen?

[TUTORIAL][How-To] Edit .jar or .apk files using VTS

----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------
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

[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

[Linux][Tool] Apk DCS v2.0 Decompiling/compiling/signing

{
"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"
}
Simple Linux tool, newbie friendly.
This utility allows you to reengineer apps, essentially paving the way for users to decompile an app's resources, modify them, and put it back together.​
How to use
Setting up
1. Download the Apk DCS package
2. Extract zip file
3. Open terminal from the folder where is apk_dcs.sh (right click > open terminal)
4. Set executable permissions
Code:
chmod a+x ./apk_dcs.sh
5. Launch Apk_DCS tool:
5.1 Open terminal in current folder (right click > open terminal)
5.2 sh ./apk_dcs.sh
Note: Also you can launch file with double click if your Linux allow that
Note: After launching tool will make Input/Output folder by it self
6. Copy .apk file which you want to decompile (for first) inside /Input folder
Using options
1. Decompile - Just follow on screen instructions
2. Compile - Just follow on screen instructions
3. Signing .apk package - Just follow on screen instructions
PAYPAL users can donate me using this link
http://forum.xda-developers.com/donatetome.php?u=5514152
If you have issues, download paypal app from playstore, that will work
For US users:
"I could not use your paypal donation link or url as you already know as it's not possible to send a donation from USA. I logged into my paypal account and used the option to pay for goods or services to send you the funds."
Thanks a lot, guys
Thanks to:
APKtool @Brut.all
And the maintainer of the same @iBotPeaches
@aureljared (Zipalign/sign script github source)
XDA:DevDB Information
Apk DCS, Tool/Utility for all devices (see above for details)
Contributors
Paget96
Source Code: https://github.com/Paget96/Apk_DCS.git
Version Information
Status: Stable
Current Stable Version: v2.0
Stable Release Date: 2015-12-31
Created 2015-12-29
Last Updated 2016-03-01
ANDROID FILE HOST​
v1.0 - initial version
v2.0
Better binary organization
Fixed output filename
Added Output folder for easier usage
Added press enter key to proceed
Added Input/Output for easier managing
Added auto creating Input and Output folder on tool launch
Added missing stuff, signing updated
just tested and this is easy stuff for linux lovers
Wooow another awesome work from Paged96 great work brother but sadly can't use it as my latest Linux killed everything on my laptop lol anyway great work as usual brother
Sent from my SM-G920F using Tapatalk
Er. Aditya said:
just tested and this is easy stuff for linux lovers
Click to expand...
Click to collapse
Well, more features will be available soon
thereassaad said:
Wooow another awesome work from Paged96 great work brother but sadly can't use it as my latest Linux killed everything on my laptop lol anyway great work as usual brother
Sent from my SM-G920F using Tapatalk
Click to expand...
Click to collapse
haha
Again an amazing work by an amazing developer!!
Thanks for this awesome thing my bro @Paget96
dark_optimistic said:
Again an amazing work by an amazing developer!!
Thanks for this awesome thing my bro @Paget96
Click to expand...
Click to collapse
Thank you too ^~^
Paget96 said:
Thank you too ^~^
Click to expand...
Click to collapse
Mah pleasure *_*
Great job !!
sdeepb said:
Great job !!
Click to expand...
Click to collapse
Thank you
Paget96 said:
Thank you
Click to expand...
Click to collapse
My pleasure
Check commits on github
https://github.com/Paget96/Apk_DCS/commits/linux
More interesting things will came soon
New version is up
Changelog:
v2.0
Better binary organization
Fixed output filename
Added Output folder for easier usage
Added press enter key to proceed
Added Input/Output for easier managing
Added auto creating Input and Output folder on tool launch
Added missing stuff, signing updated
Download:
https://www.androidfilehost.com/?w=files&flid=46499
GitHub:
https://github.com/Paget96/Apk_DCS
Commits:
https://github.com/Paget96/Apk_DCS/commits/linux
"APKtool by The Android Open Source Project"
@Paget96, APKTool was made by @Brut.all and is now maintained by @iBotPeaches . Please update the OP ASAP.
MSF Jarvis said:
"APKtool by The Android Open Source Project"
@Paget96, APKTool was made by @Brut.all and is now maintained by @iBotPeaches . Please update the OP ASAP.
Click to expand...
Click to collapse
Done
Thanks
I am porting a ROM can i use this for editing framework-res. apk???
jinconstantine said:
I am porting a ROM can i use this for editing framework-res. apk???
Click to expand...
Click to collapse
Yes, you can use it to decompile your framework-res.apk and after editing bring it back to .apk
Sent from my Nexus 5 using Tapatalk
easy to use thanks for updates
Hey, I keep getting these error :/
i tried with path from root, relative, then this last one.
Even tried with root, :/
6. Copy .apk file which you want to decompile (for first) inside /Input folder
Click to expand...
Click to collapse
Arf, sorry, don't mind me .-.

Categories

Resources