yashsingh1/xdaforums huggingface dataset:
[Android General] rc420head:
First off thanks for the guide.

I'm having an issue,

I use vts to mod systemui.apk and it recompiled fine. If I adb push or make flashable zip it works fine,but if I put it in a new build it bootloops?

This is for sense 5 4.2.2

If tried many combinations of signed,not signed,zipalined ,not zipalined. always with same results. Any help is greatly appreciated.

Sent from my HTC One S using Xparent Red Tapatalk 2
[Android General] cotrariello:
Sorry but i think i didn't understand nothing. do you say that with this programs i could mod all my app, ex. all my games app?
[Android General] mastaan:
SecMms.apk

Deleted
[Android General] SXUsr:
Hi all. :)

Having been away from the forum for nearly 7 months I was wondering how relevant the information in this thread is now?
[Android General] Madaditya:
Still perfect.

This is one of my most preferred thread when.I want to.play with an apk or get some extra info

I would like to suggest the Xdaautoapk tool... http://xdaforums.com/showthread.php?t=1053227

a complete apk/jar/Dex/themeing stuff tool

And and Hkt theme manager,supporting Xthemer engine as well as Cm themes for most of devices(Non Cm roms as well) :D
[Android General] Shahzeb5444:
Dude you made my day thank you so much. ??
[Android General] SXUsr:
Thanks. :)

You're welcome. :)
[Android General] piyush95:
Hello sir...

i cannot decompile Xperia Z1 framework(ported to Xperia SL)

apktool if framework-res.apk

apktool if SemcGenericUxpres.apk

apktool d framework-res.apk

but i am getting this error

09-02-2014

19:44:23.24

Decompiling.. "C:\Program Files\elesbb's GUI APK Tool\framework-res.apk"

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Regular manifest package...

I: Decoding file-resources...

W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x010e004a

I: Loading resource table from file: C:\Users\kiran\apktool\framework\2.apk

I: Loaded.

W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x010e0049

W: Could not decode attr value, using undecoded value instead: ns=android, name=startOffset, value=0x010e0049

W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x010e004a

W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x010e0049

