Low in-call volume with ICS - solved - Galaxy Tab Android Development

If anyone is facing a low in-call volume with the ROM Te4m/Kang-builds of CM9
Please use the following method to solve it
“I recommend if you take a copy of /system/Build.prop before modifying it”
Warning: Do not use value more than 100 in volume steps
you must be root
get root explorer
browse to /system
edit Build.prop
add the following line at the end of build.prop
ro.config.vc_call_vol_steps=100
reboot your phone
once your phone is up make a call and increase the volume to your convenience
I recommend if you take a copy of Build.prop before modifying it

Related

[MOD] Volume Wake

I got so used to using the volume rocker to wake my DHD and show the lockscreen instead of the power button that i decided to try and add the same functionality to the OneX. The only caveat with this is that sometimes the volume slider shows up when it wakes, but i can live with that
Hopefully, in time, the ROM devs will add this in by default or as an option. Until then it'll require these manual mods...
Don't try the following if you're unsure what you're doing as you could potentially break the ROM if not done correctly. I recommend backing up first in Clockwork Recovery in case things go wrong.
I accept no responsibility for any issues encountered making these changes!
Requirements
Rooted phone
Android-SDK
baksmali/smali from here
Step 1 - Update android.policy.jar
1. Do the following to get the android.policy.jar from your phone and disassemble it
Code:
adb pull /system/framework/android.policy.jar .
baksmali -x android.policy.jar -o classout
2. Open the following file in a text editor
Code:
classout/com/android/internal/policy/impl/KeyguardViewMediator.smali
3. Find the method "isWakeKeyWhenKeyguardShowing(IZ)Z"
4. At the bottom of the method, there's a switch statement. Remove the following 2 lines from it:
Code:
0x18 -> :sswitch_5
0x19 -> :sswitch_5
5. Save the file and close it.
6. Run the following commmand to re-assemble classes.dex
Code:
smali classout -o classes.dex
7. Drag the classes.dex into the android.policy.jar file to update the file in there.
8. Push the updated android.policy.jar back to the phone
Code:
adb push android.policy.jar /sdcard/
adb shell
su
sysrw
cp /sdcard/android.policy.jar /system/framework/
chmod 644 /system/framework/android.policy.jar
Step 2 - Update Generic.kl
1. Pull the file from your phone
Code:
adb pull /system/usr/keylayout/Generic.kl
2. Open it in a text editor and change the lines
Code:
key 114 VOLUME_DOWN
key 115 VOLUME_UP
to
Code:
key 114 VOLUME_DOWN WAKE_DROPPED
key 115 VOLUME_UP WAKE_DROPPED
3. Push the file back to your phone
Code:
adb push Generic.kl /sdcard/
adb shell
su
sysrw
cp /sdcard/Generic.kl /system/usr/keylayout/
chmod 644 /system/usr/keylayout/Generic.kl
(of course, you could also make those changes to the file directly using a root file explorer app and text editor.)
Step 3
Reboot the phone.
Note: The first time it boots after changing android.policy.jar, there'll be an 'Android is upgrading' dialog. This is normal and it won't happen on subsequent reboots.
How if I play music in off screen mode adjusting the volume?
w1nter456 said:
How if I play music in off screen mode adjusting the volume?
Click to expand...
Click to collapse
It'll still work, but the screen will wake too.
thanks much. I need this feature much.
One question, is this change use up volume or down volume or both will work?
Am I correct that this mod will work only on deodexed android.policy.jar ?
mmx6688 said:
thanks much. I need this feature much.
One question, is this change use up volume or down volume or both will work?
Click to expand...
Click to collapse
Yep, it'll work for both.
ckpv5 said:
Am I correct that this mod will work only on deodexed android.policy.jar ?
Click to expand...
Click to collapse
Yep, the above steps are for de-odexed ROMs, but you may still be able to disassemble if you pull the jar and odex and run baksmali on android.policy.odex. If you get errors trying that then pull everything from the /system/framework folder and try it again
Annoyingly, i've just noticed that once the phone goes into a 'deep sleep', the volume buttons don't always wake it. Sometimes they'll work after a double press sometimes it needs to be the power button :-\
Thanks it worked on my device. And I have added your mod to my mod pack for easy enabling and disabling
any kind person can help to make it into a flashable zip?
ck_looi said:
any kind person can help to make it into a flashable zip?
Click to expand...
Click to collapse
+1 10 chars
Would it in theory be possible to use the home button to wake the phone or is that impossible because the buttons don't work when the screen is off?
I have wake on TP on my Desire now.
mgmCube said:
Would it in theory be possible to use the home button to wake the phone or is that impossible because the buttons don't work when the screen is off?
I have wake on TP on my Desire now.
Click to expand...
Click to collapse
Not possible as the buttons don't work when the screen is off.
And when the phone goes to deep sleep mode, volume button to wake it not really works (tried both on odex and deodex ROMs).
Totally eager to try this out.
I'm using the LC ModPack 2.1.0 and this doesn't work
ckpv5 said:
Not possible as the buttons don't work when the screen is off.
And when the phone goes to deep sleep mode, volume button to wake it not really works (tried both on odex and deodex ROMs).
Click to expand...
Click to collapse
Ok so this volume unlock doesn't really work when in deep sleep?
This isn't mentioned in the first post.
So what if I use this volume unlock and disable the power button, then I have a problem after deep sleep?
mgmCube said:
Ok so this volume unlock doesn't really work when in deep sleep?
This isn't mentioned in the first post.
So what if I use this volume unlock and disable the power button, then I have a problem after deep sleep?
Click to expand...
Click to collapse
Yeah... most of the time it doesn't work when in deep spleep. OP mentioned this on post #6 too.
With volume to wake (not unlock, you still need the swipe up to unlock), and disable the power button, you will have problem to wake and unlock when it goes deep sleep. When you have this problem, the only way to wake it is to plug-in a usb cable or charger as it will wake the phone, then you can unlock.
Well then.. I think its better to disable it as it does messes up my volume levels even if it doesnt wake up the device..
Any chance of a full feature here? Coz the phone is expected to go into deep sleep most of the time..
Sent from my HTC One X using XDA
Jumping in here real quick, i dont (unfortunately) have an amazing all powerful OneX but i do have an HD2
Anyhow, im posting in regards to the isWakeKeyWhenKeyguardShowing(I)Z method in the KeyguardViewMediator.smali file found in android.policy.jar. I already have the volume wake keys set via cyanogen mod, my question is this:
How can i ADD keys to this file to prevent the device from waking?
I tried converting the hex values from that file but they dont correspond with any key values (ex, volume down is 115) but 0x18 is 24, decimal value, so im not sure exactly what numbers must be added to correspond to the correct key.
Thanks all for your efforts and time spent reading!
Thank you for the guide. I don't have Generic.kl on my Motorola XT530, so I think I might need to fiddle round with the .kl files to see if I can get this mod working.
I had to modify my process slightly, so I'll explain what I did in case it may be of help to anyone else.
1. To copy android.policy.jar to my PC, I used Android Commander. It's nice and simple. Make sure you make a back up of android.policy.jar before you modify it in case you need/want to restore it.
2. Use Command Prompt and navigate to the folder in which android.policy.jar is located. For example:
Code:
cd C:\Android\temp
3. Disassemble classes.dex using the following command:
Code:
java -jar baksmali-1.3.2.jar -x android.policy.jar -o classout
4. Edit and save KeyguardViewMediator.smali as per the original post.
5. Reassemble classes.dex using the following command:
Code:
java -jar smali-1.3.2.jar classout -o classes.dex
6. Open android.policy.jar with 7-Zip (any archive manager should work) and replace classes.dex with the modified one.
7. Use Android Commander to replace android.policy.jar on phone.
8. Edit Generic.kl as per original post. I don't have Generic.kl on my phone, so I just left-out this step. I figured I could poke around the .kl files later if need be. I haven't done so yet.
9. Reboot.
Note: The filenames for baksmali-1.3.2.jar and smali-1.3.2.jar may be different if you have a different version. Simply adjust the commands above accordingly.
HTC Ones S --Works
Was looking for this on the HOS forums but found this close enough instead. Prob everyone knows this, but I did this same setup on my one s (t-mo-us) version, and it stuck. So thanks for this nice little tweak. Good to know dev's have our backs in everything.
this was much appreciated for my inc2!
we got a new kernel and messed up it working in the tweaks app, so this really saved me, I didn't realize the Generic.kl needed to be updated.
thanks again!
in defy, it's umts_jordan-keypad.kl instead of Generic.kl (doesn't exist).

