mtc Volume code? - MTCB Software Development

Sorry I've been looking for a few days now and even looked through a few project's code but I cannot figure this out.
I like the idea of MVG-V70's gps speed controlled volume. I would also like to be able to voice command set levels of volume. Tasker is the easiest way I know of enabling voice commands with AutoVoice but I'm not locked to that.
It looks like the commands for volume are sent to com.microntek.? but I may be way off.
My question is if I wanted to set the volume to a number for example 14 what would the jave code be?
Please and thank you!
As always I thank you for your time.
-Robert

Related

change the handsfree button delay on ppc phone edition?

I want to shorten the lenghth of time that the send button has to be held down to activate hansfree speaker phone. Is there developer tools for this of does anyone know how to fix this. its over my head so far but i use the speaker phone alot and would really like to change this.
Thanks, John
[email protected]

[Q] LG P500 and endcall (call block)

In LG Optimus One endcall function does not work, so do not work correctly call blocker apps. Can this be fixed in a custom ROM?
telephonyService.endCall() function BUG
Hi everyone!
I confirm that there is a bug with telephonyService.endCall() function which consist in passing call to this function to nowhere, thus making ALL call blocking software useless, because they can't discard unwanted calls.
Can anyone fix this problem? I believe in you, GURU, take a look on this problem please.
With respect and hope, Max.
I really think this topic deserves a bump. And a solution.
Same problem here. End call function simply doesn't do anything on this phone making call blockers completely useless. I tried all O1 roms and even the original rom with the latest update and still doesn't work. Every call blocker says that call was blocked while you are watching it ringing.
By the way until someone comes with a fix, i found a temporary solution which requires Tasker or Settings Profile application.
If you want to send the blocked number to the voicemail, simply program Tasker to switch to airplane mode on and off or if you want to do the pick up and hang up action program Tasker to accept the call first then switch to airplane mode on and off.
As you can tell it will disconnect you from your network temporarily but Tasker is quite fast doing it so you will be on again very quickly. Putting your phone into airplane mode will end the call very quickly which call blockers can't do for this phone right now. You can do all these with Settings Profile too with the same steps.
Until a software fix, any other ideas are more than welcome.
(Unknown and private number value for Tasker is 0).
I have had the same problem and confirmed with Tasker developer that this is bug in LG Optimus One. Airplane mode is good solution if you do not protect your sim card with pin code. Else, after airplane mode is switched on and off, you will be prompted to insert pin and until you do so, your phone will not be reachable
I would prefer different solution...
I think we need to ask the guru to fix this problem. I said two weeks ago with mik_os about this issue, he replied that he might look, if not occupied by another.
Bump
This is something that is important as we cannot handle unknown calls.
If anybody has some solution, it would be appreciated.
I'm working on that.
For now I'd found by debugging phone with adb that endcall function really do something, but it seems that at the wrong time:
[ 02-16 20:27:52.451 1589:0x635 D/PhoneInterfaceManager ]
[PhoneIntfMgr] CMD_END_CALL: no call to hang up
Click to expand...
Click to collapse
That message appeared two seconds after we got the call (it's a mystery what phone was doing during those 2 secs), but before the framework starts to search corresponding contact to the calling number.
May be we have to wait several seconds after we get the call to invoke the encall() function again?
I'm a starter with android and I have not so much time for that, but I'm now trying to write a little program that will invoke endcall() function any time a want to prove/disprove my theory.
If anyone had written such program already, you can share sources with me to let me test that condition, or try it yourself.
UPDATE:
I've just tested it: there is no matter when you invoke endcall() function, the result is the same "[PhoneIntfMgr] CMD_END_CALL: no call to hang up". So digging deeper.
Last information from Android sources (how it should be in Android and doesn't work on our phone):
method handleMessage(Message msg) of class MainThreadHandler in PhoneInterfaceManager.java doesn't call method hangup(CallManager cm) of class PhoneUtils in PhoneUtils.java
Digging deeper...
First of all, that's environment I have:
- LGP500 device )
- "void" custom firmware
As I mentioned before, method handleMessage(Message msg) of class MainThreadHandler in PhoneInterfaceManager.java doesn't call method hangup(CallManager cm) of class PhoneUtils in PhoneUtils.java.
To check what's wrong I tracked that method to Phone.apk in /system/app/ directory of "void" custom firmware, which was grabbed from original LGP500 2.2 firmware, unpacked it and dedexed classes.dex file from it. To my great surprise I've found that it really omits call to hangup method of PhoneUtils class and do many things, that doesn't cross with Android sources. So LG programmers did their own "Android" with their own bugs. I have to say that it omits call to hangup method only for GSM call, but it has to be done for CDMA calls well.
I'll try to build Phone.apk from Android sources. This may take a while (maybe a week or so). Or maybe I'll edit dex file and repack Phone.apk with a new one. We'll see when I finally get some sleep
FYI, there is another way to block calls by diverting some call numbers to voice-mail. This is built-in Android function. That could be done in your phonebook by selecting a contact, pressing menu button, selecting options and checking "Incoming calls, Send calls directly to voicemail" checkbox. This way works more quickly than any other methods, used in callblocker software. So blocked caller immediately hear busy tone. I'll dig in sources how it works and maybe will find a better way for callblocking software.
Sorry for my English.
Thanks for your efforts noteb. The main reason that I want this function to work is to hangup on unknown caller id using Tasker. I am using company phone and cannot change my number. Let me know if you need any help.
Sent from my LG-P500 using Tapatalk
vault1965 said:
Thanks for your efforts noteb. The main reason that I want this function to work is to hangup on unknown caller id using Tasker. I am using company phone and cannot change my number. Let me know if you need any help.
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
Of course I need help. What kind of help can you offer? Do you know how to build Android on Ubuntu 10.10? I've read couple of articles about that, but still it would be great if somebody familiar with that can join that topic. I'm familiar with linux only in network services administration and a little with programming in couple of languages.
BTW, I've found another bug in our LG firmware - Skype (and another one program, that I can't remember name of) can't switch sound to speaker. Instead it always playing sound (I mean voice of person you're talking with) through loud speaker. And again I think the problem is somewhere in standard *.apk files, which are Android framework.
Had anybody tried gingerbread?
Had anybody tried gingerbread from that topic http://forum.xda-developers.com/showthread.php?t=909242 ? Does it solve the problem? I'm currently reading that topic when I have time (there are a lot of words not in my native language) to decide whether it worth to be deployed on my device. Because of that currently I had stopped further investigation to solve the problem on froyo.
If anybody has some experience with that gingerbread build, let us know please.
I have flashed my phone with mik's Cyanogen rom and end call is working fine using tasker cyanogen-only press hardware key. End call will not be available in 2.3 as Google has removed call api's (read more on Tasker forum).
vault1965 said:
I have flashed my phone with mik's Cyanogen rom and end call is working fine using tasker cyanogen-only press hardware key. End call will not be available in 2.3 as Google has removed call api's (read more on Tasker forum).
Click to expand...
Click to collapse
Hardware EndCall works on our froyo with key remap also. I was asking is it API "endcall" function working (you can test it with simple "CallFilter" program from the market)?
BTW, that API works fine on Nexus One recently upgraded to gingerbread. So information about removing call api's is a fake. Also I can refute that information as I saw this API's in gingerbread sources with my own eyes.
I can confirm the API endcall function works perfectly in 2.3. Using CM7 for the ls670/optimus s.
cigman said:
I can confirm the API endcall function works perfectly in 2.3. Using CM7 for the ls670/optimus s.
Click to expand...
Click to collapse
Thanks for information.
Is there a solution for froyo? Or the problem can be solved only with cyanogen? I really wanted to block unknown callers :/
Sent from my LG-P500 using XDA App
migueel said:
Is there a solution for froyo? Or the problem can be solved only with cyanogen? I really wanted to block unknown callers :/
Click to expand...
Click to collapse
Try Gingerbread at http://forum.xda-developers.com/showthread.php?t=909242
It has to solve the problem

