[REQ]Zipalign Tool for windows - Android Apps and Games

hi guys, can i request a tool for windows for zipaligning a android app(sorry for my english) because i need that tool for zipaligning my modified systemui.apk and framework-res.apk
thanks... PLEASE REPLY! Dont be a newbie

R: [REQ]Zipalign Tool for windows
Renz29 said:
hi guys, can i request a tool for windows for zipaligning a android app(sorry for my english) because i need that tool for zipaligning my modified systemui.apk and framework-res.apk
thanks... PLEASE REPLY! Dont be a newbie
Click to expand...
Click to collapse
I'll make one tomorrow but you have to wait
Inviato dal mio GT-I9070 con Tapatalk 2

Zipalign
Ok here you are
A tool for zipaligning SystemUI.apk and framework-res.apk
It's automatic and user friendly so run the script and enjoy!

KINGbabasula said:
Ok here you are
A tool for zipaligning SystemUI.apk and framework-res.apk
It's automatic and user friendly so run the script and enjoy!
Click to expand...
Click to collapse
thanks bro...

KINGbabasula said:
Ok here you are
A tool for zipaligning SystemUI.apk and framework-res.apk
It's automatic and user friendly so run the script and enjoy!
Click to expand...
Click to collapse
@KINGbabasula
i can zipalign with apkmultitool ? if the answer is yes you can tell me how i can ? please

Javho said:
@KINGbabasula
i can zipalign with apkmultitool ? if the answer is yes you can tell me how i can ? please
Click to expand...
Click to collapse
Yes with option 5

Not to compete, but here's a more reusable script to zipalign any APKs...just place them in the folder named "Input", then run b-zipa.bat...they will be in "Output"...remember not to leave spaces between the names of the APKs..."b-zipa" actually means "Batch ZIPAlign", so you can place any number of APKs in "Input" and the script will zipalign them all...

KINGbabasula said:
Yes with option 5
Click to expand...
Click to collapse
but where should I put the file folder to zipalign?

