yashsingh1/xdaforums huggingface dataset:
[XDA-University] SXUsr:
Is there any more apks in your framework folder??

Sent from Myushi
[XDA-University] zeeshanonlyme:
just one. 1.apk

Problem solved.

I moved the apktool folder from desktop to root C and voila no problem. Any ideas why?

Forgive me for being so rude and not appreciating the extensive effort youve made in writing this thread! Great one for n00bs!
[XDA-University] SXUsr:
Not too sure about that, do you mean the apktool folder that's created when you installed the framework? The main thing is it's working. :good:

No worries, and sorry, I should have been more clear when I asked. Anything else you need help with feel free to ask. :)
[XDA-University] zeeshanonlyme:
No worries!

I mean the original apktool folder where i put the framework-res apk. I moved it to root C.

The one thats created i have not touched. Its already in C\users\apktool

I simply need to learn how to change the drop down notification bar with a custom screen. But im kinda lost at the part which .9 images to replace?

And where do i put the custom image! Thanx!
[XDA-University] SXUsr:
Strange one that, but would leave it alone for now. :p

Give this a read - [TUT][JB] HOW TO THEME SystemUI.apk for TOTALLY newbie! which will be a big help, you may or may not have tw files but if you don't just look for the similar named images in your folders. So now it's over to you to give it a go, and sure you will screw up once or twice but if something doesn't work the first time just retrace your steps as it will no doubt be user error (still happens to the best of us), and try again. :)
[XDA-University] zeeshanonlyme:
You always have the best links around ;)

Im getting mad seeing all those folders inside the file and linking which one corresponds to which aspect of the ...ah well..system ui :P

Could you give me an insight into what hdpi, xdpi etc is?
[XDA-University] Silentbob999:
Resolution ;)

Envoyé depuis mon GT-S5830 avec Tapatalk
[XDA-University] SXUsr:
I wish I'd started bookmarking when I first joined as there is so much more I could have included.

Welcome to the learning curve. :) One tip I can give you is this, if you change an image in one apk, but the changes don't show when you push it to your Phone, the image is in another apk so you'll need to look for it. Another thing I did when I first started was download various themes, extract the res folders and compared them with mine, then looked at the theme screenshots to try and figure out what each image (where not obvious) was.

As Silentbob999 said, it's the resolution of the images being used by the particular device it's being used on, so if you have an mdpi device and are just themeing for yourself then you can just mod the drawable-mdpi folder, and so on for hdpi and xhdpi.
[XDA-University] juancubo:
LinearColorBar.smali

Thanks for this info, but I am still trying to find the right place to change the colors. I am on HTC sensation and the stock colors are different. Can you post a bit of the file where you changed the values, so I can compare and look where it should be changed.

I really appreciate your help.
[XDA-University] SXUsr:
Sure, the hex colour I use is b6ff00 and the smali code is -0x490100...

​

...and if you look at my search of b6ff00 you can see where the other xmls are that contain the stock colour (that I've found so far).
[XDA-University] baldypal:
This smali talk is interesting. cause i've been changing 33b5e5 png images for the past week and i've got blue still in places. such as this RAM indicator.

so please correct me where i'm wrong.

1. open the smali of choice in notepad ++ (can i use dreamweaver or notepad?)

2. search for 0x33b5e5

3. change 33b5e5 to hex of choice (00ff00 for lime green)

4. save and recompile.

will that do it?

---------- Post added at 03:00 PM ---------- Previous post was at 02:20 PM ----------

Also, would like to request assistance on finding this blue.
[XDA-University] ssojyeti2:
No...converting color hex codes to smali is not as simple as adding a 0x before it :)

Use this tool to convert the colors from hex to smali: acc (All Color Converter)

I'll save you some time...FF33B5E5 = -0XCC4A1B
[XDA-University] baldypal:
Thanks, Man! ok. go the proper color changing. Can smali be changed in a theme? like PNGs are redirected, can smali's be redirected?

1. i'm changing the 0xff6634 in LinearColorBar.smali to -0xff0100 (to get 00ff00).

2. the folder path "com\android\settings\applications didnt exist in the CM10.1 Annex theme template so i created it.

3. then placed LinearColorBar.smali in there.

4. recompiled without errors.

5. installed

6. applied theme

7. RAM indicator still blue.

apk here
[XDA-University] ssojyeti2:
try making that edit on the stock settings.apk to see if you are changing the correct location...you'd need to have the stock theme applied obviously...

btw...I had no idea cm themes could make edits to the classes.dex. actually I don't think they can so that may have been your issue lol. not positive about that...

