[IDE][4.0.3] APK Studio - IDE for Reverse Engineering Android APKs - Android Software/Hacking General [Developers Only]

APK Studio​
A Cross-Platform IDE for Reverse-Engineering (Disassembling, Hacking & Rebuilding) Android applications (APKs) - featuring a friendly UI and Code editor which supports Syntax-highlighting for smali (dalvik bytecode) files.
APK Studio is powered by Qt Framework, ApkTool and uber-apk-signer
Click to expand...
Click to collapse
Screenshots:
{
"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"
}
​
Features:
Disassembling & Rebuilding APKs
Code Editor with Syntax Highlighting (java, smali, xml & yml)
Built-in Image viewer for Resources
Single-click APK Signing with embedded key-store (New)
Android Signing scheme v2 Support (New)
Flexible Keystore & Key-Alias import
Automatic Zip-Aligning with embedded zipalign (New)
Single-click App Install to device
Frameworks Support
What’s new?
v4.0.3
Added Browse Files under Project menu
Auto Save all opened files before building
Install button added in ToolBar
v4.0.2
Added Support for Android Signing scheme v2 (7.0+) (uber-apk-signer)
Dependency on zipalign binary removed (except for linux-x86) (uber-apk-signer)
KeyStore import made optional (APK will be signed with embedded KeyStore by default) (uber-apk-signer)
Fixed original APK being overwritten (modified apk will have ‘_mod’ in its name)
Minimum JDK 8 required (instead of JDK 7) (uber-apk-signer)
Replaced Post-Signing ‘Open folder’ button with ‘install’ button (for better automation)
Fixed and updated links, strings etc.
Optimized Portable Binaries (linux x64 and windows x86)
Bundled all Qt dependencies for better UI rendering
Links:
Project site
Download
Source
Bug Report
Credits:
vaibhavpandeyvpz for original apkstudio project
iBotPeaches, brutall and JesusFreke for ApkTool
patrickfav for uber-apk-signer
probonopd for linuxdeployqt

How To Use APK Studio​
Deassembling (Decoding):
Open an APK
and select Decode or
Open existing Project
and select apktool.yml file
Hacking the App:
Click on
to show/hide Project structure panel
Edit app_permissions etc. in AndroidManifest.xml file
Edit or replace strings, icon resources etc. in res directory
Edit application logic in smali language in smali directory
Save
before closing
the edited files
Rebuilding the APK:
Build
the modified app and Sign
it.
Then you can install
it on your device too.
Troubleshooting:
Make sure you satisfy these requirements of APK Studio.
Always check Console
output if anything goes wrong.
From that try to figure out what went wrong and how to fix it.
If nothing works, Upload Console output somewhere like Pastebin and then Open an issue here.

Great. Now downloading. Will try later.

knoacc said:
Great. Now downloading. Will try later.
Click to expand...
Click to collapse
Thanks and good luck with that. Will be happy to hear your thoughts on it.

can i reskin apk from playstore with this ?
Sent from my Redmi Note 4 using Tapatalk

tetranova said:
can i reskin apk from playstore with this ?
Click to expand...
Click to collapse
Yes. You can. It's a kind of purpose APK Studio serves well.

How to use for uber driver app.

clarkswalabis said:
How to use for uber driver app.
Click to expand...
Click to collapse
I'm not sure what you want modify in that app but the process is simple: You open the uber-driver-blah-blah.apk > decode it > edit smali code or replace resources > build > sign > install
Check out User Guide above in Post #2

Well, this is to inform you all that APK Studio has been updated recently. Grab the latest binary from GitHub.
Also, if anyone has access to MacOS and can compile APK Studio for Mac, please share it on GitHub repo. Source can be found on GitHub.

Code:
$ java -Xmx256m -jar C:/Users/aximo/.apkstudio/vendor/apktool.jar -f d C:/Users/aximo/Desktop/tjk351.apk -o C:/Users/aximo/Desktop/tjk351_mod
I: Using Apktool 2.3.1 on tjk351.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
S: WARNING: Could not write to (C:\Users\aximo\AppData\Local\apktool\framework), using C:\Users\aximo\AppData\Local\Temp\ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
I: Loading resource table from file: C:\Users\aximo\AppData\Local\Temp\1.apk
I: Regular manifest package...
I: Decoding file-resources...
Exception in thread "main" java.lang.NullPointerException
at brut.androlib.res.decoder.AXmlResourceParser.getNonDefaultNamespaceUri(AXmlResourceParser.java:312)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeNamespace(AXmlResourceParser.java:299)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeNamespace(XmlPullParserDelegate.java:176)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:33)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:124)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:109)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:264)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:132)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:124)
at brut.apktool.Main.cmdDecode(Main.java:163)
at brut.apktool.Main.main(Main.java:72)
Process exited with code 1
whats wrong ?

