[MOD] Phisycal mic key remap to silent key + Latvian diacritics - Samsung Captivate Glide

This is intended for typing Latvian diacritic symbols using a remapped mic key (google voice search) as the modifier key (you have to hold it down while pressing the letter).
Please make a backup of the respective files in your system, as I take no responsibility if you mess something up.
This is meant only for the physical keyboard of Samsung Captivate Glide i927, for the virtual/soft keyboard I suggest you use Google Keyboard.
THIS WORKS ONLY ON STOCK ROM (tested with ICS)
Heres the drill:
1. Root your phone - this varies for each device, you can find how-to on this forum. If you already have, skip to step 2
2. Install a root file browser on your Captivate Glide
3. Go to system/usr/ and backup the two files:
keychars/STMPE_keypad.kcm
keylayout/STMPE_keypad.kl
4. Replace the files you backed up with the ones I've provided in the attachment
5. Restart your phone for changes to take the effect
6. To get latvian diacritics - hold down the mic on your physical keyboard and hit the desired letter (i.e. 'e' would transform into 'ē').
Thats it!
Also greetings to my fellow latvians!

otoinsa said:
This is intended for typing Latvian diacritic symbols using a remapped mic key (google voice search) as the modifier key (you have to hold it down while pressing the letter).
Please make a backup of the respective files in your system, as I take no responsibility if you mess something up.
This is meant only for the physical keyboard of Samsung Captivate Glide i927, for the virtual/soft keyboard I suggest you use Google Keyboard.
Heres the drill:
1. Root your phone - this varies for each device, you can find how-to on this forum. If you already have, skip to step 2
2. Install a root file browser on your Captivate Glide
3. Go to system/usr/ and backup the two files:
keychars/STMPE_keypad.kcm
keylayout/STMPE_keypad.kl
4. Replace the files you backed up with the ones I've provided in the attachment
5. Restart your phone for changes to take the effect
6. To get latvian diacritics - hold down the mic on your physical keyboard and hit the desired letter (i.e. 'e' would transform into 'ē').
Thats it!
Also greetings to my fellow latvians!
Click to expand...
Click to collapse
Cool ! Glad to have another dev working on the i927
Congrats

Thank you!
I'm not really skilled in java though, just starting to explore it.
Since I'm a web developer and have had some minor interactions with C (and Objective-C) languages before, everything seems quite familiar yet not really
Eclipse ide is sort of a mess on mac/windows in comparison to, say, xcode.
But I appreciate the idea of an open platform and community working to create great tools for
everyday life so much, that looks of an ide are not exactly a primary concern. I am however very ocd
about gui of apps (coming from a design background).
I think it's one of the better QWERTY phones out there for the price.
That said, I'd move on from it for that Ara (Phoneblocks) I'm so excited about,
but that's still very early in development, so I chose this one for the next few years.

Related

[APP] HD Power Manager - A fast and functional app to PowerOff or perform a SoftReset