edit: oops nvm didn't realize it was a compiled classes.dex disregard what I said above

quick tip: not sure if you know already but notepadd++ has a find in files feature that can search an entire directory for a certain string, so maybe you will find another place that was left blue or something...
[XDA-University] baldypal:
Really good chance you are right about the classes.dex file on CM rom. Makes sense since colors arent changing. i'd do the notepadd++ find but i dont know exact smali color code i'm looking for. so many shades of blue. based on your smali color change app from above 33b5e5 would be -0xCC4A1B but then the LinearColorBar.smali color was ff6634. so i'm just not sure exaclty what code i'm looking for.

got to dig some more.
[XDA-University] SXUsr:
And...

...which is what I've listed in the OP, and there are a couple of lines to change so it's just a matter of finding it.

Notice my screen shot of Virtuous Ten Studio, it makes these kind of searches so much easier. :)
[XDA-University] Madaditya:
First! Thank you for an precise and awesome guide!

Can someone help me mod a mdpi systemui to a hdpi one..

I have all the images ready to be replaced of hdmi size..

I tried just replacing the images in drawable-hdpi folder and respective folders...

But them the system ui has hdpi icons and a mdpi status bar..which looked weird

Any idea of what xmls do I edit?do I need to edit xmls for this?

Be the smart geek :cool:
[XDA-University] baldypal:
Has anyone been able to successfully change the color in any Smali file and package into a theme for CyanogenMod? Dustin's Cobalt series shows system blue on ram indicator and bar on bottom of apps in settings (also data usage chart). Annex Meizu does too. Also TeamHolo Holo series. All still have system blue on ram and data usage chart. Beginning to think it can't be done.

Note: I'm working with Annex cm10.1 template.
[XDA-University] ssojyeti2:
You do not want to go down that path there is way too much resizing needed. Take a base hdpi systemui.apk and add the hdpi images to it
[XDA-University] Madaditya:
I tried the same...as I said..I already had the required HDPI images..from another systemui..

Replaced all the images...required

But the status bar icons would appear huge..and the status bar would be small and weird....

Like the icons would pop out of the statusbar..

Sorry I deleted the screenie

So no xml edits are required?

Replacing the images should do? Accordin to you?

Just be the Smart Geek :cool:
[XDA-University] SXUsr:
I'm not sure exactly so would have to go down this root - port hdpi to mdpi, so a bit more reading for you to do.
[XDA-University] Madaditya:
I have read that bro..

But its Hdpi to mdpi

I want the reverse..

I did using analogy.. and that guide tells only about png's..

Neways..ill try again and report if am succesfull

thanx for suggestions

[MENTION=3570510]ssojyeti2[/MENTION]

The dev develops for mdpi..

Here http://xdaforums.com/showthread.php?t=1762162

so the base avalible for me to mod is mdpi..

I know ppl have modded them to hpdi and they are available..

But I just want to learn to port

EDIT :This is what I get

And this is what I expect? Can figure out?any help?

Just be the Smart Geek :cool:
[XDA-University] ssojyeti2:
Well from the looks of that you will find all the necessary resizing xmls in the layout folder and also in values/dimens.xml
[XDA-University] SXUsr:
I often take an already modified ROM and use it as my base, or download a couple and take certain elements from each to make my own ROM, or head to the themes and apps section for my device and grab stuff from there then modify it to my liking, a bit like a jigsaw puzzle, sometimes the pieces just fit, or some you need to bite a bit off or fill in a space a little to make it work. :)
[XDA-University] 592da:
thanks for shareing
[XDA-University] SXUsr:
Hi.

In future please don't post ridiculously long error logs, and the funny thing is you've missed off the first part which gives the initial error. What did you change?
[XDA-University] sjpritch25:
Just the icon
[XDA-University] SXUsr:
Not sure why you've decompiled then, if you're just replacing images you don't need to decompile as stated in the OP.

From me to you.
[XDA-University] thecommoneye:
Can you mod the" Pocket Academy " so I can have unlimited cash and research points ? and also a tutorial how to mod this because I dont knw what code should I search and change it value ..
[XDA-University] hisee:
There are lot of images but every theme having diff name for icon like tw_sync where as other theme having Diff name.. What are the images that we shld include for basic themeing like popup, toggle etc
[XDA-University] SXUsr:
This is where natural inquisitiveness should come in to play. ;) You're going to be hard pressed to find a guide that lists what every image is for, as every device is different as are themes like you say, but what I did when I first started was download themed ROMs, decompile the framework and other themed apks that I wanted and compared them to my stock and got a general idea of what image is for what in every apk, and you can use the theme or ROMs thread screenshots for reference.