For Windows OS users, I wrote a script to incorporate Zipalign.exe in Right-Click Context Menu for super easy zipalingn apk anywhere in your hard drive,,
Here is a pic from my PC after Right-Click and showing Context Menu.
{
"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 after Zipalingn process.
I will search my computer and share it with you all :laugh:

KINGbabasula said:
Yes with option 5
Click to expand...
Click to collapse
majdinj said:
For Windows OS users, I wrote a script to incorporate Zipalign.exe in Right-Click Context Menu for super easy zipalingn apk anywhere in your hard drive,,
Here is a pic from my PC after Right-Click and showing Context Menu.
And after Zipalingn process.
I will search my computer and share it with you all :laugh:
Click to expand...
Click to collapse
aaah and i got one question more, if possible zipalign .jar archives ? look like android.policy.jar ?

Javho said:
aaah and i got one question more, if possible zipalign .jar archives ? look like android.policy.jar ?
Click to expand...
Click to collapse
OK, I will do some changes to the script to support all android files..
Edit:
Done..
I opened a thread in Android Software and Hacking General Section..
http://forum.xda-developers.com/showthread.php?p=43950205#post43950205

thanks

KINGbabasula said:
Ok here you are
A tool for zipaligning SystemUI.apk and framework-res.apk
It's automatic and user friendly so run the script and enjoy!
Click to expand...
Click to collapse
This tool works great. Thank you for sharing it.

hi i made a small apk file for my company website, i use a link online to do the app but i cant upload it to the play store because the zipalign i have the apk file and i download Android Studio and eclipse and i update skd tools and everything ask for update
can anyone explain to me how i can zipalign the apk file i been searching for few days i got tried no one have post away how to import the apk file into Android Studio and eclipse
i really need to upload this apk file to the play store
all what it do after you open it it take you to the company website
ill attach the apk file might someone help me

Related

dissesembling android.policy.jar

ok i am having a hard time figuring out how to get the autoapktool to baksmali my android.policy.jar. i keep getting this error:
[*] C:\xdaAutoAPKTool_V3.0.2\_Jar_Files\android.policy.jar
decompiling C:\xdaAutoAPKTool_V3.0.2\_Jar_Files\android.policy.jar...
'jar' is not recognized as an internal or external command,
operable program or batch file.
Can't find the file _JAR_FILES\android.policy.dex\classes.dex
if anyone could help me with this i would be appreciative. or if maybe you know a better program to use to accomplish this task. any help would be amazing.
By the looks of it your typing a wrong command here
paste the one you type here and we'll correct it.
Riyal said:
By the looks of it your typing a wrong command here
paste the one you type here and we'll correct it.
Click to expand...
Click to collapse
It is an automatic tool I don't use any commands let me find the link.
Here it is http://forum.xda-developers.com/showthread.php?t=1053227
2nd post. Maybe a manual method would be better? A better tool?
try apktool it work wonders
{
"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"
}
download here: Link
Riyal said:
try apktool it works wonders
download here: Link
Click to expand...
Click to collapse
sweet!!!! thanks a lot it worked!!! could i get the command to put it back together?
mattlowry said:
sweet!!!! thanks a lot it worked!!! could i get the command to put it back together?
Click to expand...
Click to collapse
Should be apktool b android.policy. jar.out or whatever apktool named the folder
Sent from my myTouch_4G_Slide using Tapatalk 2
strapped365 said:
Should be apktool b android.policy. jar.out or whatever apktool named the folder
Sent from my myTouch_4G_Slide using Tapatalk 2
Click to expand...
Click to collapse
its telling me could not find resources
mattlowry said:
its telling me could not find resources
Click to expand...
Click to collapse
When you installed apktool did you run the apktool if miui-framework-res.apk to install miui resources
Sent from my myTouch_4G_Slide using Tapatalk 2
strapped365 said:
When you installed apktool did you run the apktool if miui-framework-res.apk to install miui resources
Sent from my myTouch_4G_Slide using Tapatalk 2
Click to expand...
Click to collapse
No but it worked it still created the jar file that fixed my screen orientation problem with miui
Big thanks to you guys for helping me out!!!!
Ok I guess it's solved but here's a little tip.
It's telling you "could not find resources" because android.policy.jar doesn't have any resources. It's just a plain dex file and no resources.arsc nor res folder. So it's not a bug or failed compilation it's just a warning
Also on some apks it should be asking you for unknown resource all you have to do is isntall all the needed resource files and it should fix almost all common problems.
Here's a couple of frameworks you could install.
SystemUI.apk
framework-res.apk
com.htc.resource.apk
framework-htc-res.apk
you could install it using
apktool if <framework file here>
for a list of commands just type "apktool"
Riyal said:
Ok I guess it's solved but here's a little tip.
It's telling you "could not find resources" because android.policy.jar doesn't have any resources. It's just a plain dex file and no resources.arsc nor res folder. So it's not a bug or failed compilation it's just a warning
Also on some apks it should be asking you for unknown resource all you have to do is isntall all the needed resource files and it should fix almost all common problems.
Here's a couple of frameworks you could install.
SystemUI.apk
framework-res.apk
com.htc.resource.apk
framework-htc-res.apk
you could install it using
apktool if <framework file here>
for a list of commands just type "apktool"
Click to expand...
Click to collapse
I'm learning so many things lately! I don't know what to do next......
mattlowry said:
I'm learning so many things lately! I don't know what to do next......
Click to expand...
Click to collapse
Sleep
Riyal said:
Sleep
Click to expand...
Click to collapse
best advice yet...lol

[Plugin-Win] Add Android App Zipaligning To The Right-Click Context Menu

Hello xda members,
I would like to share with you this handy plugin I made for Windows base machine PC.. I called it Easy Android App Zipaligning..
{
"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"
}
By just right-click on any android app stored anywhere on your hard drive, then Choose Android App Zipaligning and that's all,, your app will be zipaligned.. :laugh:
Installation:
#Installer way
Installer package (for Windows 32-bit only): Just extract "Easy Zipalign x86.rar" file and you will have the installer package, just install it normally like any other installer package and you are done.
#Manual way
Manual (for Windows 64-bit or 32-bit): Just extract "Easy Zipalign x64.rar" file, copy the content of "01- Copy content to system32 folder" folder into:
Code:
C:\Windows\System32
then run the registry file "02-ZipAlignRegx86.reg" and accept any prompt message and you are done.
Credits:
Google for Android SDK.
Future development:
Please feel free to report anything or suggestion for further development. Also any developer can take the script and manipulate it as he/she wants and can even release an improved release based on this plugin (just some credits to me will be nice )
Cheers...
I was just looking for something like this. Thank you
Sent from my Nexus 7 using Xparent Skyblue Tapatalk 2
cerj said:
I was just looking for something like this. Thank you
Sent from my Nexus 7 using Xparent Skyblue Tapatalk 2
Click to expand...
Click to collapse
Thanks.. waiting for feedback
Works great, thanks.
Is there any way to verify the zipalign work? I'm not doubting your skills, just curious.
Sent from a Shaftamle Galaxy S4
"Thanks Button" is always appreciated!
http://mycolorscreen.com/Shaftamle/
Shaftamle said:
Is there any way to verify the zipalign work? I'm not doubting your skills, just curious.
Sent from a Shaftamle Galaxy S4
"Thanks Button" is always appreciated!
http://mycolorscreen.com/Shaftamle/
Click to expand...
Click to collapse
yup.. if the app is not zipaligned and then zipaligned, there should be size different (even in byte level.!)
majdinj said:
yup.. if the app is not zipaligned and then zipaligned, there should be size different (even in byte level.!)
Click to expand...
Click to collapse
why after zipaligned file size was increased. and RAM used increased too ?
devilmaycry2020 said:
why after zipaligned file size was increased. and RAM used increased too ?
Click to expand...
Click to collapse
Zipalign only optimizes java classes source.. It will not optimize resources like images or compress the file..
RAM will depend on both source and resources optimization.
majdinj said:
Zipalign only optimizes java classes source.. It will not optimize resources like images or compress the file..
RAM will depend on both source and resources optimization.
Click to expand...
Click to collapse
Can you make something similar to sign apks?
Just what I need! Thanks!
it opens but does not save the file?says it was saved and i see the file name but i can't find it ?lol
Does it still works nowadays? Any update

[Q] Why can't I recompile modified apk?

I am trying to add 1% battery mod to my ROM. I decompiled my SystemUI.apk perfectly with the latest version of apktool. I modified the files I needed then I went to recompile using
Code:
apktool b -f -d SystemUI.apk SystemUI-new.apk
Here's (poor) screenshots of my errors:
{
"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 tried manually installing apktool in /usr/local/bin and I also tried Apk-Multi-Tool version 2.0. I'm running the latest version of Mint (17 I believe) and everything is up to date, including Java JRE. I cannot find any related help on Google so any help that u can give is greatly appreciated. Thx
Nick_73 said:
I am trying to add 1% battery mod to my ROM. I decompiled my SystemUI.apk perfectly with the latest version of apktool. I modified the files I needed then I went to recompile using
Code:
apktool b -f -d SystemUI.apk SystemUI-new.apk
Here's (poor) screenshots of my errors:
I tried manually installing apktool in /usr/local/bin and I also tried Apk-Multi-Tool version 2.0. I'm running the latest version of Mint (17 I believe) and everything is up to date, including Java JRE. I cannot find any related help on Google so any help that u can give is greatly appreciated. Thx
Click to expand...
Click to collapse
your error says your lacking of resourses., you need to install also your framework_res.apk, then try to decompile/recompile.,
edit: you can use this awesome tool to decimpile/compile apk or even deodexing., Tickle My Android (TMA) by @Ticklefish here:
http://forum.xda-developers.com/showthread.php?t=1633333
Use apkmultitool for a better experience. In this u dnt gve any command lines. There is a numbers for decompile & recompile . Hit >>>>>>> THANKS
Sent from my GT-S6102 using XDA Free mobile app
airupthere_23 said:
your error says your lacking of resourses., you need to install also your framework_res.apk, then try to decompile/recompile.,
edit: you can use this awesome tool to decimpile/compile apk or even deodexing., Tickle My Android (TMA) by @Ticklefish here:
http://forum.xda-developers.com/showthread.php?t=1633333
Click to expand...
Click to collapse
Say my name and I appear...
It's hard to know quite what the problem is here as the screenshots are missing most of the error message. Including the first error, which is often the key to solving the problem.
By the looks of things though, I would say that you haven't added your png files. These error messages are all saying that you have a reference to image files in your xml..but no actual image files.
(Oh, and TMA isn't available on Linux...yet. But if the OP has access to a Windows PC, I can definitely suggest it!)
Ticklefish said:
Say my name and I appear...
It's hard to know quite what the problem is here as the screenshots are missing most of the error message. Including the first error, which is often the key to solving the problem.
By the looks of things though, I would say that you haven't added your png files. These error messages are all saying that you have a reference to image files in your xml..but no actual image files.
(Oh, and TMA isn't available on Linux...yet. But if the OP has access to a Windows PC, I can definitely suggest it!)
Click to expand...
Click to collapse
Ha thx so much I think that's it I forgot to put my pngs on the system ui.
Fixed one issue, now I got these:
I didn't even modify the public.xml file...
Nick_73 said:
Fixed one issue, now I got these:
I didn't even modify the public.xml file...
Click to expand...
Click to collapse
You should never modify the public.xml file...
I'll be honest, it's really hard to tell what's going just from screenshots of part of the error. Can you provide the entire error message please? And it would help if you're able to provide the screen output from when you decompiled as well.
What type of phone/rom are you using?
Ticklefish said:
You should never modify the public.xml file...
I'll be honest, it's really hard to tell what's going just from screenshots of part of the error. Can you provide the entire error message please? And it would help if you're able to provide the screen output from when you decompiled as well.
What type of phone/rom are you using?
Click to expand...
Click to collapse
I didn't mod it...
When I get back on my computer I'll copy the whole thing

Download Samsung Galaxy S6 G920FXXU1AOBN System Dump

Download Samsung Galaxy S6 G920FXXU1AOBN System Dump
This is a system dump of Samsung galaxy S6 SM-G920F “G920FXXU1AOBN” build number (applications, fonts and media folders).
{
"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"
}
Downloads:
Download Links are in pink color.
app folder: contains *.apk system applications files.
priv-app folder: contains *.apk system applications files.
media folder: contains all *.qmg and *.ogg audio (notifications, ringtones, ui) files.
fonts folder: contains all *.ttf system font files.
( If you find my post useful, please push the Thanks button )
All downloads are set to private...
Manneman32 said:
All downloads are set to private...
Click to expand...
Click to collapse
+1
Manneman32 said:
All downloads are set to private...
Click to expand...
Click to collapse
It was working 2hrs ago, now its password?????
Galaxy N900 boa6 i tested dialer and caller id - not working
Manneman32 said:
All downloads are set to private...
Click to expand...
Click to collapse
sharawy1 said:
+1
Click to expand...
Click to collapse
JCrossleyBrook said:
It was working 2hrs ago, now its password?????
Click to expand...
Click to collapse
due to sharing without writing the source, thanks for understanding
zidroid . com/download-samsung-galaxy-s6-g920fxxu1aobn-system-dump/
Zi.Droid said:
due to sharing without writing the source, thanks for understanding
zidroid . com/download-samsung-galaxy-s6-g920fxxu1aobn-system-dump/
Click to expand...
Click to collapse
Anybody can deodex it
Breakcore_Rush said:
Anybody can deodex it
Click to expand...
Click to collapse
Check your inbox.
kmokhtar79 said:
Check your inbox.
Click to expand...
Click to collapse
Thanx bro im just finished testing your deodexed files, but fail they dont wont work=(
Breakcore_Rush said:
Thanx bro im just finished testing your deodexed files, but fail they dont wont work=(
Click to expand...
Click to collapse
Of course it's not easy, they need to be ported, need smali modification and other dependencies like permission and lib.
kmokhtar79 said:
Of course it's not easy, they need to be ported, need smali modification and other dependencies like permission and lib.
Click to expand...
Click to collapse
Im noob in smali=)if you can follow the usual XML just its own logic, the smal I do not know, perhaps you need to be a professional programmer
kmokhtar79 said:
Of course it's not easy, they need to be ported, need smali modification and other dependencies like permission and lib.
Click to expand...
Click to collapse
framework, permissions, lib links are available
Thread closed as you already have one open in the Galaxy S6 forums. Please do not repost across multiple forums as this is considered spamming.
Download Samsung Galaxy S6 G920FXXU1AOBN System Dump

Create CUSTOM Rom for Beginners.. Easiest Method(No programming needed)

Are you trying to create you own custom ROM?? Well today i will share with you,the easiest way to create your own Custom Rom
Requirements
[*]ROM for your device provided by your manufacturer. You can download it from their website.
[*]Notepad ++
[*]7zip
Lets get started ..
First of all download and extract the ROM files.
{
"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"
}
Next, go to system>app. There you can add or remove the apk files you want. Do not delete apk required for the working of your system.
After doing that go to system>build.prop. Then edit it with Notepad++.
Then search for "ro.modversion=" and type the name for your rom and save the file. See image for details.
Next go to meteinf/com/google/android/updater-script,Only if you want to add your logo ie) in the form of keyboard symbols.Edit it with Notepad++
Then starting from the first line type ui_print(" "); ,and inside the " " symbol type the keyboard symbol that you want.
Now add this folder to zip ie) compress the files using 7zip.
Now if you want to change the default wallpaper with your wallpaper
Double click the zip file you created (Do not Extract)
Go to system >framework>framework-res.apk>res>drawable-nodpi>default_wallpaper.jpg (this will be the current wallpaer)
Rename your wallpaer to "default_wallpaper" and then drag it into the zip and replace it with the default one.
Then click back icon untill a message is displayed for confirming the change you made ,and click yes.:good:
Now the final step
Put this zip file in your device and flash your device with CWM or TWPR.:good::good::good:
You are all done..:good::good:
If this helped you,please like my post and do donate:good:
Post created by
thanks for the info
lonely_driver said:
thanks for the info
Click to expand...
Click to collapse
You are always welcome :good:
Solid thanks
kash55 said:
:good:
Click to expand...
Click to collapse
Very noob friendly. I like it.
nashj1975 said:
Very noob friendly. I like it.
Click to expand...
Click to collapse
Tanks..
What about Samsung ROMs? I think the procedure is a bit different with those tar.md5 firmwares. Can I simply repack the ROM as tar.md5 and flash it? Or is there something else?
Sent from my SM-G920F
is there a video tutorial of this??
Thanks a bunch, very nice tutorial indeed. A bit basic which is wonderful for those who just entered the scripting world in android.
True
Thanks for the information.
I will try this guide out
tra_dax
Is that really so easy ????
I mean, the developers (for example cyanogenmod) needs "a lot of time" to bring out a stable Version
Thanks ?
Thanks a lot, again thank you very much
thanks man, i'm trying now
Inviato dal mio SM-G900F utilizzando Tapatalk
puzzle29 said:
Is that really so easy ????
I mean, the developers (for example cyanogenmod) needs "a lot of time" to bring out a stable Version
Thanks
Click to expand...
Click to collapse
Actually we are only adding new apps and our emblem in the rar file.. we are not making any changes in the codes as they are stock rom... if you want to make changes to the code you must have a deep knowledge about the programming
adithyan25 said:
Actually we are only adding new apps and our emblem in the rar file.. we are not making any changes in the codes as they are stock rom... if you want to make changes to the code you must have a deep knowledge about the programming
Click to expand...
Click to collapse
How is the best way to learn programming to get this knowledge ?
First of all..you must understand how the codes work..then you have to run the same to male sire that tje chances of errors are less... And them compile it...
puzzle29 said:
How is the best way to learn programming to get this knowledge ?
Click to expand...
Click to collapse
There are many tutorials available in youtube...first you must learn basics from the videos and then try to understand the coding
All the best
Bookmarked this. I will try it for sure. Thank you very much for the very simple and friendly guide.

Categories

Resources