Hi,
I've written a little finger-friendly app (rather a script) to perform a soft reset on the HD or power off the device
Background:
A similar app does already exist here in the forum, but it is rather slow. Therefor I've written a little script which does the same. Its advantage is that it's much faster, disadvantage is that it doesn't look that pretty and doesn't have a graphical UI.
The Program:
... is a little MortScript, which gives you the choice to
- perform a soft reset,
- power off the device,
- cancel the operation.
In addition, you have an option to get warning dialogs for the operations or directly perform the desired operation.
How to install / use:
1.) First you have to install MortScript (a nice functional FREEWARE script language), which is available as installer or cab file here.
2.) Copy the attached file 'HD_Power_Manager_v_1_0.mscr.zip' on your desktop and remove the '.zip' file extension (It's actually NOT a zip file, I've just renamed it for uploding purposes)
3.) Copy the 'HD_Power_Manager_v_1_0.mscr' file anywhere to your device.
4.) To choose whether you want to get warning dialogs, open the file with a text editor and change the first program line:
WD=0 --> Warning Dialogs off
WD=1 --> Warning Dialogs on (default)
Save and make sure that the file extension is still 'mscr'
5.) Run the script on your device. You can initiate the action either by choosing and pressing 'ok' or by double-clicking
6.) enjoy & give feedback
Regards Jan
Any comments on that from people who tried it? does it work like it should? do you think it's useful or rather useless?
regards jan
Hey, this looks nice. I gave up on the other app, because it was too slow for my needs, so if this is fast as you say, that is surely a big plus.
I don't care about graphic UI when I'm going to reset the device anyway
I was just wondering if you know will this work on new Manilla (Dutty ROM series)?
Rozenthal said:
...
I was just wondering if you know will this work on new Manilla (Dutty ROM series)?
Click to expand...
Click to collapse
I can't say that for sure as I use the origial o2 stock rom (GER), but I think it should work without problems...
As the program which is rather "only" a little script uses common system commands, I think it should work. For soft reset it uses the "Reset" command from MortScript, and for Shut Down (Power Off) the "PowerOffWarning.exe" from the windows directory, which should still be present in the Dutty Rom, i think.
Just give it a try.. Only "real" system installation is MortScript (which is really small and useful anyway and removable without problems), while my little app ist only a script which doesn't change any registry settings at all and is just copied and executed on the device... so no danger from that...
regards jan
If anyone's interested, I've made a replacement for PowerOffWarning.exe (which goes with my VJPoOf suite of apps) that will instantly switch off the phone. No shut down anims and things. It's rather frightening, and probably screwing the phone up something rotten, but it should be fine as it works in the same way HTC shuts down the phone, without all the anims etc, so it should be fine...
V
vijay555 said:
If anyone's interested, I've made a replacement for PowerOffWarning.exe (which goes with my VJPoOf suite of apps) that will instantly switch off the phone. No shut down anims and things. It's rather frightening, and probably screwing the phone up something rotten, but it should be fine as it works in the same way HTC shuts down the phone, without all the anims etc, so it should be fine...
V
Click to expand...
Click to collapse
if you'd be so kind to post that replacement file here? (or give the link)? I could try and incorporate it into the script. For the moment the script performs a "workaround" of the warning dialog from the original "poweroffwarning.exe" by automatically sending the "yes" command...
regards jan
VJF-Off
Here you go, the very subtly named, VJFastOff.
http://www.vijay555.com/vj/releases/vjpoof/vjfastoff.exe
It will instantly shut the phone off.
​Please note that it's instant, and there are no warnings etc whatsoever, so make you're you've finished doing what you're doing before launching it.
Feel free to use it in your package, but please give it a credit back to my website if possible.
V
vijay555 said:
Here you go, the very subtly named, VJFastOff.
http://www.vijay555.com/vj/releases/vjpoof/vjfastoff.exe
It will instantly shut the phone off.
Please note that it's instant, and there are no warnings etc whatsoever, so make you're you've finished doing what you're doing before launching it.
Feel free to use it in your package, but please give it a credit back to my website if possible.
V
Click to expand...
Click to collapse
Thanks for supplying, vijay.
Depending on the interest in my script by other people i'm going to incorporate your file in a later public version... first i need some feedback concerning the present version... until then, I'll test your file my own...
regards jan
vijay555 said:
Here you go, the very subtly named, VJFastOff.
http://www.vijay555.com/vj/releases/vjpoof/vjfastoff.exe
It will instantly shut the phone off.
Click to expand...
Click to collapse
Thanks vijay, do tou mind if I include it with my 18 buttons action screen?
Feel free to include it with anything you want, so long as you are not charging for it. I'd be pleased if you drop me a credit, but I won't break your legs if you don't.
BTW, VJF-Off was developed as part of my VJPoOf suite of apps, where I had it assigned to a long press of the power key, to skip the shutdown anims.
If you are leaving feedback for VJFastOff, please leave it in the VJPoOf thread:
http://forum.xda-developers.com/showthread.php?t=476412
Further btw, my old app VJEschaton can be used to soft reset, shutdown, hard reset and a few other things as well.
V

[MOD][UPDATED] Modified keymap files for G2

