With SMS messages, android by default turns this : ) into this (figuratively)
Where might the code be located that does this text to png recognition? I know the png themselves are located in the framework-res.apk but couldn't fine the code that pulls those png whenever anyone types in : P.
My friend and I want to try and insert keywords that are recognized by the phone to insert a new png emoticon. We know that only we will see the emoticons when anyone types the keyword but that is our goal.
I tried looking around the framework-res.apk for this but all I found were animations and images.
It is actually stored in the font files for Android. Back in my htc rezound days I wrotea file that enabled the jellybean emoticons on ics. I can't remember off hand where those files are or what you need to change, not sure if samsung handles its fonts the same. But hopefully this helps you some. I can look into it at some point for you
Does anyone know where the font directory is that Oakley is talking about?
Or anyone have any more insight?
Related
I am inverting the stock 3.0 Mms app and I have it about 98% done. My problem is the Quick Text list is black text on black background. I am looking for someone that is good with smali to give me a hand finding this text color change.. If any of you smali experts can lend a hand, shoot me a pm and I will send you my app and you can open it up and take a look, THANKS!
Just use a grep program to search through it yourself such as fileseek on windows http://www.fileseek.ca/. They're probably in an xml file. It's most likely not going to be in the actual smali code.
I have already located the xml that controls the list. However any changes to the text style has no effect, this leads me to think it is a smali edit...
ecsnead69 said:
I have already located the xml that controls the list. However any changes to the text style has no effect, this leads me to think it is a smali edit...
Click to expand...
Click to collapse
Try using the grep program to look through them or convert the apk to a jar using apk2jar and read them in http://java.decompiler.free.fr/
Anyone that would do it for you would most likely be doing the same. The only file I could really see them being in is the Strings file (R). It would be really bad coding for htc to stick them hard coded in the code itself.
I'm currently trying to theme my dialer for my xperia play ; I've found that its located in semcdialer.apk but my problem is with changing the text colour of the numbers - They don't seem to be in picture format so i presume the information is stored in the xml files but I can't edit these using notepad++ (most of it is giberish).
EDIT- Fairly new to all this and i'm guessing there's a simple solution like using another program...
Am i allowed to bump my own topic?
Hello,
I'm wanting to remove those annoying little green emoticons from my phone. I DON'T want to use a different app. I just want
Code:
:)
to remain a
Code:
:)
. I've located them in /system/framework/framework-res.apk.
Phone: Droid X2
ROM: CM9 Alpha 5
Any ideas?
Use GoSMS? They have different emoticons.
This is just a theory based on my knowledge of how stuff works. When you type in the text smiley face, it tells the phone to replace it with an image. Somewhere on the phone in some file is probably some code that has the path to the image. If its anything like a web page, removing the image but keeping the path may result in something unwanted when typing the text smiley face. Unless there is a code somewhere that tells it to default to text when the image is not found. Bottom line is, if you know how to edit the framework-res.apk, you can try to either delete the images and see if it works, or the next best thing you can do is replace the images with another set of emoticons you can live with.
I may have looked to far into that. lol.
Just make sure to backup your ROM before making any changes.
Hi,
I want to change default emoticons to something else, cause I dont like the green ones.
I've read that I have to modify mms.apk. But in Nubia, sms app is integrated with phone and contacts app, right?
Can someone tell me the the name of the apk and a location? I've looked in /system/app but found nothing interesting there (I think).
Anyway, when I have the right apk what am I supposed to do?
Can I just extract apk (with 7zip), change the pngs and pack it back?
Hi! I'm new into creating themes, and I'm looking for a tool that could make it easier. I know how to extract .apk, how to replace images, modify .xmls, but often I don't know what an image is for. Let's say im modding SystemUI and I want to change background of my notification bar. The only thing I know is that inside drawables folder I have to look for something named notification_bar.png, something like that. I was looking for an app that could tell me how an image inside an app is called in code ( example: I'm inside calculator app, I press on background and the app says that file is called background.png and is inside drawables-xxhdpi). I tried Android Studio --> Layout Inspector, but it didn't help me at all because, well, I just don't understand it.
Of course, while modifying SystemUI I can look for explaination of certain pngs on the internet, but
-not every SystemUI is the same
- if I want to change drawables of an app that doesn't have specific explaination I have to know how to identify drawables.
It must be possible somehow, because I've run into some themes that modify external apps (like WhatsApp, SuperSU etc.)
Those ppl had to know what certain .png is for, the question is: How?
I don't believe they just had to sit there and try every possible combination.
Also, inside SystemUI there's A LOT of files that are never used, and their names can be misleading.
Is there any way to identify drawable inside running app easily? Without digging in code and guessing?
Thanks in advance for any answer
I tried to analyze Mms.apk (it's system app). I was looking for a drawable representing default contact icon, here called ic_contact_picture.png .
I actually managed to find a proper layer in Layout Inspector(ConversationListItem.xml), analyzed it and found a code referring to table "id" in resources.arsc . The object the id referred to was called "avatar". And that's it. I couldn't find id(I got it from resources.arsc/drawables) of ic_contact_picture.png anywhere in that layout. There was only id referring to "id/avatar". It doesn't make any sense.
How do I find drawables using Layout Inspector or any other tool?
It was easier when it came to text. I also found an id referring to resources.arsc/id, but that id was included in the layer I was looking at (ConversationListItem.xml).
But I still wasn't able to perform any action on that text, because there wasn't any setting like text color or anything, there was just a line android:textAppearance="@attr/0x1010041"
It is an attrib from framework-res.apk, but when I opened framework-res.apk and found that attrib there was no reference to anything like color, font, so there was nothing I could really do.
Can someone help me with those 2 problems?