Just start with your framework to begin with, and make a CWM zip of your unmodified framework-res.apk, so if you bootloop you can simply flash it and start over. Have a browse of the first few links under References: in the OP too, you'll find some good stuff in them. :)
[XDA-University] Madaditya:
Info

Hi XperienceD

Just wanted to know what Signatures actually do?

Like why do we sign an Apk?

Its said that we dont sign SystemAPk's but i did sign My systemUi.apk and used it..Didnt affect

Are these actually Signatures? like they tell who made this particular App?

Can we have personal signatures?Private keys?

Like the Systemui i modified here http://xdaforums.com/showpost.php?p=42114409&postcount=46

Here i did NOT play with signatures,just modified few xml's and png's

while compiling back deleted resources.arsc that gets generated as indicated by ApkMulit tool but when i flash it over other mods it wont show up

Ony when i flash it over original,Stock SystemUi it would Show up

Sorry for real noobish questions if the seem,I even tried Searching but found little..

Ill be gratefull to learn
[XDA-University] demkantor:
Some things will require sigs, some not. Even if it doesn't require and you sign it shouldn't matter. You can use a private key or generic sig, unless you created something that you decide needs a private key is when it will matter. Like an oem makes something and won't allow it to be flashed without it. You can go to android's developer site to learn more
[XDA-University] ttibbetts83:
I'm looking for a command in Ubuntu that will change a folder of images to gray scale all at one time I had a command that would do this with out any special programs but for some reason a cannot find it again and no longer have it on my computer if any body knows what I am talking about that would be great
[XDA-University] blakegriplingph:
The commandline tools didn't seem to work properly on a Browser APK that I tried to modify, but Virtuous seemed to do the trick. Dunno if it had to do with how the package was signed, or if I did something horribly wrong with the CLI-based tools.
[XDA-University] gregcapps:
I might just be missing something very obvious, but I don't even see how to load an apk into Virtuous. Trying to modify a phone.apk for miui.
[XDA-University] SXUsr:
Start a new solution or project, and right click on the name in the viewer on the left, and import it. It took me a few attempts at first. :)

From me to you.
[XDA-University] baldypal:
wrong icon png

I have a new situation. Can't seem to find anyone else with the same problem. I've created 6 different themes, all of which have a custom icon. However when all 6 are installed on the phone at the same time, only the theme applied shows the correct icon. All the other 5 show random PNG files from the CM10.1 weather frameworks-res.

things i've tested:

1. i've removed the weather png icons from the theme b/c i wasnt using them. only now it shows blank icons.

2. i've applied system theme, uninstalled all themes, reinstalled all themes fresh. that appeared to correct the issue but it went back right after i applied one of the themes.

still testing...any ideas will be appreciated. i think it has to do with cache somehow, don't know how to clear theme cache though. "clear cache" button in apps is disabled for all themes, even those i didn't build.

