i can decompilie systemui.apk with success but i cannot recompile it after that.
With changes or without changes it gives error. And dont recompile.
I tried many applications on windows. And many smali baksmali and apktool version.
Can anyone give me a tip?
systemui.apk file and framework-res.apk file in this link.
i want only a tip. not mod
https://www.dropbox.com/s/uyj7v9l15892717/apks.rar
agritux said:
i can decompilie systemui.apk with success but i cannot recompile it after that.
With changes or without changes it gives error. And dont recompile.
I tried many applications on windows. And many smali baksmali and apktool version.
Can anyone give me a tip?
systemui.apk file and framework-res.apk file in this link.
i want only a tip. not mod
https://www.dropbox.com/s/uyj7v9l15892717/apks.rar
Click to expand...
Click to collapse
Here's $1 as a tip. kidding!
To make things clear, there's an error log on such tools. You'll see where it went wrong. Read it.
To add, usually at no change on apk fails because of files like aapt. Or a non-stock apk. Like it came from people who didn't compile/recompile it well and just drag and drop some things like PNG and XML.
i will donate you a beer
it is stock v20d turkish roms systemui.apk
i searched it on xda too much
they said try new version of apktool, install framework-res.apk to toll etc.
i tried them.
i can recompile and decompile other apks
but systemui fails.
with older apktool log is:
07.01.2013
15:41:53,87
Re-compiling...
I: Smaling...
Exception in thread "main" java.lang.NullPointerException
at org.jf.util.PathUtil.getRelativeFile(PathUtil.java :44)
at org.jf.smali.smaliFlexLexer.getSourceName(smaliFle xLexer.java:2878)
at org.antlr.runtime.CommonTokenStream.getSourceName( CommonTokenStream.java:345)
at org.antlr.runtime.tree.CommonTreeNodeStream.getSou rceName(CommonTreeNodeStream.java:106)
at org.antlr.runtime.tree.TreeParser.getSourceName(Tr eeParser.java:78)
at org.jf.smali.smaliTreeWalker.getErrorHeader(smaliT reeWalker.java:357)
at org.antlr.runtime.BaseRecognizer.displayRecognitio nError(BaseRecognizer.java:192)
at org.antlr.runtime.BaseRecognizer.reportError(BaseR ecognizer.java:186)
at org.jf.smali.smaliTreeWalker.smali_file(smaliTreeW alker.java:436)
at brut.androlib.mod.SmaliMod.assembleSmaliFile(Smali Mod.java:85)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexF ileBuilder.java:43)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexF ileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuil der.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib. java:243)
at brut.androlib.Androlib.buildSources(Androlib.java: 200)
at brut.androlib.Androlib.build(Androlib.java:191)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Click to expand...
Click to collapse
with newer version of apktool, log is:
07.01.2013
16:55:55,37
Re-compiling...
I: Smaling...
[0,0] No enum constant org.jf.dexlib.AnnotationVisibility.RUNTİME
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: [email protected]
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexF ileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexF ileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuil der.java:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:37)
at brut.androlib.Androlib.buildSourcesSmali(Androlib. java:254)
at brut.androlib.Androlib.buildSources(Androlib.java: 211)
at brut.androlib.Androlib.build(Androlib.java:202)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Click to expand...
Click to collapse
agritux said:
i will donate you a beer
it is stock v20d turkish roms systemui.apk
i searched it on xda too much
they said try new version of apktool, install framework-res.apk to toll etc.
i tried them.
i can recompile and decompile other apks
but systemui fails.
with older apktool log is:
with newer version of apktool, log is:
Click to expand...
Click to collapse
Saw your posts, I've edited that "Music control" before on GB. It's NOT SystemUI but framework-res.apk.
Also try APK-MultiTool http://apkmultitool.com/?q=node/5
This requires Java 1.6 just to remind you.
yep, it was in framework-res.apk but latest gb versions it is in systemui.apk
i can remove it with succes on older gb versions suchas 20o etc.
but in turkish 20d i cannot.
i tried multitool
i tried xdaautoapk tool
i tried one click tool
i tried manually with cmd
but i cannot
i think i am making a wrong thing
but where
agritux said:
yep, it was in framework-res.apk but latest gb versions it is in systemui.apk
i can remove it with succes on older gb versions suchas 20o etc.
but in turkish 20d i cannot.
i tried multitool
i tried xdaautoapk tool
i tried one click tool
i tried manually with cmd
but i cannot
i think i am making a wrong thing
but where
Click to expand...
Click to collapse
then perhaps that turkish 20d has a strangle of codes if previous V20's had no problems.
Try decompiling with dependencies. Forgot LG's main apk on gingerbread, but on ICS it's lge-res.apk.
i want to learn
i must make it.
i will keep working on it.
i am sure that i am making mistake somewhere
because, if i decompile it and recompile it without changes, it fails too.
multitool says
{
"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"
}
this time i changed method of complie
i selected resources only
and i can recompile it with success
but while recompiling, it asks one question
if i say "y" statusbar works fine but music control still there
if i say "n" there is no statusbar
hmm
question is:
finally i did it!
problem isnt from me
i changed values with original topic = fail
i deleted values = fail
i changed height to zero = succes
thanks all
you can try elesbb's GUI APK Tool v1.2.4.5 installer
Link : http://forum.xda-developers.com/showthread.php?p=33815550
if you wont edit smali things you can delete classes.dex file inside apk before decompile.After compile re-put classes.dex file to inside apk.
Related
Hi,
I'm currently creating a black theme for a 2.1 rom but i am totally struggling finding the PNG file for the apps list "all programs" background, currently it's a light shade of grey starting at the top shading down to black at the bottom but want to make this this totally black.
I have changed all the files i can find that resemble the background but it remains grey fading to black and maybe this is controlled by an xml file?.
I have looked in framework-res and com.htc.resources apks but cannot find the file to change this.
Can anyone help me with this please?
Thx.
welcome to the league of those who cannot find the menu background... we've all been searching for a long long time, the shining knight has yet to be found that can free us all from the curse of the dark in the back...
Lol, ok but some themes i've seen have a black background, maybe this is because it's the default for the that particular rom/theme.
after reading your first post again : are you talking about stock or sense roms? not sure about the stock launcher, it should be know what file it is for that. not for rosie though.
I'm themeing an expresso sense rom and the file i have found that resembles the background png is called common_panel_gradient.png, which is also found in some common system apk's.
Hitman37 said:
I'm themeing an expresso sense rom and the file i have found that resembles the background png is called common_panel_gradient.png, which is also found in some common system apk's.
Click to expand...
Click to collapse
have you tried editing it?
kendong2 said:
have you tried editing it?
Click to expand...
Click to collapse
Yes, i did a couple of system apk's as well but the programs background stays the same, sys apk's change to the new edit.
Hitman37 said:
Yes, i did a couple of system apk's as well but the programs background stays the same, sys apk's change to the new edit.
Click to expand...
Click to collapse
It's not a png, it's a xml in framework-res.apk. I'm not at my own pc right now, but I'm 99% sure it's in /res/values/colors.xml. I tried editing to a semiopaque once, but it made the icons have trails when scrolling.
EDIT: Forget it. Just downloaded the stuff needed, and it is not in framework-res.apk. It's in Rosie.apk. /res/values/colors.xml. Line 8
Code:
<color name="all_item_background">#ff000000</color>
tristan202 said:
It's not a png, it's a xml in framework-res.apk. I'm not at my own pc right now, but I'm 99% sure it's in /res/values/colors.xml. I tried editing to a semiopaque once, but it made the icons have trails when scrolling.
EDIT: Forget it. Just downloaded the stuff needed, and it is not in framework-res.apk. It's in Rosie.apk. /res/values/colors.xml. Line 8
Code:
<color name="all_item_background">#ff000000</color>
Click to expand...
Click to collapse
Ah thanks Tristan ,
i thought it was probably xml related but the question now is how do i edit this (ff000000) in line 8 to change it to my all black background and what hex would this be?
Do i need some java tools for editing the xml?
Thank you!
Hitman37 said:
Ah thanks Tristan ,
i thought it was probably xml related but the question now is how do i edit this (ff000000) in line 8 to change it to my all black background and what hex would this be?
Do i need some java tools for editing the xml?
Thank you!
Click to expand...
Click to collapse
You need to download apktool, and then extract Rosie with that. The way it's done is this:
Code:
apktool d Rosie.apk out
That will decompile it to the folder 'out', and make all xml files readable and editable. Then after editing you run this command:
Code:
apktool b out
That will rebuild the apk. All left to do is either resign it or copy the edited files to your original Rosie.apk
Thanks again!!
Two questions...
What editor do i need to edit the decompiled file, will notepad do it?
What do edit the file to in line8, to use my background PNG?
Thanks.
Hitman37 said:
Thanks again!!
Two questions...
What editor do i need to edit the decompiled file, will notepad do it?
What do edit the file to in line8, to use my background PNG?
Thanks.
Click to expand...
Click to collapse
Notepad will do just fine. I use Notepad++, a freeware great notepad replacement with code highlight. I am not sure if you can replace the background with a png. That's be kinda tricky. It will probably require some altering in the smali, and I'm not familiar with that. One thing you could try is edit another file instead. You need to edit bladelistview.xml in layout folder.
Edit this tag:
Code:
android:background="@color/all_item_background"
to this:
Code:
android:background="@drawable/NAME_OF_YOUR_PNG_WITHOUT_EXTENSION"
Remember to put you custom image in the drawable folder in Rosie. I am not sure if this will work, but it's definatly worth trying.
Ok great, i'll try your suggestions.
Thanks
Hmm no it doesn't work, still the same background, i also get some errors when decompiling and re-compiling rosie but i inserted the files directly into rosie anyway with winrar, still not working
Any other idea's?
Thanks.
I have a feeling there's an apk somewhere that controls the program launch/list that has this png inside but i cannot find it , i thought that it could be the Launcher.apk but it's totally missing from the apps folder
This is what the current background looks like
{
"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 want to change it to this...
So friends, here is a quick and easy guide for changing the status bar icons of your Gingerbread(Actually any phone )
For those who don't know how to do it(for anyone actually :highfive
Theory
Android is the awesome platform which is easily configurable and is able of being edited very easily
The icons used in every app and Android framework are located as png images in apk of those respective apps in location:-
*.apk/res/drawable-ldpi (in my case, as our phone is ldpi)
So, we can change any icon of our status bar like battery, signal, (not clock[clock is to be configures in SystemUI.apk{will post how to change it shortly}]), etc by editing png's in framework-res.apk
Not even that, you can edit images of any app as I told you
There are several ways to decompile and compile apk in which we have made change
If we want full access of apk and want to change every thing like the xml's in it and smali content in jar files, then we would have to do it on computer by apktool or apkmanager
But, we are here to only change image, so we would not go in detail of apktool or apkmanager. For changing images, that can be very easily done even on the phone by an app NinjaMorph that is made for developers by our senior head and DEVELOPING LEGEND Stephen(Stericson)
But be careful as backing up the original file if you do something wrong
And as you all know any developer or even a newbie posting something interesting that you want to try WILL NOT BE RESPONSIBLE for your mobile blowing up, resting in peace, sleeping like a dead, behaving like a non-living BRICK, or anything whatsoever that may or may not happen to phone in this universe or any other universe known or unknown
What to do if anything happened to my mobile
We have had a backup of your original file so we can restore it
But if while editing the system files like framework-res.apk
If you deleted some un-backed up apk's
Well you can always have backup of your ROM and that is why Koushik Datta has made clockworkmod Recovery
You can restore your ROM from there
Pre-Requisites
Patience
Mind
A Android (A spare one if you brick your phone, just kidding)
Root access(to change the apk)
NinjaMorph(http://bit.ly/ninjamorph)
Root Explorer(Optional)(http://bit.ly/stericson)
GUIDE
So Let's Start
Download NinjaMorph. Install it and give it root access. It will prompt for starting checks. Click on start checks.
Now you would have three options, namely, New Project, Finish Project, Existing Project
Click on new project. Go to system/framework/ and click on framework-res.apk. It will start extracting files
Once it has extracted all the files, it will open to show you what is inside framework-res.apk.
Exit it and go to your file explorer.
Go to /sdcard/AndroidThemes/workspace/framework-resapk
This is what is inside apk. Go to res/drawable-ldpi folder
There you will see hundreds of icons of your menu, lockscreen, battery, signal, and everything
You can edit them and replace them as you want. But the name of the file you are replacing and size and dimension must be equal to the file you are replacing with(I recommend Googling and finding icons of battery, signal, and other things)[I have even used hdpi icons, there was no problem]
If you download a theme file which is to be flashed in recovery that is not for your phone, no problem, extract the zip and place its framework-res.apk in your sdcard and extract the apk with Ninjamorph. Replace your icons with its icons and TADA
After you have done replacing the icons and you are satisfied(I am never)
Go to NinjaMorph. Click on Fininsh Projects. Click on framework-resapk. It will recompile and ask to replace the original apk with modded one. Click OK
Then it will ask if you want to remove the completed project, Say No(As you would need it if something gets wrong)
Reboot your phone
Maximum chances are that your icons will be replaced. Rare cases have their status bar gone or no change, if so:-
Download(Buy) Root Explorer. Go to /sdcard/AndroidThemes/workspace,
There you will see framework-res.apk. Copy it and go to /system/framework
Mount as R/W
Paste the apk. If it asks that file already exists, overwrite it.
SET PERMISSIONS
Long click on framework-res.apk and click on permissions
You will see three columns
Read Write Execute
You have to set them in the following way
x means you have to tick it
blank means uncheck
Read Write Execute
.....x........x.................
.....x...........................
.....x...........................
Click OK
You will see it as rw-r--r--
Reboot
Do it over again if nothing happens
Enjoy
This way you can edit not only framework-res.apk but any apk
Treat
This section is different from the thread topic
I: Faking Up
Want to make your device show Jelly Bean in About Phone
Go to Root Explorer
Go to /system
Long click on build.prop
Click on Open in a Text Editor
Change the files as
ro.build.display.id=Jelly Bean
ro.build.version.release=4.1.4
Save Changes
Reboot
II: Easter Egg
You all must know that an image of GingerBread Zombie comes up when you repeatedly click on Android Version in Setting>About Phone
Wanna change it to look like Jelly Bean?
{
"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"
}
Extract framework-res.apk
Go to res/drawable-nodpi
You will see platlogo.jpg
Replace it with the file in attachment
Recompile
Reboot
Troubleshooting
Will find and update it
Tell me what problems are you having
Ninjamorph extracts apks . Is there any app which can decompile
Sent from my GT-S5570 using xda premium
arpitkh96 said:
Ninjamorph extracts apks . Is there any app which can decompile
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
i don't think so...
arpitkh96 said:
Ninjamorph extracts apks . Is there any app which can decompile
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
No, there is no app on mobile that can do it
As you need Java environment and some applets for back smali and smali extraction
Good guide :thumbup:
Sent from my GT-S5570 using xda app-developers app
very good guide, will surely test........ thanks
to bad thats on jena thats dont work so soon and easy
luki2411 said:
to bad thats on jena thats dont work so soon and easy
Click to expand...
Click to collapse
Please use English
BUMP
how can i make my drawer background and status toolbar transparent i turned back my galaxy mini to 2.3.6 i cant figure out how i tried to examine framework-res.apk ,systemui.apk and touchwiz30launcher.apk but nothing happens, please help me...
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
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 !!
{
"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.