{TUTORIAL}[CAMERA SOUND]How to change annoying ICS camera click sound,Screenshots an

Hello fellas
This guide is just a quick how-to CHANGING current audio sound on ICS 4.0.3 and other sound.
DISCLAIMER: THESE TUTORIALS HAS BEEN TASTED ONLY WITH ROOT ICS 4.0.3. STOCK ROM. I WON'T TAKE ANY RESPONSIBILITY IF YOU MESS UP AND BRICK YOUR DEVICE OR ANYTHING ELSE. DO AT YOUR OWN RISK!!!!! Don't forget to NANDROID before trying anything!
So let's get started.
Requirements
1.ROOTED GT-I9100
2.APPS “ROOT EXPLORER (File Manager )” installed on your device. (find in Google Play)
3. “.ogg” audio file. [<60KB size] (if you have other than this file please convert to .OGG audio file first. Use “audio converter” )
4. Audio converter.
What you need to do : “CHANGING CAMERA SOUND”
1.Connect your device to pc
2.RENAME your own .ogg audio file to “Shutter_01.ogg”
3.Copy the “Shutter_01.ogg” file to INT SD/EXT SD where u can find it.
4.Removed usb.
5.ON your device go to ROOT EXPLORER/system/media/audio/ui/
6.Find “Shutter_01.ogg” MOUNT R/O then move to out side (incase you wana use it back)
7.Find your own “Shutter_01.ogg” move to ui to replaced “Shutter_01.ogg”
8.Exit root explorer RESTART your device…
9.You are done….
TEST TOUR CAMERA SOUND AND GIFT ME FEED BACK
RENAME YOUR AUDIO FILE TO THIS IF YOU WANA CHANGE OTHER SOUND
1.TW_Touch.ogg = touch sound
2.Unlock.ogg = Screen Unlock sound
3.Lock.ogg = Screen Lock sound
4.Charger_Connection.ogg = charger connection sound
5.camera_click.ogg = Screenshots sound
Give me your feedback so that I can improve this tutorial. And post here about how your build went. All the best.
Don't forget to hit THANKS if you like my work