After some quality time with the AOSP source and a hex editor today, I've come up with modified keymap files for the G2 that make the keyboard a bit more useful. It's gone through three iterations now, and I think it covers every key you can type on a normal keyboard now. Here it is.
Changes in version 0.3 (relative to the keymap in 0.1 below):
- left softkey is now "\"/"|"/"`"
- right softkeys are now "["/"{"/"<" and "]"/"}"/">"
- alt-z is now "^", since .com is tab now
Changes in version 0.2:
- modifications to the tools used in dumping keymaps and regenerating them
Changes in version 0.1:
- make ".com" a TAB key, as it ought to be
- make first right soft key "\" (shifted is "|")
- make second right soft key "<" (shifted is ">")
Installation instructions:
NOTE: I have not tested this on the Desire Z. I have no idea what its keycharmap and keylayout files look like.
FURTHER NOTE: Use at your own risk, etc, etc. I've included the original keymap files in the .zip as (filename).orig, but it can't hurt to take your own backups
FURTHER FURTHER NOTE: I've only tested version 0.3 on Cyanogenmod 6.1-RC1 on my G2, but there's no reason it shouldn't work on stock or an alternate ROM, since the keycodes I'm actually using should be the same.
PREREQUISITES: S-OFF G2, /system mounted read-write, root, busybox for 'cp'
- download file
- unzip g2-keymap-0.3.zip
- $ adb push vision-keypad.kl /sdcard
- $ adb push vision-keypad.kcm.bin /sdcard
- $ adb shell
- $ su # (if you don't have ro.secure turned off)
- # cp -f /sdcard/vision-keypad.kl /system/usr/keylayout/
- # cp -f /sdcard/vision-keypad.kcm.bin /system/usr/keychars/
- # reboot
To uninstall, just copy the .orig files back into place (so, copy vision-keypad.kl.orig to /system/usr/keylayout/vision-keypad.kl and vision-keypad.kcm.bin.orig to /system/usr/keychars/vision-keypad.kcm.bin
Hope you find this useful!
You can find the tools I used for dumping keymaps and the keymap files themselves with history on my github at https://github.com/aglasgall/g2-keymap
Just out of fear of screwing my phone up, on the cp I'm getting:
cp: can't create '/system/usr/keylayout/vision-keypad.kl': File exists
How should I proceed from here?
Should have remembered that busybox cp refuses to overwrite files without -f. Use 'cp -f'; I'll update the instructions.
Thanks for the catch!
So the soft keys are quick keys? I thought the Home, Menu, etc are soft keys.
I really felt like remapping the left-most quick key to alt, because that's where I'm used to having it.
I think each person may feel differently about the quick keys. Is it possible you could make a customizable version of your keymap? That would be superb. In the meantime I'll check this out, because I don't use those quick keys. Thanks.
Yes, by "soft keys" I meant the shortcut keys. I could conceivably write a tool to generate customized keychar maps and keylayout maps, and maybe I will this weekend considering the long train rides I have ahead of me, but frankly it would be a lot of work and this particular itch is scratched for me, so I wouldn't get my hopes up were I you
If you're interested in editing these yourself, you'll need the following:
1) the tool 'evtest' to get keyboard scancodes
2) the Input Devices section of the Android porting guide at http://source.android.com/porting/index.html (though n.b. that a distressing amount of it is inaccurate)
3) base keylayout and keycharmap files (pull 'em off your device)
4) a keycode to keycode label translation table (there's one in the AOSP tree at frameworks/base/include/ui/KeycodeLabels.h; n.b. that it is INCOMPLETE and doesn't cover all the keycodes the G2's keylayout map generates!
Keyboard input on Android works like this:
scancodes from Linux input core (on the G2, the keyboard is /dev/input/event5) -> scancode to keycode translation (via the .kl keylayout map) -> keycode to character translation modified by any active modifiers (alt/shift/alt+shift)
You'll find the KeyLayoutMap and KeyCharacterMap classes in frameworks/base/libs/ui/ very helpful. I have a tool knocked up out of KCM to generate dumps of the compiled .kcm.bin files which I'm happy to share.
Happy hacking!
teferi said:
Yes, by "soft keys" I meant the shortcut keys. I could conceivably write a tool to generate customized keychar maps and keylayout maps, and maybe I will this weekend considering the long train rides I have ahead of me, but frankly it would be a lot of work and this particular itch is scratched for me, so I wouldn't get my hopes up were I you
Click to expand...
Click to collapse
This also scratched my itch. I mean, how can you do anything without | ?
Thanks bunches, man!
what we need is when you long press the number key on the physical keyboard it gives you the option for the number. Kinda like HTC_IME keyboard. I keep getting confused when i switch between the two.
EMERYfan1988 said:
what we need is when you long press the number key on the physical keyboard it gives you the option for the number. Kinda like HTC_IME keyboard. I keep getting confused when i switch between the two.
Click to expand...
Click to collapse
That would be a lot more complicated than a simple remapping. But I agree, if you use both the touch and physical keyboard, it is easy to get annoyed at the need to press alt key for numbers. They really should have had a number row, I used to love my sidekick's keyboard so much. Crappy phone though.
teferi said:
After some quality time with the AOSP source and a hex editor today, I've come up with modified keymap files for the G2 that make the keyboard a bit more useful. Here it is.
...
Hope you find this useful!
Click to expand...
Click to collapse
Nice! I saw you on #g2root digging for this info, so I'm glad you pulled it together.
Will have to check out since the long presses don't work in a terminal, and slow the process down anyway. We really needed |, <, and >. Also dedicated tab versus alt-z is nice.
Hahaha, just hit my quick keys to see what I had programmed in (telnet, Notes Everywhere, and Shazam) since it had been so long. I seldom open the keyboard to actually use these.
-oldsk00lz
What's the likelyhood of getting some kind of graphical remake of the virtual qwerty? I really just want the spacebar to be a tad bit bigger height wise. I keep hitting the damn b key when I want to space because of the wrap around case. Is this even possible to do?
Dude, there are three shortcut keys. If you could map one of them to ^, since its completely absent, it would be AWESOME!
Yes, I third the suggestion for a ^.
It pisses me off that there is no long press to get a ^. Even the slide had that.
I should have an 0.2 up later today. I'm probably going to move "\"/"|" to the left soft key; make the two right soft keys "["/"<"/"{" and "]"/">"/"}"; and make alt-Z "^" (since we now have a dedicated Tab key).
Long-presses are way out of scope for what you can do with hacking KL/KCMs, sorry. I have no idea how that mechanism works, if it exists.
teferi said:
I should have an 0.2 up later today. I'm probably going to move "\"/"|" to the left soft key; make the two right soft keys "["/"<"/"{" and "]"/">"/"}"; and make alt-Z "^" (since we now have a dedicated Tab key).
Long-presses are way out of scope for what you can do with hacking KL/KCMs, sorry. I have no idea how that mechanism works, if it exists.
Click to expand...
Click to collapse
No, I didn't imply I wanted long press anything. I was simply venting on how pissed I was that HTC didn't include a ^ in anything but a virtual keyboard on this when the slide had a long press of a actual key to get a symbol ^ up.
Anyhoo, you are awesome for doing this, it makes the keyboard even better for me!
Thank you very much kind sir for taking the time to do this for the community!
tornado9015 said:
That would be a lot more complicated than a simple remapping. But I agree, if you use both the touch and physical keyboard, it is easy to get annoyed at the need to press alt key for numbers. They really should have had a number row, I used to love my sidekick's keyboard so much. Crappy phone though.
Click to expand...
Click to collapse
I understand it would be more complicated, but this is something I've been hoping for this from when I first got my phone. I keep my fingers crossed that teamdouche will add long touch for alt keys as that is the ONLY thing I don't like about my G2. Coming from the G1 with the dedicated number row, long touch for numbers and symbols would make my phone experience so much more enjoyable.
Very sorely missing key... "`" (back quote), VERY important for command substitution.
Redundant keys:
menu (exists on the soft buttons by the screen),
search/magnifying_glass (wtf, does anybody EVER use this???!?! plus, also on the soft buttons),
euro (how many people really need a euro button in everyday use in north america?)
com/www (duh... pointless.)
All told, I see (including the blanks...) a total of 6.5 buttons that can be reassigned to more useful functions (the extra .5 since the other side of the non-alt version of the euro button is the letter X, without which you cannot spell xylophone).
dhkr123 said:
Very sorely missing key... "`" (back quote), VERY important for command substitution.
Click to expand...
Click to collapse
Well, I know in bash/sh you can use $(...) to accomplish the same thing.
perquisitor_omnia said:
Well, I know in bash/sh you can use $(...) to accomplish the same thing.
Click to expand...
Click to collapse
And while it's one more character to type, it's also waaaay more easily nested, too.
Dude, where were you two weeks ago when I was trying to get keycodes to fix Dosbox???
Kibitzing with the other people working on getting S-OFF for the G2. I didn't feel motivated to start on this until it was going to actually be possible
Good luck finding keycode labels for the G2 keyboard. There are ones that aren't in the AOSP tree, and I think the ones in the CM tree have different names from what HTC uses...anyway, talk to me on IRC (teferi on freenode) and I'll do what I can to help.

