yashsingh1/xdaforums huggingface dataset:
[Touch Pro2, Tilt 2 Android Development] championc:
I just need a small bit of help. By 5/28 builds, do you mean from highlandsun's FRX06+ page ? If so, which rootfs.img and system.ext2 files should I be using with these ?

And finally, if I install the zImage and modules-xxxxx files from FRX06+, how so I tell my phone about the new modules-xxxxx file - is there something coded within the zImage file because there's nothing within my startup.txt file for this.

C
[Touch Pro2, Tilt 2 Android Development] fishingmedic:
Read his page and you'll have all the info you need.
[Touch Pro2, Tilt 2 Android Development] highlandsun:
New ril2 in post#6, fixes GSM SMS Delivery Status reports. It seems that our modems are returning improperly formatted PDUs for these reports, which Android cannot parse. The ril is now patched to "fix" the PDU format...
[Touch Pro2, Tilt 2 Android Development] haoyong:
Anyone have any luck merging these new RIL's into a Clockwork Mod setup? I think it would fix a lot of the SOD issues we are seeing with some of the newer CWM setups.

I had tried following highlandsun's directions in post #1, but it did not seem to help any. I also tried using F22's pre-patched rootfs, but that rootfs is not compatible with CWM setups.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Neopeek needs to fix CWM to support the new RIL. I thought he had, but perhaps not.

AFAIK the work that Neopeek did is closed - I haven't seen anything public on his CWM setup. I've picked apart his rootfs and what he changed, it's kinda a mess TBH...
[Touch Pro2, Tilt 2 Android Development] haoyong:
Lol - yeah, gotta say that it doesn't surprise me that it's a bit squirrelly. He seems to be very effective at getting things to work for him, but not super at explaining things or setting things up clearly.

I may just abandon the whole clockworkmod thing for now, and go back to the old XDandroid builds . . .
[Touch Pro2, Tilt 2 Android Development] tovarish:
i think neopeek's rootfs by default has an older version of highlandsun's ril. I have also heavily modified his rootfs to include the latest version and also to include jonpry's scbc stuff, f22's keymaps (not the startup code but hardcoded for rhod100uk). If anyone wants i could upload the resultant rootfs but with so many changes i have lost track of it and its almost like frankenstein's monster. A diff should highlight all of the changes.
[Touch Pro2, Tilt 2 Android Development] highlandsun:
All of this is off-topic. Take it somewhere else.
[Touch Pro2, Tilt 2 Android Development] dewagprs:
hi, i have problem

when i use GSM mode, after a few minutes, GSM mode turn into CDMA mode and even no signal or network received,

need help
[Touch Pro2, Tilt 2 Android Development] dewagprs:
problem solved, when i use kernel 1253, but camera not working
[Touch Pro2, Tilt 2 Android Development] AkumaX:
well, pick your poison :P
[Touch Pro2, Tilt 2 Android Development] owl1979:
Thank you for this thread.

I'm on a TP2, CDMA on Sprint (Rhod400). I was referred over here to test a new RIL because I had issues with not having a green light when on standby and because wifi was not turning on. I eventually figured out how to get the green light with the stock FRX06 build but wifi is still not working.

I tried the new RIL and standby may have been a bit better by wifi is still not turning on. Oh, well. I may just have an incompatible Rhod400.

Regarding the new RIL, when booting it shows "T-CDMA 64" - is this expected? Also, I no longer see "3G" in the menu bar - does this mean I am not on 3G (any way to tell)?

Thank you.
[Touch Pro2, Tilt 2 Android Development] highlandsun:
The RIL has nothing to do with wifi.

The "T-CDMA 64" message is a bit ugly, but perfectly normal. It will be replaced with a nicer looking message in FRX07.

As for "3G" - look at Settings / About Phone / Status : Mobile network type
[Touch Pro2, Tilt 2 Android Development] owl1979:
My mobile network type states "CDMA - EvDo rev. 0" - I do not recall what it says with the stock RIL, but I'll check later.

Thank you for your help. I'm quite happy with Android on my TP2; even with it's issues, it's much more usable than Win Mo.

I look forward to FRX07.
[Touch Pro2, Tilt 2 Android Development] highlandsun:
Kernel bug, fixed by emwe as of htc-msm-linux @ 20110618_130410 in the autobuilds. Just noting this here for future reference; any further discussion of this issue should be in one of the kernel threads and not here. http://xdaforums.com/showthread.php?t=869992
[Touch Pro2, Tilt 2 Android Development] Raul^:
I'm using ril2 and kernel 1253 and it isn't solved at all. it turn itself into CDMA mode once in a while.