tunxaximo said:
whats wrong ?
Click to expand...
Click to collapse
This is apktool related issue and I've no idea why it's failing to decode particular XML. Please open an issue in apktool thread with above logs.

Sorry I have some question:
How to install at windows 10?
can this open on android studio?
if can how to open it?

zeroyjk said:
Sorry I have some question:
How to install at windows 10?
can this open on android studio?
if can how to open it?
Click to expand...
Click to collapse
Questions are fine
First, you don't need to install APK Studio because it's portable, just follow download link, download apkstudio-v4.x.x-windows_x86.zip file and extract it. You can then simply run apk-studio.exe .
No. It can't be opened in android studio, it's a standalone app.

hi
first i want to say thx for this great tool!
i have a request for maybe next release, could you pls add a project tree in the view section, cause if i have 2-3 projects, i can only see the last one and im not able to choose other projects!!!
thx

this would be amazing for OSX, I have followed instruction to build but to be honest its above me!

Really like APK Studio for quick changes.
Having issue with a simple change in a java file (changing variable from false to true). No errors are reported in APK Studio console - apk builds and installs correctly, however, when looking at the java code after build, the variable doesn't change. It seems that the APK Studio build process is not recompiling the modified java code.
Is there a build setting required to recompile the apk (including the modified java code)?
Any assistance would be appreciated.
------------

How does one go about setting up the "signing" portion in the settings?
How do you set up the keystore, keystore password, alias, and alias password?
Also, should zipalign be checked?

Related

[TOOL] APK_OneClick - decompile & disassemble APKs

