[Dev Help]Editing Jelly Bean Keyboard Smileys - Android

Hi all,
I have decompiled the keyboard from JellyBean (LatinImeGoogle.apk) and was look through the .xml files.
I want to remove the "-" from the smiley faces. So
Code:
:-)
becomes
Code:
:)
In the ICS keyboard I know it was easy, the file to edit was something like res/values/strings.xml
However in JB that file does not seem right. I tried a few other files and even did a GREP search for the smiley strings yet still could not find it.
Any help provided would be much appreciated.
Cheers!

+1 for this!
Sent from my SAMSUNG-SGH-I717 using xda app-developers app

Linux?
You could try with a for loop for every file and then let grep do its job.
Or is that what you already did?
Sent from my Galaxy Nexus using Tapatalk 2

grep -r "" directory
It should be fine, also I will try to find it in my build tree.

Did anyone figure this out? I let grep run for close to an hour and nothing happened.

VoluntaryMan said:
Did anyone figure this out? I let grep run for close to an hour and nothing happened.
Click to expand...
Click to collapse
Did you append a directory at the end of the command. Even though an entire repo shouldn't take long at all.
Sent from my Galaxy Nexus using xda premium

Related

[Q] Rom Porting

There is a rom for the hero that I am interested in porting to the eris. I have dsixda's kitchen, and have experimented with it. I just need a little bit of instruction or a guide through the porting process. I am also a little confused with update-scripts and updater-scripts. Any help would be appreciated.
Anyone? I was trying to port aospCMod, the gingerbread rom that has a working camera on the hero. I am confused in dsixda's ktchen when it asks about update scripts and updater scripts. Please somebody help.
Update: I tried it. I have no idea AT ALL if it works. If anyone wants to try it, PM me. However, do it at your own risk. I have no idea if it might mess up your phone. I'm too scared to try it on my own phone.
I tried port it also. I got it all working but the softkey and the button lights.
Sent from my Droid Eris using XDA App
Did you just use the port feature in the kitchen or did you edit anything in build.prop? I wasn't sure if I should change things from heroc to desirec in build.prop as well.
Sent from my FroyoEris using XDA App
I can post my build.prop if you like.
my build.prop is ok but I tried flashing mine last night but I got an update script error on line 83 installing busy box which I didn't even add to the rom. Any ideas?
Sent from my FroyoEris using XDA App
You changed it from "updater-script" to "update-script"?
Leave it as "updater-script".
So which option in the kitchen should I choose: concert the script, let the kitchen create it for me, or do nothing?
Sent from my FroyoEris using XDA App
Do nothing.
Ok I tried again this time there was a prop error so I assume that means my build.prop is wrong. Could you please post your build.prop like you mentioned before?
Edit: disregard that I know what's wrong I don't need it.
Sent from my FroyoEris using XDA App
If you guys don't mind, could you post your build.prop?
What build.prop edits have worked for ya'll? I've been experimenting but no luck yet.
Sent from my ERIS using XDA App
asiandrg0n said:
If you guys don't mind, could you post your build.prop?
Click to expand...
Click to collapse
You can extract build.prop files from any ROM you like by unpacking the "boot.img" file.
To unpack the boot.img file, the tools you need to do this are:
- split_bootimg.pl (which needs perl)
- gunzip, cpio, and perl
If you are exclusively on Windows, you can install Cygwin to get a Unix emulation shell (command window) with all of the above utilities. (The Cygwin installer is quite straightforward and easy to use).
You can find the "split_bootimg.pl" perl script plus a detailed tutorial on how to do this at this android-dls.com page
Apologies in advance if you already knew this.
bftb0

[MOD] Multi DPI Dialer Tab