[Q] How can Nook Touch use spell checking keyboards?

I have tried several different keyboards that include spellcheckers and have been unable to see predictions and spelling suggestions. Since the Nook was not sold as a full android device it's very possible B&N left the necessary files out of the system. Can someone here let me know what files I would need to add to be able to use the spell check function? I've tried with several different keyboards and have installed their respective dictionaries so I believe it's not an app issue but a system issue. Thanks again everybody. Ryan
I installed SlideIt and found that word prediction works. try it. Note: I copied the apk to /system/app and used NookColor Tools to select SlideIT as my keyboard. I then had to actually execute and install the APK in order for it to show up. Once done, it works well. It takes up 1/2 of the screen, though.
Thanks I'll give it a try. I'm not sure if I was clear in my original post so let me try again. I am referring to the circled box where spelling suggestions are offered. I am unable to see the box.
Another way to do this:
- install the keyboard with ADB (and its required dictionaries),
- push all the installed APKs to the /system/app folder,
- change the APKs permissions to 644 (via shell/Root explorer/etc').
- reboot the phone, and select the keyboard through the NookColor tools.
I believe what Ryan mean is there is no word suggestion box on any keyboards installed on the nook ST. This breaks functionality of ALL 9 key keyboards and most language IME keyboards. Is there any way to restore this keyboard functionality? I also have the same problem. No keyboards which require that bar (highlighted in his attachment image) work.
I've tried:
Sougou tablet
Sougou phone
Baidu phone
Smart keyboard plus chinese
etc.
None of them display the spelling selection or character selection boxes, so this appears to be a problem with the android.
Known issue, predictions are there, however not appear. SlideIt works, but it sucks. The best keyboard, which works, is Jelly Bean Keyboard. As always you have to copy it to system/app
NookSimpleTouch/Tapatalk 2
domi.nos said:
Known issue, predictions are there, however not appear. SlideIt works, but it sucks. The best keyboard, which works, is Jelly Bean Keyboard. As always you have to copy it to system/app
NookSimpleTouch/Tapatalk 2
Click to expand...
Click to collapse
Thanks, it appears the only keyboards that were are back-ports of ICS and jelly bean. Possibly this is due to them including necessary dependencies that are not included on the nook? It would be great if someone could isolate the problem and make a patch.

A few questions on tweaking note 2.

I have spent lots of free time searching for answers on these questions and came up short. It is possible becuase I did not try all varients to asking the same question... well now I am going to ask them all in one place.
*I am rooted
*I use CleanROM ATT SE 2.0
Samsung Keyboard
*let me preface that I use the s-pen writing pad and I do not want to change keyboards. When I have pen out I want writing pad to appear when needing to input characters. Unless there is a way to use a separate keyboard, but when pen is out it goes to writing pad.
1) Is there a way to remove the numbers at the top of the SAMSUNG keyboard? I would rather use a function. This is particularly a problem with landscape mode, where the numbers really take up too much space... and this is a note 2.
2) Is there a way to change the dpi of the samsung keyboard (or stretch it)? I used the build prop editor in ROM Toolbox Pro version to set the DPi to 300 instead of 320. But the Samsung keyboard and even the stock phone is messed up. How can I stretch the keyboard back?
Other tweaks
1) How can I change the hold home button or hold headset to open a specific app?
2) How can I cause the hold home button or hold headset button to wake device and open app?
3) How do you change the lockscreen? I got MagicLocker - which btw did not show up in App store - for my Note 2. So I faked my phone and fooled the app store and got it anyway. Well it is kinda slow and buggy. Is there another solution.
*I KNOW I KNOW... it is a basic question that is searchable. Believe it or not it is hard to find this answer for me.
4) Is there any way to fool the market or the app you downloaded to being in tablet mode?
*I have Xposed and I have not found a successful way of making into tablet mode. I need a step by step. Trying to read the forums for this has been confusing. Perhaps there is a tutorial I missed?
Thanks so much guys. I love this forum and I support all apps I buy that I like. ROMTool box is one and it is great!