A tool package to decompile & disassemble APKs (android packages).
FEATURES
- All features are integrated into the right-click menu of Windows.
- Decompile APK classes to Java source codes.
- Disassemble APK to smali code and decode its resources.
- Install APK to phone by right-click.
- Recompile APK after editing smali code and/or resources.
During recompile:
- Optimize png images
- Sign apks
- Zipalign​
REQUIREMENTS
Java Runtime Environment (JRE) must be installed.​
{
"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"
}
HOW TO INSTALL THE PACKAGE
* Extract the attached archieve to hard disk.
* Open the extracted folder.
* double-click 'shellext-add.cmd'​
HOW TO UNINSTALL THE PACKAGE
* Run shellext-remove.cmd & you are done.​
ITEMS ADDED TO RIGHT-CLICK CONTEXT MENU
APK
Browse Java Code of APK
Disassemble APK and Decode Resources
Install APK to Phone​
Folder
Recompile APK from Disassembly​
HOW TO DISASSEMBLE APK
Suppose you want to disassemble yourapp.apk, all you have to do is:
* right-click 'yourapp.apk' file
* select -> 'Disassemble APK and Decode Resources'
A folder named 'yourapp-disasm' will be created in the same folder as
the apk. It will contain the smali disassembly and decoded resources .
You can modify the smali code and/or resources inside that folder.
For instant access to methods and fields and for better understanding
of the smali disassembly, you can browse the hierarchy of reconstructed
Java source code in the JD-GUI Java Decompiler. The Java source codes
will be displayed like a Java project in IDE.
* right-click 'yourapp.apk' file
* select -> 'Browse Java Code of APK'​
HOW TO RECOMPILE APK FROM DISASSEMBLY
To assemble, sign and zipalign to a new APK, wether you modified the
source code and/or resources or not:
* right click 'yourapp-disasm' folder
* select -> 'Recompile APK from Disassembly'​
HOW TO INSTALL APK TO PHONE
To install a non-system apk from pc (keeping its data if it was already
installed on the phone)
* connect android phone to pc via usb cable
* right-click an APK in windows explorer
* select -> 'Install APK to Phone'​
NOTES ABOUT SYSTEM APKS
Manufacturer's framework files:
Standard framework is embedded into apktool, so you don't need to do
anything for most apk files. But some manufacturers, for example HTC,
add their own framework files and use them in system apps. Apktool
needs these framework files to decode and build apks. To use apktool
against such apps, you must pull framework from a device and
install/register it to apktool.
for a solution see, http://code.google.com/p/android-apktool/wiki/FrameworkFiles
META-INF dir in resulting apk:
This dir contains apk signatures mostly and after modifying apk it is
no longer has valid signatures. you have to be careful when putting a
recompiled system apk back on your device. Pushing that new apk to your
phone will result in Force Closes (FCs).
for a solution see, http://code.google.com/p/android-apktool/wiki/FAQ​
TOOLS INCLUDED
* android-apktool 1.3.2 by Brut.all - http://code.google.com/p/android-apktool/downloads/list
* dex2jar-0.0.7.7-SNAPSHOT - http://code.google.com/p/dex2jar/downloads/list
* jd-gui-0.3.3.windows - http://java.decompiler.free.fr/?q=jdgui#downloads​
HOW TO UPDATE INCLUDED TOOLS
* Peroidically check for updates to the included tools.
* Web links are provided also inside the 'tools' folder.
* When an update is available, download and extract it to the
corresponding folder inside the 'tools' folder.​
PACKAGE UPDATE v3 - AUGUST 2012
* android-apktool 1.4.3
* dex2jar-0.0.9.9
* Added Recompile from source feature​
PACKAGE UPDATE v4 - JANUARY 2013
* android-apktool 1.5.1
* dex2jar-0.0.9.12-a
* jd-gui-0.3.5.windows
* Modified: names of menu items for more clarity
* Added: optimize png images, sign and zipalign during recompiling.
* Added: Install APK to Phone​
PACKAGE UPDATE v4.1 - 27 JANUARY 2013
* Fixed: package fails to install properly when APK extension is currently assigned to another app.
* Fixed: minor fixes when selecting 'Recompile APK from Disassembly'​
PACKAGE UPDATE v4.2 - 2 FEBRUARY 2013
* Updated: android-apktool 1.5.2
* Fixed: the install and uninstall scripts have become more UAC friendly.​
Enjoy
amroush_1800
Hi amroush_1800, thanks for sharing this tool ! Thumbs up !
oriundus said:
Hi amroush_1800, thanks for sharing this tool ! Thumbs up !
Click to expand...
Click to collapse
If you like it, hit the big THANKS button
gonna try it
nice tool.. i just wish it could decompile classes.dex
PapaDocta said:
nice tool.. i just wish it could decompile classes.dex
Click to expand...
Click to collapse
classes.dex will be decompiled into smali & java source code.
I tried decompiling a framework.jar but it will only shows the content of the jar but not the classes.dex inside also extracted the classes.dex and tried opening it but it won't show anything..
amroush_1800 said:
classes.dex will be decompiled into smali & java source code.
Click to expand...
Click to collapse
Sent from my Desire HD using XDA App
PapaDocta said:
I tried decompiling a framework.jar but it will only shows the content of the jar but not the classes.dex inside also extracted the classes.dex and tried opening it but it won't show anything..
Click to expand...
Click to collapse
* Rename framework.jar to framework.apk
* Right-click framework.apk and select 'Decompile APK'
If I run shellext-add.cmd I get 5 times.
ERROR: Access Denied (in original: FEHLER: Zugriff verweigert)
I am running Win 7.
Could you please help?
Thanks!
amroush_1800 said:
* Rename framework.jar to framework.apk
* Right-click framework.apk and select 'Decompile APK'
Click to expand...
Click to collapse
thanks.. that worked
DirkStorck said:
If I run shellext-add.cmd I get 5 times.
ERROR: Access Denied (in original: FEHLER: Zugriff verweigert)
I am running Win 7.
Could you please help?
Thanks!
Click to expand...
Click to collapse
right click then run as administrator
Brilliant script ........
Ok lets say I have dissassembled the .apk ---- how do I assemble it back to .apk?
Help would be appreciated
Thks great tool.
bnieuwhof said:
Brilliant script ........
Ok lets say I have dissassembled the .apk ---- how do I assemble it back to .apk?
Help would be appreciated
Click to expand...
Click to collapse
Could just use android sdk
anyone know if a update has come down for this tool?
thanks you very much
hi I have got a serious problem and i have edited opera mini using this but now i need to convert jar file to dex how ???? this is really serious for me plz help!!!
Huh... running shellext-add.cmd as administrator on Win7 PC, I get
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.
ERROR: Access is denied.
ERROR: Access is denied.
Press any key to continue . . .
Any help available?
rtfm1777 said:
Huh... running shellext-add.cmd as administrator on Win7 PC, I get
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.
ERROR: Access is denied.
ERROR: Access is denied.
Press any key to continue . . .
Any help available?
Click to expand...
Click to collapse
forget the shellext-add.cmd
I copyed APK_OneClick folder to desired place
then right click apk and select open with then choose default program..., go to APK_OneClick/tool and select decompile.cmd
thxxxxxxxxxxxx.that is really helpful.
i love this forum
always there is solution
thxxxxxxxx
sorry about my english