I: Decoding values */* XMLs...

I: Done.

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010e004a

at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)

at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)

at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)

at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:44)

at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)

at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:313)

at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)

at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:77)

at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:127)

at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)

at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:102)

at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:86)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:236)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)

at brut.apktool.Main.cmdDecode(Main.java:141)

at brut.apktool.Main.main(Main.java:72)

-----------------------------------------------------------------

what may be the reason...

Using Windows 7 32 bit

apktool 2.0.0 beta7

java se installed

java runtime environment installed too

Edit:- It was Framework's fault....tried another one...it was successful
[Android General] SXUsr:
Use the beta 9 apktool.
[Android General] piyush95:
got it...!!

thanks..
[Android General] mastaan:
Change gauges

Hello @XperienceD

I would like to edit the blue gauges. Despite my research, I can not find the information that is necessary for me :crying:

I am under UX2014 revolution ROM.

I looked in my ROM a png file or a color code that matches but could not find. Can you help me :confused: Thank you :D
[Android General] SXUsr:
It most likely be a hex color code you're looking for and possibly in your settings.apk, look for any references to holo blue.
[Android General] mastaan:
Thank you XperienceD, but I searched the color code in my setting.apk (ff468bb7 and reverse code ie 00b97448) and I can not find it. I looked if I find it eventually broken on several lines, as is sometimes the case. I also looked in my framework ...

The difficulty is that if it is a transparent color, the color that appears on the screen is actually a combination of the color of the gauges and the color of the background.

Along with this message my setting.apk and other apk in which I searched in vain. If you have a little time to see if you find, it will make me a great service.

(SecSetting.apk and framework-res.apk are too large to be sent as attachments, I put on my Dropbox: SecSetting and framework-res.apk).

Thank you for your attention.
[Android General] SXUsr:
I'll have a look when I get home if you don't sort it before. Is that code the color that's in your framework color.xml for holo blue? I have changed that before I just can't remember specifically.
[Android General] mastaan:
No, it is not the holo code. I noticed the color in photoshop ...

And thank you very much for taking some time for myself :good:
[Android General] SXUsr:
? I know ROMs can vary from one manufacturer to the other but these are the blues I have in mine...

<color name="holo_blue_light">#ff33b5e5</color>
<color name="holo_blue_dark">#ff0099cc</color>
<color name="holo_blue_bright">#ff00ddff</color>

...so I will search directly for either the color name or the hex code of what's in yours, but I personally just change those hex codes above to make system wide changes which covers most elements. :)
[Android General] mastaan:
My holo blue colors are the same as yours - as you may have already noticed - and they do not match the color of my gauges. It can not be a superposition since the latter are completely opaque. I found this screenshot on this thread (that you will have to include, in my opinion, in your tutorial), and here it turns out that it is a .png. According to a guy on the same thread, it is called 'app_gauge.9', but it is not in my ROM ... But it suggests to me that there is a specific input for the gauges (or at least it is possible to create one).

I continue looking for the answer ...

ps. Where is Jimi? :crying:
[Android General] SXUsr:
My ROM doesn't use those pngs either, but what that link has reminded me off is that it might be a smali file that needs changing. It's still a holo blue color so the only part of the code that will be different is the ff part. Open a load of files in Notepad + and get searching.
[Android General] mastaan:
Thank you :good: @XperienceD but I have already done (with the great Virtuous Ten Studio) ... Besides, your gauges are they the same color? If this is not the case, can you send me your setting.apk and your framwork? This could help me. thank you
[Android General] SXUsr:
Mine are different and now recoloured by modding a Sony theme apk so my files wont help you. Do you have a Settings.apk other than the one you uploaded?
[Android General] mastaan:
About f***ing gauges

Yes. I had planned to seek in another ROM to see if I find something that can help me. I'll let you know. Thank you
[Android General] honaga:
help!

thanks for this great thread can you help me how to change my transparency and color font on my mms apk where i go on xml?

mms settings screen my font are white and 100% transparent.i want to change it but i dont know where on xml i go i saw already uber thread but i cant find it i already change my bubbles font color on text and others.sorry for my bad English i'm usiing karbonn +a9 or CM flare here on philippines.
[Android General] SXUsr:
There are a few links at the end of this POST which are worth reading that may help.
[Android General] kaushikb.1996:
please i need help

First this one of the best xda threads I have ever seen Awesome work! !! :)

Problem

When I recompile my system UI with any of the tools. I am getting thousand of errors even without touching any part I am able to decompile but not able to re-compile plzzzz need help (My device is Micromax A87) its doesn't have any proctection like odex and stuff) I can give you the apk plz......help
[Android General] SXUsr:
Thanks. :)

Have you installed your frameworks, and what firmware are you using?
[Android General] kaushikb.1996:
Yes I Have and I am running on GB

All info about my device - http://xdaforums.com/showthread.php?t=1987020

I have attached framework file to this post
[Android General] SXUsr:
Do you only have one apk in your framework folder?
[Android General] kaushikb.1996:
Yep only one framework file
[Android General] SXUsr:
Apktool says the error is in the status_bar_tracking.xml, line 5, so I edited the line and then it rebuilt, but you'll obviously need to test it. Change the end of line 5 from...

android:layout_marginTop="0.0dip" android:subscription="0" />

to

android:layout_marginTop="0.0dip" />

...and see if that works.
[Android General] mhp1995:
Thanks for the guide.. Finally i got the method of decompiling and recompiling my apks.. Well written :good::)
[Android General] kaushikb.1996:
So you were successful to recompile it? ?? I will do it in few hours with apk mupltitool and VT10 and did you de-sign or did any other step? ??
[Android General] kaushikb.1996:
The system UI is not working (Status bar not visible)NO Force close but doesnt show status bar at all

Code in line 5 for me is

android:layout_marginTop="0.0dip" android:subscription="SubTwo" />

i changed to

android:layout_marginTop="0.0dip" />
[Android General] kaushikb.1996:
LOl

the funny part is without any changes, Now i am able to recompile with vt10 but it it is not working !!!
[Android General] D2Y aka E:
please help the host to match the color orange in the same becomes linear color.smali should use what color code .. I try to use the orange color code different outcome even
[Android General] SXUsr:
You need the "Android color converter" to convert hex color codes into smali color codes.
[Android General] D2Y aka E:
where can I get android converter color and whether it is a kind of tool moding please help me
[Android General] davidwilson83:
[TOOL][WIN] ANDROID Color Converter [SHARE]
[Android General] D2Y aka E:
thank you sir for your help ...
[Android General] kaushikb.1996:
Hi figured out what I was doing wrong when I was recompiling I was that I was not copying the META-INF folder anways thank You for your help :)
[Android General] D2Y aka E:
problem solved
[Android General] andrim3:
I like it tread..:beer:

Sent from my GT-B5330
[Android General] DanTe7:
How to fix a bug with the bar in the applications? It is necessary that all applications have been black bar. And since it is transparent (Bar), it takes the color application. Android 4.1.2
[Android General] countryfolk07:
Post deleted. Sorry.
[Android General] SXUsr:
Have a look at your drawables.xml in SystemUI/values, anything starting with status_bar_ is what you need to look at and edit accordingly.
[Android General] kaushikb.1996:
Do you think you have to add this to your thread ????

Hie have a look at this thread I think it should be added to your threads

So what do you say sir???

How to build a kitkat theme for any rom in the world

http://xdaforums.com/showthread.php?t=2695192
[Android General] SXUsr:
Done, thanks. :)
[Android General] kaushikb.1996:
Thank you I want/suggest you to add another tool

many people are not aware that there is an apktool even for android 2.3+ devices and its in the google's pages I will give you the link
[Android General] SXUsr:
I would assume that the latest works with any ROM as it's been modified and adapted along the way.
[Android General] kaushikb.1996:
and I found I sure simple awesome guide to edit. 9.ongoing I think you should really add this its a video

How to easily edit .9.png files
[Android General] MrDynamite:
Help ME

i have was error message while recompilling systemui.apk

i should edit for traffic statistic

i got this log:

c:\apktool>apktool b SystemUI

I: Using Apktool 2.0.0-Beta9 on SystemUI

I: Checking whether sources has changed...

I: Smaling...

SystemUI\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[24,4] Error

for input '.parameter': Invalid directive

SystemUI\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[39,4] Error

for input '.parameter': Invalid directive

SystemUI\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[40,4] Error

for input '.parameter': Invalid directive

SystemUI\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[39,15] mism

atched input '"context"' expecting END_METHOD_DIRECTIVE

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file

: com/android/systemui/statusbar/policy/Traffic$1.smali

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:338)

at brut.androlib.Androlib.buildSources(Androlib.java:299)

at brut.androlib.Androlib.build(Androlib.java:285)

at brut.androlib.Androlib.build(Androlib.java:258)

at brut.apktool.Main.cmdBuild(Main.java:236)

at brut.apktool.Main.main(Main.java:88)

i have already install the framework

please help me
[Android General] SXUsr:
Have you installed all resource apks?

Sent from the app on my Z1C...
[Android General] MrDynamite:
what a resource apks?

is the twframework-res.apk,framework-res.apk, or path the java?

i have already installed all of them
[Android General] lacoursiere18:
You need to use apktool 1.5.2 and it will solve this.. Using any higher all those errors are considered "dump" smali.. It's stuff that is not needed.. But when decompiled by 1.5.2 it exist in the smali..
[Android General] lacoursiere18:
Your missing a couple styles..

StatusBarNotificationText

StatusBarPanelSettingsRow

StatusBarPanelSettingsIcon

StatusBarPanelSettingsContents

StatusBarPanelSettingsPanelSeparator

You just have to read the cmd line.. I know if your new to this it seems a little over whelming but seeing the errors is key, for example:

SystemUI\res\layout\[COLOR="Red"]system_bar_notification_panel_title.xml[/COLOR]:[COLOR="SeaGreen"]14[/COLOR]: error: Error: No resource found that matches the given name
(at 'style' with value '@style/[COLOR="DarkOrchid"]StatusBarNotificationText[/COLOR]').

In RED is the layout.. system_bar_notification_panel_title.xml.. In this layout on line 14 in GREEN it is calling a style that does NOT exists in your styles.xml..The style is calling is PURPLE.. which you need to add..like soo:

<style name="TextAppearance.StatusBar.Notification" parent="@*android:style/TextAppearance.StatusBar">
<item name="android:textSize">@dimen/notification_text_size</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:layout_gravity">center_vertical</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_weight">1.0</item>
</style>

Now DON'T COPY THIS, but it is just an example of what you are kind of looking for.. Your guide you are following should define a Style if his xml's have it in them:highfive:

Also if you have any other errors.. Dont be affraid to post them we will work together to figure them out.. This is what this thread is all about..make sure you thank [MENTION=2735402]XperienceD[/MENTION]..
[Android General] MrDynamite:
now what i doing now?
[Android General] lacoursiere18:
Lol link me to this guide your following and I'll see if there is a "styles" listed in it that you did not add;)
[Android General] lacoursiere18:
I don't need this..I wanted a link to the guide you are following to add Traffic Statistics.. Also, it looks to me that your just copying and pasting this persons system_bar_notification_panel_title.xml.. You need to look at only the changes he made.. and I dont see anything added for Traffic Stats??

So why are you editing this xml?

And if it's for something else explain so I can help you..

But to solve your error you need to define StatusBarNotificationText style in your styles.xml
[Android General] MrDynamite:
im sorry

but now its solve

now im using custom ROM in my android

and this is with traffic statistic ;)
[Android General] kaushikb.1996:
Need Help ASAP Please

hie there

Story (What happened till now)

1) Build a Rom Using Android Kitchen

2) Everything works fine expect the imei

3) i heard something like ramdisk fix for some device which fixes imei

4) Device - Karbon Titanium S2

5) Link of the rom [TEST]Stock rooted rom

6) need help asap attaching meta-inf and recovery.ftsab and the edify script made by me plzzzzzzzzzzzzzz help

7) Need help ASAP
[Android General] Pankaj Rai:
thanks ...
[Android General] SXUsr:
You'll be better posting that here - http://xdaforums.com/chef-central/android if you haven't had any luck yet.
[Android General] freekizito:
Please, if I decompile an apk that was zipaligned, after editing and recompiling the apk, do I still need to zipalign the apk again?
[Android General] kermage:
Yes.
[Android General] freekizito:
What if I just unpacked the zipaligned apk with an archive viewer(e.g 7zip) and then edited some images and repacked the apk.. should I zipalign again?
[Android General] kermage:
Yes still.

As per Google Android Developers' suggestion:
[Android General] freekizito:
Thanks a lot for the quick reply.. I was editing some system apk files.. system files do not need to be signed.. right?

Also, what if I try to zipalign an already zipaligned apk, what would happen? I'm asking this because I want to zipalign all the system apks(including the ones I didn't edit) and I don't know if they are already zipaligned.
[Android General] kermage:
Yes, should work with its original signature.

You can zipalign as many times as you, no harm done. It'll just realign them.
[Android General] freekizito:
Sorry that I ask too many questions..

What if say I edited a user-app and now want to push it in system/app, should I sign it?
[Android General] Thebear j koss:
You can keep original signature or sign it and convert it using tibu or flash it. Some user apps require keeping original signatures to work after modding now for sign in and location settings.
[Android General] kermage:
Asking questions are totally fine. :good:

Always a pleasure to help. :angel:
[Android General] freekizito:
One more question, when I unzip an apk file and zip is back using the following parameters

Compression method: Store

Archive format: Zip

Dictionary size: 32KB

The size of my new apk is always larger than the main one by a couple of kilobytes even if I didn't add or edit any file in the archive.. so it just got me wondering... is it normal? Or is one of the above parameters wrong?
[Android General] Thebear j koss:
Why are you unzipping an apk? Shouldn't need to Unzip it, I never have. You can extract whatever then just replace whatever you extracted. Unzipping then rezipping will most likely break the apk.

Thebe@r'$ G@L@XY
[Android General] freekizito:
That's easy when you're just editing one file.. if I want to edit the entire images in systemUI.apk, how can I be doing it one by one when I can just unzip the entire archive, edit everything and zip back? After all, apk files are just zip files with ".apk" extension.. right?

What I want to know is if I have set the right parameters when zipping back the archive
[Android General] lacoursiere18:
Not sure that will work.. also your more than likely going to be editing .9png and you can't just pull them for a apk..edit them and put them back in.. this will result in the image being distorted..

A lot of edits are not all png.. there is xml that will need to be adjust due to color changes of those images.. for instance you make a light colored png black..the text on that png will more than likely be dark..so that would not work so well..

My suggestion is to learn the right way and decompile/recompile your apks
[Android General] Thebear j koss:
Extract the whole res folder to do images. Never Unzip the apk. And you should be using an apktool to do this.

Thebe@r'$ G@L@XY
[Android General] kermage:
That's totally fine, because contents of an APK uses different compression; resources.arsc uses no compression while others do use either low or normal, this depends on the maker too.
[Android General] freekizito:
Okay, thanks all for the help so far.. I really appreciate... then, since you said asking questions is fine, I've got to keep 'em coming[emoji3]

when I use BATCH OPTIMIZE and select BATCH ZIPALIGN option in apk-multi-tool, after the process is finished the command window shows "1 file copied" but then inside the folder for batch optimization, all the apks are actually copied to the "optimized" folder, so does it mean it actually zipaligned all of them?

also what's the meaning of "OPTIMIZE PNG" option in apk-multi-tool? And when I select the optimize PNG option, it always asks me to replace some files and I'm confused if to select YES or NO... also, is PNG optimization important after apk modification?
[Android General] kermage:
I can't answer you about that options regarding the tool for I have not used this. But well maybe the batch option does actually do its job, it is just the output doing wrong.

About the optimize png, it will reduce the image file sizes while still ensuring their image quality; way you can do to reduce the APK size.
[Android General] lacoursiere18:
Also, as far as replacing files.. this depends on the location your selecting for a output folder I would think. So it is more than likely confirming if you want to "replace" or overwrite the files/pngs. So if the tool doesn't allow to select/choose a out put folder than I would be selecting YES
[Android General] freekizito:
So which tool do you personally use to zipalign your files?
[Android General] kermage:
Before, I do them manually. Now, I'm using my own tool. ;)
[Android General] freekizito:
I Checked out your tool today, it's quite awesome... and the GUI is cool... although it took me like 3 minutes to find out how to start a new project... LOL.. and someone also mentioned that in the project thread... until you hover on the "projects" you won't have a clue that it's clickable... also no batch zip alignment... apart from these two, it's very okay!! [emoji106]
[Android General] kermage:
Thanks for checking out and glad you liked it. ;)

And sorry for that 3min waste..haha because for me, I thought the GUI will be scary for first timers seeing lots of buttons to be managed. So, i tend to just let it be in text but with tooltips for information. I did mention that there :cool:
[Android General] SXUsr:
Thanks, and thanks [MENTION=5217761]freekizito[/MENTION] for the tip. :good:
[Android General] Pankaj Rai:
Nice 1