[Q] Low mic sensitivity during call

During call, people on the other side are complaining they can't hear me loud enough unless i talk REALLY loud.
My phone is not rooted and I'm looking for a solution without rooting it.
A google search came up with this code: *#197328640#
but I couldn't find the proper settings to define , and where, to boost the mic sensitivity.
Any ideas?
Thanks
Edit: Something got screwed up now and I can hear myself as I talk.. very loud.. darn.. I put everything back to default, but still..
bump
really need help with this one.. mostly with the echo, its extremly annoying..
That code is for boosting the Earpiece volume in call and other volumes too but there is no code to boost up the mic. So try to disable the Noise Reduction feature to Off in a call by pressing Menu, see if it works.
ithehappy said:
That code is for boosting the Earpiece volume in call and other volumes too but there is no code to boost up the mic. So try to disable the Noise Reduction feature to Off in a call by pressing Menu, see if it works.
Click to expand...
Click to collapse
It doesn't help for boosting the mic, but it does help for the echo.
Anyway I didnt have an echo before I messed with those settings..
Other ideas?
both of my problems are important for me now, so please try to help both..
You messed up with that code? Then just do a restart, everything will be back to default values. And about the low mic volume, I really can't say mate.
ithehappy said:
You messed up with that code? Then just do a restart, everything will be back to default values. And about the low mic volume, I really can't say mate.
Click to expand...
Click to collapse
you mean factory reset? wont it wipe the device? and i've read somewhere that those settings never change unless you totaly wipe the device, like a fresh one..
bump.. please help.. specially with the echo problem..
I said just restart, turn your phone off and turn it on, all the settings will be back to default.
ithehappy said:
I said just restart, turn your phone off and turn it on, all the settings will be back to default.
Click to expand...
Click to collapse
That was the first thing I tried.. and as you can understand, it didn't help
bump........ again..........
anybody?