I wanted this so bad that I just ended up making it myself.
This is a slightly modified Contacts.apk which has a scaled dialer pad for those of us running a different DPI than stock and don't want the dialer all squished into the corner.
***Please don't attempt this if you aren't sure.***
To install FIRST BACK UP your current Contacts.apk (and Contacts.odex if you have one)
Two Methods:
Using adb:
Code:
adb shell mount -o remount rw /system
adb push Contacts.apk /system/app/Contacts.apk
adb shell rm /system/app/Contacts.odex
adb reboot
OR using Root Explorer:
Copy this Contacts.apk to your SD card
Navigate to /system/app
Mount as R/W
Rename Contacts.apk (and Contacts.odex if you have it) to Contacts.apk.bak (and Contacts.odex.bak)
Copy the new Contacts.apk and paste it in /system/app
Change permissions of pasted file to rw-r--r--
reboot phone
Contacts.apk
Wouldn't root explorer work also. Might be easier for the newbies
Sent from my SAMSUNG-SGH-I777 using XDA App
clown_luv said:
Wouldn't root explorer work also. Might be easier for the newbies
Sent from my SAMSUNG-SGH-I777 using XDA App
Click to expand...
Click to collapse
Good point. Updated first post. Thank you.
Works perfectly!
Thanks for the Multi DPI Dialer Camoto...Worked like a champ and now I have full dialer at 200DPI on the phone.
Works great. Thanks. The only problem i see is that this doss not change the incall keypad. Any fix on that?
simpl3lang said:
Works great. Thanks. The only problem i see is that this doss not change the incall keypad. Any fix on that?
Click to expand...
Click to collapse
I didn't realize that. I have tried a few changes here but I can't seem to figure out which XML file controls the layout for the in-call dialer...
camoto said:
I have tried a few changes here but I can't seem to figure out which XML file controls the layout for the in-call dialer...
Click to expand...
Click to collapse
If anybody knows the answer to this or can help me out, I am not able to figure this one out...
camoto said:
If anybody knows the answer to this or can help me out, I am not able to figure this one out...
Click to expand...
Click to collapse
How did u manage the first one anyways? I would like to know so i can learn it too. Thanks.
simpl3lang said:
How did u manage the first one anyways? I would like to know so i can learn it too. Thanks.
Click to expand...
Click to collapse
I was using this guide.
http://forum.xda-developers.com/showthread.php?t=863519
I have given up on this in favor of using Go Dialer EX which scales and is pretty slick.
deleted
download link is down man ... plz reupload and make a mirror..
eagerly waiting to see if it works ...
Thanks !!1
I think @camoto is not listening to us
Can someone else who has the Multi DPI dailer tab, upload it somewhere ...plzzz .. i really need it !!
Thanks in advance !1!
dev997 said:
I think @camoto is not listening to us
Can someone else who has the Multi DPI dailer tab, upload it somewhere ...plzzz .. i really need it !!
Thanks in advance !1!
Click to expand...
Click to collapse
+1
transmitted from the Dark Obelisk

Change the default settings?

Hey, I tried googling and searching this but couldn't find my answer so thought I'd ask.
I just want to change the default settings of a ROM, what files do I edit and what's the basic syntax? I tried looking around Settings.apk but couldn't find the right file, I'm not sure what the structure of the apk is though.
Thanks in advance
Maybe build.prop in /system
Sent from my MB525 using XDA
Can't seem to find the settings in build.prop, just system values. I just want to change what the options under the Settings app are by default in the ROM.
Default Settings are in:
"/frameworks/base/packages/SettingsProvider/res/values/defaults.xml"
See Link
best regards
ExtremeGTX said:
Default Settings are in:
"/frameworks/base/packages/SettingsProvider/res/values/defaults.xml"
See Link
best regards
Click to expand...
Click to collapse
Thanks, that link shows the exact file I'm after. Sadly, however, the HTC ROM I'm working on appears to have a different structure. At least I know the file I'm looking for though, but sadly searching for the name doesn't do much because Ubuntu's search is useless
on Ubuntu i'm using Notepad++ search function (you will need Wine)
it's really awesome, especially with projects like linux kernel, AOSP, etc.
ExtremeGTX said:
on Ubuntu i'm using Notepad++ search function (you will need Wine)
it's really awesome, especially with projects like linux kernel, AOSP, etc.
Click to expand...
Click to collapse
Really? lol
Code:
grep -irn "STRING_TO_FIND" *
A lot of overhead to search eh?
I meant for finding files, not strings within those files, Gedit can do that easily
Hexgore said:
I meant for finding files, not strings within those files, Gedit can do that easily
Click to expand...
Click to collapse
For finding files you can use "find -name <filename>"
Sent from my GT-P1000 using XDA
cdesai said:
For finding files you can use "find -name <filename>"
Sent from my GT-P1000 using XDA
Click to expand...
Click to collapse
I'll try that next time I need it, thanks (just finished my ROM stuff for the day)

[NEED GUIDE] Resizing .apks

