This converter *MUST* be used on device originally supporting QMG, ASTC, etc.. pictures in resources such as: SM-N910, SM-G901, GT-I9305 (only 4.4.4 ROMs) and may be some others recently released.
This converter has neither QMG nor ASTC decoder, it uses the one integrated in the ROM. That's why you can use it only on device originally supporting QMG/ASTC images. Treat it as temporary solution till someone create independent QMG/ASTC decoder.
This is for developers who has experience in linux shell and adb. If you are generic curious user then simply skip it.
You need to extract picconv.zip and push 2 files (picconv and picconv.dex) into /system/bin. Then set 755 permission to picconv (chmod 755 /system/picconv).
how to use:
1) copy whole res folder of desired apk to device. For example /sdcard/tmp/res
2) start adb shell
3) execute: picconv /sdcard/tmp/res /sdcard/tmp/out
Tool will print out converted pictures. In /sdcard/tmp/out you will find all pictures converted to png with the same folder structure. 9.qmg (images with 9patches) will be converted to 9.png with stripes on the edges (same as apktool does), so they are ready to use in apk creation in apktool.
Current version of apktool wrongly strips 9. from 9.qmg images. My tool detects it and correctly convert to 9.png. Tool also converts 9pathes 9.png (if you directly unzip apk) to 9.png with stripes. Thus you may provide res folder with qmg, astc and png pictures. All of them will be converted to images ready to use in apktool. Other files in res folder won't be touched (and won't be copied to destination folder).
Update 1.1:
- add support for .astc extension.
Update 2.0:
- now it's possible to add any extension.
Check picconv script, you can add any extension after -t option. (default set of extensions: png qmg astc webp).
Update 2.1:
- .9. won't be stripped from png if it has been extracted by apktool.
- png will be simply copied if no re-compress required (like .png and .9.png from apktool). You can use option -r if you want to re-compress all png images (useful if some proprietary png format used).
Known issues (up to v2.1):
- if some files produce errors (or warnings, which are actually errors) in decoding, then tool doesn't exit after finish. You can press <ctrl+c> to force finish.
NOTE 1: Even if your ROM supports QMG/ASTC resources, it doesn't mean it can handle APK resources from other device using QMG/ASTC. For example my S3 (I9305 4.4.4 ROM) cannot load some (but some are ok) ASTC pictures. So, for best result, you need to convert such images on device from which you get APK.
NOTE 2: After conversion, you have to use APKTool to assemble APK. You cannot just zip images back to APK! (because all .9.png files must be converted by APKTool to format used in APK).
Tool is intentionally was created as console tool to use it in scripts. I have no plan to create GUI version.
You can use this tool even in recovery. You just need:
1) mount system and data partitions
2) get BOOTCLASSPATH variable (you need to boot into android and in adb shell execute the command set).
3) add export BOOTCLASSPATH=blahblahblah into /system/bin/picconv script, where blahblahblah is what you get in step 2.
Thanks mate. This should come in very handy
Great~~
i convertd images using shell script.
primitively ....
Sent from my SHV-E210S using XDA Free mobile app
I tried it on Note 3 Neo 4.4.2 and its give me a segmentation fault in some images.
Sent from my SM-N910C using XDA Premium HD app
Hi @sorg how about astc files? this method convert them too?
hokamp said:
I tried it on Note 3 Neo 4.4.2 and its give me a segmentation fault in some images.
Sent from my SM-N910C using XDA Premium HD app
Click to expand...
Click to collapse
attach these images - i will see. As far as i know, Samsung starts to support qmg images from Android 4.4.4.
If you mean boot animation or battery images - then it's not supported! Only qmg images from APK supported, and only in ROM where such APK originally supported.
Albe95 said:
Hi @sorg how about astc files? this method convert them too?
Click to expand...
Click to collapse
i don't know.. You can try to rename astc files to qmg and try my converter.
Also, you can try to rename astc to png and try to open in quickpic or gallery - and you will see if these images are supported at system level or not.
Sorg you are the man... Thank you so much.. I know a few themers including myself that will find this very handy.. Very Very nice of you to share
cerj said:
I think the astc is a file that is there in place of xml... This is only what I was told.. I do not have the Note 4 or any Note 4 apks yet, so I have not looked myself..
Click to expand...
Click to collapse
It doesn't look like binary-xml. It's image. May be it's kind of vector image (for better scale).
UPD. Yes, my tool can convert astc images too
just rename it to qmg first. Even my S3 can convert.
I will update tool to support astc without renaming.
Updated to 1.1 with astc extension support.
Nice...been waiting for this!
Sent from my SM-N910T using Xparent ICS Tapatalk 2
sorg said:
UPD. Yes, my tool can convert astc images too
just rename it to qmg first. Even my S3 can convert.
I will update tool to support astc without renaming.
Updated to 1.1 with astc extension support.
Click to expand...
Click to collapse
Great work @sorg, we all appreciate your efforts.
Albe95 said:
Hi @sorg how about astc files? this method convert them too?
Click to expand...
Click to collapse
astc can be converted to tga, dds ...
USE Mali Texture compression Tool
astcenc.exe d option.
Additional TRANSPARENCY control must be neefed.
astc has many various type image.
You must manage it case by case...
Sent from my SHV-E210S using XDA Free mobile app
---------- Post added at 09:20 AM ---------- Previous post was at 08:28 AM ----------
{
"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 converted 9.png
hansmoon said:
astc can be converted to tga, dds ...
USE Mali Texture compression Tool
astcenc.exe d option.
Additional TRANSPARENCY control must be neefed.
astc has many various type image.
You must manage it case by case...
Click to expand...
Click to collapse
If astc natively supported by ROM then just use my converter. It will convert to proper png with all transparencies.
@sorg
Thank you so much for this great converter tool...... like @cerj said this mean alot for most themer includimg me and make theming world continue....
what about additional SUPPORT .webp ?
I can convert it with same way.
I convert images easily using YOUR tool.
THANK YOU.
Sent from my SHV-E210S using XDA Free mobile app
hansmoon said:
what about additional SUPPORT .webp ?
I can convert it with same way.
I convert images easily using YOUR tool.
THANK YOU.
Sent from my SHV-E210S using XDA Free mobile app
Click to expand...
Click to collapse
There is a plugin for paint.net that handles .Webp
Only one I've found so far...works good though
Yes.. I convert .webp with imagemagick.
I think, this tool can convert webp also.
Sent from my SHV-E210S using XDA Free mobile app
Can anybody do this with note4 and post all the images?
Related
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~
So, here i'm again porting a tutorial based on DSM_'s Tut
What do you need:
JRE (Java Runtime Environment)
MOD EDIT: Download Removed.
Install:
Windows:
MOD EDIT: Download Removed.
MOD EDIT: Download Removed.
Unpack both pakages you will get three files, copy those files to your Windows directory i.e. C:\WINDOWS
Decoding files:
Open Command. Run>cmd
Type-
Quote
apktool d file.apk [directory]
Example - apktool d D:\nfsshift.apk D:\nfsshift
Done!
{
"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"
}
FrameworkFiles
Apktool needs the framework files to decode and build apks.
Standard framework is embedded into apktool, so you don't need to do anything for most apk files. But some manufacturers, for example Samsung, add their own framework files and use them in system apps. To use apktool against such apps, you must pull framework from a device and install/register it to apktool.
For Example, you want to decode TouchWizLauncher.apk from Android v2.2 of Galaxy 5. If you try to do that, you will get an error message:
You need to install framework in apktool Type-
apktool if [framework location]
I have the got the framework-res.apk & twframework-res.apk by extracting the ROM. You can also copy it from your phone. But take care you must copy framework.apk from that ROM in which you got the Application file.
Then try again
Now is working.
How to build decoded files:
Just type
apktool b [directory in which you have decoded the files]
Example - apktool b D:\nfsshift
Done!
You will find the apk file inside the decoded directory, like I found it in - D:\nfsshift\dist\nfsshift.apk
Now you need to sign your APK file.
How to Sign APK files:
When publishing an application or a custom rom you need to sign the .apk or .zip files with a certificate using a private key. The Android system uses the certificate to identify the author of an application and establish trust relationship between applications. The classic way of doing this was to use keytool then sign it with jarsigner. In this tutorial i’ll explain an alternative method which is relatively easy to use for most people using a tool called SignApk.jar.
First download the SignAPK toolMOD EDIT: Download Removed.
Extract them to a directory you will remember. I have put them in C:\SignApk
Now just open cmd and type -
Quote
cd C:\SignApk
java -jar signapk.jar certificate.pem key.pk8 your-app.apk your-app-signed.apk
Example - java -jar signapk.jar certificate.pem key.pk8 D:\nfsshift\dist\nfsshift.apk D:\nfsshift\dist\nfsshift-signed.apk
Your APK is signed and can be installed.
Why I get errors when trying to decode some apk's from Xperia S? Apk's are okay, working on phone. Decompiling works on other apps.
I've registered framework-res.apk from my phone.
Theonewithideas said:
Why I get errors when trying to decode some apk's from Xperia S? Apk's are okay, working on phone. Decompiling works on other apps.
I've registered framework-res.apk from my phone.
Click to expand...
Click to collapse
You may require another one like the dhd has com.htc.resources.apk
sent from my dhd
i decompiled defaulthemes.apk from my Xperia neo v
now when i compile it again .. do i need to sign it? its a system apk!
and i am not able to build decode files( it means compiling right?).. please help!
Aarush said:
i decompiled defaulthemes.apk from my Xperia neo v
now when i compile it again .. do i need to sign it? its a system apk!
and i am not able to build decode files( it means compiling right?).. please help!
Click to expand...
Click to collapse
I think you need to replace it manually first time. But make a backup, just in case.
---------- Post added at 10:43 PM ---------- Previous post was at 10:18 PM ----------
I've decoded the system app (from Xperia S) (after registering the 2 framework files)
Edited the code inside. Compiled. Signed. But when I want to install it it gives me error. The usual icon doesn't show up either.
Is the error caused by changing something in code? I've only edited some TextSize values.
Theonewithideas said:
I think you need to replace it manually first time. But make a backup, just in case.
---------- Post added at 10:43 PM ---------- Previous post was at 10:18 PM ----------
I've decoded the system app (from Xperia S) (after registering the 2 framework files)
Edited the code inside. Compiled. Signed. But when I want to install it it gives me error. The usual icon doesn't show up either.
Is the error caused by changing something in code? I've only edited some TextSize values.
Click to expand...
Click to collapse
Can be with codes
Are u signing it.? Dont sign it if its a system apk
Sent from my Xperia neo V using SwiftKey!
Great tutorial
Sent from my Droid using Tapatalk
Why shouldn't you sign a system apk? I see people stating this everywhere, never any reason as to why though.
Basically, if I mess with a system apk I should just build it and then it's ready to adb push to /system/app/?
very helpful thanks
I've done all your steps but...
@hyztname
hi, how are you
I've done what you said in post #1 step by step, everything's ok with no error but when I push my new edited "SystemUI.apk" to the device, it doesn't work. I have the same issue when I use APKMultiTool
what do you think?
goldiecalypso said:
@hyztname
hi, how are you
I've done what you said in post #1 step by step, everything's ok with no error but when I push my new edited "SystemUI.apk" to the device, it doesn't work. I have the same issue when I use APKMultiTool
what do you think?
Click to expand...
Click to collapse
You have to sign ur new app. Google how to sign apks in google
Sent from my Droid using Tapatalk 2
cowsquad said:
You have to sign ur new app. Google how to sign apks in google
Sent from my Droid using Tapatalk 2
Click to expand...
Click to collapse
I signed it with "signapk" according to your talks and download link, but still nothing!
@goldiecalypso
SystemUi.apk isn't a simple package.
If I'm right you don't have to decompile sources.
apktool d -s SystemUI.apk
-s, --no-src (Will not decode sources)
could u plz tell me hw to do it in ubuntu
droidxpert said:
could u plz tell me hw to do it in ubuntu
Click to expand...
Click to collapse
What do you want to know?
Sent from my Galaxy Nexus using Tapatalk 2
sir i decompiled framework-res.apk and i have modded the pngs in drawable ldpi folder.but when i am trying to recompile it it shows errors in every png i modded..i modded using photoshop cs6...please help
droidxpert said:
sir i decompiled framework-res.apk and i have modded the pngs in drawable ldpi folder.but when i am trying to recompile it it shows errors in every png i modded..i modded using photoshop cs6...please help
Click to expand...
Click to collapse
What kind of error are you getting? Where you messing with 9.pngs?
Sent from my Galaxy Nexus using Tapatalk 2
ya i was editing .9 pngs.and one of xda member suggested me to flatten it before saving.This compiles successfully but creates a white background for all images
droidxpert said:
ya i was editing .9 pngs.and one of xda member suggested me to flatten it before saving.This compiles successfully but creates a white background for all images
Click to expand...
Click to collapse
Working with 9.pngs isn't easy to do. You must use 9.png tool to work with those. 9.pngs are pain in the ass. There are tutorials out there man
Sent from my Galaxy Nexus using Tapatalk 2
droidxpert said:
ya i was editing .9 pngs.and one of xda member suggested me to flatten it before saving.This compiles successfully but creates a white background for all images
Click to expand...
Click to collapse
You need to use the draw9patch.bat tool if you change the shape of anything in a 9.png. Check out http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch for some basics.
{
"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"
}
vlt96 said:
You shouldn't try it out when you have free time, it will give you free time
Click to expand...
Click to collapse
Features
FEATURES LISTImage
Install Image Tools: Install ImageMagick and/or PIL to use my Image Tools
Convert Image: Convert any image in given directory to given extension
Resize: Batch-resizes files found in given directory with given percent or given DPIs, or resizes an APK with given DPIs
Batch Theme: Applies a theme overlay (caclulated with luminosity values) to all images found in a given directory (e.g. THEME!)
Batch Rename: Batch renames all files found in a directory with a given pattern, and renames them to given out (for porting Themes)
CopyFrom: Copies images present in directory 1 FROM directory 2 (if present in dir 2) - for themers!
OptimizeImage: Optimizes Image, so that size will be smaller
Development
Prepare Building: Installs necessary build tools
Build from Source: Builds one from many sources and even choose a device (if available)
Add Governor: Add a governor to a kernel
Install Android SDK
Install Java JDK
APK
(De)Compile
Extract/Repackage APK
Sign APK with different keys
Zipalign APK
Install APK
Optimize Images INSIDE APK
Advanced
(Bak)Smali: Lets you edit the code inside classes.dex and compile back
ODEX: ODEX a ROM
DE-ODEX: DE-ODEX a ROM
Compile to an Exe: lets you compile Python scripts to an executable for your OS
Android
Configure ADB: Connect to devices over IP, enable/disable Network ADB on connected device
Logcat
Build.Prop: Pulls Build.prop from device and let you edit it
Backup / Restore: full backup of (all optional) apps, system apps, data, shared storage
ADB File Explorer
StudioAndroid options
Clean workspace and go back to before you used this tool the first time!
Debug: Includes printing the used commands before executing and testing the latest changes
Check the log in a scrollable window with selectable text
Report a bug: Opens a reply on this XDA thread with the content of your log in it
Changelog: See what's changed!
Update: Update StudioAndroid and choose between Stable en Nightly
Restart
About: shows information about the developer, contact info, profile image, twitter etc
Click to expand...
Click to collapse
SCALED PREVIEW: (Click to see full preview)
Click to expand...
Click to collapse
Instructions
Download the latest update OR one of the stable updates
Extract in your home directory
double-click StudioUnix
Click to expand...
Click to collapse
Preparation:
Download one of the stable updates
Extract in a path without spaces (e.g. NOT in "Documents and Settings")
Double-click StudioWindows.exe
Click to expand...
Click to collapse
OR
Download and run Python
Download and run PYGTK - 32-bits
Download the latest update OR one of the stable updates
Extract in a path without spaces (e.g. NOT in "Documents and Settings")
Right-click Studio.py > Open with > Python
Click to expand...
Click to collapse
Preparation:
install python2.7: 64-bit/32-bit x86-64/i386 / 32-bit i386/PPC
Install this (GTK+ and PyGTK)
Download THIS
Run StudioUnix
Click to expand...
Click to collapse
Click to expand...
Click to collapse
[Cross-Platform] StudioAndroid [GUI]
vlt96 said:
You shouldn't try it out when you have free time, it will give you free time
Click to expand...
Click to collapse
Translate?
LINUX
First navigate to StudioAndroid directory.
Then
xgettext -k_ -kN_ -o messages.pot Studio.py
msginit
Click to expand...
Click to collapse
A new file will be created (***.po)
Open that file with PoEdit and translate the right-column
When finished, save it and rename ***.po to Studio.po and put it in StudioAndroid/lang/yourlang_YOURLANG/LC_MESSAGES
afterwards, compile it:
msgfmt Studio.po -o yourlang_YOURLANG/LC_MESSAGES/Studio.mo
Click to expand...
Click to collapse
When I update it, merge the changes using:
xgettext -k_ -kN_ -o messages.pot Studio.py
msgmerge -U Studio.po messages.pot
Click to expand...
Click to collapse
and translate the new strings in PoEdit
The file I need is yourlang_YOURLANG/LC_MESSAGES/Studio.mo, but it's handy for you and me if you also include yourlang_YOURLANG/LC_MESSAGES/Studio.po
WINDOWS
Open lang/LanguageFiles/en_US.po in a text editor
msgid indicates the original string
msgstr indicates the string you need to translate.
So translate the msgstr strings.
Afterwards, send me en_US.po renamed to yourlanguage_YOURCOUNTRY.po
Thanks!
If you cant upload files anywhere, then past the content of SA.po in Pastebin and send me the link
THanks in advance
FULL CREDITS WILL BE GIVEN
Click to expand...
Click to collapse
Info
All info is now available at Github:
Git Source
Changelog
Bugs & Feature requests
BitLy Stats
Click to expand...
Click to collapse
Credits
Ablankzin : Contributor to StudioAndroid
Popdog123: He took the MAC side of the project
vlt96: Making a game to play while waiting
KeitlG: Compiled for windows!!!
KeitlG: Helped me testing the long-awaited ReCompile Fix!
Rookie407 : He compiled this tool for windows! AWESOME! You don't have to install Python and GTK anymore!!!
Lithid-CM : He was my messias on Python in general and GTK specific. Go and give him a "THANKS!"
KeitG: Gettext translation
WilliamCharles & Lycan: Windows testers - AWESOME, THANK THE GUYS!!
Click to expand...
Click to collapse
Hey, I looked through your post, but I don't see what this tool is supposed to do. could you maybe write a description in the op?
Sent from my SGH-I777 using Tapatalk
Waddle said:
Hey, I looked through your post, but I don't see what this tool is supposed to do. could you maybe write a description in the op?
Sent from my SGH-I777 using Tapatalk
Click to expand...
Click to collapse
Hmmn I'll make a screenshot
EDIT: OK NOW?
Greets!
Incoming:
Batch APK de- recompile
Change Animation speed
Text color
IMPORTANT: Porting APK MULTI-TOOL - Wich is for Windows only ATM.
I'll include it in my tool and ask the dev to pay $10 for it (joke ofcourse)
IMPORTANT: FINISHING the "build from source option
mDroidd said:
Incoming:
Batch APK de- recompile
Change Animation speed
Text color
IMPORTANT: Porting APK MULTI-TOOL - Wich is for Windows only ATM.
I'll include it in my tool and ask the dev to pay $10 for it (joke ofcourse)
IMPORTANT: FINISHING the "build from source option
Click to expand...
Click to collapse
So is this for windows or linux?
Sent From My Mecha
nativi said:
So is this for windows or linux?
Sent From My Mecha
Click to expand...
Click to collapse
This tool will stay for linux.
APK MULTI-TOOL is a great tool, but for windows only, so I am gonna port it
APK MUlti Tool:
888 Lines in ONLY the Start script.
But I AM porting it.
Updated this tool first, V1C2A
Changelog V1C2 & V1C1
#v1c1:
[^]Added copyright
[^]Updated Animation
[^]Added second section; looks better
[^]OOPS! I added CopieFrom under the option "c" wich is already changelog!
[^]Improved other than home directory - was not working
[^]ICS Blue characters <3
[^]Added BUILD FROM SOURCE option
[^]Custom animation speed
[>]To try if this works, please go into terminal and type:
cat --help
if it tells you the manual for "cat", then you are fine.
Option D from the main menu.
#v1c2:
[^] Added more comments
[^] Newer CM source - not MIK_OS but now stock CM, wich includes newest adfad
[^] Custom WaitTime
[^] New script version
[^] Fixed some bugs
Will it work on windows
Hey! will this app work on windows? How to batch resize using this? Can this handle transperency? And will it perfectly fit to MDPI from HDPI or it will have FC's???
bhaviksatra87 said:
Hey! will this app work on windows? How to batch resize using this? Can this handle transperency? And will it perfectly fit to MDPI from HDPI or it will have FC's???
Click to expand...
Click to collapse
fc has nothing to do with size, I think...
windows, not yet. How to resize: option resize and follow on screen notifications.can handle transparency.
But no windows yet
Greets!
Hey, I was just wondering what the build from source option does. (I'm not that amazing dev so this might help). Does it compile stuff Aosp, or cm7?
Sent from my GT-I9100 using Tapatalk
Waddle said:
Hey, I was just wondering what the build from source option does. (I'm not that amazing dev so this might help). Does it compile stuff Aosp, or cm7?
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
yep IT does! It can prepare your PC for building, and compile AOSP GB, ICS, oxygen, cm7, and maybe another one I forgot... Wasn't it clear? I'll as more screens
Greets!
mDroidd said:
yep IT does! It can prepare your PC for building, and compile AOSP GB, ICS, oxygen, cm7, and maybe another one I forgot... Wasn't it clear? I'll as more screens
Greets!
Click to expand...
Click to collapse
Seems cool. This will really help me out with starting an Aosp rom. Thanks
Sent from my GT-I9100 using Tapatalk
Waddle said:
Seems cool. This will really help me out with starting an Aosp rom. Thanks
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
You're welcome.happy users, that's what I am doing it for!
Today ,I made a big update, and added the option batch theme. Also made the tool git, installer file (much smaller and better), new directories support, code cleanup, and some fixes. And also, Apk multi tool is not more then a weak away from release.
Greets!
Thanks man,
This is a pretty amazing program. I looked at the script code and i am really suprised by how long it is. Nice job! As i type this, i am downloading the source code for gingerbread.
Waddle said:
Thanks man,
This is a pretty amazing program. I looked at the script code and i am really suprised by how long it is. Nice job! As i type this, i am downloading the source code for gingerbread.
Click to expand...
Click to collapse
Nice
If you want to, I can learn you how to code it. If you look at the code of the dsixda kitchen inside the scripts directory, copy that and put it in the main menu, it's as longas my script is now. That's what I wanted: ONE script
Greets!
How do I resize?
Is saying values:
I Have to put the directory?
Can you make a quickly tutorial for me? I just need to resize and then I will give credits to you also.
hyztname said:
How do I resize?
Is saying values:
I Have to put the directory?
Can you make a quickly tutorial for me? I just need to resize and then I will give credits to you also.
Click to expand...
Click to collapse
If I am right, it says
Usage: SrcDir ext DestDir perc
Source dir contains the images you want to resize
Extension should be png
DestDir is where the resized images will be put
Perc is the percentage, from HDPI to MDPI IS 66%
Hope I helped.
Greets!
mDroidd said:
If I am right, it says
Usage: SrcDir ext DestDir perc
Source dir contains the images you want to resize
Extension should be png
DestDir is where the resized images will be put
Perc is the percentage, from HDPI to MDPI IS 66%
Hope I helped.
Greets!
Click to expand...
Click to collapse
Yes it says, Usage: SrcDir ext DestDir perc
But you have to type on the Value thing I said before.
I typed:
Code:
~/src 9.png ~/src/new 36
36 is ldpi(is that right?)
And says this is not a command.
hyztname said:
Yes it says, Usage: SrcDir ext DestDir perc
But you have to type on the Value thing I said before.
I typed:
Code:
~/src 9.png ~/src/new 36
36 is ldpi(is that right?)
And says this is not a command.
Click to expand...
Click to collapse
Gimme the screen res of LDPI and Ill calculate. Never resize .9.png
Greets!
I'm not a fake.
I prefer people to reply to me and give feedback instead of thanking me!
But thanking me does show if you apreciate my works.
Updated March 24th, 2013. Process much simpler!
Difficulty: EASY!
Time: Approximately 5 minutes
Tools Req: PC & HP Touchpad
How to make it:
Using Keepvid.com:
1) Rip the mp4 video from any supported video site and save it as "1.mp4". The video must be at least 30 seconds long.
{
"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"
}
Using my custom Touchpad Bootanimation Builder Script:
2) Extract the script files, and paste your video in the folder with the batch script
Warning! Your antivirus might think the zip is dangerous because of the bat file, I can assure you with my kitten's life that is not!
3) Run the run.bat file.
4) Copy the bootanimation.zip file to your device.
How to Install it:
Install method A:
5A) Download and install ROM Toolbox Lite from the Play Store.
6A) Navigate to Interface>Boot Animations>Local> and choose your bootanimation.zip
If your Rom is AOKP (with Rom Control in settings)... you can select it from Rom Control>General UI>Custom Boot Animation
Install method B:
5B) Copy your new bootanimation.zip from to your SDCard into data/local using your File Manager (Root access required, check your File Manager settings)
Install method C: Thanks to MindSplit and TedSamaha.
5C) Store your new bootanimation.zip inside bootanimation_install.zip (Download Here) at "data/local/bootanimation.zip".
The file must be 'stored' using WinRar or 7zip, as it cannot work if its compressed!
6C) Flash bootanimation_install.zip in your recovery.
Easy as pie!
If you want to use the script to make a custom boot animation for different android device, you simply have to edit the .bat file in notepad and change 512x384 to your device's resolution (or half resolution to save space), and as well in desc.txt
Where to get videos:
A good place to start:
http://vimeo.com/groups
Great tut but the process can be simpler
TedSamaha said:
Great tut but the process can be simpler
Click to expand...
Click to collapse
Yes, I understand you can push the bootanimation.zip through ADB but that requires the SDK. This method is simple, and works.
As for creating the png files, I wouldn't know how it can be done easier.
Thanks for sharing this. Nice & easy just the way I need it.
G2x
Hi, quick question, how about adding sound to the boot animation? I tried already the steps on another thread but it isn't working for me, thanks for the guide as well!
rhidalgo1973 said:
Hi, quick question, how about adding sound to the boot animation? I tried already the steps on another thread but it isn't working for me, thanks for the guide as well!
Click to expand...
Click to collapse
I have yet to try out the sound capabilities of the boot animation. But from my method, you can simply convert your 30 second mp4 into a separate mp3 file in FreeMake Video Converter, and then follow TedSamaha's guide:
Now if you want Sound in the bootanimation:
1) Download "soundatboot.zip" and Flash it via Recovery
2) Download "bootsnd.sh" and place it in /sdcard
3) Then open terminal emulator and type
Code:
su
cd /sdcard (space after cd)
sh bootsnd.sh
4) Reboot
5) Finally rename "bootsound.mp3" to "android_audio.mp3" and copy it to /system/media
Click to expand...
Click to collapse
Files: https://www.dropbox.com/sh/ei2st8s82ltfwu2/oz8YSXEUqJ
BuffMcBigHuge said:
I have yet to try out the sound capabilities of the boot animation. But from my method, you can simply convert your 30 second mp4 into a separate mp3 file in FreeMake Video Converter, and then follow TedSamaha's guide:
Files: https://www.dropbox.com/sh/ei2st8s82ltfwu2/oz8YSXEUqJ
Click to expand...
Click to collapse
Thanks for the reply..but this is the guide that I followed and it didn't work, unfortunately TedSamaha doesn't follow his thread I guess cause a few other people also have posted about not being able to get the sound in the bootanimation and he has not replied to their questions. Well I may have just to forget all about it...thanks again.
rhidalgo1973 said:
Thanks for the reply..but this is the guide that I followed and it didn't work, unfortunately TedSamaha doesn't follow his thread I guess cause a few other people also have posted about not being able to get the sound in the bootanimation and he has not replied to their questions. Well I may have just to forget all about it...thanks again.
Click to expand...
Click to collapse
A possible solution could be to push the .mp3 file to /data/local
using adb u can:
adb push android_audio.mp3 /data/local
TedSamaha said:
A possible solution could be to push the .mp3 file to /data/local
using adb u can:
adb push android_audio.mp3 /data/local
Click to expand...
Click to collapse
Thanks TedSamaha, I will try to do that but before I need to go to a hp store to see if they can fix my usb port cause my computer doesn't recognized my touchpad any longer..it is not the computer..it is the port cause it is the same with any computer..and that's why I hadn't done it that way before..but thanks for the tip anyways...:good:
I created a 30 second file. When i split into pngs i geet 721 pngs and then the bootanimation does not at all appear. ?
Just a note to everyone. It is normal if your bootanimation_install file is very big!
I just wrote a super simple script that does all the work for you!
The OP has been updated! Let me know how it works! :laugh::laugh::laugh::laugh:
Nice work man. Thanks again for sharing.
Error copying
Sir when i tried to copy bootanimation file in sys/media it shows copy failed.
it only copies 40.6 MB.
Help Me
BuffMcBigHuge said:
Updated March 24th, 2013. Process much simpler!
Difficulty: EASY!
Time: Approximately 5 minutes
Tools Req: PC & HP Touchpad
How to make it:
Using Keepvid.com:
1) Rip the mp4 video from any supported video site and save it as "1.mp4". The video must be at least 30 seconds long.
Using my custom Touchpad Bootanimation Builder Script:
2) Extract the script files, and paste your video in the folder with the batch script
Warning! Your antivirus might think the zip is dangerous because of the bat file, I can assure you with my kitten's life that is not!
3) Run the run.bat file.
4) Copy the bootanimation.zip file to your device.
How to Install it:
Install method A:
5A) Download and install ROM Toolbox Lite from the Play Store.
6A) Navigate to Interface>Boot Animations>Local> and choose your bootanimation.zip
If your Rom is AOKP (with Rom Control in settings)... you can select it from Rom Control>General UI>Custom Boot Animation
Install method B:
5B) Copy your new bootanimation.zip from to your SDCard into data/local using your File Manager (Root access required, check your File Manager settings)
Install method C: Thanks to MindSplit and TedSamaha.
5C) Store your new bootanimation.zip inside bootanimation_install.zip (Download Here) at "data/local/bootanimation.zip".
The file must be 'stored' using WinRar or 7zip, as it cannot work if its compressed!
6C) Flash bootanimation_install.zip in your recovery.
Easy as pie!
If you want to use the script to make a custom boot animation for different android device, you simply have to edit the .bat file in notepad and change 512x384 to your device's resolution (or half resolution to save space), and as well in desc.txt
Where to get videos:
A good place to start:
http://vimeo.com/groups
Click to expand...
Click to collapse
Do I download it on my PC or tablet?
----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------
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