ROM Building: The Basics Part II

Welcome to Part II of the basics of ROM building.
If you have not had a chance yet, please check out this link. This should be followed after all of the "files" are gotten from the first part of this Trilogy of tutorials. Okay enough Lord of the Rings, the true trilogy (nerd reference may be criticized below, I preferred the matrix until the third one lol) I digress.
So, we have the files we downloaded them, Red bull/Rockstar/Monster/Bawls, whatever your legal poison. Let's set up working directories.
Organization is critical to the development process. I mean, I only realized this after I started modifying. I mean wow, it was so much easier once I started to record notes and logs.
To begin, always go to a root of a hard drive
Create a folder called
Rom
Tools and then create a new folder called Smali and APKTOOL
Multimedia and then create a new folder called Pictures and Sounds
So we have created 5 folders, do you need 5? No. Do you need 20? It doesn't matter, do what you are comfortable with. It is about staying organized.
Take the ROM you have selected from the first Basics Rom Tutorial. I assume for (hint hint) simplicities sake you chose a DeOdexed rom version of the Sprint S3 MD4 rom. Freeza Thank you. It will be in a zip file
Called: MD4_update_FULL_DeOdex.zip
Rename it to MD4.zip, feel free to call it whatever you want (remember feel comfortable). I will refer to it as MD4 from now on for simplicities sake.
So you have 7-zip installed right? Uh Oh, check, make sure that is ready to go before we start.
I cannot go into that tutorial because....well come onnnnnnn is it really that hard to press next 10 times or less ?
Extract all the files to MD4_Version_1
Oh yeah, we will be making hundreds of versions if you want. Trust me later down the line, after each mod is good, you can just continue naming them in increments. But version control should always be implemented in case you mess something up. So the logic is:
Make 1 mod or set of mods, try mod, if it works keep using that version as your base version and keep going until you are ready to try it again. Mind you it is time consuming but the only way you truly learn this backwards art of reverse engineering.
So lets look at this disaster. I mean it's overwhelming so do not think you are King of the Hill or Any hill. Maybe a mole hill because this a very complicated system in front of us.
Let's analyze the anatomy, BTW, I do not even know what everything does or is, but by all means, ask questions and we will find out. A forum is meant to voice opinions and feedback to those opinions.
The root folder has 2 folders and 2 files
META-INF
system
boot.img
installbusybox
The META-INF folder is extremely important. It contains useful information about signatures and is very necessary for android to" say its official software" remember the idea of this folder, not its contents. I do not mess with this META-INF but there are so many all over the place down the road that we will need to know it plays an important role.
The system folder has every file that we are going to modify, we will hit this folder harder than a head crab being hit by another "delay" at Valve.
The boot.img is an important file for booting up android. We will not be touching that right now. Can you? Sure but hell, don't bother with it for this tutorial. If you know all about ROM mods like some of our bad-ass developers ( yes Cyanogen all of you are badass), Stop reading get to better pastures.
The installbusybox should be there for tools for ROM modifications. It is basically a set of functions that makes Android have teeth. I will not be using it right now but we can keep going. The best tools collected into one so do not delete or modify
Lets get to the meat, the big shabang, the wholy mole(for my Latin friends), the kabosh(for whoever knows what that is)
System
The sub folders are:
app: Contains all the apps that come with the ROM. Remember android operates by utilizing apps for different functions. Modify the files in here can be good and bad, we can make the best tweaks ever here or ruin everything. Be very careful, I have had boot hangs happen to these files
bin: This folder appears mysterious but it contains important files, the binary files. Complexity gets checked right here. This folder is extremely sensitive, I have not modified this folder just yet but when I feel like bricking my phone like a gravity gun dropping combine soldiers, I will get to this asap.
cameradata: Contains important files for camera raw data to JPEG conversion, I do not mod this folder.
csc: This is a jewel, it contains Consumer Software Customization. It has multiple XML files that can be edited and modified critical settings for various functions. Very nice to start your ROM customization here, but not the easiest, lets ease in with another folder first.
etc: This folder contains critical data storage. It has things like the hosts file which will allows you to block ads(cough cough, youtube) and many other files. This folder can brick your phone. Lets not get crazy here...yet
fonts: Pretty obvious, fonts for the ROM, oh and it requires True Type Fonts so contact your local free repository for those.
framework: This folder is an important folder, almost just as important as the app folder
hdic: Language files they are based off the first 2 initials of the language. Not affecting anyone if we are not trying to pinch each ROM's size down to the bare minimum
lib: Library folder, this has files with extension .SO, they will contain libraries of information for different functions. For example, how to take a "Best Pose" picture mode would have functions in this folder as well as other areas of the rom.
media: Contains the most obvious of sounds and a prime location for android universal sounds and bootimages. The bootimages is a touchy subject, the files are Samsung proprietary which makes them useless to us for modification, but we can make the puppet dance one way or another. The sounds, however, are key as we can isolate sounds when the phone starts up, or mute certain camera functions here, we can even make it sound like all of your favorite games(Yes I did, Mechwarrior boot sounds are acceptable, F.E.A.R. sound effects and some DOOM noises added for ambiance and of course Half life 2 noises for complete nerdgasm)
T9DB: This folder contains T9 predictive text in I believe 3 languages: English, Spanish and Korean, can you get rid of 2 of these sure, but expect problems if you decide later you need them. I mean they are not that large in size but at the same time, everyone has their own way of doing things
tts: This folder houses the Text to Speech programs. They suck. I am sorry but they do, SVOX is better, I love IVONA personally. I always like a british women to wake me up and tell me I am late. But that's me.
usr: This folder is not really meant for us to modify as it has to do with the keyboard layout, grammar recognition and customization. Realistically though, I use Swiftkey and call it a day. So do not hate me if I do not bother with mucking around here. It is useful to some I am sure but nothing I want to dabble in. But by all means, it can be useful for setting well Settings.
vendor: Contains library and binary files for certain features from the vendor, I would say camera related but I do not care for this folder just like people really hated the HEV suit announcing all of its amazing features, are you kidding me that was the best part. Yes I fell 100 feet, please let me know about my fracture and how this suit somehow repaired it. It might have well said "Oww". Nothing wrong with that.
voicebargeindata: From my understanding, Svoice related. No need to bother, that feature is about as useful as a Crowbar in a Gun Fight.
vsc: Version Software Control
wakeupdata: Acoustic and Grammar models contains several languages as well
xbin: Has busy box and Super User, a useful tool to become well super.
build.prop: Very sensitive file that is magical and detrimental. There is a lot of false promises on performance with this one. We will dig through this one carefully.
CSCVersion.txt: Should have the model number of your phone
SW_Configuration.xml XML file with more model number configuration
Please feel free to let me know what is understood or not.
This run down allows us to attack the appropriate folders for the next parts
Before we even begin with the complicated mods, let's attack the basic mods first.
The media Folder then go to audio, there is 4 folders
alarms
notifications
ringtones
ui
The first 3 folders you can place anything you want inside. They each correspond to the default ringtones you would like in the phone. I recommend using .ogg files or .mp3 files, you can use Audacity to modify your sounds. Sometimes the length of the sound plays an important role. Short sounds should be kept short for a reason. If you play a noise and its barely half a second, do not make it 4 seconds long because it will sound ridiculous longer than what is meant to sound. Taking a picture while hearing Puff Daddy's Come with Me can be quite awkward but hey its all about your ROM, your choice, your likes. Who the hell is going to tell you that you cannot have a sound of a crowbar whacking a headcrab while in the middle of a busy subway.....besides the police. This works similarly to the situation of ringtones, keep them full blown songs and I have noticed some lag. Do not be discouraged, but most modern phones end the call after about 30 seconds. This time limit has to do with how long the phone is takes to find the phone and ping it. Of course, I safely recommend 45 seconds of your song to cover yourself.
Take note that there are 3 files in these folders that are set to default (ringtone, alarm and notification). We can change that with the build.prop but that's after we mess with the ui folder that contains the User Interface Sounds.
Alert_on_call.ogg: An Alert when you are on call. This should be subtle noise
Auto_focus.ogg: Tricky one, I modified this, still makes an auto focus noise. Clearly a trick has been devised
Auto_focus_error.ogg: Same as above
Call_Connect.ogg: When the call first connects
Cam_Start.ogg: Video Recorder start noise
Cam_Stop.ogg: Video Recorder stops noise
camera_click.ogg: Camera Click noise
Camera_click_short.ogg: Camera Click noise
Camera_empty.ogg: Camera related
camera_focus.ogg: Tricksie this one is, mute and still makes noise, will discuss where noise is coming from
Camera_Timer.ogg: Timer for camera countdown
Camera_Timer_2sec.ogg: 2 Second timer
Charger_Connection.ogg: When you plug in your phone to charging port
Dialer_new.ogg: Tricky one will get to later
Dock.ogg: When you put the phone on dock, useful to distinguish from charger_connection.ogg
Effect_Tick.ogg: I have heard it whilst changing pictures but not sure
Highlight.ogg: I Silenced it, and "I dont know whhhyyy"( Can you guess which comedian said this line and if you know it say it in his voice)
HoverPointer.ogg: I Silenced it, and "I dont know whhhyyy"( Can you guess which comedian said this line and, if you know it, say it in his voice)
Insert.ogg: Google Voice Noise
KeypressDelete.ogg: Default keyboard, I do not use this
KeypressReturn.ogg: Default keyboard, I do not use this
KeypressSpacebar.ogg: Default keyboard, I do not use this
KeypressStandard.ogg: Default keyboard, I do not use this
Lock.ogg: When you press the power button and it instantly locks. This noise will play. Mechwarrior noise here
LowBattery.ogg: Doom low amm noise here to indicate I should have brought a charger becuase my battery is low
New_chat.ogg: Chat software related, I got rid of that junk but thats for another tutorial
PowerOff.ogg: Most people silence this as it is the noise that powers off the phone, I got creative here but you do not have to.
PowerOn.ogg: Most people silence this as it is the noise that powers on the phone, I got creative here but you do not have to.
S_HW_Touch.ogg: The HW indicates Hardware touch, basically the buttons and any touch screen action
S_SIP_Backspace.ogg: Backspace stuff
Sent_chat.ogg: See New_chat.ogg
Shutter.ogg: Silence this for sure if you do not want noise but really silence everything camera related here and it wont be 100%. So just do it
Shutter_multiple.ogg: Burst shot related
TW_Battery_caution.ogg: Any TW has to do with TouchWiz related actions. This one is for battery
TW_Call_Disconnect.ogg: The tricky thing is, some of these are controlled by another piece of software, this one is one of them
TW_Error.ogg:
TW_Silent_mode_off.ogg:
TW_SIP.ogg: Sounds like the default tapping sound for the rom's built in keyboard
TW_Touch.ogg: The default TouchWiz touch noise. Tricky little one this was as I had to verify there was no other location for the droplet noise, it turns out there is, so stay tuned as we dig into the apps and locate where the rest of the sounds are
TW_Unlock_Glass.ogg: Gallery Noises for file management
TW_Unlock_Puzzle.ogg: Gallery Noises for file management, not sure why I heard these exact noises in the gallery app other than they are linked
TW_Volume_control.ogg: The volume rocker button on the side, i mean logically there is only one choice, the Half Life 1 Medical Bay MedShot sound, okay maybe too annoying sure, but bada$$
Undock.ogg: Removing the phone from the dock that so few of us get because you know it doesn't fit my big case, or expanded battery or whatever. You know what, custom solutions are too expensive but trust me people do make the docks that accommodate bigger cases
Unlock.ogg: When you type in your Pin/Password/Pattern, the sound that it makes to unlock
VideoRecord.ogg: Camera video start recording noise, of course, I silenced this one as well
So this takes care of some of the noises, the problem is, Samsung software actually hides the rest of the noises. They are actually hidden away in the APK files in the system/app folder. Do not worry, in future parts of this Discovery channel special on Black Mesa, we will be investigating why they detonated a nuke in the first place if it didnt do anything to stop the invasion. I mean future parts of this series
So where do we go now? Well modify the sounds you want or add the ringtones you want. But something that I felt was important was that certain noises be set when I reboot my rom by default. No I do not want that stupid Samsung whistle! NO ONE DOES SAMSUNG!.
Lets set the default sounds on ROM start up, we will need to modify the build.prop file
This file contains an amazingly large set of instructions for the start-up of the phone and features in the phone. it is therefore, very sensitive to screw-ups. Hopefully, notepad++ was installed.
Navigate in Windows to the working directory of your ROM in our case MD4/system/ there is a file there that says build.prop
Let's open that up in notepad++, we should see some intimidating pieces of code or more like lines of text that tell the phone what and when to do something.
A caution to all, the build.prop has been synonymous with words like "increase performance", "maximize battery life" and other claims that are unfortunately sometimes not always true, for every mod someone makes to this file, someone traces the code to a Gingerbread rom that is useless on Jelly Bean, or an old reference to ICS(Ice Cream Sandwich),
I would highly suggest we not dabble too much on this. XDA has some great people who have found great information about the build.prop file. This link, user Chris_84 has put a great Wikipedia together on this so I will not try and explain each one. But there are so many other links that can show a post of good tweaks and bad tweaks and useless tweaks that I will not go into. Let's instead focus on our start-up sounds
The build.prop code we will scroll to with the ctrl+f button should be enough for us to get started is
Code:
ro.config.alarm_alert=
ro.config.ringtone=
ro.config.notification_sound=
Each of these do have a word after the equal sign, which means if you configure the correct file in the correct folder(hint hint) alarm, ringtone,notification folders we talked about earlier, all you have to do is add the name of the file exactly as it appears, please only use .ogg files here. MP3 files also work but you know just do it okay. I don't ask Alex why she never made a move on me, I just know she cant have a meaningful relationship with a guy who doesn't even say hi, that's a little creepy but you know and I know she loves Freeman alright.
As an example, just in case my rant did not make any sense,
let's say you put the following sound in the system/media/audio/ringtones folder kick_push_lupe.ogg
you would put in the code the following
Code:
ro.config.alarm_alert=
ro.config.ringtone=
ro.config.notification_sound=[B]kick_push_lupe.ogg[/B]
And that's how simple that is.
So you say you have ranted on too long. Sure I have, but that's not going to be the end here. We will be modifying the rest of this rom business in the more difficult lesson which is part III, that will take the longest because we want to have fun. And I still have some Freduian issues with my role model Gordon Freeman that I need to bring out. Anyway
Also, before I go, you might ask, how do you execute TEST BATCH ALPHA-TRON!.
Go Back to your Home Folder MD4_Version_1/. You should see the folders we discussed earlier
META-INF
system
boot.img
installbusybox
Select all of those files and right click the mouse button to get a context menu from 7-zip or WinRAR and click Add to archive. Make a ZIP FILE ONLY. You can choose to compress the file if you want, I just click fastest compression options available and proceed.
When the zip file is in hand, I take the file and put it on the SD Card root directory. When it transfers(in about 5 minutes), you can open the CWM (clockworkmod) recovery or the TWRP recovery and install the ROM. Sure I did skip some steps here on how you get these recoveries and the like but this tutorial is about ROM modification and the sort not the super basics, you need those to even be reading these. If you need to get those going, let me know in the comments and we can spool that up in part III.
I do not know how many parts this will take, but it is time consuming, i have to research this stuff and recall my notes. I know the spirit of the guide is in the right place but please be patient. I will not fail you Krypton(YES I LIKED MAN OF STEEL, let the downvotes begin, oh wait not imgur).
I appreciate all feedback, do not get me wrong, and I will work whenever I am free to add as many of these parts as I can. I do want to help anyone out who has their own twist on what they want their ROM to do. It is the least I can do to payback this great community and assist one person or inspire one idea. That is all it took for me to get going, the next part will also have a very heavy hand in taking code from other people for examples of mods. I want to say from now, I did not do any of these codes, I used common sense to implement somehow into my own rom mods. They deserve all credit as they are amazing coders/crackers/hackers/whackers/ whatever you name it they truly deserve the praise. I am just compiling their logic into our ROM that we are building together. And has anyone seen the YouTube channel Vsauce, that channel is AWESOME.
Again, thank you. Very, very helpful.
-------------------------
Sprint Galaxy S3
Need Help? PM
Hit the "Thanks" button if I helped you!
This is great. Man u really put this down in a way that is really understandable!
Sent from my SPH-L710 using xda app-developers app
Appreciate it
Thanks guys, seems you are tracking my every word, I posted the other ones it seems you hit those up as well. Appreciate it and everyone, please let me know if something did not make sense, we got a great pool of people that can help out.

Categories

Resources