Tried newest kernel and it's better.
[Touch Pro2, Tilt 2 Android Development] steveoski111:
highland sun is the muthf$%^&*&% MAN! HE BE REPRESENTING DAWGS! IN HIS SIG IT EVEN SAYS OP but what it really should be is "OG"
[Touch Pro2, Tilt 2 Android Development] Tippfehler:
@ stevoski111

I think, this was a little bit OT, but I found www.urbandictionary.com and have learned a lot more of the english language. Google-translator or Babelfish have not found words like dawgs. But now, I know it and think this word is nice to know, but not important for android installations. I would be pleased, if you don´t write any more such difficult texts.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Amen & well said.

Re: My mobile network type states "CDMA - EvDo rev. 0"

hyc, I have noticed my phone never says rev.a I don't know if this is a bug, or if I've never actually been in a rev.a area (I need to verify with WinMo, not sure how).
[Touch Pro2, Tilt 2 Android Development] highlandsun:
Sorry, it just looks like your radio got hung all by itself. Nothing that the ril code had to do with it.

Anyway, try the current one. I've put a few GSM fixes in since the one you're running.
[Touch Pro2, Tilt 2 Android Development] highlandsun:
But now that odz spent a long debug session with me, it should now be fine with Gingerbread.
[Touch Pro2, Tilt 2 Android Development] Entropy512:
Heheheh. Sh*t happens.

I'll try 6b7afad tomorrow - I have whatever was available at 8:30AM Eastern running right now. (started logcatting this morning, but will only post if something "interesting" happens.)
[Touch Pro2, Tilt 2 Android Development] eik:
Sorry for the noob question... I installed the ril but still have freezes while travelling. So first thing I tried to figure out if the module is actually loaded. I f I do an lsmod, should I see it? And if so, what does it show? (when I did an lsmod I did not see anything pointing to this module being loaded)
[Touch Pro2, Tilt 2 Android Development] highlandsun:
This is not a kernel module, so of course lsmod won't show it. It's a shared library that's loaded into the rild process. If you started "logcat -b radio" at boot time you would see the version string printed out somewhere near the beginning.
[Touch Pro2, Tilt 2 Android Development] manekineko:
Great news. Where exactly should this be mounted in Gingerbread? Like i mentioned before, there is no /lib/gingerbread directory, and mounting it on /lib/froyo doesn't seem to be actually loading it on my device, it's still showing version HTC Vogue Community RIL 0.8.

Is there anything we should be looking out for once we have it working to provide useful feedback?
[Touch Pro2, Tilt 2 Android Development] highlandsun:
Since I haven't booted gingerbread, I dunno, you tell me. Where is your current lib coming from?

As for things to look out for, I can't think of anything offhand. For GSM, just use it normally. If it crashes, try to reproduce the crash while running "logcat -v time -b radio" and describe what you were doing at the time. I expect that on GSM everything is working fine now.

On CDMA running in CDMA mode the SMS commands are not yet implemented. In fake GSM mode, I'm not sure, but I think it ought to work as well as the old ril.
[Touch Pro2, Tilt 2 Android Development] Starfox:
Run getprop | grep ril in adb or shell.

-- Starfox
[Touch Pro2, Tilt 2 Android Development] Entropy512:
I think in GB it may be in /system/lib
[Touch Pro2, Tilt 2 Android Development] manekineko:
Oddly enough, running getprop | grep ril returned:

[rild.libpath]: [/lib/froyo/libhtcgeneric-ril.so]

However, mounting highlandsun's ril to that point did not actually get it running. Instead, mounting it to /system/lib worked.

After settings the preferred_network_mode to 4, everything connected it up.

I'm running the latest Gingerbread GRX0A, which has all the settings for Network Mode. Tried setting it to GSM only to see what would happen. It disconnected my network, and greyed out all the settings for a while, before it spontaneously reset the network mode to CDMA / EvDo auto on its own again, and reconnected.

Obviously since location isn't working on GRX0A, there is still no location despite the presumably working netloc. Unsurprisingly, GRX0A data dying bug after calls remains as well.

Only really immediately noticeable differences are that the 1x data icon shows up now, and the lock screen says Roaming Indicator Off.
[Touch Pro2, Tilt 2 Android Development] highlandsun:
I haven't implemented that switch yet. Right now it only checks the mode once, at poweron, so if you switch on the fly it will just fail. Switching on the fly might be tricky because I'm not sure what needs to be reinitialized and what needs to be left alone. E.g., right now if you startup in CDMA mode, it leaves the SIM card uninitialized.

