So I have an idea, I'm trying to modify the stock keyboard sound. the stock sound for the keyboard is a little annoying. What I would like to do is customize the sounds a little bit, maybe make different keys make different sounds. But since the stock android keyboard has only 1 sound for all keys, I'm not exactly sure on how to go about that.
Any suggestions?
I see over 80 views and no replies?? anyone have any ideas??
I'm not 100% sure on how to do it, but you should start by pulling the APK from the phone. From there, look through the folders until you find a couple files that say "Keypress" in them and are .ogg files (KeypressDelete.ogg, KeypressStandard.ogg something like that) Replace them with the sounds you want and push it to your phone, make sure it is a .ogg file and has the same name. Let me know if this works or if you have any problems.
Thanks for the reply. I have gone thru that and found the keypress.ogg and keypressdelete.ogg files and replaced them with new sounds, named the same of coarse (they were located in /system/media/ui) and it ended up doing nothing. I found it weird that those .ogg sounds were in there considering they were sounds that arent associated with my keyboard at all because my keyboard doesnt make any of those sounds. So I pulled swype.apk and mms.apk and found the .ogg files in them, changed them, but now I cant reinstall those to my phone, it comes up with an error saying it cannot be installed (I dont use adb, I just use root explorer mostley and then just install apk's on my phone haha). I remember reading that sometimes the apk wont install if its not signed, and since my phone doesnt tell me anything other than "app was not installed successfully," I thought maybe Signing would be the issue. So I tried finding SignApk and a how to guide, but was unsuccessful with that.
If I do get the sound to work on the keyboard, I'll be happy. But ultimately my goal is to make it so that every key has a different sound. That sounds like a job for someone who can write code, which I certainly cannot haha. But it sounds like it wouldnt be too big of an deal to do if you can write code.
I figure I can start out, and correct me if I'm wrong on this, figuring out how to write even a little bit of code and try modifying the stock keyboard to do these sounds. example:
"when "A" is pressed, start soundfile1.ogg"
"when "B" is pressed, start soundfile2.ogg"
Thanks again for the info and sorry I wrote a freaking book hahaha
Related
I just installed the X-plore ROM last night and I love it. The only thing that is bothering me is a certain system sound. I first heard it when booting into WM6 for the first time before the on screen tutorial, and now I hear it when I get almost any kind of error. It's a rather obnoxious noisy sound and it even irritates my cats. I don't know what the sound is called but I sure wish I did. It is a kind of stuttering noise and it definitely seems to be associated with certain events, but I'm not 100% clear on which events exactly.
It isn't listed in the Sounds part of the control panel (I tried listening to all of those) and it isn't in any sound file in the Windows folder. I tried using Search to find files that are .wav , .wma , and .mp3 but Search doesn't seem to look in all folders.
I found out how to disable specific event sounds with a registry tweak but I would rather just know where this sound is stored so I can change it if possible. I tried searching the forums here but I'm not finding anything useful.
Many thanks in advance for any help!!
p.s. I just realized I forgot to say this is the PDA Mobiz version of X-plore , so it might have been added somewhere down the line.
I post this in my SGS4G Forum, but haven't gotten any hits, trying to broaden my chances of getting some help.
Ok, before i posted this i searched high and low and really couldn't find a strait answer. Here is what i am trying to do... I have a bunch of cool sounds... I would like to set these sounds as key tones... you know, like when i dial a number on my key pad.
So i got all the files in order, converted them to .ogg, and placed them in /system/media/audio/ui and renamed them key1.ogg key2.ogg etc.... Well nothing happens, i cant even play the file, it says its "unrecognized" by the stock media player and Rockplayer. anyone have any ideas?
I read somewhere that the "program" that plays these files will only recognize certain codecs or something, That is a little outside my AO (area of operation)....any help would be greatly appreciated!
panda
I found this
http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html
However, i am not a Dev so this might as well be Japanese, any hints?
That link is relevant for writting an app that plays sounds.
The app that does this, the dialer already exists though.
This rather sounds like a codec problem.
If you can't open and play those files with the native android player on your phone, the dialer won't be able either.
Recheck the encoding on those sound files and try again.
they will play from the sdcard, but when i move them to the UI folder on the root, they wont... still an encoding issue?
Could be a permission issue.
There is no permission issue on the sdcard, as all files are accessible to everyone, but this doesnt apply to files in the root folder.
So try changing the permissions.
Changed the hell out of the permissions, which made the native player play the file.. YAY!! However......when i changed the file name to Key1.ogg from key1a.ogg, i press the corresponding number on the dialer...i get nada. so sound at all, i will play with permissions a little more, maybe change the format to a lower quality file and see if that helps... Thanks for the insite!
Well the filename has to be the same as the original one, CASE SENSITIVE mostlikely.
To make sure you have absolutely the same kind of file you could extract the original sound file and use a common player (i.e. VLC?) to check the bitrate, encoding, kHz etc.
I DID IT!!! WOO HOO.. what a pain in the ass! LOL I made the files smaller... less than 16hz and 92kbps.. then sent them all to drop box... copied them to the ui folder... THEN...I renamed the originals...then renamed the new ones.. giving them god permission. It worked!! Wish i was more of a Dev.. i'd make an app to simplify it...took about an hour once i got the hang of it....
Okay, well today, I picked up a new HTC One X. First impressions were pretty good, and I have to say that as of yet, it's looking like it's a pretty good handset.
However; there's one thing about it that really bugs me. SMS messages apparently force you to use these utterly horrific smileys. I was never a fan of the old android icons that occasionally popped up, but these icons are just plain god-awful. Is there any way of disabling them?
(To be honest, I'd much prefer just to have your standard ASCII faces... Not to mention, if you happen to need to send a message that just happens to have the characters in that order, I'd rather not have badly made face icons appearing in the middle of it..)
bump. I can't believe htc require you to install a 3rd-party sms app in order to be able to get rid of emoticons. I'm a 40-yr old man, I don't want to see a crappy cartoon face in my text messages...
thanks for this nice q
3lliot said:
bump. I can't believe htc require you to install a 3rd-party sms app in order to be able to get rid of emoticons. I'm a 40-yr old man, I don't want to see a crappy cartoon face in my text messages...
Click to expand...
Click to collapse
My thoughts exactly... Not to mention, they're so badly designed that I spend more time working out what emotion they're actually supposed to convey, rather than reading the actual message...
Seems slightly out of place, too. The rest of the UI is nice and clean, fairly sleek looking - then you have these ridiculous cartoon faces slapped accross all of your texts..
I'm going to go ahead and bring this thread back from the dead.
Last time I tired to fix this by modifying my framework files and ended up soft-bricking my phone.
There's got to be a better way.
bump?
Untested Solution
EDIT: I looked more into it, and it gets pretty complicated. According to a StackExchange post I found (link in the attached .txt file), you can go through a process to retrieve the source code from the original .apk file BUT it requires the classes.dex file to be intact. That means you have to de-odex the Message+Nonprime.odex file, "re-dex" it into classes.dex, and add it to the Message+Nonprime.apk archive (can simply change the extension to .zip and add the file before continuing the linked steps).
After following all of those steps, I ended up with the source code and readable XML files. Unfortunately, trying to open them in Eclipse does not work, as I'm apparently missing key HTC resources (or I just don't know where the resources files should be pointing). I was hoping for the ability to just change the name across any necessary files, then repackage, but it doesn't seem to work like this.
I've also tried taking the original APK, adding the .dex file (created from the .odex -> files/folders -> dex process) inside, and signing the package (after deleting the META-INF folder containing HTC's signed information). I was hoping that signing the package after renaming it to Message2.0.apk would allow me to install it as a user application (I don't have root or the ability to change the bootloader to overwrite system applications, due to the 4.2.2 update) but the install always fails since "the application is already installed." If I knew how to modify the files within classes.dex properly, I'm sure I could rename the entire package and create a "New" application, but for now I've hit a brick wall. Hopefully if anyone reads this they can build on my failed attempts.
======================================================
======================================================
I stumbled on this (admittedly old) thread, and I don't know if anyone cares, but I've figured out what seems to be key in disabling smiley images from appearing. Below is the information of the phone I'm working with:
Phone Model Number: HTC One X
Android Version: 4.2.2
HTC Sense Version: 5.0
Software number: 5.18.502.1
HTC SDK API level: 5.41
Android uses "SmileyParser" to watch for certain key combinations and replace them with preset images. The theory is that by changing the strings SmilelyParser checks, it won't ever find a match, and they won't be replaced.
I found the Message application under /system/app/Message+Nonprime.apk. HTC's Message application utilizes Android's android.com.mms but has custom functionality/themes (I'm assuming)
Using ADB (Android SDK tool to browse filestructure), I used "adb pull [source] [local]" to copy the .apk and .odex files
I used "smali-#-#-#.jar" and "baksmali-#-#-#.jar" to convert the .odex file
The output of the tool gives a file structure with editable files. I navigated to com/android/mms/util/
In this folder, there are two key files: SmileyParser.smali, and SmileyParserOne.smali. I believe the "One" version may be modified to work with HTC One phones, but I'm not 100% sure (content looks similar)
I opened each file with Notepad++ and found "const string" references with the text version of an emoticon. The code seems to match those with "aput objects" but I don't know 100%
I modified each string (within the quotes) by just adding an 'x' to hopefully thwart the string match. Basically, the phone should wait until x or x is fully matched before replacing the smiley
I'll note again, I did the EXACT same process in both .smali files I mentioned, and I touched ABSOLUTELY NOTHING ELSE. There's no telling what you'll break if those don't compile correctly (which is why I also avoided adding a longer string, in case memory allocation issues cropped up)
I then repackaged the entire output I created into a new .odex file
Now, here's where things get tricky. I don't have a rooted phone, so I can't actually replace the .odex inside of the /system/app folder. I may work on testing on my phone (but I don't get a lot of time and really would not like to brick it), but I'm worried since I'm running a very recently updated Sense version (and there may not be reliable root processes, I have no idea).
If anyone has a rooted HTC One X (check above for the exact software version I have) that would like to try out the modified .odex file (apk is mostly UI/theme, .odex contains the actual programming logic) I am providing the .zip containing the apk and odex files. I've also tried installing the apk+odex with "adb install X/X.apk" but the application has a name buried in the structure (probably everywhere) and I have no idea how to rename it everywhere that's required.
If someone knows how to take a package and re-compile it with a new name, I could potentially re-install "Message 2.0" as a user app without any root privileges required. That's another option I'm looking into (since I'd really rather not root and potentially lose my stored data).
The same problem is still occurring in 2018. I would try your solution, but it's outdated. I'll have to dive in and edit the files myself if a solution isn't found. Although, in that case, I would probably match something further from the x, preferably with 2 bytes because as you said, memory issues might pop up and I'm not sure just how far they went with this.
Dear fellows,
Lately I've been looking for a way to manage all the sound alerts from one point. You know, one application to manage them all. ...or at least the gapps and whatever comes standard with AOSP.
Is there such an application?
Or, if not, is it possible to modify other application's settings? For example from Tasker? Or maybe even start a project for an Android sound themer. (I would have a good reason to start learning programming)
Thanks!
You mean something like "Notification Manager" by Mikael Setterberg? Or different yet?
No, not something like that. That's something totally different. And I've found n+1 programs that do that.
mean something that would allow me to change the notification/ringtone sounds from one place for many/all apps. Maybe even allow me to apply sound themes (like there are on Symbian).
Well, you could point all your alert-tones to a file or group of files on the external memory card (or anywhere really) and then just replace those files with whatever you want by connecting it to you computer and overwriting the files (same file name) with whatever sound(s) you want that day.
I suppose you could do essentially the same thing with something like Astro in-phone as well.
Also, there's a thread (or threads) on this site that teach how to write scripts. You could handle such (delete - copy - renaming) in a script I assume. The logic would be pretty simple I think.
So to be clear, you're changing the files out from under the alert setting assignments so that the phone settings always point to the same path/filename. Only you're changing (by overwriting) the content of those files.
Bifurcator, I know about this solution too. I was wondering if it's possible to change the actual setting, to make the change in the application's settings.
Looking for a simple small windows program that will simply show correct icons for .apk's on my PC
I set a default .ico for all my apk's but something showing the correct .ico for apk's would be great.
Is there one available?
Thanks to anyone replying.
There's got to be something??? anyone?
I remember when I played around with a Nintendo DS I found some type of shell extension that would show .nds games icons...
Was really hoping this was out there for .apk's
Really....no one can answer me on this subject....ugh
Either its a dumbass question and the asnwer is so simple anyone reading it just pass's it up, or noone is understanding my subject...OR theres nothing out for pc to do this...maybe i should make something?
Anything guys...**** give me an answer....even a "hey ceaser shut the **** up" would be somthing
Im talking to myself in this thread
ceaserone said:
Really....no one can answer me on this subject....ugh
Either its a dumbass question and the asnwer is so simple anyone reading it just pass's it up, or noone is understanding my subject...OR theres nothing out for pc to do this...maybe i should make something?
Anything guys...**** give me an answer....even a "hey ceaser shut the **** up" would be somthing
Im talking to myself in this thread
Click to expand...
Click to collapse
Not anymore, i might have a solution for you
first get the image you want to use as an icon and resize it to be EXACTLY 256x256 and in .ico format
then click run in start menu and type regedit
allow UAC if needed
make backup of registry
if you want to just change the icon to know what it is, go to HKEY_CLASSES_ROOT\.apk
if it isnt there, right click on the folder and create new key called .apk
check if the (default) entry is blank, if so, then create a new key in the same place as .apk and call it something.Assoc.APK (not tested)
in the new key, create a key called DefaultIcon, and in that create a REG_EXPAND_SZ and put the full path in quotes of the .ico file
tell me if it doesnt work and include screenshots
Thanks for the reply...whats I actually ended up doing is making an .ico of a droid and basically setting the file extension within windows to use that ico with any apk...thanks for the info above though
ceaserone said:
Thanks for the reply...whats I actually ended up doing is making an .ico of a droid and basically setting the file extension within windows to use that ico with any apk...thanks for the info above though
Click to expand...
Click to collapse
What i said was the proper method, for someone searching for this thread could you tell how you did it
i guess my help was not appreciated