Service mode and Audio menu (modem patch?)

Hi
I really hope I can find an answer here. My speaker volume during call is too low, especially when I use it during driving.
Apps like Volume+ cannot solve this as they only boost the overall volume, and the results are not good enough (cal vol still too low, ring tome distort)
So I tried to boost spk vol using service/engineering mode menu
Dialed code *#*#197328640#*#* and taped optin 5 - Audio. But nothing happens. I looked it up and it turns out that Samsung blocked the Audio menu for some unknown reason. It also turns out that ths limitation is coded in the modem used. So I changed the modem to onld KI3 (GB modem). Amazingly it worked. Audio menu unlocked and I could change the max spk vol from 88 to 100 and my spkr during call was boosted and sounded just great...
BUT, my signal reception and bat draining is the worst I ever had. Plus, I cannot install a matching RIL because this is a GB based modem and I'm running ICS 404.
So, since the audio menu blocking is a modem related issue, I there any way to patch/hack an ICS modem.bin to unlock the service mode audio menu??? I've searched the entire internet and this entire forum and could not find an answer. There are so many fine and talented devs here, I wonder why no one has found a workaround for this. Is it technically possible to restore the audio menu in service mode? Is where are all these settings saved? I noticed there is a system app named servicemode.apk. Could this be patched? Is there a config file that holds all the menu settings?
I promise to buy a full case of beer to any dev who will find a solution to this. Also I cannot understand why samsung set the max spk vol to 88%and not 100%...?
Thanks
If you flash the old modem, change the volume then flash a newer modem does it not retain the volume settings? It worked with me for WBAMR settings.
marsexpress said:
If you flash the old modem, change the volume then flash a newer modem does it not retain the volume settings? It worked with me for WBAMR settings.
Click to expand...
Click to collapse
Thanks. Already tried that. WBAMR works, but not with audio settings. In fact, even if you leave the old moden, audio settings get reset to default after each reboot... I really don't know samsung so anxious to prevent us from changing audio settings.. And why are they setting all max volume to only 88 or 86%???
To bad no one cares about this and try to do something... There must be a way to decompile modem.bin and unlock it.. I wish I knew how...
Fair enough. I tested it myself as I find the handset volume too quiet in many calls myself. If it was just possible to get into the audio menu then a Tasker script can be used to automate resetting the volume to 100 or whatever after every reboot. It's getting the audio menu that's the problem.
I don't understand wtf it would be locked out, why??!
Sent from my Nexus 7 using xda premium
So no one did fix this nor find a solution? I have used Omega rom for a year, and volume settings did work from STweaks. But after I did reflash on the same rom, same kernel, these setting do not work on in call volume. I mean, yes, ringtones are louder and other sound, but talking on the phone in a bit loud place in pain in....
I don't remember what modem I had, but I always thought it's newest one. Now I can't enter AUDIO menu, and cannot boost incall volume...
This may be because of some APK that samsung has in it's rom. When I installed Omega, "in this time" I tried NOT to install Samsung crap programs, and made thing simple. Maybe that is because of some missing APK?
Please gurus, help me, this is just stupid and making me crazy.
P.S.
This forum sometimes feels like dead one..

Need Ulefone Power Armor 13 Engineer Mode Audio Levels

I'm new to this forum. Please let me know if I am doing something wrong. On my Ulefone power armor 13 phone, the volume from the handset was very low. I opened engineer mode by dialing *#*#3646633#*#*. I changed the sound levels. But I didn't know exactly which setting I changed. That's why I need default settings right now. I can't reset my phone because it has too much data and I'm not in a position to back it up yet. I need someone using this phone to share all sound levels as screenshots or text. Thank you in advance.
Hey, I have the same issue of quiet headset. I have to keep saying "WHAT? Can you please repeat" Loool it's not that often, but happens sometimes. I had it with my Doogee S90 too. But I don't remember how I fixed it lol.
What screen you wanna see I will be happy to share.
Btw, I think the right thing would be using Viper Magisk module. But, I haven't tried it myself.
This is the Audio and voice settings.
Yes, that's what I'm talking about. But I need all the settings. For example, if we take the first picture you took, I need all the settings after clicking the "system" tab. And the same things need to be done for the other tab "bt a2dp". I want something very challenging but I really need it. Because my headset was too low. I increased all the levels as I don't know which setting fixed it. Now headset is fine. But this time other audio-requiring things like audio recording and video recording got worse. I am on a business trip. That's why I haven't taken the phone with me right now. If I solve this problem, I will start using it again. It has incredible battery performance and that's what I really need. Thanks again for your help.

Categories

Resources