[Guide / LP 5.1.1] Decompile and recompile your apk (Windows) (Update 10/09) - Xperia Z2 Android Development

1) Use Advanced ApkTool v4.1.0 and install it on your computer,
2) Download apktool v2.0.1 and rename it apktool.jar,
2) Replace the old apktool.jar by the new one in 1-BDfreak,
3) Launch Advanced ApkTool, install the framework, decompile your apk, do your modifications, recompile with sign and zipalign,
4) Open your new apk (with winrar for instance) and replace the META-INF folder and androidmanifest.xml by the ones of your old apk.
That's all

thanks..can you tell me what zipalign means and does? because previously i was just doing recompile and sign and i wasnt getting any problems

arismelachrinos said:
thanks..can you tell me what zipalign means and does? because previously i was just doing recompile and sign and i wasnt getting any problems
Click to expand...
Click to collapse
Just google it
zipalign is an archive alignment tool that provides important optimization to Android application (.apk) files. The purpose is to ensure that all uncompressed data starts with a particular alignment relative to the start of the file. Specifically, it causes all uncompressed data within the .apk, such as images or raw files, to be aligned on 4-byte boundaries. This allows all portions to be accessed directly with mmap() even if they contain binary data with alignment restrictions. The benefit is a reduction in the amount of RAM consumed when running the application.

Nice guide bro. Btwn signing and zip align is not necessary..

Brothers
Tray AWESOME tool @Ticklefish
Tickle My Android 10.2 - The Best Android Theming Tool...EVER!! by
Its sign app without any problems
I have used this method, but soon as you copy from the original application AndroidManifest.xml that some values do not work. This also limits the modification miozliwosci app
Better use apktool v2.0.0 SnapShot
@Ticklefish again thanks YOU ARE AWESOME

Ambor said:
Brothers
Tray AWESOME tool @Ticklefish
Tickle My Android 10.2 - The Best Android Theming Tool...EVER!! by
Click to expand...
Click to collapse
Thanks bro, I'll try it !!

Yes @Ambor bro.. Just now tried @Ticklefish 's tool with Lolipop.. Its awsom... Loving it..

Everything OK but can't decompile my themes with any of this softwares. I installed framework from my z2's new 5.1.1 still can't decompile. Any solution

Toxizen said:
Everything OK but can't decompile my themes with any of this softwares. I installed framework from my z2's new 5.1.1 still can't decompile. Any solution
Click to expand...
Click to collapse
Are you getting any errors?
Sent from my D5803 using Tapatalk

Ticklefish said:
Are you getting any errors?
Sent from my D5803 using Tapatalk
Click to expand...
Click to collapse
Yes and I also get error while signing too. error 26 or something

Toxizen said:
Yes and I also get error while signing too. error 26 or something
Click to expand...
Click to collapse
If you can share those errors, it'll help solve what the problem is.

Error
Ticklefish said:
If you can share those errors, it'll help solve what the problem is.
Click to expand...
Click to collapse
Sorry for my late reply . I wasn't at home .
{
"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"
}

Toxizen said:
Sorry for my late reply . I wasn't at home .
Click to expand...
Click to collapse
Did you install SemcGenericUxpRes.apk?

Ticklefish said:
Did you install SemcGenericUxpRes.apk?
Click to expand...
Click to collapse
Yes I did everything. But same problem with my themes. But it managed to decompile my Systemui.apk. So I am thinking it might be the problem with my apk file only so I provide it here. Test and let me know why this is happening please.
But nice tool u made.
https://drive.google.com/file/d/0B4TWfrb9-m18anlOT1UtdmlzamM/view?usp=docslist_api

Toxizen said:
Yes I did everything. But same problem with my themes. But it managed to decompile my Systemui.apk. So I am thinking it might be the problem with my apk file only so I provide it here. Test and let me know why this is happening please.
But nice tool u made.
https://drive.google.com/file/d/0B4TWfrb9-m18anlOT1UtdmlzamM/view?usp=docslist_api
Click to expand...
Click to collapse
Oh, you used TMA! I didn't spot it...
I'm having the same problem decompiling your file. Looks like there's a resource that can't be decoded. Sorry about that.