Decompiling framework-res.apk?

I am trying to decompile the framework-res.apk file with APK Manager. But it's not working. When I did this with the DX, I had to use a dependee apk file (moto-res.apk) to be able to decompile without error but I can't seem to find the write file to use. Does anyone know if there is a dependee file or should I just be able to decompile it? Don't know if the Apk Manager 4.9 will actually work but I am trying to figure it out. Any help would be great.
Couldnt you just rename the .apk extension to .zip unzip it then edit it rezip then sign it to install. Or you could use 7zip if ur on windows to get into the .apk without renaming to .zip and messing around with signing etc.
Will this actually work for a framework-res.apk file?
qubit76 said:
Couldnt you just rename the .apk extension to .zip unzip it then edit it rezip then sign it to install. Or you could use 7zip if ur on windows to get into the .apk without renaming to .zip and messing around with signing etc.
Click to expand...
Click to collapse
This won't work because this way you don't get the Value folders that I need to access. It has to be decompiled to get access to those.
That's the million dollar question. You will not be able to deodex or decompile until hc source is released. Otherwise we'd all have deodexed zip aligned pngopt roms.
bigrushdog said:
That's the million dollar question. You will not be able to deodex or decompile until hc source is released. Otherwise we'd all have deodexed zip aligned pngopt roms.
Click to expand...
Click to collapse
I have done all of these (plus recompiling/odexing). The tools are out there, but they are not 100%. I have had to fix several resources manually before being able to repackage them. I only use apktool/baksmali/smali though so I don't know about the various front-ends like APKManager
sangreal06 said:
I have done all of these (plus recompiling/odexing). The tools are out there, but they are not 100%. I have had to fix several resources manually before being able to repackage them. I only use apktool/baksmali/smali though so I don't know about the various front-ends like APKManager
Click to expand...
Click to collapse
Smali/baksmali needs to be updated to support honeycomb
They cannot be updated until hc source is released.
bigrushdog said:
Smali/baksmali needs to be updated to support honeycomb
They cannot be updated until hc source is released.
Click to expand...
Click to collapse
As I mentioned, these tools have already been fixed (to some degree):
C:\anddev>java -jar baksmali.jar -d c:\anddev\xoomdump\framework\ -x Music2.odex -o Music_deodex
C:\anddev>java -jar smali.jar Music_deodex -o Music.dex
C:\anddev>apktool d -f framework-res.apk framework-res-hc-test
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\anddev>apktool b framework-res-hc-test framework-res-hc-test.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building apk file...
C:\anddev>
Click to expand...
Click to collapse
They do not work perfectly. What is not shown in the log is several manual fixes to the files. They work quite well though. Here is a screenshot to show the streaming music manager after enabling (broken) streaming in Music2.odex and recompiling + reodexing:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I also have a thread demonstrating framework-res changes: http://forum.xda-developers.com/showthread.php?t=1015857
I've made a few posts about this but nobody seemed to care too much.
Note: The author of baksmali does not recommend recompiling apps deodexed using this version
sangreal06 said:
As I mentioned, these tools have already been fixed (to some degree):
They do not work perfectly. What is not shown in the log is several manual fixes to the files. They work quite well though. Here is a screenshot to show the streaming music manager after enabling (broken) streaming in Music2.odex and recompiling + reodexing:
I also have a thread demonstrating framework-res changes: http://forum.xda-developers.com/showthread.php?t=1015857
I've made a few posts about this but nobody seemed to care too much.
Note: The author of baksmali does not recommend recompiling apps deodexed using this version
Click to expand...
Click to collapse
Yeah I saw your posted from your other thread but I'm not that edumicated to use that tool you mentioned. That is why I was trying to use the APK Manager.
I don't use APK Manager, so I don't know about that. I believe it is a wrapper around apktool though, so you should be able to just replace apktool.jar in the APK Manager folder
Maybe a really dumb question, but did you copy the framework-res.apk as 1.apk to the apktool folder?
dimitri407 said:
I am trying to decompile the framework-res.apk file with APK Manager. But it's not working. When I did this with the DX, I had to use a dependee apk file (moto-res.apk) to be able to decompile without error but I can't seem to find the write file to use. Does anyone know if there is a dependee file or should I just be able to decompile it? Don't know if the Apk Manager 4.9 will actually work but I am trying to figure it out. Any help would be great.
Click to expand...
Click to collapse
I would learn to use hxd. Hex editer
Sent from my ADR6300 using XDA Premium App
jim_panse said:
Maybe a really dumb question, but did you copy the framework-res.apk as 1.apk to the apktool folder?
Click to expand...
Click to collapse
I am still learning this stuff but why would I rename it to 1.apk?
sangreal06 said:
I have done all of these (plus recompiling/odexing). The tools are out there, but they are not 100%. I have had to fix several resources manually before being able to repackage them. I only use apktool/baksmali/smali though so I don't know about the various front-ends like APKManager
Click to expand...
Click to collapse
Care to share your updated tools? I would like to fix uastring in the wifi version of Xoom. I've got to:
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01030065 style/TextAppearance.StatusBar.Title, config=[DEFAULT]
I think I need to update apktools.jar, but if you have it done that would save me some time.
Thanks,
Jeff
I can't find the updated version of Smali/Baksmali. Got a link?