EDIT: No findings show that when i apply system settings back and reboot, the original icons come back. So it only messes up the other theme icons when one of my themes are applied. hmm, gonna check and see it if happens that way when i apply one of Dustin's Cobalt themes.
[XDA-University] m_gamal`:
thank you ...................

thank you ...................
[XDA-University] pimpeddani:
Filename.png.jpg

Hey guys, currently i was modding an apk using apktool and i came across with an image file which has .png extention but was a jpg file when check from the file properties..When i check the file in NinePatchEditor its shows like filename.png.jpg. i check the file in draw9patch but it has no black border area, border was empty. i tried editing the file but photoshop CS6 cannot open the file, Ms paint can open and edit the file, it work Ok but the problem is Ms Paint does not support transparentcy. So i tried Paint.net and some other image editors but edited image doesnot work with recompiled apk, the app get automatic exit. Same result with ubuntu GIMP editor.

Does anyone knows how to deal with this file....I did lots of googling and tried lot of possible methods to solve this..but no luck.

Sorry if this is a wrong thread.
[XDA-University] mcwurth:
Rename extension to either jpg or PNG?

the monkey grabbed my banana, now its eating vanilla sticks
[XDA-University] SXUsr:
Is this from a themed apk by any chance?

...Sent from Zed
[XDA-University] shadabkhan321:
Mod flick home run

hi,

this is the xml utf-8 code for flick home run which i'm trying to mod. File name is named as UserDefault.xml

<userDefaultRoot>

<saveFlag>true</saveFlag>

<preEffectVal>0</preEffectVal>

<curEffectVal>0</curEffectVal>

<preSoundVal>0</preSoundVal>

<curSoundVal>0</curSoundVal>

<preVoiceVal>0</preVoiceVal>

<curVoiceVal>0</curVoiceVal>

<experienceMax>Cz30JV8G,bUpoNy</experienceMax>

<experience>n0u14UuF,nycW1rG</experience>

<currentEyeLevel>LwNXRLx2dUQq</currentEyeLevel>

<currentPowerLevel>C69sQ1z4ME0tm</currentPowerLevel>

<currentContactLevel>FrKiHeI8VT2ok</currentContactLevel>

<goldBatt0>tw3ENiVKOJFu</goldBatt0>

<goldBatt1>jFrHcFuS1xZkI</goldBatt1>

<goldBatt2>VS2UuDanPntIl9</goldBatt2>

<goldBatt3>Q6EeQD3jBS6z3</goldBatt3>

<goldBatt4>TtWsoFyewSKy4</goldBatt4>

<goldBatt5>GxI7NUnC0Kvqz</goldBatt5>

<goldBatt6>ZLf,jEKpkoHBg</goldBatt6>

<goldBatt7>MzNZTLfod,h</goldBatt7>

<goldBatt8>JdJk8MqTGSwM</goldBatt8>

<goldBatt9>gWjxtAKzsxiN</goldBatt9>

<majorMultiScore>0</majorMultiScore>

<soundOnOffFlag>1</soundOnOffFlag>

<homerunLevel>15</homerunLevel>

<homerunLevelMajor>5</homerunLevelMajor>

<userName>Your Name</userName>

<moonStarHitNum>0</moonStarHitNum>

<moonStar2HitNum>0</moonStar2HitNum>

<AbloonCounter>4162</AbloonCounter>

<AstarCounter>251</AstarCounter>

<AcarCounter>460</AcarCounter>

<AniceHomerunCounter>48</AniceHomerunCounter>

<AlongHomerunCounter>139</AlongHomerunCounter>

<AbuntCounter>24</AbuntCounter>

<AmaxDistence1>3</AmaxDistence1>

<AmaxDistence2>0</AmaxDistence2>

<AmaxDistence3>0</AmaxDistence3>

<AmaxHigh1>22</AmaxHigh1>

<AmaxHigh2>0</AmaxHigh2>

<AmaxHigh3>0</AmaxHigh3>

<AconsecutivelyHomerun>0</AconsecutivelyHomerun>

<totalScoreLock>15</totalScoreLock>

<fasterScoreLock>5</fasterScoreLock>

<giantScoreLock>10</giantScoreLock>

<cutterScoreLock>0</cutterScoreLock>

</userDefaultRoot>

can you please convert below into numbers so that i can get level 99.

<currentEyeLevel>LwNXRLx2dUQq</currentEyeLevel>

<currentPowerLevel>C69sQ1z4ME0tm</currentPowerLevel>

<currentContactLevel>FrKiHeI8VT2ok</currentContactLevel>
[XDA-University] pimpeddani:
No its the original file from apk dev...

---------- Post added at 06:17 PM ---------- Previous post was at 06:09 PM ----------

Yes I have tried, re compiled succesfully but app gets automatic close after launching the app. seems like the program could not recognize the file to load to the memory..

---------- Post added at 06:41 PM ---------- Previous post was at 06:17 PM ----------

use this link http://www.asciitable.com/ and try converting the ASCII text to hex or decimal values...
[XDA-University] shadabkhan321:
Mod flick home run

sorry but not happening :crying:
[XDA-University] pimpeddani:
I think those code u r trying to convert are actually like a pointers.. try looking from other xml files for those code and maybe u'll find the location where the actual valuee are store.

Or maybe they have some kinda algorithm in their game to convert them.

Im not sure Goodluck...
[XDA-University] sev7en:
Hi to everyone,

I tried the command line operation via baksmali but the package I am working on then debugged report the error following: "the fileresource.apk does not contain a classes.dex file".

Does it mean I can edit it? Can I look for alternative software or way to unpack/repack it?

Regards and have a nice Sunday,
[XDA-University] SXUsr:
Have you using a deodexed files?
[XDA-University] sev7en:
Hi,

thanks for getting me back sooner. I don't see the related .odex file with the archive but... if so, how should I edit it?

Cheers.
[XDA-University] SXUsr:
What is it you're trying to edit?
[XDA-University] sev7en:
It's the framework resource file (apk) of the Chinese phone I am working on. We got home here ^_^: http://xdaforums.com/showthread.php?t=2344238
[XDA-University] SXUsr:
For apks you need to use apktool, baksmali is only for decompiling classes.dex files. You need to use...

apktool d framework-res.apk
[XDA-University] sev7en:
Thank you! If you want, I uploaded both here: https://mega.co.nz/#!45Qx0SoY!AmZzBh5XyXoCN8o3sC8TUwQ7gbBQ0vQwebkhCN46RyU

[EDIT/b]: [MENTION=2735402]XperienceD[/MENTION]: Thank you, it worked like a charm! So can I use the same tool also for repack and if so... does I have to use any option for that typo of resource? (I mean a system file).

Cheers,
[XDA-University] SXUsr:
Everything you need to know in regards to using command prompts for decompiling, recompiling, signing etc is in the OP so give the command prompt section another read as you've got confused somewhere along the line. :)
[XDA-University] sev7en:
You are right, thanks! You already told me all the necessary, and this thread comes with a lot of information... let's study, Sunday too eheh

Have a nice day and great support!
[XDA-University] SXUsr:
You've certainly got the right attitude. :good: Have a great Sunday yourself too. :)
[XDA-University] Cactus47:
Cool guide

Thank you very much mate :)

I was searching for a guide where to start but i've found much more than i expected!
[XDA-University] SXUsr:
What did you mod?
[XDA-University] Will_Xda:
Just images (i had modded strings.xml & colours.xml but both Have successfully compiled Many times)

Sent from my HTC Desire X
[XDA-University] SXUsr:
If they were .9 pngs then you need to make sure the borders are untouched, replacing normal pngs won't give errors like that.
[XDA-University] Will_Xda:
Im pretty sure i didnt, ill check later though and report back

Sent from my HTC Desire X
[XDA-University] ttibbetts83:
Any body know where to change the color of the conversation background in MMS.apk on 10.2 I have blacked all the other parts of the app but can not find the conversation background which is white and I want black I have been looking through .XML files for about three days trying to find but nothing changes the white
[XDA-University] Madaditya:
Are you taking 9png's from some other apk?

If so..make sure you also decompile(and not just extract) the source apk from which you are taking the images!

I was facing the same problem

[MENTION=2735402]XperienceD[/MENTION] - I never understood when making a 9png why are the borders defined only in the middle part,the central portion? Referrd the links in op but couldn't get it.

Why not the whole edge is bordered black?

Also do I have to compile 9png separately,or apktool does it while compiling an apk?
[XDA-University] SXUsr:
As explained in the OP some images only need part of it to stretch, others don't, it's as simple as that. You'll understand them a little better once you start editing or try to create one from scratch.

apktool will do it when compiling.
[XDA-University] Will_Xda:
I Got it sorted Broski it was just an older version Of apktool i was using, Thanks anyway tho

Sent from my HTC Desire X
[XDA-University] matt95:
I'm having some problems decompiling the SystemUI.apk

Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)

What can cause this?
[XDA-University] SXUsr:
Old version of apktool and aapt files?
[XDA-University] desalesouche:
pushing 4.2.2 app and lib + lib/hw to 4.3 rom

hi sorry if i post in wrong thread.

i would like to know if there is a way to adapt 4.2.2 app and lib to run in 4.3.?
[XDA-University] theshadowofamirage:
Hey. I've come across many modded AKs which have unlimited coins, credits and stuff. How to mod an AK to make it do that?

I would really be grateful if you teach this to me. I couldn't find any other guide! :(
[XDA-University] ttibbetts83:
That's more of a hack then a mod and I have seen some stuff out there on how to do it just Google it. You will probably not see it here though
[XDA-University] theshadowofamirage:
Guide me!

Can u give me some links or guide or something?

No warez coz I have bought the game. I have the reciept email too so I hope the forum moderator does not flag me.

Help me out bro. Would be really nice of you! Tried googling. No luck.
[XDA-University] Will_Xda:
As soon as he or Anyone posts the guide the post will be deleted and theyll get a telling off from the Mods.

Become a member of these forums and it should help with what you want to achieve: AndroidCheats, Nextgenandroid, game guardian (you should be able to find some more from these.)

Sorry for the OT...

Sent from my HTC Desire X
[XDA-University] EP21:
This is why i loved symbian, theming an app was so much easier, you could do it easily in windows. On android you need lots of extra tools :(
[XDA-University] SXUsr:
Not lots, but once you set up a little environment it makes things a lot simpler.
[XDA-University] miked63017:
Shamelessly bumping my own tool even though its for linux 64 bit only ATM http://xdaforums.com/showthread.php?p=732421

Still updating it regularly but it comes with most things needed already, still beta-ish but working for kitkat and gs5 apks for sure.