Update 10/09
OP updated for 5.1.1.

nreuge said:
OP updated for 5.1.1.
Click to expand...
Click to collapse
Well i have found TMA is better and amazing.. There is no need to replace anything in apks after recompile. Just recompile apk with same sign option in TMA. Lot of awsom options available in TMA. You should try that mate.. A big thanks to @Ticklefish ma broooooo

Rajeev said:
Well i have found TMA is better and amazing.. There is no need to replace anything in apks after recompile. Just recompile apk with same sign option in TMA. Lot of awsom options available in TMA. You should try that mate.. A big thanks to @Ticklefish ma broooooo
Click to expand...
Click to collapse
Ok my friend, good to know that. I'll try
Thanks !!

Related

[APKTOOL ICS + JB] [Works wonders] [UPDATED]

Check the read me inside the file.
Automatically grabs framework-res.apk for you and has some tips for folder organisation while working.
Let me know how this works for you.
If you're using the old version delete it entirely and use this one. Don't forget to update your framework files if you move to Jelly Bean development.
New Version:
{
"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"
}
Kryten2k35 Apktoolv3
http://www.alpha-techs.co.uk/files/matt/mods/apktool/apktoolv3.zip
Old Version - Possible errors. Don't use!
http://www.alpha-techs.co.uk/files/matt/mods/apktool/apktoolv2.rar
http://www.alpha-techs.co.uk/files/matt/mods/apktool/apktool.rar
uhm this has been working for ages like this
Thanks for the share.. works great.
Yep I need this as well thanks
Sent from my GT-I9300 using xda premium
Robbie Hood said:
uhm this has been working for ages like this
Click to expand...
Click to collapse
I tried afair few and many wouldn't work or threw up errors. Some wouldn't decompile with the classes.dex in there (meaning you couldn't get to the smali files).
I'd been looking around for ages and stumbled upon this. Credit really does go to whoever I downloaded it from initially but I have no idea who it is! The Read_Me.txt is my own!
Thread updated. Please delete the old version if you got that one.
how i can solve ?
great share!thank you so much for the great job.
sarperkaya said:
how i can solve ?
Click to expand...
Click to collapse
Looks like something you changed isn't compiling?
You should run it like the commands in the Read_Me because java -jar apktool.jar aren't the commands I tested with. The apktool.bat does things different to that was well
Try this:
Hold shift and right click in that folder. Choose "Open command window from here" and type apktool b secsettings new/SecSettings.apk
That will put your built apk in a folder called "new". Though I really do prefer the way I laid out there.
Kryten2k35 said:
Looks like something you changed isn't compiling?
You should run it like the commands in the Read_Me because java -jar apktool.jar aren't the commands I tested with. The apktool.bat does things different to that was well
Try this:
Hold shift and right click in that folder. Choose "Open command window from here" and type apktool b secsettings new/SecSettings.apk
That will put your built apk in a folder called "new". Though I really do prefer the way I laid out there.
Click to expand...
Click to collapse
thanks but didnt work
Kryten2k35 said:
I tried afair few and many wouldn't work or threw up errors. Some wouldn't decompile with the classes.dex in there (meaning you couldn't get to the smali files).
I'd been looking around for ages and stumbled upon this. Credit really does go to whoever I downloaded it from initially but I have no idea who it is! The Read_Me.txt is my own!
Click to expand...
Click to collapse
Ah ok might be because we have our own compiled apktool at alliance and maybe this is it
I cant remember for how long i have been using apktool to decompile classes.dex.
Not sure if this is ours , but good job in sharing for the masses here
sarperkaya said:
thanks but didnt work
Click to expand...
Click to collapse
Try swapping the compile and decompile around, then? I had to do that earlier for some reason.
When I've got used to debugging I'll be able to help more!
Sent from my GT-I9300 using xda premium
It's the 1.4.2 and 1.4.4 versions of apktool I've added some more to the .rar though, some automation for example! There is a "how to decompile" pages on here I got some info from.
I'm still learning this stuff though. If you know any good resources and some reading material I'd be super grateful!
Sent from my GT-I9300 using xda premium
Kryten2k35 said:
It's the 1.4.2 and 1.4.4 versions of apktool I've added some more to the .rar though, some automation for example! There is a "how to decompile" pages on here I got some info from.
I'm still learning this stuff though. If you know any good resources and some reading material I'd be super grateful!
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
What kind of info are u lookin for mate ?
---------- Post added at 03:50 AM ---------- Previous post was at 03:47 AM ----------
http://db.tt/wo1XSzuf
Here is our alliance apktool compiled by ficeto. Not sure if it differs from what u have gathered but we have been using this since release of ics and like i said cant remember the last time i needed to take classes.dex out an apk for decompiling.
Robbie Hood said:
What kind of info are u lookin for mate ?
---------- Post added at 03:50 AM ---------- Previous post was at 03:47 AM ----------
http://db.tt/wo1XSzuf
Here is our alliance apktool compiled by ficeto. Not sure if it differs from what u have gathered but we have been using this since release of ics and like i said cant remember the last time i needed to take classes.dex out an apk for decompiling.
Click to expand...
Click to collapse
Anything to help me on my way, understanding the XML documents and themeing in general. Then I'll want to move onto programming properly, maybe even writing a few apps! I'll start with theming and the XML docs though!
Kryten2k35 said:
Anything to help me on my way, understanding the XML documents and themeing in general. Then I'll want to move onto programming properly, maybe even writing a few apps! I'll start with theming and the XML docs though!
Click to expand...
Click to collapse
I think you can find enough documentation about theming here on xda.
The xmls are quite logical if u take your time to read .
Offcourse there is android open source project home page where u can find refferences on what all tags mean and do .
http://developer.android.com/
Http://source.android.com/
I wouldnt know where to start if u ask such a global question
No that's great! Cheers!
Sent from my GT-I9300 using xda premium
Not working properly
manikant_009 said:
Not working properly
Click to expand...
Click to collapse
Any more information than that?
Updated to apktool 1.5 - No more swapping files!
Don't forget to update your framework files if you move to Jelly Bean development.

STATUS BAR RIGHT CLOCK FOR SGS3 ROM (All Versions) By SniperKiller

This is the Status Bar(systemui.apk) with right clock for SGS3 Rom (All Versions) By SniperKiller
Replace the SystemUI.apk with this using android commander
Sorry I am a Newbie i dont know to create cwm flashable zips
Thanks to
SniperKiller for his awesome Rom (P.S I love it )
Thankyou
HIT THANKS IF YOU LIKE IT
Reserved
Wow , thank you but first you should asked me for the permission ! Anyway , no problem. How did you decompile it successfully ? I always had errors.
Sniper Killer said:
Wow , thank you but first you should asked me for the permission ! Anyway , no problem. How did you decompile it successfully ? I always had errors.
Click to expand...
Click to collapse
Permission is GENERALLY needed for using something to build another thing, not for same ROM according to me. If permission was to be asked for even contribution, there would have been no themes for several ROMs
Yep you are right Sorry
Sent from my GT-I9300 using Tapatalk 2
SREEHARI.NAIR said:
This is the Status Bar(systemui.apk) with right clock for SGS3 Rom (All Versions) By SniperKiller
Replace the SystemUI.apk with this using android commander
Sorry I am a Newbie i dont know to create cwm flashable zips
Thanks to
SniperKiller for his awesome Rom (P.S I love it )
Thankyou
HIT THANKS IF YOU LIKE IT
Click to expand...
Click to collapse
here's a tut for creating flashable zip
http://forum.xda-developers.com/showthread.php?t=1721680
what is android commander ?
can yo Explain how to do it
a7med mo7sen said:
what is android commander ?
can yo Explain how to do it
Click to expand...
Click to collapse
Just use any file explorer like root explorer, es file manager etc
Copy the systemui.apk in system /app,change permission to rw,r,r and reboot!
If u still can't understand click "working inside root directory" in my signature!
Sent from mass relay
Yeah it works... !!!!
Yeah good...
It works... Well done.. !!!
But the signal bar is different...
Can you pls change it. Its like this(Screenshot given below....)
{
"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"
}
No problem , i have fixed it ( Signal Bars ) Just replace some pngs in SystemUI
Sniper Killer said:
No problem , i have fixed it ( Signal Bars ) Just replace some pngs in SystemUI
Click to expand...
Click to collapse
Wow thanks.. !!
Where is the new updated "SystemUI" ? I can't find the link...
js2892 said:
Just use any file explorer like root explorer, es file manager etc
Copy the systemui.apk in system /app,change permission to rw,r,r and reboot!
If u still can't understand click "working inside root directory" in my signature!
Sent from mass relay
Click to expand...
Click to collapse
i do what you say twice and didn't work !
btw thanks for help !
a7med mo7sen said:
i do what you say twice and didn't work !
btw thanks for help !
Click to expand...
Click to collapse
You must use root explorer full version. Then do it step by step carefully. I did it. U can see the screen shot on previous page on my post.
You must use root explorer full version. Then do it step by step carefully. I did it. U can see the screen shot on previous page on my post
it works with root explorer full version
thanks man
a7med mo7sen said:
You must use root explorer full version. Then do it step by step carefully. I did it. U can see the screen shot on previous page on my post
it works with root explorer full version
thanks man
Click to expand...
Click to collapse
You r welcome...
Signal Bars fixed
I uploaded it. Just for them that doesn't know how to edit framework files/pngs.
Please , SLEHARI , can you decompile SystemUI.apk again and upload the files here ( The decompiled files ) because i can't decompile it. I would appreciate that.
Sniper Killer said:
Please , SLEHARI , can you decompile SystemUI.apk again and upload the files here ( The decompiled files ) because i can't decompile it. I would appreciate that.
Click to expand...
Click to collapse
Man, I gave you solution
Add Java in path variable
And use VTS
iamareebjamal said:
Man, I gave you solution
Add Java in path variable
And use VTS
Click to expand...
Click to collapse
I did that -.- It didn't work. The problem is with systemUI. If it works for you than please make it for me.
Sniper Killer said:
I uploaded it. Just for them that doesn't know how to edit framework files/pngs.
Click to expand...
Click to collapse
Wow thanks...
It works....

[TOOL][BETA]Miui Theme Converter/Convert apk Themes!!!

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hello everyone,I've been using Miui for a 3 month and I love Miui roms
But there's a little thing that I always wanted.Using every single themes on miui roms.
So that day came and I just created a simple application :victory:
Application developed with Visual Basic Express in Windows 8.I'm not expert programmer but I made my best.
Here's a simple screenshoot of application
​
Changelog
Beta 0.2 :
*"This is not theme apk" error fixed.
*Mini icon preview fixed.
*Fixed app crash without images
Beta 0.1 :
*First release
Need net framework 4 for use
Simple Usage:
1.Click File>Open>Apk.file for choose apk
2.When read complete edit some description and choose some preview images if you want.
Click application for change icons if you want.
Addding new applications will soon.
3.Click File>Save>Save as theme and that's it.
4.Import theme from theme app in miui
5.Go mix and choose icons
Simple isnt it ?
Thanks:
Codeplex for creating awesome dotnetzip library.I didnt include in exe file.I didnt rename dll file.I support their work :good:
Notes:
I didnt create an installer for beta versions.All you have to is unrar archive and open .exe file
Do not delete .dll or you cant open application.
Dont forget this is still BETA and please review about application.
I'll try this out and get back too you
Sent from my Miui Nexus 4 using Tapatalk 4
What does this exactly do?
ermacwins said:
What does this exactly do?
Click to expand...
Click to collapse
This tool read apk files and covert them to miui theme files
LegendM said:
This tool read apk files and covert them to miui theme files
Click to expand...
Click to collapse
So I can put say YouTube apk and it would make an miui icon?
I tried opening an apk file and after trying to read it said this is not a theme apk file. It was a Touchwiz cm apk theme file
Zehlek said:
I'm trying it now, but it sounds like it will convert a CM theme to Miui
Click to expand...
Click to collapse
No,you have to read android theme apk file.Download any icon theme from play store and check that
Btw thread updates,fixed tons of errors
Great news, will try it tomorrow and give you Feedback, thank you so far.
__________________________________
gesendet via Brieftaube namens Tapa
Cmon people this is awesome tool. Just enjoy it
GT-I9300 cihazımdan Tapatalk 2 ile gönderildi
@LegendM
I´m running Windows XP (yes, still alive ) and he gives me an error that i have to install NET.framework v4.0.30.319 first
I had to install it from Microsoft's website
Sent from my Miui Nexus 4 using Tapatalk 4
vivalasven said:
@LegendM
I´m running Windows XP (yes, still alive ) and he gives me an error that i have to install NET.framework v4.0.30.319 first
Click to expand...
Click to collapse
Zehlek said:
I had to install it from Microsoft's website
Sent from my Miui Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
Thanks for feedback
This is weird because I didnt use net framework 4 library,anyway I'll include exe for install :good:
Edit:Nvm i cannot find any app for do that,so I cannot create a tool myself
it's better to replace " Application and activities list " with real app name, it will be more helpful
btw, awesome work ! 5 star added
Nice works :good:
tung91 said:
it's better to replace " Application and activities list " with real app name, it will be more helpful
btw, awesome work ! 5 star added
Click to expand...
Click to collapse
Yep, I wanna do that to .But there's no archive that all application names stored.Not even apk
LegendM said:
Yep, I wanna do that to .But there's no archive that all application names stored.Not even apk
Click to expand...
Click to collapse
because you get activites from appfilter.xml, you can get package name by split componnent info by "/" then you can get name from http://activities.droidicon.com/get-activities.php?q=PACKAGE_NAME and parse json result or playstore market
Sorry for my bad english, just want to help your program better :good:
tung91 said:
because you get activites from appfilter.xml, you can get package name by split componnent info by "/" then you can get name from http://activities.droidicon.com/get-activities.php?q=PACKAGE_NAME and parse json result or playstore market
Sorry for my bad english, just want to help your program better :good:
Click to expand...
Click to collapse
Here is Touchwiz icons if anyone wants it. Hopefully we will be able to convert whole themes to Miui eventually
tung91 said:
because you get activites from appfilter.xml, you can get package name by split componnent info by "/" then you can get name from http://activities.droidicon.com/get-activities.php?q=PACKAGE_NAME and parse json result or playstore market
Sorry for my bad english, just want to help your program better :good:
Click to expand...
Click to collapse
I know that,I can convert them easily.But like is said this website still doesnt have all apps
Anyway I have something in my mind
Thanks for you help :good:
Small up for this awesome tool

PlayStore 5.0.31 decompiled and compiled Play Store files from EMSpilot

PlayStore 5.0.31 decompiled and compiled Play Store files from EMSpilot
Now you can decompile mod theme and compile. You must use APKTOOL RC2.
APKTOOL RC2 Get it here: http://forum.xda-developers.com/showthread.php?t=1755243
Enjoy!!
Download Here: PlayStore 5.0.31
Please don't forget to hit thanks!!!!
This fixed Play Store 5.0.31 APK works perfect with APKTOOL RC2 and the proper resources. You do not need to delete anything from values-v21/styles.xml or any other xml. If you are having to do this then you have a problem with your APKTOOL setup or resources!!!
Ok so I see that quit a few people are using the wrong resources aka framework-res.apk. So here is a zip of my entire RC2 setup with the proper framework-res.apk included. Make sure you type at the command prompt: apktool if framework-res.apk. then proceed.
Also make sure you are taking the APK from the dist folder in the zip to decompile.
Download: APKTOOL RC2 Setup
For those of you that are having problems with values-v21/styles.xml. Look for the following lines: There may be more but I am just explaining why you are having problems.
Line 46: <item name="android:findOnPageNextDrawable">@android:drawable/ic_find_next_holo_dark</item>
Line 50: <item name="android:findOnPageNextDrawable">@android:drawable/ic_find_next_holo_dark</item>
Line 159: <item name="android:textEditNewActionPopupShare">@android:drawable/ic_find_next_holo_dark</item>
What we see here is that APKTOOL is looking for the resource in framework-res.apk. All 3 are a drawable png "ic_find_next_holo_dark". If this is not present in the framework-res.apk you used with the "if Command". It won't work.
Please also thank djdarkknight96 for his contribution and help!
Amaign work to take the time to figure out all the issues and how to overcome them and make this available for us simple themers to do something with it..
My hat is tipped off to you sir!
That was fast! Great work EMSpilot. Many, many, are grateful.
@EMSpilot
Awesome tool and great work as usual Bill.
{
"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"
}
Getting all the same errors as before with values-v21
Phone_Guru said:
Getting all the same errors as before with values-v21
Click to expand...
Click to collapse
No Errors, you need ot use the Apktool RC2, linked in the OP, and this thing has no issue compiling.
Also, make sure you have at least Framework 4.4.2 or above loaded..
I am using RC2, have 4.4.2 frameworks and still compiling errors
Phone_Guru said:
I am using RC2, have 4.4.2 frameworks and still compiling errors
Click to expand...
Click to collapse
Please download OP's Market apk... If you down load that decompile it, and then recompile, should work out the box, many have been working on it all night with no issues.
OP only has the files, not the market app
Phone_Guru said:
OP only has the files, not the market app
Click to expand...
Click to collapse
It's what I meant, you might actually get some help if you post what errors you are seeing, instead of just comingin and saying doesn't work. I have been working on mine for last 8 hours. And You are not giving any real information. i have been trying to..
Your should say what you mean then. I can't decompile those like you said in your previous post. I have downloaded them, obviously, and have the original errors from styles.xml in the values - v21 folder as before the OP posted his files.
Phone_Guru said:
Your should say what you mean then. I can't decompile those like you said in your previous post. I have downloaded them, obviously, and have the original errors from styles.xml in the values - v21 folder as before the OP posted his files.
Click to expand...
Click to collapse
Sir, I have been very patience trying to guide you through and help you.. Sorry you dont feel I was helpful except to point out I should have asked.
I help tons fix their problems and theme. But I missed my mark on this one, happens, so I will let someone else try to figureout what you need and help you sir..
I respectfully bow out kind sir.
Gunthermic said:
Sir, I have been very patience trying to guide you through and help you.. Sorry you dont feel I was helpful except to point out I should have asked.
I help tons fix their problems and theme. But I missed my mark on this one, happens, so I will let someone else try to figureout what you need and help you sir..
I respectfully bow out kind sir.
Click to expand...
Click to collapse
Just in time too. I just sorted it out. I reinstalled the frameworks that I was using already which left me with only 4 lines to delete from the styles.xml in the values-v21 folder and then it compiled.
Thanks for helping.
PlayStore 5.0.31
Phone_Guru said:
Just in time too. I just sorted it out. I reinstalled the frameworks that I was using already which left me with only 4 lines to delete from the styles.xml in the values-v21 folder and then it compiled.
Thanks for helping.
Click to expand...
Click to collapse
Glad you were able to work your problems out. If you use the proper APKTOOL RC2 setup and resources you do not need to modify or delete any lines in any xml files. This fixed Play Store 5.0.31 APK in this OP works Perfect as is.
Awesome, thanks buddy.
EMSpilot said:
PlayStore 5.0.31 decompiled and compiled Play Store files from EMSpilot
Now you can decompile mod theme and compile. You must use APKTOOL RC2.
APKTOOL RC2 Get it here: http://forum.xda-developers.com/showthread.php?t=1755243
Enjoy!!
Download Here: PlayStore 5.0.31
Please don't forget to hit thanks!!!!
This fixed Play Store 5.0.31 APK works perfect with APKTOOL RC2 and the proper resources. You do not need to delete anything from values-v21/styles.xml or any other xml. If you are having to do this then you have a problem with your APKTOOL setup or resources!!!
Please also thank djdarkknight96 for his contribution and help!
Click to expand...
Click to collapse
bless your heart
@EMSpilot, would you mind sharing the specifics of what you did to achieve this? did you modify apktool source?
APKTOOL source
dankoman said:
@EMSpilot, would you mind sharing the specifics of what you did to achieve this? did you modify apktool source?
Click to expand...
Click to collapse
No I did not modify APKTOOL source. I used APKTOOL RC2 as mentioned in the OP. If you decompile my PlayStore 5.0.31 and Google's stock PlayStore 5.0.31 you can use WinMerge or Beyond Compare to see my changes.
EMSpilot said:
No I did not modify APKTOOL source. I used APKTOOL RC2 as mentioned in the OP. If you decompile my PlayStore 5.0.31 and Google's stock PlayStore 5.0.31 you can use WinMerge or Beyond Compare to see my changes.
Click to expand...
Click to collapse
Well I'm using CM11 framework and the correct aapt and on building its giving me attr errors in v21 folder. I know I'm doing it right but might need a different framework I assume.
Thoughts?
resourcers
djdarkknight96 said:
Well I'm using CM11 framework and the correct aapt and on building its giving me attr errors in v21 folder. I know I'm doing it right but might need a different framework I assume.
Thoughts?
Click to expand...
Click to collapse
Yes it will only work with the proper resources aka framework-res.apk. Here is a link to my entire RC2 Setup with the proper framework-res.apk.
APKTOOL RC2 Setup

APKTOOL scripts for Windows (updated)

{
"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"
}
So, I figured I would share something that I made along with the help of another developer friend @dwitherell
You must have apktool setup in the Windows path to run from anywhere
How it works:
unzip files
copy the scripts folder to the root of c:\
double click compile.reg and decompile.reg, this will add the entries to the registry
You can decompile and compile up to 10 at once. Not sure why its limited to 10.
This is tested working on Windows 10. Please let me know if it works for other versions as I will add that to the description.
Please do NOT ask how to setup apktool, you need to already know that much.
whats included in the zip...
compile.reg
decompile.reg
Maximum level of decompiling raised (V2)
scripts folder containing both .bat files
Download it here
Download V2 with raised level of decompiling here
Now to use it:
On an apk, right click and you will see a new option called Decompile. Select that, then it will decompile it in the folder you currently are
On an already decompiled apk folder, right click and Compile option will appear. Select that and it will compile the apk
Maxed_Apktool.reg
Code:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
"MultipleInvokePromptMinimum"=dword:00000999
thanks @Licaon_Kter for the addition.
decompile.reg
Code:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Run script]
@="Run &script"
[HKEY_CLASSES_ROOT\*\shell\Decompile\command]
@="\"C:\\scripts\\decompile2.bat\" \"%1\""
decompile2.bat
Code:
@echo off
set args=%*
setlocal enableDelayedExpansion
set "cmd=!cmdcmdline!"
set "cmd2=!cmd:*%~f0=!"
set "args=!cmd2:~0,-1! "
set "args=!args:* =!"
for %%F in (!args!) do (
if "!!"=="" endlocal
apktool.bat d -f "%%~F"
)
PAUSE
compile.reg
Code:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Run script]
@="Run &script"
[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\Compile\command]
@="\"C:\\scripts\\compile.bat\" \"%1\""
[HKEY_CLASSES_ROOT\Directory\shell\Compile\command]
@="\"C:\\scripts\\compile.bat\" \"%1\""
compile.bat
Code:
@echo off
set args=%*
setlocal enableDelayedExpansion
set "cmd=!cmdcmdline!"
set "cmd2=!cmd:*%~f0=!"
set "args=!cmd2:~0,-1! "
set "args=!args:* =!"
for %%F in (!args!) do (
if "!!"=="" endlocal
apktool.bat b -f "%%~F"
)
PAUSE
Awesome I'll have to try this later ?
Great thank you!
Amazing work! Can I recompile an apk which hasnt been decompiled with this method? I've the folder so I can recompile?
I got it set up and running last night, works great! Makes things easier and faster. Just make sure you have apktool up and running correctly first.
DOWNLOADING for further test.. i'll report back later
thanks..
Has.007 said:
Amazing work! Can I recompile an apk which hasnt been decompiled with this method? I've the folder so I can recompile?
Click to expand...
Click to collapse
No, it has to be decompiled to recompile it again.
What is the newest version of APKtool? I found 2.2.2 on the site, but it seems to have issues with the Nougat files for my LG V20.
I've used it on Windows 10 and Ubuntu, same results.
NotATreoFan said:
What is the newest version of APKtool? I found 2.2.2 on the site, but it seems to have issues with the Nougat files for my LG V20.
I've used it on Windows 10 and Ubuntu, same results.
Click to expand...
Click to collapse
https://www.dropbox.com/s/rtv489v0gkfp0y9/apktool2.zip?dl=0
Try that one. It says dirty, but that hasn't affected anything. I got that from somewhere when the v20 first came out.
And its what i am using for my v20 work. So i know that one will work.
cbucz24 said:
https://www.dropbox.com/s/rtv489v0gkfp0y9/apktool2.zip?dl=0
Try that one. It says dirty, but that hasn't affected anything. I got that from somewhere when the v20 first came out.
And its what i am using for my v20 work. So i know that one will work.
Click to expand...
Click to collapse
Thanks! Have you done anything with SystemUI? I ran into issues after modifying it for 3Minit support.
NotATreoFan said:
Thanks! Have you done anything with SystemUI? I ran into issues after modifying it for 3Minit support.
Click to expand...
Click to collapse
I haven't rooted. I ran into some issues so i gave up.
I havent tried any mods.
cbucz24 said:
I haven't rooted. I ran into some issues so i gave up.
I havent tried any mods.
Click to expand...
Click to collapse
Oh OK. I'll give yours a shot and see if it works.
NotATreoFan said:
Oh OK. I'll give yours a shot and see if it works.
Click to expand...
Click to collapse
Ok let me know if you have any issues. I'll try an help
cbucz24 said:
[*]You can decompile and compile up to 10 at once. Not sure why its limited to 10.
Click to expand...
Click to collapse
Try this: https://support.microsoft.com/en-us...hortened-when-more-than-15-files-are-selected and put 999
Licaon_Kter said:
Try this: https://support.microsoft.com/en-us...hortened-when-more-than-15-files-are-selected and put 999
Click to expand...
Click to collapse
Good find. Ill try that and see what happens.
According to the link it should be 15 not 10. I'm not at my pc now to test it.
But it says if you change it to 16, that's Microsoft's unlimited amount.
Maybe i can incorporate that into my registry mods.
Hi all, if this can decompile and re compile, can i change or modify a camera app to support 1440x2560 for lg g3 ? It currently only display well in 1080x1920, so i have to downgrade my display setting. Can someone be kind enough to direct me to which files or folder to begin with and do i have to create or modify some xml code ? Thanks
Jason Looi said:
Hi all, if this can decompile and re compile, can i change or modify a camera app to support 1440x2560 for lg g3 ? It currently only display well in 1080x1920, so i have to downgrade my display setting. Can someone be kind enough to direct me to which files or folder to begin with and do i have to create or modify some xml code ? Thanks
Click to expand...
Click to collapse
You're going to have to search for some camera mods. This can decompile the apk sure. But I've never edited the camera.
Thanks, nice tool.
cbucz24 said:
You're going to have to search for some camera mods. This can decompile the apk sure. But I've never edited the camera.
Click to expand...
Click to collapse
thanks man appreciated it..
cbucz24 said:
Ok let me know if you have any issues. I'll try an help
Click to expand...
Click to collapse
Would you mind taking a look at these decompiled SystemUI APKs? I can compile the US_LG one fine, and also the TMO one. But the ATT one tells me there's missing resources, but all the edits made and files added are identical.

Categories

Resources