Netloc is not related to GPSloc. Even without working GPS, Netloc should still work on its own. I dunno about the data dying after calls bug. Since I haven't run Gingerbread yet I haven't seen it. Is it on GSM too, or CDMA only?

Yeah, still haven't sorted out the roaming indicator stuff. It shouldn't even be displaying that if you have your Home SID set correctly.

Edit: On 2nd thought, the data dying after calls bug might be related to what I saw in a log Entropy512 sent me - switching from 3G to 2G, the old pppd exits gracefully because the 3G connection is gone, and a new pppd tries to start on the 2G but it dies immediately. I think there is too short a delay between these two events, and the radio isn't ready for it yet. Could be a similar problem when coming out of a call.
[Touch Pro2, Tilt 2 Android Development] manekineko:
Hmm are you sure about that? I seem to recall stinebd saying on irc that the way Gingerbread is designed, if you don't have a functioning GPS driver, all location services don't work. That is presumably why even wifi-location doesn't work in Gingerbread, and CDMA tower location still isn't working for me.

Both GSM and CDMA. Data is also killed by toggling airplane mode. When I first started running, toggling data off and on would fix both of these problems. For whatever reason, this no longer works and now a reboot is necessary for me.
[Touch Pro2, Tilt 2 Android Development] rpierce99:
As requested, here's a list of the known issues I've seen while running CDMA mode on your RIL:

Signal Bars are always at 0

Roaming Indicator Off instead of carrier name on lock screen (I think this issue is actually in framework-res.apk not the RIL, but if there's a way to do it in RIL that'd be awesome)

SMS in/out unimplemented

MMS in/out unimplemented

H icon for EVDO Rev 0 and Rev A instead of 3g icon

I thought NITZ was working but I lost ~5 minutes in 24 hours, auto time mode does seem to work though, don't know enough about it to really explain.
[Touch Pro2, Tilt 2 Android Development] highlandsun:
re: Signal bars - what does Settings / About Phone / Status show for signal strength?

re: H icon - are you saying it does show and it shouldn't, or it doesn't show and it should? Right now on my phone (FRX06) it should be showing H and it doesn't. That's framework, the RIL is reporting the correct network type and it's displayed correctly in Settings.

re: NITZ - I don't think the network sends the notification often enough to keep the phone perfectly in sync. We may be able to set up a timer to poll for it periodically though. Also, currently for CDMA the code turns NITZ alerts off when the screen is off. (That was a patch from the Vogue source, not sure why.) I guess we can leave NITZ always enabled instead. It looks like the HTC ril leaves it always enabled.
[Touch Pro2, Tilt 2 Android Development] highlandsun:
OK, new one posted. Should be giving non-zero signal strength now, although it's probably still nowhere near correct.

Also keeping NITZ enabled now.
[Touch Pro2, Tilt 2 Android Development] Starfox:
Output from logcat -b with latest. Signal bar is nonfunctional, I still get "Roaming Indicator Off" but my NID is probably wrong (31099 maybe?). I can't seem to set network=4 without nuking my data.img.

-- Starfox
[Touch Pro2, Tilt 2 Android Development] muziling:
CDMA, Network_mode set to 0

When turn on 3G, phone can call in now , I can accept and reject it :D

When phone call in, 3G icon(top of screen) disappear, I reject the phone, after several seconds,3G icon appear again, but data connection seems lost , can not open websites.

BTW, what different between set network mode to 4 or not? NITZ work both 0 and 4?

My logs:
[Touch Pro2, Tilt 2 Android Development] manekineko:
Running ril-26d0a8b.zip on GRX0A on CDMA with network mode set to 4.

Still not seeing signal strength, it isn't changing up top, and under Settings => About => Status it seems stuck at -120 dBm 0 asu.
[Touch Pro2, Tilt 2 Android Development] Starfox:
This is one without using -h, and I think I accidentally hit airplane mode, recovered, then it was going on EvDO then suddenly changed to 1x without user interaction.

-- Starfox
[Touch Pro2, Tilt 2 Android Development] highlandsun:
Ok, this is the same bug other people have reported. It's caused by trying to start the pppd too soon, before the modem is ready. Don't have a good fix for this yet.

Yes, NITZ works in both.

Mode 4 tells Android that it's actually a CDMA phone. By default Android uses GSM, and the previous RIL code has always tried to pretend to be GSM when running on CDMA. Since it was only pretending to be GSM, some things like CDMA network location could never work. CDMA network location works now with my RIL, because it tells Android the truth about the phone...

OK, thanks. Got a logcat?

Thanks, will check it out.

