[Solved] Gmail.apk smali, LED color alpha settable? - Nexus One Android Development

I was playing around with Gmail.apk and found that if you change the notification color from 0xff0100 to 0xff0000... the LED actually blinks RED correctly. (the color is very dark due to the missing alpha byte getting set to 0)
File: com\google\android\gm\Utils.smali:3112
I am unable to set the alpha byte to FF (opaque).
If i try 0xffff0000, i get this smali error
Utils.smali[0,0] -0xffff0000 cannot fit into an int
Utils.smali[3117,4] mismatched tree node: I_STATEMENT_FORMAT22c_FIELD expecting I_CATCHES
Click to expand...
Click to collapse
If I push it anyway the color is still dark red.
The google example they set the value to 4 bytes without any error.
Any ideas?
Was planning on releasing a morph once this is resolved
update: Morph is at http://forum.xda-developers.com/showpost.php?p=6161127&postcount=25

update: just had to remove that "-" before the ledargb hex
Code:
const p0, -0xff0000
<-remove '-' (//compliment ?)

great hope this makes it into a spareparts type of config or something similar

morph: http://forum.xda-developers.com/showpost.php?p=6161127&postcount=25

thanks this is definitely a must

The negative takes one byte which is why the value couldn't fit into an integer
Utils.smali[0,0] -0xffff0000 cannot fit into an int
I didn't think the LED's could do alpha anyway?!

or you could just buy trackball alert pro from the market and choose the exact colour you want.
http://www.androlib.com/android.application.uk-co-lilhermit-android-trackballalertpro-BqAE.aspx

MontAlbert said:
or you could just buy trackball alert pro from the market and choose the exact colour you want.
http://www.androlib.com/android.application.uk-co-lilhermit-android-trackballalertpro-BqAE.aspx
Click to expand...
Click to collapse
The latest free version doesnt work with CM 5.0.6 test 2...not tried pro.

Nice work, I will def be using this. Btw for colors, the colors in the smali files are one's compliment of the normal hex colors, so if you want to attempt the match to the rrggbb hex code.

britoso said:
The latest free version doesnt work with CM 5.0.6 test 2...not tried pro.
Click to expand...
Click to collapse
will work once 5.0.6 final is released, tho

MontAlbert said:
or you could just buy trackball alert pro from the market and choose the exact colour you want.
http://www.androlib.com/android.application.uk-co-lilhermit-android-trackballalertpro-BqAE.aspx
Click to expand...
Click to collapse
Didnt know this existed thanks! This fixed most issues I had...
Works with 5.0.6-test2 for me...

was looking at this and was wondering since the only thing in this morph was an classes.dex file how will that work since it doesnt seem like there are any commands on where it will push that file to

snakebitezz said:
was looking at this and was wondering since the only thing in this morph was an classes.dex file how will that work since it doesnt seem like there are any commands on where it will push that file to
Click to expand...
Click to collapse
There is a .thm file in the morph too.

Good Find Thank you!!!!

britoso said:
I was playing around with Gmail.apk and found that if you change the notification color from 0xff0100 to 0xff0000... the LED actually blinks RED correctly. (the color is very dark due to the missing alpha byte getting set to 0)
File: com\google\android\gm\Utils.smali:3112
.........
Click to expand...
Click to collapse
Britoso,
is there a way to find the ledARGB without opening every single smali.file ?
(how did you know that it´s in Utils.smali ? )
Cause, wanted to play a little bit, but cannot find ledARGB in Gmail 2.2.1.
It´s not in Utils.smali.
thanks

rori~ said:
Britoso,
is there a way to find the ledARGB without opening every single smali.file ?
(how did you know that it´s in Utils.smali ? )
Cause, wanted to play a little bit, but cannot find ledARGB in Gmail 2.2.1.
It´s not in Utils.smali.
thanks
Click to expand...
Click to collapse
I use 'Agent ransack' to search through all the .smali's at once.
With the latest gmail and gtalk the code is external (in the framework), so its quite hard to change. (havent figured it out yet)
GVoice can still be changed easily.

Thanx, that helps me a lot!**

Related

[APP+MOD+SKIN] Black Rhodium 3G VGA Dialer

Black Rhodium 3G Dialer for VGA devices​
Update: New signed cab to resolve issues with certificate store and thus execution problems
First of all thanks to amarullz for initially porting the Rhodium dialer to VGA - well almost - as it requires the phcanvga.exe for resizing the dialer screens on the fly which sometimes requires killing cprog.exe and phcanvga.exe with restarting it afterwards to get the sizing correct. Nevertheless on his initial work this cab is based.
Basically what I did was the following:
1. Changed all phone and call log graphics to a nice black/dark color.
2. Added German translation files for the dialer.
3. And most important: Fixed the issue that all newer dialers at the moment have when switching to black, namely changing in call screen text for name and number to white. (This was actually the hardest and most time consuming as it required disassembling and understanding phcanhtc.dll. At the end this took me quite a week or so .)
Okay, and now here's the cab for installing (at least on the Touch Pro with Manila 2.1 installed as this was the device I could test it on).
Here's the english language add-on pack for the dialer as requested
For installation you might have to kill the cprog.exe and eventually the phcanvga.exe process(es) beforehand as otherwise the cab installation routine might not be able to overwrite several files. (I'm not sure about this as I did not really test this).
Pictures of it below!
Anyone who likes the work may feel free to donate a little.
any pictures of this?
Pictures now in first post!
CU,
Cactus World
does it support English or is it only German ?
what version is dialer is this?
the0ne said:
does it support English or is it only German ?
Click to expand...
Click to collapse
The cab only contains the MUI files for German, but if Ou need them, I could also provide these. Just let me know
CU,
Cactus World
This looks really sweet any chance it will work on WVGA?
yes...
i need this in english..i been looking for a black dialer...ty
hasseye said:
what version is dialer is this?
Click to expand...
Click to collapse
As far as I could figure it out it's based on version 3.50.35846.0.
CU,
Cactus World
corzradio said:
i need this in english..i been looking for a black dialer...ty
Click to expand...
Click to collapse
See first post.
CU,
Cactus World
xboxhaxorz said:
This looks really sweet any chance it will work on WVGA?
Click to expand...
Click to collapse
As the dialer is not really ported to VGA as mentioned above but resized on-the-fly you might be successful in using it when deleting the phcanvga.lnk from \windows\startup folder and killing the phcanvga.exe process or soft resetting.
Without a running phcanvga.exe the size should be correct for WVGA - I encourage you to try it and give feedback here if it worked.
CU,
Cactus World
Link doesn't work here.
icke said:
Link doesn't work here.
Click to expand...
Click to collapse
The link works. You were just trying while I was still changing something on the server - didn't think that the minute I posted here someone would try to download it!
CU,
Cactus World
thank you...ok i tested
on my touch pro 2...it did change everything to black.. but 2 things
1. it also changed my taskbar
2. the dialer is now uptop..leaving an empty space at the bottom. also there is an ugly scroll bar that shows..
Cactus World said:
The link works. You were just trying while I was still changing something on the server - didn't think that the minute I posted here someone would try to download it!
Click to expand...
Click to collapse
Link is working now...Thanks!
corzradio said:
on my touch pro 2...it did change everything to black.. but 2 things
1. it also changed my taskbar
2. the dialer is now uptop..leaving an empty space at the bottom. also there is an ugly scroll bar that shows..
Click to expand...
Click to collapse
1. Yes, I know, since I made the cab for the Touch Pro, I included phcanOverbmp with added battery level icons. If you don't like it just delete/overwrite the phcanOverbmp.dll in \windows.
2. Uptop? I'm afraid I don't know what you mean by that (I even don't exactly know what the word means and my dictionary doesn't list it ). Concerning the scroll bars: phcanvga.exe is definitely not running? Well, then it seems as if it does not work for WVGA. If you are familiar with replacing single (locked) files in the \windows folder and making registry entries you could try the following:
- First uninstall the cab and reset to get back to your original dialer.
- Extract the contents of the cab to a folder.
- Then only replace/copy phcanImages.dll and all the *.bmp and *.png files from the extracted cab in/to the \windows folder. (You could start by only replacing phcanImages.dll and the graphics beginning with Dialer_ and Assets_, this should suffice for a test.
- Change the following registry entries under HKLM\Software\HTC\PHONE to 0x00ffffff: CallStateRGB,CallerNameRGB, CallerNumberRGB, textForegroundColor.
- Change HKLM\Software\HTC\PHONE\backgroundColor to 0x0.
This could give you the desired black dialer skin. But note that if this works the problem you have with the cab is caused by phcanhtc.dll and thus this solution will not give you white in call screen text as this requires modification of the said DLL.
CU,
Cactus World
For installation you might have to kill the cprog.exe and eventually the phcanvga.exe process(es) beforehand as otherwise the cab installation routine might not be able to overwrite several files. (I'm not sure about this as I did not really test this).
Click to expand...
Click to collapse
how can i kill the cprog.exe and phcanvga.exe? do you mean kill is delete or what? I'm newbie...
thanks...
Hello Cactus World
Can you make black versions for yours theme
subiyanto said:
how can i kill the cprog.exe and phcanvga.exe? do you mean kill is delete or what? I'm newbie...
thanks...
Click to expand...
Click to collapse
Get a taskmanager (e.g. fdcsoft taskmanager, which is free and imho very good), look for the two processes and kill them. (phcanvga.exe can also be killed most times by executing it again, though)
Just curious: Did you try installing without killing them and it did not work?
CU,
Cactus World
[email protected] said:
Hello Cactus World
Can you make black versions for yours theme
Click to expand...
Click to collapse
Sure, here you go.
CU,
Cactus World

[Q] Which png is it for the progress bar?

Cannot figure out which png it is in framework ( I think its in here) for when you are installing or downloading something. Its the solid one, not the stripped one. Anyone? Thanks in advance.
umm it is in the drawable as three seperate png i just cant think of what they are called right now
wait I think it is actually called Progressbar_intermediate1.png 2 and 3 under res/drawable-mdpi
PimpShit420 said:
wait I think it is actually called Progressbar_intermediate1.png 2 and 3 under res/drawable-mdpi
Click to expand...
Click to collapse
those I already know about. I meant the one that is a solid color for when installing something or downloading. you see it moving along. its a solid orange by default
That is controlled in the resource.arsc file. I haven't figured out how to edit it yet but the color is Def in that file, if I just switch that file only with one I got from an in credible. Theme, it changes
Sent from my Eris using XDA App
PimpShit420 said:
That is controlled in the resource.arsc file. I haven't figured out how to edit it yet but the color is Def in that file, if I just switch that file only with one I got from an in credible. Theme, it changes
Sent from my Eris using XDA App
Click to expand...
Click to collapse
would you mind sharing this file? And where is it located? And if I copy the file over that you give, what else changes?
yea there is only one problem with using this file that I have come across so far and its kind of big. The text color on all buttons is white so it cant be seen. The file itself is located in the framework-res.apk. I was using a program called winmerge to go through and the whole file is completley different but I havent figured out how to edit it nor how to read exactly what is says. I just formatted my laptop and put Ubuntu on it so as of right now I cant get the file to you, You can either search for Indigo_Blue Theme for CM6 here on XDA or blackle(google). The theme is in all hdpi but still has some good looking pngs you can use in your theme. I have resized all of them as well for mdpi but for some reason I get errors when trying to apply them all. If you cant find it I will send it to you here in a little bit though. I have been doing alot of reading and messing my phone up trying to figure out the best way to theme. For one I want to take the spinner out of the nfl program and put it in my theme but Im a long way from that. If you like I can send you over my notes as I come up with more discoveries of what it controlled where and how to edit its defaults to what I want.
PimpShit420 said:
yea there is only one problem with using this file that I have come across so far and its kind of big. The text color on all buttons is white so it cant be seen. The file itself is located in the framework-res.apk. I was using a program called winmerge to go through and the whole file is completley different but I havent figured out how to edit it nor how to read exactly what is says. I just formatted my laptop and put Ubuntu on it so as of right now I cant get the file to you, You can either search for Indigo_Blue Theme for CM6 here on XDA or blackle(google). The theme is in all hdpi but still has some good looking pngs you can use in your theme. I have resized all of them as well for mdpi but for some reason I get errors when trying to apply them all. If you cant find it I will send it to you here in a little bit though. I have been doing alot of reading and messing my phone up trying to figure out the best way to theme. For one I want to take the spinner out of the nfl program and put it in my theme but Im a long way from that. If you like I can send you over my notes as I come up with more discoveries of what it controlled where and how to edit its defaults to what I want.
Click to expand...
Click to collapse
Sure, if ya dont mind. I am not going to get into heavy themeing as you can see from my theme, but this is one of the things that bugs me as i want to change it and cant figure it out, lol.

Mod Requests/Ideas...

I'm looking to start a new metamorph project this week. So, I figured I'd ask the community if anyone had any requests of how they want their phone modded? If you have any ideas or requests of framework modifications (satus bar, status bar icons, battery, notification pulldown items settings menu, ex.), just let me know here or shoot me a PM and I'll see what I can do. Thanks!
I have posted this before but as far as I can tell no one has done it for eclair. I would like a set of black apps. I have the modded black dialer and would like someone to either create or help me create a black version of twitter, gmail and gtalk.
Black meaning the main screen are all black (aka no power used) with maybe a whitish text and grey highlight bar. I know this can be done as I have found it for froyo, I am just not ready to move to froyo yet as my bionix rom is nearly perfect.
adm1jtg said:
I have posted this before but as far as I can tell no one has done it for eclair. I would like a set of black apps. I have the modded black dialer and would like someone to either create or help me create a black version of twitter, gmail and gtalk.
Black meaning the main screen are all black (aka no power used) with maybe a whitish text and grey highlight bar. I know this can be done as I have found it for froyo, I am just not ready to move to froyo yet as my bionix rom is nearly perfect.
Click to expand...
Click to collapse
I have yet to modify an app, but I will definitely give it a try. It must be easier then modding the framework anyway. Do you have any screenshots of the froyo version? Or better yet, a link to download the apps for froyo?
I am by no means trying to steal anyone elses hard work I have seen the black apps in froyo rom called 928BlackDroidGlass there is also a market and twitter addon. I have tried to re-create these apps in eclair by doing a file by file compare of a standard froyo version and this version then using the diff files making the same changes in the froyo version. I have so far failed miserably. There are about 10 xml files just for gtalk alone that need color changes it seems. It would seem almost all the changes are to the background color or text color. I know I am close but just cant get it working and just dont have enough time to re-trace and find my error. If you like when I am home I can send you the filenames and locations that I suspect are the xml files that need to be changed for the gtalk app.
I took a look and think I know which files your talking about, but definitely send me what you got and maybe we can get it working.
Honestly I just want a plain touchwiz stock battery mod like how it should be. I started working on it but haven't picked it back up. I just want the stock color blue no percentage and it be accurate and compatiable with JI6.
mentalex2 said:
I took a look and think I know which files your talking about, but definitely send me what you got and maybe we can get it working.
Click to expand...
Click to collapse
This is what I believe are all the files needed for GTALK
*** Layout
chat_screen.xml
chat_view.xml
custom_title.xml
group_chat_approval.xml
picture_view.xml
search_results.xml
set_status.xml
*** Values
colors.xml
*** Drawable
chat_item_background.xml
In each there are settings for background of test color. It appears if we reverse the colors on them we may get the desired effect but I cant get it to work. Color codes appear to be FF000000 and FFFFFFFF
Any help yuo can provide would be much appreciated. Would also love to do this for other apps as I mentioned previously but have not had time to do a file compare on anything else.
P.S. Remind me to send you my twframework and framework files, a combination of mods based on bioni and black mesh with notification icons by s0niqu3 (her skills are unparalleled) and the accurate segmented battery mod (green as dont like the blue).
danr238 said:
Honestly I just want a plain touchwiz stock battery mod like how it should be. I started working on it but haven't picked it back up. I just want the stock color blue no percentage and it be accurate and compatiable with JI6.
Click to expand...
Click to collapse
You got it. I'm gonna get this up and running sometime this week. I take it you're on bionix?
Ps- I have created a blue battery mod WITH percentage ([Mod]Battery mod (blue, accurate) located somewhere in this thread.You can try it out to hold you over until I can get the new one up.
Sent from my SGH-T959 using XDA App
adm1jtg said:
This is what I believe are all the files needed for GTALK
*** Layout
chat_screen.xml
chat_view.xml
custom_title.xml
group_chat_approval.xml
picture_view.xml
search_results.xml
set_status.xml
*** Values
colors.xml
*** Drawable
chat_item_background.xml
In each there are settings for background of test color. It appears if we reverse the colors on them we may get the desired effect but I cant get it to work. Color codes appear to be FF000000 and FFFFFFFF
Any help yuo can provide would be much appreciated. Would also love to do this for other apps as I mentioned previously but have not had time to do a file compare on anything else.
P.S. Remind me to send you my twframework and framework files, a combination of mods based on bioni and black mesh with notification icons by s0niqu3 (her skills are unparalleled) and the accurate segmented battery mod (green as dont like the blue).
Click to expand...
Click to collapse
Sounds good. I'm away for the weekend, but I will contact you early next week. I'd like to get gmail running properly before moving on to other apps. Thanks for your help!
danr238 said:
Honestly I just want a plain touchwiz stock battery mod like how it should be. I started working on it but haven't picked it back up. I just want the stock color blue no percentage and it be accurate and compatiable with JI6.
Click to expand...
Click to collapse
I would love this for all the Froyo ROMs that are out. Or any morphs for that matter!
mentalex2 said:
You got it. I'm gonna get this up and running sometime this week. I take it you're on bionix?
Ps- I have created a blue battery mod WITH percentage ([Mod]Battery mod (blue, accurate) located somewhere in this thread.You can try it out to hold you over until I can get the new one up.
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Yeah I've used your mod and like it. Thanks for taking request. Like I said I started working on it but with a 2 an 3 year old and my wife working nights I have no time to dedicate to it. Thanks again!

gray background dialer

Hello all, I would like to ask a question on dialer streakdroid 1.9. are
managed to make my Contacts.apk transparent by simply adding
theme.wallpaper styles.xml in the background of my dialer but continues to be increasingly
gray. how can I do to make it transparent?. thanks
custom dialer background
Ive been searching everywhere building and testing contacts.apk, Can someone with some more code knowledge have a peek at this please?
Ive dug through all the .xml's, the Manifest .xml, the .smali (even though I dont understand very much at all), there are only a few .png's the rest are .9.png, so Im sure the grey comes from code. in colors .xml there are a couple which match this dark gray perfectly, I changed those to black as well as styles Theme to Theme.Black, and Theme.Wallpaper(which will change the other 3 backgrounds but not dialer), ive tried changing background only in styles, no luck.
I saw on Dell website where it says Streak has Customized Dialer, which obviously we know, but I think ours is a unique situation
chrisrotolo said:
Ive been searching everywhere building and testing contacts.apk, Can someone with some more code knowledge have a peek at this please?
Ive dug through all the .xml's, the Manifest .xml, the .smali (even though I dont understand very much at all), there are only a few .png's the rest are .9.png, so Im sure the grey comes from code. in colors .xml there are a couple which match this dark gray perfectly, I changed those to black as well as styles Theme to Theme.Black, and Theme.Wallpaper(which will change the other 3 backgrounds but not dialer), ive tried changing background only in styles, no luck.
I saw on Dell website where it says Streak has Customized Dialer, which obviously we know, but I think ours is a unique situation
Click to expand...
Click to collapse
"Customized" is not a word I'd choose to use when describing the horrible dialer. Hope someday we can improve it. I really think the dialer is the worst part of the UI.
if I find it I will gladly make a guide to theme it.
I may even send Dell developer an Email... oh yeah too late not supported..
chrisrotolo said:
if I find it I will gladly make a guide to theme it.
I may even send Dell developer an Email... oh yeah too late not supported..
Click to expand...
Click to collapse
+1
I think the EOL is only USA. But I don't think the dell dev team cares too much about us
Brainstorming: Reference for anyone else trying to find this..
the dialer background is not a .png, most images are .9's I pretty sure the background is not a .9.png. There is only one .png close to the color and Ive already tried changing that one.
It could be a color in color.xml, they could have coded it as android:color, but if they did that it would likely be a solid color such as black or transparent, and would have to rely on framework-res. More than likely they would have made their own color in colors.xml, since there is only a dozen or so, at least 2 of which are almost identical greys, I have tried changing these colors to black with no luck.
Ive tried changing almost every .xml refernce I could find to a drawable window/background, etc. to android:color"black" , Theme.Black or 000000,
It could be in .smali, Is where I will dig next, I have tried checking a few of the codes I found in there, they seem to be based on a deep purple?
this is just reference use to help others who may search, wish me luck!!
spelling error found DialtactsActivity.smali line 205 says: const-string v3, "Dailtacts" ,yeah wonder if this why dialtacts theme doesnt theme completly.
some progress!
I fixed the spelling mistake in DialtactsActivity.smali, though i dont /think/ this is what we see. I did change call_background.xml and secondary_call background.xml all parameters to android:color/black, I will keep experimenting, funny how in vertical only the right side of keypad is black,
Once we find the right string , we should then be able to create a custom style instead of just a solid color and use a custom background.png
edit: FOUND IT!, cant post screenie, out right now, should release something later and info. Sit tight everyone.
found it
right where its "should" be, contacts\res\layout-long-finger and res\layout-long-land-finger. the first is portrait, second is landscape. the file for both is twelve_key_dialer.xml. The first line:
LinearLayout androidrientation="vertical" android:id="@id/top" android:background="#ff000000"
just change the android:background="ffRRGGBB" to whatever 6 digit RGB/hex value you desire.
working on this now to call out a custom.png will likely get scaled like cr4p, but will give it a go.
If you dont have any .9.png errors decompiling, then you can recompile and flash it straight away.
If you use my phone&contacts theme, it wont compile because some of my .9.pngs must not be patched. So use stock to change, then after compiling extract the new .apk. If youre using my theme or whatever, then change my contacts.apk to contacts.zip, open my contacts.zip as an archive with 7zip, copy the 2 twelve_key_dialer.xml's, and close. Then in your stock framework where you changed the .xml's go to resources.arsc and right click use 7zip to add to archive... browse and select your contacts.zip with new .xml's. Its important that archive method is .zip and compression must be set to store. make sure update mode is: add and replace files. Then rename back to contacts.apk and place in your update.zip and flash!
I plan on making a guide and probably a stock framework with a custom.png for everyone to use.

[GUIDE][TUT][.9.png] Theming your SamsungIME Keyboard

Hey guys,
I was asked a week or so back to make a guide so others can theme the Stock SamsungIME.apk the way they like. I have made my thread to do this and you can put in request if this guide is not helpful(which I hope it is).
I will answer as many questions as I can, time permitting, and be as Noob friendly as I can, as well. I know this guide will not be perfect and there might be some things I am leaving out, and if so tell me, I will adjust the OP with any suggestions or changes. So here goes nothing...
Things you need:
Android SDK
Java JDK and JRE
Apktool
Notepad++
xUltimate-d9pc
Photo Editor (Gimp/Photoshop)
Before we begin, I am not going to go into how to load/decompile/recompile apks.. There are some good guides out there and here are some..
http://forum.xda-developers.com/showthread.php?t=2195680
http://forum.xda-developers.com/showthread.php?t=2206938​
After you have the SamsungIME.apk totally decompiled you will want to open the folder it decompiled into and start with the res/drawables-sw359dp-xhdpi folder. In this folder there is all the pngs you need to edit. For starters the keys themselves..
You want:
sip_key_bg_normal.9.png
sip_key_bg_option.9.png
sip_key_bg_pressed.9.png
​As you can tell, by the name, these are not normal pngs. You will see a 1 pixel border on all sides of the image. When editing the png either erase them or resize the canvas of the image. Just subtract by 2 form the height and the width, but remember when you save it re open it and adjust the canvas size back to the way it was. As my understanding of these goes, they are named this way because Android recognizing these .9.pngs and stretches them.. When I first attempted editing these I would have nothing but problems, of course because I was doing it wrong. I never could understand where the lines go and what they actually do. Thats probably because I was trying to do it with transparent/semi-transparent images and could not see the actual image expanding. Well when you are editing these with draw9patch, I noticed two very important things to look at (for the keyboard). The window to your right is how the actual image will look when expanded, but to see that you have to go to the bottom of the screen and the second scroll bar, move it all all the way to the right.
​
You will notice that it stretches the image.. This is the same thing Android does.
The middle image needs attention here because it expands it horizontally. So that means when you expand it all the way thats what you spacebar will look like. .
​
You notice that these edges (red lines) Are not defined they are rounded.. Because they are not patched correctly.
​Notice the difference? This after it was patched with the proper line alignment.
To start you want add to full lines on the bottom and the right side. Next is the top and the left side. These are the lines you need play with to make you image look right. I used to only add a 1 pixel dot in the middle and one pixel line on the left. But when I started getting more advanced with photoshop/gimp I noticed my images would not looking the same. When you add gradients or borders to you keys, seeing the image on the right expanded is important because you will draw you lines to make you image look like it did in photoshop/gimp. NOTE: Don't leave any space in the lines to the right and on the bottom. You can, however, do so on the left and top but it will distort your png.
Here are a few guides to help you if you have anymore questions:
http://forum.xda-developers.com/showthread.php?t=2326393
The next image of importance is:
qwerty_keypad_bg.png
​
This is the background of the keyboard.. NOTE: there is also one of these located in res/drawables-sw359dp--land-xhdpi, the only difference being the above image is for Portrait and land is for Landscape. Also, they are two different resolutions so be careful when changing them. You can change this image to anything you want.. It is a normal png so therefore no patching or further steps are needed.
Next would be all the other option pngs, backspace, space bar, voice, settings, enter key, etc. You will will find these starting with the word qwerty_.
So example:
qwerty_key_icon_enter.png
​
This is the enter key as it sits on your keyboard.. Yes there are other ones but there are for different actions.
Another thing we might want to change is the color of the CAPS key when it is enabled.
That png is named:
qwerty_key_bg_shift_capslock.png
​
As you can see a lot of these are named exactly what they are..well some at least..
Next is .xml edits. You want to locate res/values-sw359hp-xhdpi/colors.xml. You will need to open this with notepad++ to edit colors of the key text, pressed key text, shadow of those text, space bar lettering, etc. You will only (or I only do) need to focus on the first 12 lines. They pretty much explain themselves by there names.
Code:
<color name="normalkey_shadowcolor">#ff000000</color>
<color name="functionkey_shadowcolor">#ff000000</color>
<color name="functionkey_labelcolor">#ffe2e2e2</color>
<color name="normalkey_labelcolor">#ffe2e2e2</color>
<color name="pressedkey_labelcolor">#ff122438</color>
<color name="disablekey_labelcolor">#7fe2e2e2</color>
<color name="popup_normalkey_labelcolor">#ffffffff</color>
<color name="popup_pressedkey_labelcolor">#ff2d5a8c</color>
<color name="normalkey_extra_labelcolor">#ffe2e2e2</color>
<color name="spacekey_labelcolor">#ffb6b6b6</color>
Click to expand...
Click to collapse
You'll notice that the colors are hex codes.. So the first two letters or numbers is for the transparency.. The next six define the actual color.
After we have edited our xml we can go ahead and recompile the apk. You should recompile with no errors. If you do encounter an error it's possible that you edited the color wrong and made it seven letters instead of eight or vice versa. Make sure that you transfer the old AndroidManifest.xml and META-INF folder form your original APK and transfer them to your new APK in SamsungIME/dist/.
FInally, you can copy you NEW SamsunIME.apk to your sd card, reboot into recovery. I prefer this method (Thanks to @Deckoz2302) because I would have trouble with APK's fully copying through adb. When in recovery select Mount, then click System. Select back. Then select Advanced, than File Manager. When in File Manager goto wherever you put your new APK. Copy it. Then go to System/app/ and hit Select and slide to copy. Reboot!
:good:Special THANKS to: @Deckoz2302: Best developer I have ever talk to! @Rizal Lovins, @grilleld, @Arsaw, @twanskys204, @Winterlove, @GuneetAtwal and I REALLY hope I didn't leave anyone out! If I did I'm sorry, tell me and I will update!:good:​
FIRST......!!!
Thanks brother, I am going to give this a go tomorrow.
Today, young ,men on acid realize that all matter is merely energy condensed to a slow vibration, we are all one consciences sharing itself subjectively, there is no such thing as death, life is only a dream, and we are just imaginations of ourselves And now to the weather.....
Reserved. .
Sent from my Galaxy Nexus using xda app-developers app
This is quite the guide thanks so much for this.
Sent from Kendrick Lamar, King of New York
Nice Tut Great Work..!
Can all this be done on Mac osx?
Shamestick said:
Can all this be done on Mac osx?
Click to expand...
Click to collapse
If there is an Android SDK for OSX then i'd imagine it can be done on a Mac.
The SDK was fine, its getting the java jdk that's giving me issue
Shamestick said:
The SDK was fine, its getting the java jdk that's giving me issue
Click to expand...
Click to collapse
@Shamestick - Do you use Polaris to run Windows? That could work possibly.
Sent from my SCH-I605 using xda app-developers app
dudeicles said:
@Shamestick - Do you use Polaris to run Windows? That could work possibly.
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
I do not, and I haven't gotten a copy of windows to dualboot with yet either. My problems always come whe i try to go to the downloading site for java, it just will never open on chrome or safari
well done my friend ! Nice to see you here
Text color SamsungIME.apk Note3-MOD
I have a big problem.
I decompiled the SamsungIME.apk from Note3-MOD to change the color of the KEY-Text from BLACK to WHITE.
But I can't find the right XML and location where the code has to be changed.
Can someone help me in this topic?
Superwolf77 said:
I have a big problem.
I decompiled the SamsungIME.apk from Note3-MOD to change the color of the KEY-Text from BLACK to WHITE.
But I can't find the right XML and location where the code has to be changed.
Can someone help me in this topic?
Click to expand...
Click to collapse
They will most likely be in values/colors.xml
For testing I already changed every black code to white in this XML but it does not change.
Superwolf77 said:
For testing I already changed every black code to white in this XML but it does not change.
Click to expand...
Click to collapse
Oops sorry its in /values-sw359dp-xhdpi/colors.xml.. Took me a long time to figure out that! lmao! Anyways have fun hope I helped!
Thank you for the help. It works fine now.
Thnks sir.. usefull :fingers-crossed:
Apks?
For those who have made custom keyboards will you please post your apks?
Good
Thanks for your tutorial. I have a question about adding a backround image for the keyboard.Not sure if thread is to old so please respond if you an answer question and ill write it . thanks

Categories

Resources