[DEV][Windows/Linux][2012-05-14] Custom Rom Creator Studio v1.2

I have created a development environment for making the process of creating custom roms and themes easier.
For Windows/.NET Framework 4.0 and Linux/Mono 2.10.2
The version for Mono might work on OSX/Mono.
As I use my time to develop the application the documentation are a little spars at the moment but I'm working on that.
It is using apktool and smali/baksmali to do the hard work.
Features:
Open files from command line and associate file types(.rssln, .rsproj and .apk)(windows only)
ApkViewer, shows content of apk files (windows only)
Compare content of apk and jar files with older versions.
Text editor
Deodexing
Automatically discovers boot class paths
Decompiling classes
Recompiling classes
Decoding resources
Encoding resources
Optimizing png files (windows only)
Signing apk files
Creating update.zip
Excluding/Including files
Logging
Thanks to:
Brut.all for ApkTool
JesusFreke for smali/baksmali
Everyone contributing on xda, I've learned a lot here over the years.
Change log at project home
Project home at Github
FAQ at Project home
Downloads
I look forward to trying this out.
Sent from my SAMSUNG-SGH-I897 using XDA App
I hope you can find some use for it.
I will write a short guide on how to create a Theme.
I might have the time later tonight otherwise it's going to be tomorrow night.
I don't know why, but on my Windows 7 x86 don't working. Java JRE and .Net 4 i was installed from oficial sites, but now crash program((. I was try to start program as administrator, but any result((
Any ideas?
fantastic software! love the design
Shiftok said:
I don't know why, but on my Windows 7 x86 don't working. Java JRE and .Net 4 i was installed from oficial sites, but now crash program((. I was try to start program as administrator, but any result((
Any ideas?
Click to expand...
Click to collapse
Hard to say, but if you check in the following path or something similar, you should find a logfile.
C:\Users\%USER%\AppData\Roaming\Custom Rom Creator Studio\Logfiles
If you can post the latest one I will check it out.
directory C:\Users\%USER%\AppData\Roaming\Custom Rom Creator Studio is exist, but subdirectory Logfiles not exists. If it help you... Windows show it's information:
Problem signature:
Problem Event Name: CLR20r3
Problem signature 01: crcstudio.exe
Problem signature 02: 0.9.0.0
Problem signature 03: 4dd1be2c
Problem signature 04: mscorlib
Problem signature 05: 4.0.0.0
Problem signature 06: 4d53693b
Problem signature 07: 3fd5
Problem signature 08: 1a
Problem signature 09: System.ArgumentNullException
OS Version: 6.1.7601.2.1.0.256.1
Language Code: 1058
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement on the Internet:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0419
If the privacy statement on the Internet is not available, check with its local variants:
C: \ Windows \ system32 \ ru-RU \ erofflps.txt
Click to expand...
Click to collapse
Shiftok said:
directory C:\Users\%USER%\AppData\Roaming\Custom Rom Creator Studio is exist, but subdirectory Logfiles not exists. If it help you... Windows show it's information:
Click to expand...
Click to collapse
It looks like the application isn't even loaded.
I'm on my way out right now, but I will look in to it later tonight.
I am running into the same thing with my windows 7 machine. I have the requirements met for the .net and jve files.
It just does not want to start up and there are not any log files.
I extracted the crcstudio to a folder I named Crcstudio, then copied the tools zip to that folder.
I then extracted the tools zip and then ran crcstudio.exe - no problems.
Going to check out the tool now.
Tritan88 said:
I am running into the same thing with my windows 7 machine. I have the requirements met for the .net and jve files.
It just does not want to start up and there are not any log files.
Click to expand...
Click to collapse
I have no idea what might cause this problem.
The application will run about 20 lines of code before it logs "Application started" to the log file...
I have made a new crcstudio.exe for you to try, with additional exception handling, it will report any errors in the startup of the application in messageboxes.
Thanks for your support.
// I have removed the attached file, because the latest version fixed this problem //
It worked for my untill I did a restart, then it was crashing before the logg entry "Application Started"
Now I'm using your new exe file, which gives me this exception and then starts up the program and it works now
Code:
---------------------------
---------------------------
System.IO.DirectoryNotFoundException: Could not find a part of the path.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.File.Move(String sourceFileName, String destFileName)
at CrcStudio.Messages.FileMessageConsumer.RenameOldLogFiles(String file)
at CrcStudio.Messages.FileMessageConsumer.CreateLogFile()
at CrcStudio.Program.Main()
---------------------------
OK
---------------------------
Gonizahavy said:
It worked for my untill I did a restart, then it was crashing before the logg entry "Application Started"
Now I'm using your new exe file, which gives me this exception and then starts up the program and it works now
Code:
---------------------------
---------------------------
System.IO.DirectoryNotFoundException: Could not find a part of the path.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.File.Move(String sourceFileName, String destFileName)
at CrcStudio.Messages.FileMessageConsumer.RenameOldLogFiles(String file)
at CrcStudio.Messages.FileMessageConsumer.CreateLogFile()
at CrcStudio.Program.Main()
---------------------------
OK
---------------------------
Click to expand...
Click to collapse
Ok, thanks.
It's the creation of the logfile that fails.
I will fix this, and release a new version asap.
Sent from my GT-I9000 using XDA Premium App
This is my Error Message:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i was used your new exe file. it shows me 2 messages:
1)
2)
Thanks Gonizahavy, sdq928 and Shiftok for you patience.
The problems had to do with different languages for windows.
This one will probably work better, but I will go trough the code tonight to make some more improvements before I release a new version.
// I have removed the attached file, because the latest version fixed this problem //
Thanks! It works!
Shiftok said:
Thanks! It works!
Click to expand...
Click to collapse
Great, I will release a new version tonight.
Sent from my GT-I9000 using XDA Premium App
Very grateful to work.
This version did start up. Going to run it through its paces when I get time.

[Tutorial]-{how to compile and decompile apk

Thanx to xda member A_U
Original thread here http://forum.xda-developers.com/showthread.php?t=2213985. Press thanx for his work:thumbup:
What is decompiling?
Android apps are BASICALLY made up of Java codes and XML files. After compiling the app, these files cannot be viewed. Decompiling is a process which decompiles the binary form of XMLs and .Java files into readable form. The XML files can be retained as it is, but the .java files are converted into smali files, a totally different language.
What is recompiling?
Recompiling is simply a way to convert the XML and smali files back into the binary form and building up of the APK with the changes made. All apps after recompiled have to be signed (except system apps).
Let's start!
Hello
I want to keep things simple and very easy. I will write a 5 step guide for setting up apktool and start modifying your app's or any other android framework. This guide will be strictly for windows users, since setting up and using apktool in windows is the easiest.
So lets begin -
What you need before you learn how to use apktool -
A computer running windows
A working internet connection for downloading the following -
JAVA SDK and JRE
Android SDK
Apktool core tool
Sign apk tool
Basic command prompt commands and path knowledge
A good linux format code editing program like NotePad ++ [Get it from HERE]
STEP 1 - Install JAVA - Go HERE
{
"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"
}
Just go to the above website and download java SDK and JRE.
We mostly use only SDK libraries but JRE is required when you want to modify games or apps like whatsapp. So its best if we install both.
install them in any directory for example C:\ drive and you are good to go to next step 2.
STEP 2 - Install Android SDK- Go HERE
Just go to the above website and download the SDK.
Install it in an easy path. For example - C:\android
The short path will be useful when you are using adb for logcat purposes, since typing in a long path every-time you want to access the adb executable file is painful.
So once you installed the SDK move on to next step 3
STEP 3 - Download Apktool - Go HERE
For downloading apktool related files, you need to go HERE
Download latest apktool version, currenlty 1.5.2
Download the batch file and aapt.exe
Create a folder anywhere in the pc and put all the apktool.jar, aapt.exe and the batch script in that folder. [see screenshot]
This will be the operating folder for you now.
Next move to next step 4
STEP 4 - Using apktool for decompiling anything
Open command prompt
navigate to the folder where you placed apktool.jar, batch script and the aapt.exe [see screenshot]
For this guide i am using a simple framework-res.apk for reference.
Once you are in the folder via cmd prompt, you need to install the file using the " IF " command
type the following command -
Code:
[B]apktool if [I]name-of-the-app[/I] .apk[/B]
For example, once the command is executed correctly, it will look like this -
Code:
[B]apktool if framework-res.apk[/B]
Once the app is installed you need to decompile it.
For decompiling use the command "d". The "d" stands for decompile.
Code:
[B]apktool d [I]name-of-the-app[/I] .apk[/B]
For example -
Code:
[B]apktool d [I]framework-res.apk[/I][/B]
After the app is correctly decompiled, a new folder will be created in the same folder where you placed your app. This contains all the xml's and smali files which can be edited for different mod's.
For example, here's how it will look once the app is decompiled -
Then after you are finished with your modding, you need to recompile your app for using it.
To recompile the app use the following command " B ". The "b" simply means recompile.
Code:
[B]apktool b [I]name-of-the-app-folder[/I][/B]
NOTE - While recompiling the app, you just need to type the name of the folder the app's files contains.
For example -
Code:
[B]apktool b [I]framework-res[/I][/B]
framework-res is the name of the folder
The final modded app will be in the dist folder located inside the original app folder created by apktool.
For example -
Congrats ! If everything went well, you successfully created a modified app !
Now the most important step is below in step 5
STEP 5 - Signing the apk
to sign an apk download the "sign-apk.rar" from below attachements
extract it to any place.
open a new command prompt and change into the sign-apk directory using cmd
move the modified-unsigned apk into this folder [see screenshot] -
then type the following command -
Code:
[B]java -jar signapk.jar certificate.pem key.pk8 [I]path-of-the-folder-contaning-the-apk .apk path-of-the-new-signed-apk .apk[/I][/B]
For example -
Code:
[B]java -jar signapk.jar certificate.pem key.pk8 [I]framework-res.apk framework-res-signed.apk[/I][/B]
Once compiled, the signed apk will be found in the same folder.
This is FINAL APK.
Simply rename it to the original apk and push it into the system ! DONE !
If you have any errors or problems related to apktool, post them here, I will try to solve them. [/SIZE]
Click to expand...
Click to collapse
Sent from my GT-I8262 using XDA Premium 4 mobile app
Simple guide to sign apk
U need to sign apk if u are using monster$ rom
Sent from my GT-I8262 using XDA Premium 4 mobile app
Reserved last
Sent from my GT-I8262 using XDA Premium 4 mobile app
Great wrk bro
Sent from my GT-I8262 using Tapatalk
I want to try this. Looking forward for more of your modifying tutorial bro :good:
One question, will it work to any stock rom? or preferably deodexed stock rom?
Geddd said:
I want to try this. Looking forward for more of your modifying tutorial bro :good:
One question, will it work to any stock rom? or preferably deodexed stock rom?
Click to expand...
Click to collapse
It will only work on deodexed apkz:thumbup:
Sent from my GT-I8262 using XDA Premium 4 mobile app
Omkar$ said:
It will only work on deodexed apkz:thumbup:
Sent from my GT-I8262 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
how about this, do you have an idea on how to remove carrier's name in AOSP lockscreen? I'm using xposed module to get back that lockscreen. because both name are on the same position
the link for "sign-apk.rar" plz
thx
Geddd said:
how about this, do you have an idea on how to remove carrier's name in AOSP lockscreen? I'm using xposed module to get back that lockscreen. because both name are on the same position
Click to expand...
Click to collapse
forum.xda-developers.com/showthread.php?t=1773879
great tutorial bt if you dnt hve pc i recomend apktool for android..moding with ease
send from my powerful core
send from my powerful core
secsettings.apk
hi
i can"t decompres secsetting.apk correctly and i can't compres adroid.policy
files are from my core i8260

[GUIDE] Road to Android app development!

{
"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"
}
Hello fellow xda users, I'm here again with another project, but this is slightly different from the many I post.
Here I will be teaching you Android enthusiast how to prepare and build/modify applications for your use or anyone's use.
I will have to admit I am still learning in this field of development but I would like to start this thread off now so I won't have to write out so much after I learn more.
So this means I will keep this thread going when I learn new tips, tricks and ideas. This way we can progress at the same level, and get to understand about Android development easier. And hopefully one day this thread could become a great resource thread for new Android developers and users.
Click to expand...
Click to collapse
[x] First off all, you will need your brain.
Click to expand...
Click to collapse
[x] Eclipse Studio (For building applications from scratch or source) - Here
Click to expand...
Click to collapse
[x] Apk Decompiler (Plenty of these are floating around xda) - Here
Click to expand...
Click to collapse
[x] Paint.NET/Photoshop (Used for editing images - .png and .9.png) - Paint.NET - Photoshop
Click to expand...
Click to collapse
[x] Notepad ++ (For editing code within the decompiled app - xml - class - dex) - Here
Click to expand...
Click to collapse
[x] JD GUI (For viewing and editing the .Java files( Src) without decrypting them. - Here
Click to expand...
Click to collapse
In Android/Programming, a source code is any collection of computer instructions written using some human-readable computer language. The source code of a program is specially designed to facilitate the work of computer programmers, who specify the actions to be performed by a computer mostly by writing source code.
The source code is often transformed by a compiler program into low-level machine code understood by the computer, this means you will not be able to read it, it will just appear as random symbols. The machine code might then be stored for execution at a later time. Alternatively, an interpreter can be used to analyse and perform the outcomes of the source code program directly on the fly.
Most computer applications are distributed in a form that includes executable files, but not their source code. If the source code were included, it would be useful to a user, programmer, or system administrator, who may wish to modify the program or understand how it works.
Click to expand...
Click to collapse
So I am assuming you have downloaded the Android SDK Bundle form the "What's Needed" section.
Here I will show you how to view any applications source code, this is really useful if you want to remove or add functions in an application.
Now this bit is far different from others on how they tell you to set it up, and it can be confusing for some. So I have taken then step to make make a .zip which contains everything needed to view the source code.
You can download this .zip from here. Extract the contents to your desktop using any unzipper (Winrar).
Now open Eclipse Studio from the SDK you just downloaded, and set a workspace (Leave it as it is). Once you're actually running Eclipse. Now the file you extracted to your desktop area (A2J) move that folder to your workspace. (C:\Users\yourcomputersname\workspace). When you have moved the "A2J" folder to your workspace. Close Eclipse and re open it. You should see a new project on the left project panel called "A2J".
Now download the applications source code that you want to view/edit and download it. The easiest way to download it is to go to the Play Store, search for the application, copy the URL, go to this site and then paste the URL in the site then download the .apk file.
Click to expand...
Click to collapse
Once downloaded, rename the "appsname.apk" to "app.apk" and then save it. Once saved, right click on it and click "copy", now head back into Eclipse and in the left panel, right click on "A2J" and click "paste". Then your app should appear in the project space, you may need to press the little arrow to view the files in that project.
Once the .apk is in there. Right click on "A2J" again and select "Run as" then select "Run Configurations" In the window, make sure the "Main Class" is set to "com.googlecode.dex2jar.v3.Main" if it isn't then copy that and paste it in that area. Now click "Arguments" change the "Program Arguments" to "app.apk". Then click "Run".
Click to expand...
Click to collapse
It will create a pop up telling you that there are some errors, click "Proceed" and wait till the command window at the bottom says "Done."
Once its done, right click on an empty space in the left project panel and click "Refresh". This will show you a "dex2jar" file under the "app.apk" file. Right click the ".Java" file and select "Copy". Once copied go to your desktop and select "Paste". Once pasted, extract the "JD GUI" .zip proved in the "Whats Needed" section to your desktop.
Then drag the ".Java" file onto the "jd-gui.exe" file. This will open a window. I personally find it annoying to edit/view the code form that application. So click "File" and then click "Save all sources". Save the file to your desktop. Extract the .zip and use "Notepad++" to view or edit the code.
Click to expand...
Click to collapse
More coming soon as I've exceeded my Data Limit. Again.
Click to expand...
Click to collapse
Taking this...
And this. c:
Uhm this one too...
Last one

Categories

Resources