[TUTORIAL]How to unpack/repack .apk files - Android Apps and Games

Hey guys!
I've made another tutorial. This one is about unpacking and repacking .apk files. This tutorial was made for people who don't want to mess with Command Prompt, or for those who want to do it in graphical user interface.
-------------------------------------------------
Requirements:
-An archive manager, such as WinZip, WinRar, or Power Archiver, that is capable of extracting and making .rar archives
-Formatter (it's a program made by me) - click here to download it. Mirror: http://www.mediafire.com/?5a74bjg475er75d
-------------------------------------------------
Tutorial:
Just follow the steps and you will learn how to unpack/repack .apk file in no time!
How to unpack .apk files:
1. Open Formatter (I assume you already have it downloaded and installed on your computter)
2. Click the "Choose File" button and choose your apk file. Then, in the first text box, enter ".rar" (without quotes). After that, enter your desired name for your .rar archive and click the big "Rename!" button
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3. Go to the folder where your .apk file was. You should see a .rar archive, named by the name you entered in Formatter. Extract it with your archive manager
How to repack .apk files:
1. Compress the extracted files in a .rar archive (compress them normally like any other archive)
2. Open Formatter
3. Choose the .rar archive you made a minute ago
4. Set the format to .apk
5. Set the name to whatever you want
6. Click the big "Rename!" button
-------------------------------------------------
Mac OS X users: follow this tutorial (special thanks to daisun):
daisun said:
For those still interested in editing apks on OS X without unpacking and hence without resigning I have found something that works!
muCommander! Just rename the .apk to .zip and browse it using muCommander just like you would using WinRar! Just tested it, I was able to add and remove files without resigning. The modified apk installed on my phone without a problem!
As for editing xml values you can simply copy the xml file out and edit it using your favourite editor and then copy them back in.
Hope I was able to help some OS X users.
/edit By the way, this method (WinRar or muCommander) also works for editing update.zip. This means you can customise the rom (add/remove system apks, change the boot animation etc) before you flash it.
Click to expand...
Click to collapse
-------------------------------------------------
That was about it. If you have any problems or questions, feel free ask me. Hitting the "Thanks" button is very appreciated. Feel free to click it if I helped you.

Extremely useful app and instructions, thanks very much for this, now time to play

Mrbalders said:
Extremely useful app and instructions, thanks very much for this, now time to play
Click to expand...
Click to collapse
I'm glad you found this tutorial useful.

Why to use special application just to change an extension of some apk file? I think it's much easier to:
Choose to open all *.apk files with archive tool. Then set "apk" as extension of output file when compressing.
or disable "hide extension of known files" feature in Windows and change file extensions normally - by renaming them.
Also does above tutorial really work? I mean .apk files are zip archives, not rar and I doubt Android can open rar archives.

Brut.all said:
Why to use special application just to change an extension of some apk file? I think it's much easier to:
Choose to open all *.apk files with archive tool. Then set "apk" as extension of output file when compressing.
or disable "hide extension of known files" feature in Windows and change file extensions normally - by renaming them.
Also does above tutorial really work? I mean .apk files are zip archives, not rar and I doubt Android can open rar archives.
Click to expand...
Click to collapse
Yes, it works. I've tried it myself.

Definitely cool. Thanks!

itskapil said:
Definitely cool. Thanks!
Click to expand...
Click to collapse
No prob.

Erm, no offense, but this is a bit dim.
You don't need any special programs to check out what's going in an apk. In fact, you don't even need to rename the apk, you can just open the apk using WinRAR or 7Zip, both will handle it just fine.
If you really need renaming, just uncheck "Hide known extensions" in the Explorer options.
This is just a really convoluted and ultimately uneccessary way of doing this.

LiquidSolstice said:
Erm, no offense, but this is a bit dim.
You don't need any special programs to check out what's going in an apk. In fact, you don't even need to rename the apk, you can just open the apk using WinRAR or 7Zip, both will handle it just fine.
If you really need renaming, just uncheck "Hide known extensions" in the Explorer options.
This is just a really convoluted and ultimately uneccessary way of doing this.
Click to expand...
Click to collapse
I made the tut like this because I didn't know you can hide known extensions in Windows Explorer. I know you can open the apk with every archive manager.

despotovski01 said:
I made the tut like this because I didn't know you can hide known extensions in Windows Explorer. I know you can open the apk with every archive manager.
Click to expand...
Click to collapse
:X You knew how to build a program that had to do with file extensions but you didn't know about hiding known extensions? It's been around since XP (at least), man.
I'm sorry, I'm not trying to antagonize you. It's a decent effort, I just think it's a bit overkill. Might be a good idea to paint the tutorial in a different way, such as "If you don't want all your extensions showing all the time (which is what the "hide extensions" option would do if disabled), use my guide for those one-off times where you need to rename them".

LiquidSolstice said:
:X You knew how to build a program that had to do with file extensions but you didn't know about hiding known extensions? It's been around since XP (at least), man.
I'm sorry, I'm not trying to antagonize you. It's a decent effort, I just think it's a bit overkill. Might be a good idea to paint the tutorial in a different way, such as "If you don't want all your extensions showing all the time (which is what the "hide extensions" option would do if disabled), use my guide for those one-off times where you need to rename them".
Click to expand...
Click to collapse
Thanks for your suggestions.

Since we're on the topic of opening apks. Does anyone know a good program which can open the apk without unpacking, similar to winrar, but for OSX? I've searched high and low but every program I find simply extracts the files.

daisun said:
Since we're on the topic of opening apks. Does anyone know a good program which can open the apk without unpacking, similar to winrar, but for OSX? I've searched high and low but every program I find simply extracts the files.
Click to expand...
Click to collapse
You open it with WinRAR, edit, and then repackage by saving the archive, and change the .zip to .apk when you do (if it asks).

What is the advantage of doing this over using the terrific program APK Edit created by Anoniem100?

daisun said:
Since we're on the topic of opening apks. Does anyone know a good program which can open the apk without unpacking, similar to winrar, but for OSX? I've searched high and low but every program I find simply extracts the files.
Click to expand...
Click to collapse
Have you tried Keka file archiver for OS X? It's a 7-zip port. It could work, but I'm not sure because there's no mention of the .apk format.
Link --> http://www.kekaosx.com/en/

Cellulah said:
What is the advantage of doing this over using the terrific program APK Edit created by Anoniem100?
Click to expand...
Click to collapse
I haven't used APK Edit to tell the advantages and disadvantages. I just prefer doing these things this way.

LiquidSolstice said:
You open it with WinRAR, edit, and then repackage by saving the archive, and change the .zip to .apk when you do (if it asks).
Click to expand...
Click to collapse
That method works perfectly under Windows and is the method I use personally. However, I would also like to perform the same thing under OSX (on my Macbook).
HD2_addict said:
Have you tried Keka file archiver for OS X? It's a 7-zip port. It could work, but I'm not sure because there's no mention of the .apk format.
Link --> http://www.kekaosx.com/en/
Click to expand...
Click to collapse
Thanks for the suggestion. I just tried it, it seems to only compress and decompress files it doesn't allow me to browse them without decompression.
BetterZip comes close, I can browse the contents without decompressing but I can't modify the contexts.
There must be something out there that can do what WinRar does on Windows but on OSX!

guest what???
this thing made it to the portal !!!
Hahahaha...

ronaksv said:
this thing made it to the portal !!!
Hahahaha...
Click to expand...
Click to collapse
That's great! Thanks for the info!

will this allow me access to edit smalli and values?

Related

XML files corrupted after backup

I'm trying to backup .apk files to my sdcard via AppManager and then open up the XML files to see if I can tweak it, however whenever I try to do this, with any .apk file, it's always messed up and no matter what program I use to edit the .xml file it won't display and it comes up with errors.
Anyone know why this is and/or how to fix it?
Gregalous said:
I'm trying to backup .apk files to my sdcard via AppManager and then open up the XML files to see if I can tweak it, however whenever I try to do this, with any .apk file, it's always messed up and no matter what program I use to edit the .xml file it won't display and it comes up with errors.
Anyone know why this is and/or how to fix it?
Click to expand...
Click to collapse
They are a strange mix of binary and hex. It's not a human readable xml.
So is there any way to edit them?
Gregalous said:
So is there any way to edit them?
Click to expand...
Click to collapse
Seems like there is a program that will read and convert them to human readable, but you can't edit them and have the changes saved. I will post back when I find it.
The java program is called AXMLPrinter2 and can be run from a command prompt, which converts to TXT.
I'll refer to Stericson's post here on editing Android XML files

[Request] Unpack .RARs

Anyone know of an archive manager that supports unpacking password protected .RARs?
abcdfv said:
Anyone know of an archive manager that supports unpacking password protected .RARs?
Click to expand...
Click to collapse
WinRAR, 7zip
afazel said:
WinRAR, 7zip
Click to expand...
Click to collapse
Those aren't for android though
I'm afraid that I don't think there is one. You're probably stuck using a computer.
Or you could try to get unrar (linux command line) running on your phone and then do this from the command line
Code:
unrar e -p{password} file.rar
Let me know if you get unrar compiled on your phone
Originally Posted by Poodulz over at AndroidCommunity
Well try this out, download any .rar file you want from the internet to your Hero, open up opera browser and point it at http://www.unzip.co.nr/
Upload the .rar and click the button
It will upload it to the site and then decompress it for you, then you can download the decompressed file and voila, bobs your uncle, your shiny file is ready for use.
Updates by me.
quick search in market, gave me Unrar from Twanky Deuce Software
I use AndroZip for zips and rars, works well
Unrar is closed source, can't get it compiled for ARM.
Unrar and Androzip don't support passworded files.

[How To] Flash a new Splash image with Latest FW

Hello all,
Since having the new FW that is needed to have ICS on our phones the usual method of flashing Splash images has been lost,
well after a bit of testing Eisteh, Lizard and I from the AndroidRevolution IRC channel have found a way to still flash the beloved splash images,
Ok so it is quite simple,
Go get the fw package from the bottom of http://forum.xda-developers.com/showpost.php?p=21132762&postcount=41583
direct link: http://goo.gl/kPfB0
once you have it, open it with winrar or even windows archive folders, note i said open do not extract,
delete everything accept Android-info text file
now copy your chosen Splash image into the file ensuring its named splash1.img
close the file,
copy the now modified PD58IMG.zip onto the root of your memory card,
and reboot your phone into the bootloader.
the bootloader should pick up the file and flash the splash image for you.
thats it.
heres an example of it working ..
http://www.youtube.com/watch?v=2W4yQbwG5Ko
A quick guide and method to create your Splash image,
download the attached file and unpack it to somewhere easy to find
Create a bitmap with the dimensions 540x960
and name it SPLASH.BMP
put it with the unpacked files,
double click the RUN THIS ONE batch file,
and you splash1.img will be created
then copy into your prepared zip file
View attachment Splash-Screen-Creator-Sensation.zip
Hope this helps you all, Till the next time
Technane
PS Thanks : From AndroidRevolution Eisteh, Lizard, Evil Dragon,
For the Massive CID PD58img.zip making this easier Kohr-Ah
for the initial work on the FW mike-1986, and for his continued work on the ARHD rom
for the Batch file VibrantOwnr
and for NBIMG Pau Oliva
Thank you very much.
This is great.
I will try this out when I get home tonight.
HTC Sensation Coredroid
ya but how can you convert a png or jpg to an img file?
web_ninja said:
ya but how can you convert a png or jpg to an img file?
Click to expand...
Click to collapse
The old way using NBIMG will still work great for that.
web_ninja said:
ya but how can you convert a png or jpg to an img file?
Click to expand...
Click to collapse
I have updated my original post, please take a look
heres the splash image i used and as featured in the guide,
{
"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"
}
my workaround was to flash the eng hboot, and after flashing the splash revert to recent hboot. But this might save some time
i can't delete the files in winrar.
how can i fix that???
cryptstyling said:
i can't delete the files in winrar.
how can i fix that???
Click to expand...
Click to collapse
If you are on windows just use windows compressed folders to open the file, or alternatively use 7zip i used windows i was told it worked in winrar but i havent tested it myself,
If you have issues you could post your wanted image and i could create the zip for you. I will test with winrar now and edit the guide accordingly thanks for the info
ok tested it myself, Zip open in Winrar. Right click ..... Delete ..... Works for me
using this:WinRAR x64 (64 bit) 4.10 beta 5
Technane said:
A quick guide and method to create your Splash image,
download the attached file and unpack it to somewhere easy to find
Create a bitmap with the dimensions 540x960
and name it SPLASH.BMP
put it with the unpacked files,
double click the RUN THIS ONE batch file,
and you splash1.img will be created
then copy into your prepared zip file
Click to expand...
Click to collapse
I got it working with compressed files to delete those files.
The next problem is that i the batch file won't create the img file.
Maybe that you can solve it for me.
i give you 2 pics. Maybe you can make both for me.
U realise both those images aren't 540*960 right?
and both JPG?
Well anyway ,,,
I upscaled them a bit so they might look a bit stretched.
here u go... just remember to rename the files before you try and flash them or it wont work.
THX, i will try them now.
I had those images from the splashscreen forum here and there i downloaded theme as the right file and the right size.
Only problem was that i could't upload them here in the post because of the size.
Thats why i posted them at those size and format.
This is where i found the original with the zip that they were in.
http://forum.xda-developers.com/showpost.php?p=20909826&postcount=143
thx
maybe you can make them also so that i have beter quality of it.
thx anyways
Edit:
those 2 worked great.
Didn't saw much of the stretching.
I'm happy now man.
Now to find out to do it myself
cryptstyling said:
THX, i will try them now.
I had those images from the splashscreen forum here and there i downloaded theme as the right file and the right size.
Only problem was that i could't upload them here in the post because of the size.
Thats why i posted them at those size and format.
This is where i found the original with the zip that they were in.
http://forum.xda-developers.com/showpost.php?p=20909826&postcount=143
thx
maybe you can make them also so that i have beter quality of it.
thx anyways
Edit:
those 2 worked great.
Didn't saw much of the stretching.
I'm happy now man.
Now to find out to do it myself
Click to expand...
Click to collapse
Well the file he says hes attached in that post, he says he has included the .img files, all you needed to do was take the .img files rename them to splash1.img then copy them into the zip, and thats it done, glad your all up and running though please can you poke the thanks button
ok thx.
maybe you know the answer on this one.
Why doesn't it wanna change from bmp to img?
when i press option 1 and after it any key nothing changes.
That's the only bump on the road.
Dude, you are way overthinking this.
I made those 2 splash screens. Look at the bottom of the post you found them in. There is aszip file that has the converted img files.
They are ready to go!
cryptstyling said:
I got it working with compressed files to delete those files.
The next problem is that i the batch file won't create the img file.
Maybe that you can solve it for me.
i give you 2 pics. Maybe you can make both for me.
Click to expand...
Click to collapse
Sent from my Sensation using XDA App
Technane said:
U realise both those images aren't 540*960 right?
and both JPG?
Well anyway ,,,
I upscaled them a bit so they might look a bit stretched.
here u go... just remember to rename the files before you try and flash them or it wont work.
Click to expand...
Click to collapse
what up with the android-info.txt in your zips
BootFlash Pro on the market makes this process simple. I've used from 2.3.4 thru 4.0.3 and it works flawlessly. Free version on the market works fine too.
TJD319 said:
BootFlash Pro on the market makes this process simple. I've used from 2.3.4 thru 4.0.3 and it works flawlessly. Free version on the market works fine too.
Click to expand...
Click to collapse
Didnt see the free version on the market, only the paid-for app. And it said that the free version puts a watermark on it.
Skipjacks said:
Dude, you are way overthinking this.
I made those 2 splash screens. Look at the bottom of the post you found them in. There is aszip file that has the converted img files.
They are ready to go!
Sent from my Sensation using XDA App
Click to expand...
Click to collapse
I know and i have them used.
thats not the problem.
I tested to make a new one on my own with a different image.
Thats what i was talking about.
the ones you made for me works perfect.
---------- Post added at 02:02 AM ---------- Previous post was at 01:51 AM ----------
TJD319 said:
BootFlash Pro on the market makes this process simple. I've used from 2.3.4 thru 4.0.3 and it works flawlessly. Free version on the market works fine too.
Click to expand...
Click to collapse
After all that trying there is a app that can do that for you in a second.
It worked inmediatly.
Never mind i still want the learn the manual way of it.
THX all for the help
cryptstyling said:
I know and i have them used.
thats not the problem.
I tested to make a new one on my own with a different image.
Thats what i was talking about.
the ones you made for me works perfect.
---------- Post added at 02:02 AM ---------- Previous post was at 01:51 AM ----------
After all that trying there is a app that can do that for you in a second.
It worked inmediatly.
Never mind i still want the learn the manual way of it.
THX all for the help
Click to expand...
Click to collapse
The key is to start with the background image when you're designing these. Have it already set up to the right size. Then just add elements and you don't have to worry about distorting anything later to make it fit.
That Bootflash app looks neat. Since it uses a data connection it obviously uses a server to change the file from a bmp or whatever into a proper img file. That's pretty cool!
And if it works on the new firmware, then I'm betting my terminal flashing method still works also. But for $0.99....can you really go wrong?

[Q] How to modify any android apk file?

I use Bluestacks 0.9.11.4119 . I Install android applications and games, from root folder (i.e. device/android/data/data) i copy all the folders to windows directory (i.e. publicfolder/pictures), now many of the apps or games have two type of similar files and i need to see what's inside of the files,
1st.- .so files and database files
2nd.- some of the files have no extension so if i open it on notepad then it comes in Alphanumeric symbolic format,i think its encrypted so i am not able to see even i have tried many language decrypter but failed
3rd.- how to dissemble the apk file and how to modify it.
4th.- how to read XML file of android apps, when i open it on notepad or Microsoft XML it shows error.
I want to learn something so please help me with these issues, and thank you for previous help
To edit any apk is necessary Apktool. Look this guide and try edit:
http://www.xda-developers.com/decompile-edit-and-recompile-in-one-tool-with-apk-studio/
gamer22881 said:
I use Bluestacks 0.9.11.4119 . I Install android applications and games, from root folder (i.e. device/android/data/data) i copy all the folders to windows directory (i.e. publicfolder/pictures), now many of the apps or games have two type of similar files and i need to see what's inside of the files,
1st.- .so files and database files
2nd.- some of the files have no extension so if i open it on notepad then it comes in Alphanumeric symbolic format,i think its encrypted so i am not able to see even i have tried many language decrypter but failed
3rd.- how to dissemble the apk file and how to modify it.
4th.- how to read XML file of android apps, when i open it on notepad or Microsoft XML it shows error.
I want to learn something so please help me with these issues, and thank you for previous help
Click to expand...
Click to collapse
In addition to apktool (thanks, @kaiodduarte), you're also going to need a good text editor (I use Notepad++), an archive manager (like 7zip or WinRAR), and the ZipSigner app for your device.
ИΘΘK¡€ said:
In addition to apktool (thanks, @kaiodduarte), you're also going to need a good text editor (I use Notepad++), an archive manager (like 7zip or WinRAR), and the ZipSigner app for your device.
Click to expand...
Click to collapse
thank you for the advice but i have 1 worries
if the text file or a file is encrypted the how is notepad++ is going to help me..??
gamer22881 said:
thank you for the advice but i have 1 worries
if the text file or a file is encrypted the how is notepad++ is going to help me..??
Click to expand...
Click to collapse
It will help you with actually being able to make edits to text files without screwing up all of the line endings and encoding.

[TOOL][SCRIPT] Alliance wbp2png Batch Converter

Hello XDA,
Here's a simple script, brought to you by ALLIANCE and myself, that will allow you to easily convert the .wbp files found in many newer apps to more manageable .png files, either individually, or in batches. For other image formats, such as .pkm and .atc, please see my thread here.
***This script is currently for Windows only.***​
The script utilizes a tool called dwebp to handle the decoding. dwebp can be run by itself to convert .wbp files to .png via the command prompt with the following:
Code:
dwebp <inputfile.wbp> -o <outputfile.png>
It has other commands and options, but for our purposes, that's the only one we're interested in. For creating .wbp files from other image formats, you can use its' sister tool, cwebp. For more information or to download the entire WebP package, please visit Google Developers.
On to the script....
SETUP
Download the attached zip file, and extract it to a location of your choice. Inside, you will find four files: dwebp.exe, a copy of these instructions, and two batch files.
Select the two batch files, right-click, and select Create Shortcut.
Next, open the run dialog (Start > Run, or windows key + r), type in "sendto" without the quotes, and press enter.
Either move or copy the two shortcuts that you created into the sendto folder, then close it. Now you're ready to convert....
USAGE
To convert individual .wbp files, simply right-click on one, and select Send To > wbp2png (file). The script will run for a couple of seconds, and once it finishes, you will have a .png in the same folder as your .wbp, and with the same name.
To convert multiple .wbp files at once, select the folder containing them (drawable-xxhdpi, for example), right-click, select Send To > wbp2png (folder), and let it do its' magic. Once it's finished, you will have .png versions of any .wbp files contained in the folder.
During batch conversion, you will likely notice several lines in the cmd output that say BITSTREAM_ERROR. This simply means that it encountered a file that was not a .wbp or .png file (such as .xml files) and is skipping over it. It is perfectly safe, and the error can be ignored.
Originally, I created this script so that it would delete the original .wbp files after it had finished generating the .pngs, but I decided to remove that functionality so that, should something go wrong in the decoding process, the user still has the originals, without having to decompile their apk again. In order to be able to recompile your apk, the .wbp files will have to be removed, once you have the .png equivalents. If anyone would like the script to remove them automatically, let me know and I can tell you how to add that functionality yourself.
Thank you,
~Morningstar
Morningstar said:
Hello XDA,
Here's a simple script, brought to you by ALLIANCE and myself, that will allow you to easily convert the .wbp files found in many newer apps to more manageable .png files, either individually, or in batches. For other image formats, such as .pkm and .atc, please see my thread here.
***This script is currently for Windows only.***​
The script utilizes a tool called dwebp to handle the decoding. dwebp can be run by itself to convert .wbp files to .png via the command prompt with the following:
Code:
dwebp <inputfile.wbp> -o <outputfile.png>
It has other commands and options, but for our purposes, that's the only one we're interested in. For creating .wbp files from other image formats, you can use its' sister tool, cwebp. For more information or to download the entire WebP package, please visit Google Developers.
On to the script....
SETUP
Download the attached zip file, and extract it to a location of your choice. Inside, you will find four files: dwebp.exe, a copy of these instructions, and two batch files.
Select the two batch files, right-click, and select Create Shortcut.
Next, open the run dialog (Start > Run, or windows key + r), type in "sendto" without the quotes, and press enter.
Either move or copy the two shortcuts that you created into the sendto folder, then close it. Now you're ready to convert....
USAGE
To convert individual .wbp files, simply right-click on one, and select Send To > wbp2png (file). The script will run for a couple of seconds, and once it finishes, you will have a .png in the same folder as your .wbp, and with the same name.
To convert multiple .wbp files at once, select the folder containing them (drawable-xxhdpi, for example), right-click, select Send To > wbp2png (folder), and let it do its' magic. Once it's finished, you will have .png versions of any .wbp files contained in the folder.
During batch conversion, you will likely notice several lines in the cmd output that say BITSTREAM_ERROR. This simply means that it encountered a file that was not a .wbp or .png file (such as .xml files) and is skipping over it. It is perfectly safe, and the error can be ignored.
Originally, I created this script so that it would delete the original .wbp files after it had finished generating the .pngs, but I decided to remove that functionality so that, should something go wrong in the decoding process, the user still has the originals, without having to decompile their apk again. In order to be able to recompile your apk, the .wbp files will have to be removed, once you have the .png equivalents. If anyone would like the script to remove them automatically, let me know and I can tell you how to add that functionality yourself.
Thank you,
~Morningstar
Click to expand...
Click to collapse
Will this work with linux or xposed?
sparx said:
Will this work with linux or xposed?
Click to expand...
Click to collapse
Yes. It works with both. I don't even understand how it works with xposed, but it does. Flawlessly.
[emoji23]
Morningstar said:
Hello XDA,
Here's a simple script, brought to you by ALLIANCE and myself, that will allow you to easily convert the .wbp files found in many newer apps to more manageable .png files, either individually, or in batches. For other image formats, such as .pkm and .atc, please see my thread here.
***This script is currently for Windows only.***​
The script utilizes a tool called dwebp to handle the decoding. dwebp can be run by itself to convert .wbp files to .png via the command prompt with the following:
Code:
dwebp <inputfile.wbp> -o <outputfile.png>
It has other commands and options, but for our purposes, that's the only one we're interested in. For creating .wbp files from other image formats, you can use its' sister tool, cwebp. For more information or to download the entire WebP package, please visit Google Developers.
On to the script....
SETUP
Download the attached zip file, and extract it to a location of your choice. Inside, you will find four files: dwebp.exe, a copy of these instructions, and two batch files.
Select the two batch files, right-click, and select Create Shortcut.
Next, open the run dialog (Start > Run, or windows key + r), type in "sendto" without the quotes, and press enter.
Either move or copy the two shortcuts that you created into the sendto folder, then close it. Now you're ready to convert....
USAGE
To convert individual .wbp files, simply right-click on one, and select Send To > wbp2png (file). The script will run for a couple of seconds, and once it finishes, you will have a .png in the same folder as your .wbp, and with the same name.
To convert multiple .wbp files at once, select the folder containing them (drawable-xxhdpi, for example), right-click, select Send To > wbp2png (folder), and let it do its' magic. Once it's finished, you will have .png versions of any .wbp files contained in the folder.
During batch conversion, you will likely notice several lines in the cmd output that say BITSTREAM_ERROR. This simply means that it encountered a file that was not a .wbp or .png file (such as .xml files) and is skipping over it. It is perfectly safe, and the error can be ignored.
Originally, I created this script so that it would delete the original .wbp files after it had finished generating the .pngs, but I decided to remove that functionality so that, should something go wrong in the decoding process, the user still has the originals, without having to decompile their apk again. In order to be able to recompile your apk, the .wbp files will have to be removed, once you have the .png equivalents. If anyone would like the script to remove them automatically, let me know and I can tell you how to add that functionality yourself.
Thank you,
~Morningstar
Click to expand...
Click to collapse
I don't understand. I tried to open this on my iPhone and nothing happened. Plz halp.
Morningstar said:
Yes. It works with both. I don't even understand how it works with xposed, but it does. Flawlessly.
[emoji23]
Click to expand...
Click to collapse
Ohhh bro! Downloading now!! You rock dude...alliance rules!!!!
Morningstar said:
Hello XDA,
Here's a simple script, brought to you by ALLIANCE and myself, that will allow you to easily convert the .wbp files found in many newer apps to more manageable .png files, either individually, or in batches. For other image formats, such as .pkm and .atc, please see my thread here.
***This script is currently for Windows only.***​
The script utilizes a tool called dwebp to handle the decoding. dwebp can be run by itself to convert .wbp files to .png via the command prompt with the following:
Code:
dwebp -o
It has other commands and options, but for our purposes, that's the only one we're interested in. For creating .wbp files from other image formats, you can use its' sister tool, cwebp. For more information or to download the entire WebP package, please visit Google Developers.
On to the script....
SETUP
Download the attached zip file, and extract it to a location of your choice. Inside, you will find four files: dwebp.exe, a copy of these instructions, and two batch files.
Select the two batch files, right-click, and select Create Shortcut.
Next, open the run dialog (Start > Run, or windows key + r), type in "sendto" without the quotes, and press enter.
Either move or copy the two shortcuts that you created into the sendto folder, then close it. Now you're ready to convert....
USAGE
To convert individual .wbp files, simply right-click on one, and select Send To > wbp2png (file). The script will run for a couple of seconds, and once it finishes, you will have a .png in the same folder as your .wbp, and with the same name.
To convert multiple .wbp files at once, select the folder containing them (drawable-xxhdpi, for example), right-click, select Send To > wbp2png (folder), and let it do its' magic. Once it's finished, you will have .png versions of any .wbp files contained in the folder.
During batch conversion, you will likely notice several lines in the cmd output that say BITSTREAM_ERROR. This simply means that it encountered a file that was not a .wbp or .png file (such as .xml files) and is skipping over it. It is perfectly safe, and the error can be ignored.
Originally, I created this script so that it would delete the original .wbp files after it had finished generating the .pngs, but I decided to remove that functionality so that, should something go wrong in the decoding process, the user still has the originals, without having to decompile their apk again. In order to be able to recompile your apk, the .wbp files will have to be removed, once you have the .png equivalents. If anyone would like the script to remove them automatically, let me know and I can tell you how to add that functionality yourself.
Thank you,
~Morningstar
Click to expand...
Click to collapse
Ooo haha. Thanks for the PM bro.
So it only works on windows...
Is there an ETA for when the update will come for the iPhone bro?
Thanks bro.
Morningstar said:
Hello XDA,
Here's a simple script, brought to you by ALLIANCE and myself, that will allow you to easily convert the .wbp files found in many newer apps to more manageable .png files, either individually, or in batches. For other image formats, such as .pkm and .atc, please see my thread here.
***This script is currently for Windows only.***​
The script utilizes a tool called dwebp to handle the decoding. dwebp can be run by itself to convert .wbp files to .png via the command prompt with the following:
Code:
dwebp <inputfile.wbp> -o <outputfile.png>
It has other commands and options, but for our purposes, that's the only one we're interested in. For creating .wbp files from other image formats, you can use its' sister tool, cwebp. For more information or to download the entire WebP package, please visit Google Developers.
On to the script....
SETUP
Download the attached zip file, and extract it to a location of your choice. Inside, you will find four files: dwebp.exe, a copy of these instructions, and two batch files.
Select the two batch files, right-click, and select Create Shortcut.
Next, open the run dialog (Start > Run, or windows key + r), type in "sendto" without the quotes, and press enter.
Either move or copy the two shortcuts that you created into the sendto folder, then close it. Now you're ready to convert....
USAGE
To convert individual .wbp files, simply right-click on one, and select Send To > wbp2png (file). The script will run for a couple of seconds, and once it finishes, you will have a .png in the same folder as your .wbp, and with the same name.
To convert multiple .wbp files at once, select the folder containing them (drawable-xxhdpi, for example), right-click, select Send To > wbp2png (folder), and let it do its' magic. Once it's finished, you will have .png versions of any .wbp files contained in the folder.
During batch conversion, you will likely notice several lines in the cmd output that say BITSTREAM_ERROR. This simply means that it encountered a file that was not a .wbp or .png file (such as .xml files) and is skipping over it. It is perfectly safe, and the error can be ignored.
Originally, I created this script so that it would delete the original .wbp files after it had finished generating the .pngs, but I decided to remove that functionality so that, should something go wrong in the decoding process, the user still has the originals, without having to decompile their apk again. In order to be able to recompile your apk, the .wbp files will have to be removed, once you have the .png equivalents. If anyone would like the script to remove them automatically, let me know and I can tell you how to add that functionality yourself.
Thank you,
~Morningstar
Click to expand...
Click to collapse
False advertising. It are not like simpilish as you said. I want my dorrars back.
sparx said:
Will this work with linux or xposed?
Click to expand...
Click to collapse
You Linux is xposed?
Morningstar said:
Yes. It works with both. I don't even understand how it works with xposed, but it does. Flawlessly.
[emoji23]
Click to expand...
Click to collapse
Truth or another round of bs? You act like this is your world and your rules or something.
RErick said:
I don't understand. I tried to open this on my iPhone and nothing happened. Plz halp.
Click to expand...
Click to collapse
Just double tap home button and change to McDonald's icons. All will be g00d.
sparx said:
Ohhh bro! Downloading now!! You rock dude...alliance rules!!!!
Click to expand...
Click to collapse
Won't boot on Samsung Note 3. Be careful. Ps glad to see you got your Linux tucked back in.
RErick said:
Ooo haha. Thanks for the PM bro.
So it only works on windows...
Is there an ETA for when the update will come for the iPhone bro?
Thanks bro.
Click to expand...
Click to collapse
Dagnammit. He didn't pm me [emoji35]
Cowboy from Hell on a twisted trail.
Koffed From my Big Ass Outlaw Phone.
sparx said:
Will this work with linux or xposed?
Click to expand...
Click to collapse
RErick said:
I don't understand. I tried to open this on my iPhone and nothing happened. Plz halp.
Click to expand...
Click to collapse
RErick said:
Ooo haha. Thanks for the PM bro.
So it only works on windows...
Is there an ETA for when the update will come for the iPhone bro?
Thanks bro.
Click to expand...
Click to collapse
Bubbajoe40356 said:
False advertising. It are not like simpilish as you said. I want my dorrars back.
You Linux is xposed?
Truth or another round of bs? You act like this is your world and your rules or something.
Just double tap home button and change to McDonald's icons. All will be g00d.
Won't boot on Samsung Note 3. Be careful. Ps glad to see you got your Linux tucked back in.
Dagnammit. He didn't pm me [emoji35]
Cowboy from Hell on a twisted trail.
Koffed From my Big Ass Outlaw Phone.
Click to expand...
Click to collapse
Why are all these morons quoting the op....
{
"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"
}
Good work morningstar bro

			
				
txr33 said:
Why are all these morons quoting the op....
Good work morningstar bro
Click to expand...
Click to collapse
Pffft
Cowboy from Hell on a twisted trail.
Koffed From my Big Ass Outlaw Phone.
hey @Morningstar...added to my Image Converter. if you don't mind i'll just drop it here too.
now it BATCH resizes xxhdpi and converts .atc and .wbp images to png images
IMAGE RESIZERv2
thank you so much for this incredible tool
hello friends as you can convert jpg to wbp
thanks

Categories

Resources