Starfox: in the future, please use "logcat -v time -b radio" so there are timestamps included in the log. Since all of the current crashes are timing-related, this is crucial.

At this point I think the list of problems is pretty clear. I'm rather stuck on getting solutions because nobody with a native CDMA Android phone has volunteered to offer any information yet and there is no public documentation. (Well, one guy volunteered, but he was using a 4G HTC Thunderbolt and rilspy didn't work with that at all, so we couldn't get any useful info.) Because of this lack of information I've had to resort to buying a used CDMA Hero on eBay; it should get here next week. Until then there's nothing more I can do. (And yes, the timing of that purchase coincides with when I added the Donate button to my profile here.)

So, don't look for any further updates from me for a few days.
[Touch Pro2, Tilt 2 Android Development] highlandsun:
Unfortunately you have as much info about it as me.
[Touch Pro2, Tilt 2 Android Development] highlandsun:
There was a bug where the ril was sending too many notifications for an incoming call. Now fixed in the updated ril2- zip file.
[Touch Pro2, Tilt 2 Android Development] The Silent Man:
I've tried new ril with FRX07 and it seems that problem with 3G network connection is solved now. Incoming and outgoing calls work and data also works.
[Touch Pro2, Tilt 2 Android Development] The Silent Man:
Maybe I jumped to conclusions...I've experienced "no service" problem again but this time data is working. Click on the "2G only option" brings up network coverage.
[Touch Pro2, Tilt 2 Android Development] mgross029:
I updated the ril on my Rhod500 and all seems to be stable so far... I will report back if there are any problems... Thanks for the all the hard work!
[Touch Pro2, Tilt 2 Android Development] highlandsun:
OK, several new revisions posted in the past few hours for various issues.

Reverted to original CDMA/GSM detection code because the patched code was invalid, and always treating CDMA phones as GSM. (This fix primarily affects CDMA raph/diam.)

Patched the Baseband_Version code to work on CDMA raph/diam.

Patched to workaround rhod400 with buggy radios (version 61.27W.25.23U_1.96.00WF for sure) that fail to report network base station info after a call. Apparently the problem doesn't occur on the newer 2.32.00WF radio.

Patched to fix data call being hung up when a voice call ends (all phones).
[Touch Pro2, Tilt 2 Android Development] AkumaX:
so would it be best to incorporate this ril AND the latest kernel (8/5)? (also, do we still need to patch the rootfs?)
[Touch Pro2, Tilt 2 Android Development] highlandsun:
For raph/diam yes, you need the latest kernel too. I don't know what rootfs patch you're talking about.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
He's probably talking about the rootfs trickery you have in post #6...

On that assumption, no you do not have to do any rootfs mucking if you're on FRX07. Be sure to bind mount to /system/lib/libhtcgeneric-ril.so....
[Touch Pro2, Tilt 2 Android Development] AkumaX:
thanks! i probably would have put it back under lib/froyo...
[Touch Pro2, Tilt 2 Android Development] highlandsun:
Ah. Right. I wonder if I should start a new thread since FRX07 already has the tedious bits included.
[Touch Pro2, Tilt 2 Android Development] NeoMatrixJR:
Probably should...or make an FRX07 section in the 1st post. I know I could use current instructions.
[Touch Pro2, Tilt 2 Android Development] baikal2:
Feedback on latest RIL

Fedback.

I am on a RHOD 400 (Sprint). I am using the latest RIL from thsi thread. I still get Searching for service after I get a call. I am able to take the call and finish the call. After the call the Phone goes into "Searching For service" and I cannot call out. I get the "Mobile Network Not found"

I am able to still receive calls in this mode. I am hoping there is a fix for this

thx
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
There is a fix, update your radio firmware. See teradog's post - I'm using this firmware now, no problems.
[Touch Pro2, Tilt 2 Android Development] mbellot:
arrrghhh - Do you need anything special (unlocked radio) to run the update? I'm running 2.32.00WF on my Rhod400.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Well I do believe you need hSPL (unlocked to flash unsigned / any ROM). I don't think there's any sort of a radio unlock (other than the SIM slot unlock) - so you might have issues applying a radio firmware if you don't have hSPL, but if you do it should be a breeze. Just like flashing any other ROM.

If you don't have hSPL, you'll have to download a stock ROM. They will have radio versions included - but stock Sprint ROM/radio will be the same version you're already on AFAIK.
[Touch Pro2, Tilt 2 Android Development] mbellot:
Thanks!

I have hSPL unlocked the phone, running Timberwolf ROM when in WinMo. It's old, but I like it...