Hey guys, the title says it all. I did a google search but came up with a lot of unanswered xda threads. Does anybdoy know? If they do, could they post a guide? It would help a lot of people!
Bump, anyone?
This may or may not do the trick...I can't try because my Ubuntu is messed up! Here you go...http://forum.xda-developers.com/showthread.php?t=1491689
I'm working on installing it on my Windows PC.
Yes indeed, my tool is able to do resizing.
The point is I don't know what key to sign with xD
I will try and experiment tomorrow
Sent from my Galaxy Nexus using Tapatalk 2
Very cool I already have this tool and tried to resize but it gave me an error. mDroid, does it work on fedora?
THEindian said:
Very cool I already have this tool and tried to resize but it gave me an error. mDroid, does it work on fedora?
Click to expand...
Click to collapse
Wich error?
I'm not sure...
I can resize APKs for you, I just did one for invasion and that worked.
About fedora:
Open a terminal and type this (w/o quotes):
"python"
Tell me the output
"import gtk
import pygtk"
Give me the FULL output of your new-opened terminal.
Then try to launch the SAP file from my tool.
Sent from my Galaxy Nexus using Tapatalk 2

[Q] How to decompile and re-compile settings.apk for KitKat 4.4?

Ill start with my story...I want to modify settings.apk and put a few of my own apps in and change the appearance a little bit. I decompile with apk manager and i get res, smali, and AndroidManifest.xml. I don't get apktool.yml, i dont have a problem with this with a jb 4.3 settings.apk. I try to re-compile after edits but I can't because of the missing yml file. Does settings.apk for 4.4 have dependencies I require? Im running slimkat 4.4 for the SGH-T889. I just began learning and find this new world very intresting. Any help, tips, and advice would be amazing! Thank you for time
Ill start with my story...I want to modify settings.apk and put a few of my own apps in and change the appearance a little bit. I decompile with apk manager and i get res, smali, and AndroidManifest.xml. I don't get apktool.yml, i dont have a problem with this with a jb 4.3 settings.apk. I try to re-compile after edits but I can't because of the missing yml file. Does settings.apk for 4.4 have dependencies I require? Im running slimkat 4.4 for the SGH-T889. I just began learning and find this new world very intresting. Any help, tips, and advice would be amazing! Thank you for time
Click to expand...
Click to collapse
Have you installed framework-res.apk?
Sent from my GT-I9001 Gadget of Mass Destruction with CM11 using XDA Developers App.
hnkotnis said:
Have you installed framework-res.apk?
Sent from my GT-I9001 Gadget of Mass Destruction with CM11 using XDA Developers App.
Click to expand...
Click to collapse
I have place framework-res.apk in C:\Users\Droid\Desktop\APK-Multi-Tool\other folder. I took it out of the framework folder of the un zipped ROM. This seems to work with 4.3 without a problem. I'm stumped haha
TheStart101 said:
I have place framework-res.apk in C:\Users\Droid\Desktop\APK-Multi-Tool\other folder. I took it out of the framework folder of the un zipped ROM. This seems to work with 4.3 without a problem. I'm stumped haha
Click to expand...
Click to collapse
You need to install it before decompiling.
I suggest you to use "Android Multitool" (Do not confuse with APK Multitool).
It has nice GUI insterface.
Try with it.
There is menu to install framework.
hnkotnis said:
You need to install it before decompiling.
I suggest you to use "Android Multitool" (Do not confuse with APK Multitool).
It has nice GUI insterface.
Try with it.
There is menu to install framework.
Click to expand...
Click to collapse
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:244)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:240)
... 4 more
The system cannot find the file specified.
The system cannot find the file specified.
TheStart101 said:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:244)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:240)
... 4 more
The system cannot find the file specified.
The system cannot find the file specified.
Click to expand...
Click to collapse
See these are why tools like APKMulitool are not that friendly.. My suggestion to you is Google "apktool" find the Google developers site, download it.. Place all files in folder on C:\ and name it apktool..open cmd prompt at that destination..so it would be C:\apktool, then type in cmd prompt:
Code:
apktool if framework-res.apk
this installs the framework..
To decompile apk..place that apk in that folder then type in cmd prompt
Code:
apktool d settings.apk
to recompile..
Code:
apktool b settings
:thumbup:
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
See these are why tools like APKMulitool are not that friendly.. My suggestion to you is Google "apktool" find the Google developers site, download it.. Place all files in folder on C:\ and name it apktool..open cmd prompt at that destination..so it would be C:\apktool, then type in cmd prompt:
Code:
apktool if framework-res.apk
this installs the framework..
To decompile apk..place that apk in that folder then type in cmd prompt
Code:
apktool d settings.apk
to recompile..
Code:
apktool b settings
:thumbup:
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Sia, I have tried that to my friend. I wonder despite as badly as i wqant to learn if i should just surrender, and go back to useing cheat engine on facebook games :/
TheStart101 said:
Sia, I have tried that to my friend. I wonder despite as badly as i wqant to learn if i should just surrender, and go back to useing cheat engine on facebook games :/
Click to expand...
Click to collapse
Post a screen shot of you installing framework.. What ROM are you decompiling this from?
The problem I think is resulting from framework not installing properly..
Sent from my SCH-I605 using xda app-developers app
I have uploaded framework and setting apk, Maybe one of you can try to decompile it and if it works tell me what kind of environment you have have set up?
TheStart101 said:
I have uploaded framework and setting apk, Maybe one of you can try to decompile it and if it works tell me what kind of environment you have have set up?
Click to expand...
Click to collapse
That won't do you any good lol.. Then how will you recompile BC u won't be able too..just post the screenshot of your framework installing
lacoursiere18 said:
That won't do you any good lol.. Then how will you recompile BC u won't be able too..just post the screenshot of your framework installing
Click to expand...
Click to collapse
Your right, but I'm curious if maybe i messed something up, i am far from dev lol. Any ways it was 1mb over the threshold lol
danm captcha ha
lacoursiere18 said:
That won't do you any good lol.. Then how will you recompile BC u won't be able too..just post the screenshot of your framework installing
Click to expand...
Click to collapse
Your right, but i am very far from dev. I wonder if maybe somethings outdated or wrong although i've been at this for days and nights trying to make a breakthrew, It works for jb 4.3 i just havent tested the recompiled app yet. Anyhow heres your screenshot...
TheStart101 said:
Your right, but i am very far from dev. I wonder if maybe somethings outdated or wrong although i've been at this for days and nights trying to make a breakthrew, It works for jb 4.3 i just havent tested the recompiled app yet. Anyhow heres your screenshot...
Click to expand...
Click to collapse
Thanks..OK its the framework..whatever ROM u got that from is not going to work.. So I suggest using a cm11 framework res or another of your choice.. I have seen this problem on nightly builds..
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
Thanks..OK its the framework..whatever ROM u got that from is not going to work.. So I suggest using a cm11 framework res or another of your choice.. I have seen this problem on nightly builds..
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Thank you very much, though I'm kind of sad now haha. The slimkat is the best rom I've come across and there is very little I want to mod. Any how looks like I'm off to download CM I appericate the help so much!!! I've been up for two day trying to figure this out lol
TheStart101 said:
Thank you very much, though I'm kind of sad now haha. The slimkat is the best rom I've come across and there is very little I want to mod. Any how looks like I'm off to download CM I appericate the help so much!!! I've been up for two day trying to figure this out lol
Click to expand...
Click to collapse
See that's even funnier.. I ran across this guy that had the same issue as you and it was the same EXACT rom..slimkat.. Don't know what the issue with is.. Maybe he doesn't want you modding his framework lol..I would post in that thread and ask
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
See that's even funnier.. I ran across this guy that had the same issue as you and it was the same EXACT rom..slimkat.. Don't know what the issue with is.. Maybe he doesn't want you modding his framework lol..I would post in that thread and ask
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
I don't know it says it's open source and gives you the link to all the code on github ;o who knows, but for now I want to try again and hope i get somewhere this time Maybe the next rom you install will be one I made Again I thank you very much
Hi there,
sorry for warming up this thread. I don't find the Settings.apk:
C:\Program Files\_Android\SDK\platform-tools>adb devices
List of devices attached
59973133 device
C:\Program Files\_Android\SDK\platform-tools>adb pull /system/app/Settings.apk
remote object '/system/app/Settings.apk' does not exist​
So the device (Kyocera KC-S701 unrooted) seems to be connected, but no Settings.apk. Also not when using "adb shell" with "cd system/app" + ls.
A bunch of files but no Settings.apk.
Any ideas?

Categories

Resources