[Share] on-screen buttons for all ICS and JB ROMs

This is just a simple build.prop edit
Instructions
1. Backup build.prop
2. Open build.prop
3. Add qemu.hw.mainkeys=0 at the end
And I advice you to set DPI to 120.
4. Reboot
5. Enjoy
Works good but the buttons are quite large though
Credits:
http://forum.xda-developers.com/showthread.php?t=1832638
would be nice if it also disables the physical buttons, otherwise its easier to use the buttons and spare some screen size

[MOD] Skip music tracks with Volume buttons (deodexed only)

Hi there,
here is the mod for skipping music tracks when long-pressing the volume buttons. This is for stock ROM 14.71.8 DEODEXED ONLY!!
So, if you have an unlocked bootloader and have root access, you may apply my following mod. I'll guide you step through step as we got no CWM recovery yet, so you must do it manually.
- download android.policy.jar and move it to your internal SD card with an explorer or via adb:
Code:
adb push android.policy.jar /sdcard/
- after that type in the following commands, beware that su wants you to grant root access (SuperSU popup)
Code:
adb shell
su
stop
mount -o rw,remount /system/ /system/
cp /sdcard/android.policy.jar /system/framework/
mount -o ro,remount /system/ /system/
reboot
Done! Enjoy this mod
Reminder: Although this mod was tested on my device, I'll take no responsibility if you damage your system, so just do it if you know what you do!
If we have CWM, I will provide a flashable .zip then.
Modification?
shaftenberg said:
here is the mod for skipping music tracks when long-pressing the volume buttons
Click to expand...
Click to collapse
Thanks for this, something I miss from my old Sony Ericsson are the physical music player buttons.
I was wondering if you could point me in the right direction of modifying this to make a small alteration; instead of vol-down skipping backward a track I'd like it to have the Play/Pause functionality. That is a button press that I'd use much more often!
Another (perhaps more complicated) solution is to have a double-tap of the power button do this Play/Pause, with double taps of the volume buttons providing the skip tracks effect.
Silently said:
I was wondering if you could point me in the right direction of modifying this to make a small alteration; instead of vol-down skipping backward a track I'd like it to have the Play/Pause functionality. That is a button press that I'd use much more often!
Click to expand...
Click to collapse
Change the keycode in line 48 in com\android\internal\policy\impl\PhoneWindowManager$VolumeLongPressR.smali from 58 to 55 and you are done.
Unfortunately this mod doesn't support double taps and I don't know how to integrate this easily
shaftenberg, could you please give a sources? Or just a list of .smalli files that you changed?
Sure.
You have to add 2 files in com\android\internal\policy\impl and have to edit PhoneWindowManager.smali.
Note, there are two/three different mods around here at XDA. I used all of them and I found out that the one with "lyapota" (you will see in the sources) works most reliable, whereas the other one (I used it in the Nexus 5 mod) works too but is a little bit less responsive and doesn't work with all media players.
The hardest part is to find the right variables, if you want to use this mod in other phones. The first time I did this, I used this thread as a good start but you can't simply copy as this won't work then
Attached are my modded .smali, the 2 ones you have to add and a .txt with the diff's to the original MotoG-smali.
Nice trick mate, can't wait to see this in a custom rom.
Skip music tracks with Volume buttons 4.4.2
shaftenberg I'm with rom kitkat 4.4.2 and would like function if do not ask for much could do this mod for it
I'm with the rom Blur_Version.171.44.31.falcon_umtsds.Brasil.en.BR
I'll leave the files from my rom
sorry for bad english I'm Brazilian
and greatly appreciate all of you who make mods
I thank
Thank you dear
i think i did the same thing but with Xposed and gravity bot in media option
it works only when the screen is off
Thank you again
Sorry for my n00b post, but what you mean with: Deodexed?
DragonautMk said:
Sorry for my n00b post, but what you mean with: Deodexed?
Click to expand...
Click to collapse
Google it..
Sent from my XT1032 using XDA Premium 4 mobile app

[MOD][.108] 30 Steps Volume w/ Smoother Scrolling

30 Steps Volume // Smoother Scrolling​
What is 30 Steps Volume?
It is changing Androids usual 15 steps media volume to 30 for better control over sound volume.
I've only changed music and bluetooth.
What about Smoother Scrolling?
Disabling scrolling cache for faster response while scrolling.
Requirements :
(based on my current device)
Stock 14.4.A.0.108
Deodexed C6903 LB
Rooted
Installation:
1. Boot into recovery
2. Take a nandroid backup
3. Download the framework.jar
4. Put the file into sdcard
5. Move/Copy paste to /system/framework folder (overwriting the original)
6. Set permissions to rw--r--r
7. Reboot
8. Click thanks and leave comments :highfive:
​

Categories

Resources