Hi guys, everything ok?
So, I'm developing a system app and I need to access Radio Interface Layer. On my project is very necessary to receive RIL informations and change some configurations too. Like preferred network mode, etc.. I already build the system app correctly, I know because my device is with the cyanogenmod and my system app has the same certificates.
But, when I call PhoneFactory.getGsmPhone() the radio go away and after a couple seconds it back again. So, the only info that I can read was signal strength, the others values not show correctly, like available networks, that returns nothing.
Basically, I'm calling getGsmPhone and I "casted" to GSMPhone object, after calls some method, like:
gsmPhone.mCM.getAvailableNetowkrs(myMessageObject)
What happens is:
1- open my system app (radio is gone)
2- get ril info (radio still out)
3- radio back (but after run my system)
My doubt is, how I can instantiate a gsmPhone without falling down signal radio?
Thank you in advance.
Apparently, the right way is using makeDefaultPhone(context) and storing the object (Phone) to access in future. It's alright?
So, I could store the phone object on service and access it when I wish. My new question is, when I use makeDefaultPhone(context) am I creating a new instance? It'll stay until when?
Thank you!
Related
First off - THANK YOU to everyone here and all the help everyone always provides.
To start - I have an AT&T Fuze that I love. I have added a ton of programs and tried out just about everything featured on this site and other WM sites. As a power business user my one main concern has been with the battery life, which seems to not make it through 1/2 of my day without having to go on the charger.
So I decided to try a new rom and radio to help gain some battery life and performance.
1) ROM - I installed NATF_HTC_Fuze_v2.3 (found at http://forum.xda-developers.com/showthread.php?t=444784 )and those files seemed to install perfectly
2) RADIO - I then installed RAPH_Radio_1.02.25.32 from the radio thread. I downloaded the file and unzipped. QUESTION - Inside there were 2 files called Radio1.02.23.32.nbh (NBH file) and RaphealWrapper (application file). I clicked on the file and it automatically installed onto my computer. I have been able to send and receive text messages, etc Is this all I had to do to have the radio correctly installed?
QUESTION 2 - how do i turn the 3G off and on. Which icon and control is it please.
I know these might sound basic, but my head is spinning from trying out multiple roms and trying to learn all of this quicky.
THANK YOU and i look forward to your responses.
RaphaelWrapper is the program to run when flashing any ROM. The way to see if your Radio ROM was flashed is by checking the Device Information control panel applet under the System tab in Start -> Settings.
There are multiple ways to turn 3G on and off (applications that make it easy) but the common, and most time-consuming, way is to go to the Phone control panel applet under Start -> Settings -> Personal, selecting the Band tab, and selecting GSM (which is 2G) or WCDMA (which is 3G) for the network type.
Trancecoder said:
RaphaelWrapper is the program to run when flashing any ROM. The way to see if your Radio ROM was flashed is by checking the Device Information control panel applet under the System tab in Start -> Settings.
There are multiple ways to turn 3G on and off (applications that make it easy) but the common, and most time-consuming, way is to go to the Phone control panel applet under Start -> Settings -> Personal, selecting the Band tab, and selecting GSM (which is 2G) or WCDMA (which is 3G) for the network type.
Click to expand...
Click to collapse
1) I have attached a picture of my Device Info screen (PICTURE 1). I think I got both the ROM and the radio installed on the Fuze?
2) While I seem to be able to get online, I still am unable to receive emails for my POP3 accounts?? This is a huge problem. I keep getting the error message that Messages cannot be downloaded to your mobile device. Make sure you are connected and that your email account settings are correct. then, try to download messages again. What am I supposed to have my Communications settings set to. I have attached a picture of that also (Picture2)
ANY help would be greatly appreciated.
UPDATE - I think I have this figured out. Just had to adjust a few settings. Thanks for the assistance. Seems to be working well now
Great! Have fun with your Fuze
Trancecoder said:
Great! Have fun with your Fuze
Click to expand...
Click to collapse
It is amazing how many issues are created by simply NOT READING and thinking you can do it without FOLLOWING THE INSTRUCTIONS, lol
Quite true. Being a geek, I'm naturally averse to reading manuals, but sometimes it's unavoidable in order to keep my device in working condition
Trancecoder said:
Quite true. Being a geek, I'm naturally averse to reading manuals, but sometimes it's unavoidable in order to keep my device in working condition
Click to expand...
Click to collapse
it looks like you have a fuze like i do, in your experience which radio has given you the best battery life. My current phone install are in my signature
I was running 1.02.25.28 and the battery life was pretty good. I just flashed 1.08.25.20M1 last night. So far, I've not noticed any dramatic difference in battery consumption.
I have been trying for quite some time to get the pesky little 'Internet Calling' option to show up on my Touch Pro. I've tried all sorts of little utilities on various different ROMs and I've yet to see my VOIP provider show up as an option to dial out on, or even any change when 'Internet Calling' is configured and enabled on the Home screen.
There seems to be lots of (possibly outdated?) info out there and there is no shortage of utilities that are supposed to enable the feature, but as far as I can tell none of them seem to work on this particular phone.
I would like to have SIP enabled on my phone, and I would like it to use the same dialing pad, contact database and phone program that the phone on the device uses. I don't want a seperate application, I just want the phone to be able to dial out and recieve calls via VOIP over WIFI, and I want the bluetooth headset to work properly with it and I want clean audio in both directions with a good WiFi connection. Support for multiple SIP accounts would be a huge bonus as well. Is this asking too much or is it just not possible with this device?
I am aware of and do have Fring and Skype both working on the phone, but they do not share the same features as the standard phone application that is native to the device, the biggest issue is that if the phone goes to sleep I don't get calls, even if I'm sitting in my office with a perfectly good wifi connection.
Is there a ROM out there that has VOIP enabled where you can just set up your provider and it works? Has anyone had any success on this phone getting VOIP to work natively? If not a thread that basically says no, it doesn't work might help others that are fighting with this issue.
Thanks in advance.
I had never heard of this as even being possible in WM
Go to registry "Features" under HKEY_CURRENT_USER\ControlPanel\Phone,
and add 8 Hex to the value.
Thanks to beefviper on ppcgeeks who figured this out.
Original info here: http://forum.ppcgeeks.com/showpost.php?p=749746&postcount=5
If anyone else has more info on CDMA & SIP I'm interested, because it seems like I can't get all pieces working together at once. Either the GPS is broken, or the microphone is muted. Fix one, break the other.
This worked for me!!!!
Just going to reflash and see if I can get it all working without all of teh extra hacking around and will report back.
bluenote73 said:
Go to registry "Features" under HKEY_CURRENT_USER\ControlPanel\Phone,
and add 8 Hex to the value.
Thanks to beefviper on ppcgeeks who figured this out.
Original info here: http://forum.ppcgeeks.com/showpost.php?p=749746&postcount=5
If anyone else has more info on CDMA & SIP I'm interested, because it seems like I can't get all pieces working together at once. Either the GPS is broken, or the microphone is muted. Fix one, break the other.
Click to expand...
Click to collapse
bluenote73 said:
If anyone else has more info on CDMA & SIP I'm interested, because it seems like I can't get all pieces working together at once. Either the GPS is broken, or the microphone is muted. Fix one, break the other.
Click to expand...
Click to collapse
Here is what I did after you posted the missing link:
1. Reloaded my phone with the latest NSFAN ROM.
2. Set up the phone to connect to my wireless network. Turned the phone and data connection feature off (my phone is not provisioned)
3. Installed WM6VoIPFull.cab - restarted phone as suggested.
4. Installed Setup_Voip-v0.3.cab
5. Ran Sip Config Tool V2.0.1
6. Ran Sip Dialplan - soft reset as suggested
7. Ran Setup VoIP and set Outgoing calls using VoIP to 'Whenever Available' in the options tab
8. Added 8 to the Hex value at the reg key you noted. Restarted the device.
9. Enabled the Internet Calling on the Settings/Home/Items option
Saw that the VoIP was saying No service. Confirmed connection settings were correct but could not see the phone hitting the PBX at all.
Re-installed WM6VoIPFull.cab, rebooted, re-enabled whenever available... swore some more... Home item says no service. Reconfirmed that the PBX works with settings I'm using with softphone on PC. Made sure I could get to Google Maps on phone. WiFi is working and DNS is resolving, account parameters are all good... still no service. Phone isn't even attempting to log onto PBX.
Whet back to this thread on another site - http://forum.ppcgeeks.com/showthread.php?p=1610281
And performed the regedits and added thescripts in post #9 (Cudos to 'El Ha$on')
So I am able to easily turn VoIP on and off....
Try random things to try to get it to magically work again. No Joy. Just for kicks try turning the phone on, and I get a notification that says 'home only' - no clue what that means.
Confirmed that the connection is set to whenever available tried togelling the use over the phones data connection, rebooted. Still 'No Service'
Can't figure out why the phone doesn't want to connect through my wifi, throw phone across room against the wall and go to bed.
- UPDATE -
The above method DOES work, however there is another issue. Microsoft uses a different set of protocols for SIP authentication, so if you are attempting to connect to a PBX that does not support the Authentication that the phone is offering up, you are likely geting 401 errors.
I can connect the phone directly to my trunk lines without any trouble now using the above method.
Installing audioroute routes the audio to the earpiece of the phone and the volume that I am getting is sufficient, allthough not particularly loud.
Happy Voiping
Glad to hear you got everything working. Could you post a link to where you got the voip package you actually used?
Sure thing, I used the files from thread number 8 from here:
http://forum.ppcgeeks.com/showthread.php?p=1610281
Does your GPS work with all this installed, and have you confirmed that your mic is transmitting your voice? When I was first testing, I didn't even think to check that people could hear me. (Because I was calling one of those automated response places).
Thanks for the link, I think I might take a bit to work up the energy to try yet another combination
Yes GPS is working and VoIP is fully functional. Last piece of teh puzzle is to get the Wifi to remain always on.
(and get it to Authenticate with freeswitch)
Touch Pro CDMA and VOIP
I currently use an HTC Touch Pro to dial out through my WiFi router on a phone that is not active with any cell provider. I am able to do this with an older version of Skype software. When I tried updating to the latest version of Skype software it would not work. I am not able to receive calls on it yet, but I believe I will be able to trick the interface into receiving calls through the Internet the same way my computer does.
Wifi: no stand by / always on
hammtech said:
Last piece of teh puzzle is to get the Wifi to remain always on.
Click to expand...
Click to collapse
Fetch WifiNoStandby.cab from forum.xda-developers.com/showthread.php?t=730303
EDIT: This issue appears to have been solved. the newest ril2 and a recent radio for your CDMA handset should do the trick. Thanks muzling, arrrggh and hyc.
The bug seems to vary for people. My signal pretends to be lost after each call, and sometimes after texts. It will still receive calls, but I have to toggle airplane mode if I want to call out or text out.
I don't make many calls so the bug hasn't bothered me much, but I had to make a bunch of calls today while on the road, so toggling airplane mode after each one actually got on my nerves a little. I was going to ask if there were any tasker users here to try out some things, but apparently tasker offers a 7 day trial straight from their site, so I decided to try it out. It crashed on its first run, but seems to be running fine now on FRX07.
It took a few tries, but it seems to be working with this combo.
Profile 1: context -> application -> phone; task-> variable-> Set Variable -> %CALL to 1
Profile 2: context -> application -> phone (NOT); task-> variable -> Set Variable -> %CALL to 0
Profile 3: context -> state -> variable -> %CELLSRV matches "noservice"; task -> Phone -> Radio -> Toggle (if %CALL matches 0); task 2 -> Phone -> Radio -> Toggle (if %CALL matches 0)
My first try had the phone hanging up on me during a call. I figured maybe the phone was reporting no signal before the hangup, so I added profiles 1 and 2 and the user var %CALL to limit the radio toggle to when the phone app wasn't in the forefront. For now at least, it seems to reconnect within a couple of seconds of hanging up. Color me happy.
Links of interest:
Quick tour of avail contexts and actions || User Guide
My next task is figuring out a way to toggle the speaker when I first dial out. It always spits some fuzz when I begin outgoing calls unless I toggle the speakerphone on and off. I haven't found an appropriate context yet (application -> phone would toggle unnecessarily for incoming calls as well, not sure if %SPHONE would detect the speakerphone as being on during the bug), but hope springs eternal.
Interesting solution...
I would much rather figure out the root cause (with a fix in theory to follow), but in the meantime anything to help with sanity is always welcome. Kudos.
Thanks. Root causes are definitely the way to go, I'm just not smart enough to aid and assist on that level. Noticed enough complaints about signal loss, I thought some others might benefit from the profiles.
Tasker is no mortscript, but it seems the closest android analog. I used to kind of enjoy scripting away at winmo's faults, and hope I might be able to smooth some rough edges in my android experience too.
Thanks... I just installed Tasker and added the profiles as you said and will report back if it helps me with the signal loss.
Would you mind telling me why you put the same task twice in the last profile? Thanks
Daved+ said:
Thanks... I just installed Tasker and added the profiles as you said and will report back if it helps me with the signal loss.
Would you mind telling me why you put the same task twice in the last profile? Thanks
Click to expand...
Click to collapse
The first toggle turns off the cell radio, the second turns it back on.
After several days of trials, I ran into an instance (when my phone was a little laggy anyway) where it was endlessly turning on and off, apparently because it was detecting noservice multiple times before the toggle was complete. I haven't done this yet, but adding a several second delay into the mix should prevent loops.
Hope it helps!
signal loss?
signal icon show no signal or signal strength zero level?
Which radio version you use?
I dunno, no signal or no service (incoming stuff still works though), I think it's a little x where the signal bars would be. It's a common enough issue, see the FRX07 thread. I'm using whatever radio is bundled with FRX07.
fortunz said:
I dunno, no signal or no service (incoming stuff still works though), I think it's a little x where the signal bars would be. It's a common enough issue, see the FRX07 thread. I'm using whatever radio is bundled with FRX07.
Click to expand...
Click to collapse
I think he means radio firmware - it's flashed in bootloader mode, and usually comes with stock ROM's... Basically it's completely independent of our Android port.
I'm curious, did you try hyc's updated RIL? There was a slight bug that seems to be helping all sorts of issues, it was related to incoming calls...
arrrghhh said:
I think he means radio firmware - it's flashed in bootloader mode, and usually comes with stock ROM's... Basically it's completely independent of our Android port.
Click to expand...
Click to collapse
Oh, thanks. I don't believe I've made any changes to that. Whatever came with the phone from the factory.
I'm curious, did you try hyc's updated RIL? There was a slight bug that seems to be helping all sorts of issues, it was related to incoming calls...
Click to expand...
Click to collapse
Downloaded it, haven't put it in place yet. Last post I saw had someone recanting on it fixing an issue like this one, but it's worth a try.
hyc's updated RIL not support all radio firmware version,
I encouted the same problem with you when use an special radio, try to use newest radio ( http://forum.ppcgeeks.com/cdma-tp2-...10-rhodium_w-radio-roms-mirrors-included.html )
You can upload your ril's logs,use command "adb logcat -b radio",when signal icon show x, there must be an error like "system need return success, but ril return fail"
It's late, goodnight.
Thanks guys, newest vzw radio and newest ril fixed it.
Alright everyone, I'm getting annoyed and I'm hoping someone more talented than me can come here to save the day. I'm attempting to use a conditional init.d script that runs if it finds the file of my choosing (in this case, radio.sh in /system/bin) and then if it finds it, it will disable radio. What I'm having problems with is that it keeps giving me connection refused on boot when disabling radio. So, any idea?
Have you mounted your system as read/write at the beginning of the script?
Sent from my PG86100 using Tapatalk
I'm using radio options I shouldn't have to but I guess I'll try that
Sent aboard the Evo Express
What command do you use to disable radio?
I tried a setprop command, that didnt work and I also tried "radiooptions 1"
edit: This was using both adb and init.d
Code:
stop ril-daemon
globatron said:
Code:
stop ril-daemon
Click to expand...
Click to collapse
Hey globatron,
If you remove phone.apk and telephoneyproviders.apk you no longer get cell stand by in battery usage but it breaks GPS. If I leave the files and issue the stop ril-daemon command. It turns off the radio and GPS still works but cell standby appears in battery usage. Is there a way to disable the radios completely, still have GPS work and not have cell standby in battery usage?
Sent from my Samsung Galaxy S II
You have to have cell standby for GPS to work, I think they are in the same chip.
Sent by breaking the sound barrier
I don't get what you're trying to accomplish, if youre trying to disable the CDMA radio and use wifi only like me, but want GPS, just turn on airplane mode, turn on wifi and GPS and you're set. If I'm mistaken about what you're trying to do then never mind.
Side note, leaving the CDMA radio on didn't bother me because I don't have service with my view, but it still takes from the battery of course.
Sent from my Rooted HTC EVO View 4G (Honeycomb)
Gordon, this is for a ROM. I'm looking into several options to kill it on boot simply. That's it.
I see, I I think I came across some lads in the Flyer forums either here or AC that had it working.
Sent from my Rooted HTC EVO View 4G (Honeycomb)
Here is something odd.. gps does work if you remove the stuff for cell standby. I thought it was broken (everytime I tried in my house it never locked on a signal) but it's not. I fired up navigation just now and while it did take longer to lock a signal then with the radio stuff in, it did lock and start giving me directions.. I guess the cell radios assist the gps(considerably) but are not fully responsible for it.
This is an important functionality to disable the cell radio!
I've been trying for days now - can't understand why Android doesn't simply provide a checkbox in the settings for this (like for Bluetooth or Wifi).
When people suggest airplane mode, they don't realize that this blocks the stock dialer from placing any calls.
This is really poor design on the part of the Android team: they include a sip stack (thank you!) , then force users to resort to airplane mode to disable the cell, and then block the dialer (when all a user wants is simply to use sip over wifi)...
wutzin said:
This is an important functionality to disable the cell radio!
I've been trying for days now - can't understand why Android doesn't simply provide a checkbox in the settings for this (like for Bluetooth or Wifi).
When people suggest airplane mode, they don't realize that this blocks the stock dialer from placing any calls.
This is really poor design on the part of the Android team: they include a sip stack (thank you!) , then force users to resort to airplane mode to disable the cell, and then block the dialer (when all a user wants is simply to use sip over wifi)...
Click to expand...
Click to collapse
Why would you care about the stock dialer for placing call if you turned off your radio? You ain't making any calls without the radio anyway.... I'm confused
immjg said:
Why would you care about the stock dialer for placing call if you turned off your radio? You ain't making any calls without the radio anyway.... I'm confused
Click to expand...
Click to collapse
He is using sip over WiFi, but he needs a dialer. That doesn't use the mobile radio.
Indirect said:
What I'm having problems with is that it keeps giving me connection refused on boot when disabling radio. So, any idea?
Click to expand...
Click to collapse
sounds like it sends the command before ril is ready.
The only way I got it to work was by having "sleep 60" before the radiooptions command.
Maybe there is some trigger for ril, so the command can run once its ready. I had done a loop to check if ril-daemon is running first, but that doesn't seem to be enough (probably takes more time to load the vender RIL next)
It seems radiooptions just disables the radio, but it still uses power.
Did anybody have success in disabling the radio? I'm also looking for the way how to use View 4G abroad without Sprint.
May be it's possible to modify the firmware to make it "wifi only" - exactly as it made for the HTC Flyer?
mar1boro said:
Did anybody have success in disabling the radio? I'm also looking for the way how to use View 4G abroad without Sprint.
May be it's possible to modify the firmware to make it "wifi only" - exactly as it made for the HTC Flyer?
Click to expand...
Click to collapse
Download a WiFi only Rom
Sent from my HTC EVO View using xda premium on CypherROM
wyldkard said:
Download a WiFi only Rom
Sent from my HTC EVO View using xda premium on CypherROM
Click to expand...
Click to collapse
Is there any for HTC Evo View 4G? The one for the HTC Flyer is not compatible with the View 4G, is it?
I would like a GB, not the HC version.
First off hello I'm new to this forum but a friend suggested I came here for some answers to my questions.
I've successfully compiled (and am currently running) a version of CyanogenMod
I've edited a good number of roms both on my HTC and LG so I have a decent knowledge of the file system
I have Eclipse set up and have been messing around with that a bit. Now that I have that done I want to get into editing the settings (I've taken a few courses with computer programming but never java so editing the Zip would be easier but with more guidance so would editing the source)
Now for the questions
1) Is there a way to make it so that it is EDVO only? without going through the service menu?
I'm going to be using SIP only so I have no need for calls or texts and 1x is never enough to hold a good conversion for me so I'd rather EDVO only
2) I know there are apps like Wefi that allow you to connect to any wireless network but I was hoping there was a way to do this at the source? I was figuring I could bypass the check if its a remembered wifi or not this way theres no need for another program to running.
I've been looking through the wifi settings on eclipse but don't really know what to look for.
3) If the EDVO is a possibility is there a way to change the signal bars to not reflect 1x anymore and simply show no service when that is the option? I figured a theme would be the best way for this but was checking if there was an easier way.
4) I'd also like to set it up so that if theres a wifi connection it will turn off the radio and if the wifi connection is lost it will turn the radio back on. so basically Wifi OR EDVO since I don't need both for sip calls.
This can be done with tasker so it's not as important as the other ones but it would still be nice if it was a built in feature.
I've been doing a lot of googling and these are the answers I couldn't find. I'm only lookin for points in the right direction I'm trying to take this as a learning experience but really haven't got much of an idea on where to start other then theming the singal bars. The first two are the ones I would really like to accomplish first.