Will updating the radio have any effect on the ROM or storage? I've got a few text messages and other things that I don't want to evaporate unexpectedly.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Updating radio firmware should not have any effect on anything within the build/ROM. However, it's always recommended to have a backup when flashing anything... 99.9% chance you won't need the backup.
[Touch Pro2, Tilt 2 Android Development] großa:
Is there a new firmware for the rhod100's also?

Sometimes I'll get "no service / simyo" but I'm able to call and get a call?!

This happens after the phone woke up.
[Touch Pro2, Tilt 2 Android Development] Tippfehler:
Radio-ROMs:

http://xdaforums.com/showthread.php?t=549939
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Thanks.

großa, perhaps you can find a newer radio version for your device? I've got blinders on, I try to help out GSM folk but I only have a CDMA device/service ;).
[Touch Pro2, Tilt 2 Android Development] großa:
I've got 4.49.25.95 (AT&T), so it's the newest. Thought there's a newer one, hidden somewhere :D
[Touch Pro2, Tilt 2 Android Development] championc:
I'm trying to apply this Ril but when I run up the console in DroidExplorer and type the mount line, I get "mount: permission denied. are you root ?"

What can I do ?

C
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
You need to su, and remount rw. A bind mount in user.conf is much simpler IMHO.
[Touch Pro2, Tilt 2 Android Development] refthemc:
Trying to get Verizon MMS working on my Vogue, I tried the simple replacing libhtcgeneric-ril.so's but I got constant FC's. Any help would be appreciated.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
This RIL was never designed to work for the Vogue. It probably has an older radio that this RIL is not prepared to handle.
[Touch Pro2, Tilt 2 Android Development] mgross029:
refthemc,

MMS is configured via your APN settings. Has really nothing to do directly with the ril, if you have Cell and Internet working then your ril is probably working.

Do you have an APN entry? Also does your apns-conf.xml have an entry for Verizon?

You can manually configure you APN settings as follows

Name - Verizon

APN - Internet

Username - *

Password - *

Server - *

MMSC - http://mms.vtext.com/servlets/mms

MCC - 310

MNC - 004

These settings work for me on my Rhod500 not sure if they will for you but you can give them a try.

Good Luck
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
By nature, CDMA doesn't use APN's. So if he's using a CDMA carrier, he won't have an APN menu. Our wacky port has it, thanks to hyc. The native way to handle MMS seems dubious at best, and hyc fixed it to work much better. He even submitted the patches upstream, but I don't think anything's going to happen with it... which is a shame.
[Touch Pro2, Tilt 2 Android Development] mizofizo:
I have access to a CDMA Hero...on Sprint. It's running CM7 RC2. Can it be of assistance to get those illusive CDMA commands?
[Touch Pro2, Tilt 2 Android Development] highlandsun:
Yes, I believe so! Please read this README and let me know if you can handle that

https://gitorious.org/rilspy/rilspy/blobs/master/README

The binary is up here http://cleanimport.xda/index.php?posts/12434631/. PM me or catch me on IRC if you go ahead with this.
[Touch Pro2, Tilt 2 Android Development] highlandsun:
Well, for GSM I don't seem to be having any data disconnect issues any more. Toggle 2G/3G, pppd stops and starts again without trouble.
[Touch Pro2, Tilt 2 Android Development] muziling:
Does this means no need to add "-h <sid>" parameter anymore, it will get this value from phone?
[Touch Pro2, Tilt 2 Android Development] rpierce99:
Once that feature is fully working, yes, at the moment all commits since that one get no service in CDMA mode. I'm sure hyc will update the thread when it's good to go.
[Touch Pro2, Tilt 2 Android Development] highlandsun:
Well, incorporating it required fixes in seemingly unrelated areas. First post is updated, no idea if it works on CDMA or not. Still works OK for me on GSM.
[Touch Pro2, Tilt 2 Android Development] Starfox:
CDMA no go with latest. Seeing some weirdness in the SID/NID pair. logcat -v attached.

-- Starfox
[Touch Pro2, Tilt 2 Android Development] highlandsun:
OK, should be straight now.
[Touch Pro2, Tilt 2 Android Development] rcgators:
I think you nailed it!!! :cool:

Prior to this I could easily force connection problems just by walking to dead zones. Now it has recovered every time! SOD is also much better, can't say fixed since it's only been a short time but... WOW lovin this!
[Touch Pro2, Tilt 2 Android Development] Starfox:
Latest works, thanks. I still don't have signal quality indicator and it still shows "Roaming Indicator Off", any way to remedy those issue? Would running stock froyo in fake GSM logcat be of any help?

-- Starfox