yashsingh1/xdaforums huggingface dataset:
[RAZR HD Android Development] djvita:
yep just did a clean install after rebooting to recovery to install my tweaks (custom fonts and host files), i got the airplane mode on. wifi is on, but the triangle for cell towers is hollow. then long press power and says its on. toggle, turn off then boot phone again. on start up, get empty sim card icon, then full bars.
[RAZR HD Android Development] lcc014:
I just saw the CM12 nightly is available. CM11 nightly for KKBL is no longer available. Do I need to have a different gapps for CM12 ? If yes, where can I download it ? For this CM12 nightly, does it still have radio issue or not ?

Thanks,
[RAZR HD Android Development] palmbeach05:
The last CM11 nightly for kkbl is 20150104. Since GB, ICS, JB, and Kk needed its own Gapps, what do you think the trend is for CM12?
[RAZR HD Android Development] lcc014:
Thanks, where can I download the gapps for CM12 ? What about the radio and Wifi issues, have they been fixed yet ?
[RAZR HD Android Development] CWGSM3VO:
http://d-h.st/xC1T
[RAZR HD Android Development] palmbeach05:
I was going to let him figure that one out since there's about a half a dozen gapps links within this thread
[RAZR HD Android Development] CWGSM3VO:
Just noticed something in the umpteenth reboot testing rild stuff, I noticed an interesting condition (on my phone) that I always thought was something else going on...

Sometimes when I reboot my phone (let's assume pre-L, such as CM11) every once in a while I would hear, what sounded to me, like a mechanical click sound. I noticed this only on CM, never stock. I remember this always with CM11 but don't remember it with pre-unified builds. I always assumed the sound was the camera aperture resetting, like the lens or something like my "real" camera does.

Now in CM11, even when I heard this click, I still got radio signal lock on boot, 100% of the time.

Any way... so I was testing and happened to notice that each time I *don't* get a signal lock on boot, I hear the click. When I reboot and get signal lock on boot, I don't hear this click. It's 100% consistent for me.

Can anyone else confirm? Please note, I am using a XT925 but XT926 results would be of interest as well.
[RAZR HD Android Development] madmonkey57:
Never heard such a click... I'll pay attention next times.
[RAZR HD Android Development] RMarques:
Same here C!
[RAZR HD Android Development] lcc014:
Thanks for your original intention.
[RAZR HD Android Development] madmonkey57:
No offense [MENTION=3889038]lcc014[/MENTION], but I understand [MENTION=4895937]palmbeach05[/MENTION] and have to agree with him on this one.

The questions you asked have been covered all over the thread, including in the last few posts.

You popping out in the thread with such a request *appears* like you you don't give a s**t about other people taking time to help/troubleshoot/test/report/hack. It *feels* disrespectful and I'm sure you don't mean to.

Take a look at the amount of work and effort guys like Z and C have been putting in this thread to make L better for our device and to support us.

Think about it from this perspective.
[RAZR HD Android Development] djvita:
even if some of us like me are on bliss, it's good to keep an eye on things to see if we can polish the phone more since it still has some bugs

bug - feature works but not as intended

error- doesn't work

battery life has improved for example, putting to oom settings on 3c toolbox (swipe to the right its the out of memory manager) to agressive
[RAZR HD Android Development] three west:
XT926, I am not on CM, but I am on 5.0.2

I get a click, but I don't seem to have the rild issues on this ROM (2 days in)
[RAZR HD Android Development] djvita:
yes i get this say power off. turns off

then press the power button, the phone vibrates once, wont boot

release, then hold for 3 secs. now get boot logo, bootanimation.

still have to confirm if it's related to sim issues
[RAZR HD Android Development] Zeljko1234:
It's so silent since official nightly started and fake CM12 thread is created. No comments about recent builds?
[RAZR HD Android Development] CWGSM3VO:
Yeah I've been working on it still, just haven't commented on anything yet. Still struggling how to overcome SIM before radio issue. I've imported some kernel changes in my build and I still haven't had a chance to get my gerrit account localized to my build box to submit changes (time is not on my side lately) and I keep getting sidetracked with trying new things :)

I'm going to probably stop on the rild problems because it's outside my scope of understanding and nothing I've tried has worked.

So that being said, I think tonight I'm going to work on submitting my patches and then focus on building optimized builds like I used to and hope that DH or Kabaldan can figure out the issue.
[RAZR HD Android Development] Zeljko1234:
I'm pretty sure that they follow discussion (I remember aac hw acc ;)). In my opinion, any suggestion is welcome. Sometimes what looks like dummy comment or suggestion could lead to new approach to the problem.

Looking forward to optimized build :)
[RAZR HD Android Development] lcc014:
Question about basic features

I just updated the latest nightly 20150109 this morning. I have some questions about the basic features and not sure whether this is the right threads to ask.

1) No name display when receiving text message, only showed phone number. Name was in Contact list.

2) No name display when dialing out phone number, only showed phone number from call history. Call-in number would display name (caller ID) when name is in Contact list.

3) Security pattern did not appears about 20% of the times (similar to no security pattern setup) when I turned on the phone by pressing the power button once; and then wiped the lock icon in the bottom center.

4) Titanium Backup Pro did not start for 80% of the time, just hung the phone. If it started it took forever to restore backed up apps. It could be the apps was too old (in terms of version).

Thanks.
[RAZR HD Android Development] CWGSM3VO:
Try without using TiBU -- I have none of those problems.

CM12 uses SELinux which can break a lot of apps (lack of permission is the end result) so your best bet would be trying with just CM12+gapps (I recommend DH 12-20) and see if the same problems exist. If they don't, it'd be safe to assume the TiBU process is breaking things.
[RAZR HD Android Development] KC69:
I am using PA Gapps 12/25 and i dont have any of those issues. i also quit using tibu a while back, on kk, as it seems that google restores all my apps a lot faster , i only have a few that i have to restore manually, ones that arent in the playstore. 1/09/15 CM has been great for me , really good battery, calls and texts work, contact names show up for both. Still like Bliss for the options , but cm is very stable for me.
[RAZR HD Android Development] lcc014:
Maybe, I need to have a clean update then. I just install the nightly without resetting all cache and user data. Also, where can I find TiBu in the Settings menu ?

Thanks.

---------- Post added at 07:46 PM ---------- Previous post was at 07:45 PM ----------

Thanks, I will give that a try. How can I disable or not using TiBU ?
[RAZR HD Android Development] CWGSM3VO:
[MENTION=4187680]KC69[/MENTION] and I both mean don't use Titanium Backup to restore.... anything.
[RAZR HD Android Development] lcc014:
Okay, got it. Sorry for not realizing the short form of Titanium Backup. I will redo cleanup installation of both 20150109 nightly and 12-20 gapps (gapps-lp-20141220-signed.zip).

Thanks.
[RAZR HD Android Development] KC69:
google has been very good at restoration since kk. dont need tibu.
[RAZR HD Android Development] douglasvbarone:
I do the apps backup/restore with ES File manager. So far, so good. No problems.

But I allow Google Play Store to restore my apps and then I use ES to restore the app's data.
[RAZR HD Android Development] CWGSM3VO:
I see DH and Kabaldan have been hard at work bringing up JBBL for CM12 -- custom RIL among other things. Good stuff.
[RAZR HD Android Development] Zeljko1234:
That's nice for jbbl users. Hopefully they'll work on kkbl radio problem soon.
[RAZR HD Android Development] Mikerhinos:
So right now signal problem has been fixed on a LP rom ?

That's almost the only problem that I have, but it's a very annoying one :silly:

The "killall -HUP rild" hack is only temporary sadly :crying:
[RAZR HD Android Development] Zeljko1234:
It's not fixed and looks like that doesn't exist on jbbl. Ironically jbbl may have better lp.
[RAZR HD Android Development] CWGSM3VO:
I've been giving this quite a bit of thought and started crawling through the rild code (unfortunately, I didn't document it, but could easily find it again) there's a condition where if the rild daemon can't start, it'll restart with (effectively) less parameters being passed to itself. ***edit: It was to determine whether SIM could be read in airplane mode; apparently only QCOM devices support this.

This got me to thinking that perhaps a better solution would be to look at the rild code itself and test for a wedged condition such as we have and have the daemon restart itself. It seems easy to code it to do so (there's an clear-as-day example already there) but I don't know how to test for the condition so I'm at an impasse on that. I've been trying to look at the output from /dev/smd* to see if perhaps when it's stuck, there'd be no output but that led to a dead end.

In my case, the radio log clearly shows the SIM being read (in a no-radio scenario) but for whatever reason it sees the radio as powered off and ends up in airplane mode as a result. Sending SIGHUP to the rild process kicks it into gear and logging shows almost exactly (roughly eyeballed) as if it got radio on boot (which does happen but not reliably repeatable).

That leads me back to the lollipop rild hack I saw for other devices which use that hack for what I can see is exactly the same scenario.
[RAZR HD Android Development] Zeljko1234:
When you don't have radio, do you see rild at the top of cpu utilization? Can we somehow track what rild process is doing then? Looks like loop started when hardware or something is not not ready even it is ready after awhile. Maybe some watchdog should restart rild process if is in not responding state. As is started again when we manually kill it.
[RAZR HD Android Development] CWGSM3VO:
Yup, the rild process is pegging the device. I did a rough look on watchdogs for android and didn't come up with anything useful. The rild daemon is capable of restarting itself under the aforementioned condition so it must be possible to test for whatever condition this is and have it restart itself as well.
[RAZR HD Android Development] Zeljko1234:
But it doesn't restart itself. Is source code for rild available?
[RAZR HD Android Development] CWGSM3VO:
Absolutely:

https://github.com/CyanogenMod/android_hardware_ril

I just noticed something crawling here, gives me an idea.
[RAZR HD Android Development] Zeljko1234:
That's the point of brainstorming. If we have source, then should be fixable.

What came to your mind?
[RAZR HD Android Development] CWGSM3VO:
I found something for testing, it states specifically it's for debugging builds but might serve as a workaround for the time being:

https://github.com/CyanogenMod/android_frameworks_opt_telephony

Look @ the readme portion. I'm going to test if any of those testing options "reboot" rild consistently (vs using init.d)

EDIT: I also just noticed in my radio logs (at the top) there's unknown rild commands being received (32,42,54,36....) so I'm going to poke through other device trees and see if they are defined, why not. I also noticed in the jbbl custom RIL there are specific codes being handled there too.

EDIT: Testing command referenced above did nothing to restart rild and I didn't pursue it further.
[RAZR HD Android Development] Zeljko1234:
Could you port jbbl code to kkbl? I know is not easy c/p but to get idea how it works may lead us somewhere.
[RAZR HD Android Development] CWGSM3VO:
I looked at doing that too. It doesn't *look* too hard but I didn't dig into that much either. The build process allows devices to specify their own RIL so it looks do-able. Whether or not it works is another story.

EDIT: The other problem I sort-of have with this is that it locks us into a custom RIL (such as JBBL is) rather than moving forward with the main RIL branch as fixes/etc come about. Not sure if it's a worthy trade-off.
[RAZR HD Android Development] Zeljko1234:
If you find something, I suppose that devs will help.
[RAZR HD Android Development] CWGSM3VO:
Interesting...

I believe I found the unknown request types in the jbbl ril stuff...

Line 2727: W/use-Rlog/RLOG-RILQ( 275): (0/275):RIL[0][main] qmi_ril_qmi_req_log: req unknown, msg id: 65, e len:4

#define RIL_REQUEST_SET_BAND_MODE 65

Line 1117: W/use-Rlog/RLOG-RILQ( 275): (0/275):RIL[0][main] qmi_ril_qmi_req_log: req unknown, msg id: 32, e len:38

#define RIL_REQUEST_SET_CLIR 32

Line 85: W/use-Rlog/RLOG-RILQ( 275): (0/275):RIL[0][event] qmi_ril_qmi_req_log: req unknown, msg id: 42, e len:279

#define RIL_REQUEST_QUERY_FACILITY_LOCK 42

etc etc.. I might try building it with the jbbl ril bits and see what happens but first I'd like to see if I can extend the existing ril as other devices appear to do.

EDIT: Sigh.. dead end. Existing RIL defines them as well so I guess it's out-of-order processing or rild isn't available yet to handle the request types? Not sure. Guess I'll look at overriding with jbbl ril bits.
[RAZR HD Android Development] Zeljko1234:
Extend would be better as it works for other devices. Really thank you for your time and for accepting suggestions.
[RAZR HD Android Development] CWGSM3VO:
I just injected the jbbl ril stuff -- trying to build now.

EDIT: It built, flashing and testing.
[RAZR HD Android Development] RMarques:
Man, it has been a quest for you! Do much respect for your efforts!

Sent from my LG-D855 using Xparent Skyblue Tapatalk 2
[RAZR HD Android Development] Zeljko1234:
And result is?
[RAZR HD Android Development] CWGSM3VO:
It booted no problem; did the usual "android is upgrading" and had radio.

However, I missed a property override and thus added it manually to /system/build.prop and rebooted. no radio. hupped rild, radio.

So I'm rebuilding with the missing property override and trying again. I'll give it 3 reboots and post the results of that. Based on what I've seen, my confidence is dropping on this being the magic bullet.
[RAZR HD Android Development] Zeljko1234:
I remember during Atrix kernel development, we were struggling with one problem so long and ended with just one line of code as solution.
[RAZR HD Android Development] CWGSM3VO:
Given who I am as a person, this would not surprise me. My typical luck sort of thing :D

EDIT: Now that my build is using MotorolaQualcommRIL I think I might be able to shoe-horn in this L hack:

http://review.cyanogenmod.org/#/c/8...com/android/internal/telephony/LgeLteRIL.java

EDIT: Shoe-horned in, building...

EDIT: Built, flashing and testing...

EDIT: MOAHAHAHAHA! It

worked

, I'm 10 for 10 so far (reboot w/radio)

HAPPY DANCE! WOOHOO!
[RAZR HD Android Development] KC69:
Yeehaww.
[RAZR HD Android Development] CWGSM3VO:
OK, I need to figure out how to set up my gerrit stuff so I can get this committed (among other patches I've done). If anyone is interested in trying, I'll be posting a build soon. It is for KKBL only, and includes:

- Google Issue #79729 patched, memory leak fix scheduled for 5.0.3 release(?)

- kernel patch: KEYS: close race between key lookup and freeing

- RILD fixes; forward-ported JBBL MotorolaQualcommRIL modified to wait for radio boot before SIM read

Soon as the clean build is ready, I'll update this post with the link to download it. Except for the RILD stuff (which I just finished) I've been using the other ones for a week+/- with no issue.

<removed in favour of newer release, keep reading....>

Notes:

- This is a stock CM12, no dark theme etc. I would only recommend flashing this over a previous CM12 nightly.

- I use DHacker's GApps 12-20 package

- I re-validated this build I'm posting to make sure it's the right one, so far so good but as always, ymmv.

EDIT: I'm getting inconsistent results to my first testing. I had realized well after the fact that I hadn't been cleaning my build properly since my initial successes. I've since done this and once again, rebuilding. Sorry folks, not sure what happened but I'm now getting SIM not recognized issues (which were in line with the commit I based this off of). I'm probably going to do a clean install to re-test as I installed two dirty builds over top of this one but this was the first build and should have the same success rate I first posted, hopefully ;)
[RAZR HD Android Development] gappledroid:
:victory:The radio issue is the only thing holding me back to flash Lollipop on my Razr M. I have been keeping my eyes on this forum just reading all your test stuff and so on. Looking forward to see positive feedback.:fingers-crossed: I appreciate your effort to fix the issue. :highfive:
[RAZR HD Android Development] RMarques:
It's really something C!

Despite I'm sailing on other seas for a while, I still have my XT925 and I've been here taking a look at you guys quite often!

Seeing your determination and efforts I was sure it was going to finish into a positive outcome!

Congrats man you deserve it!

Sent from my LG-D855 using Xparent Skyblue Tapatalk 2
[RAZR HD Android Development] CWGSM3VO:
So has anyone tried my test build yet? Those that have, do you have consistent radio on boot?
[RAZR HD Android Development] KC69:
I flashed the f ed up one. Had to wipe it. Glad to see it wasn't the real deal.
[RAZR HD Android Development] CWGSM3VO:
Did you try the fixed one? I can only test something so far :)
[RAZR HD Android Development] KC69:
Not yet just d9wnloaded it and the new pa gapps. Cold rainy sunday . great day to flash roms and stay warm and dry inside.
[RAZR HD Android Development] CWGSM3VO:
If all goes well, what you should see is very similar to what you'd see restarting rild: you'll see the empty radio icon (not filled/grayed) and then a SIM card icon with a slash through it and then the radio icon (possibly with a ! mark) and then radio lock (icon filled).
[RAZR HD Android Development] Zeljko1234:
! mark is just there if don't have connection to the Internet. The same for wifi.

Btw, I'm watching you and have finger crossed.
[RAZR HD Android Development] CWGSM3VO:
I'm about to do a full wipe and reinstall of the build I posted to re-validate again. I'm getting pretty good results as-is right now but I'm concerned I messed up my install by the broken builds (I kept seeing wrong app# count during "android is upgrading" etc).

[MENTION=4187680]KC69[/MENTION], I'm waiting with baited breath as well :D

EDIT: Did a clean install w/o gapps (faster boot) and got radio on first boot. Going to reboot a bunch of times to see how it holds up.

EDIT: Second boot, got radio. I think it's good to go.
[RAZR HD Android Development] Zeljko1234:
Third boot is critical :D

My apologies for non testing. Currently I need me phone but will do clean flash asap.

---------- Post added at 09:44 AM ---------- Previous post was at 09:38 AM ----------

cm-12-20150111-UNOFFICIAL-moto_msm8960_RILD.zip is the latest we're talking about?
[RAZR HD Android Development] CWGSM3VO:
Yup. I'm in an area with weak signal so it's over 80% success rate but I am getting some boots w/o radio.
[RAZR HD Android Development] Zeljko1234:
Without signal because of radio problem or because cannot find a signal? Check rild process. Shouldn't be on top if is network problem.
[RAZR HD Android Development] CWGSM3VO:
It's not pegging the device, just doesn't pick up any signal so no icon at all when it tries to attach or I get radio with a ! in the icon in those cases but I'm still over 80% success rate in my 12th-13th reboot so far :)
[RAZR HD Android Development] RMarques:
Can you plz post the link again C? I'll clean flash it!:thumbup:

Sent from my LG-D855 using Xparent Skyblue Tapatalk 2
[RAZR HD Android Development] CWGSM3VO:
2 pages back.
[RAZR HD Android Development] Zeljko1234:
If doesn't pick signal and rild is not on the top of the top then looks very very good. Phone shold get signal after awhile. You can check with *#*#4636#*#* is phone receiving anything. Don't play with upper three dots, radio bands!
[RAZR HD Android Development] CWGSM3VO:
I've rebooted at least 20 times now, of that, I didn't get signal (true no signal) twice and the ! icon once. Rest of the time it's managed to get radio lock. It's not perfect but it's better than it was previously (before I tried all this jazz)

EDIT: Just had a boot w/o radio at all. Phone menu (*#*#4636#*#*) shows the radio is definitely off.

EDIT: The more I play with this, the less I'm liking this hack. I'm leaning more towards doing something with rild itself (as restarting rild always worked for me) to try and make it determine something is wrong and restart itself, that seems more portable/long-term than this hack (which was removed from a lot of the device trees that were using it). It may come down to the devs working out the real issues here and coming up with a better fix. I'd label this fix as a 75-80% fix (kludge would be more appropriate).
[RAZR HD Android Development] Zeljko1234:
Excellent. Waiting others to confirm...
[RAZR HD Android Development] CWGSM3VO:
In all of the no-radio boot scenarios I'm logging so far, it's always the same. Wakelock timeout to the radio. It's not coming ready fast enough in these cases.

I just don't get it. I had 10 for 10 last night now I'm basically back (for me anyways, waiting on others to report) to square one for all intents and purposes.

EDIT: And why, WHY would Google change the radio/SIM code in L to query SIM *before* radio. If I flash CM11, it works perfectly, zero issues.

EDIT: Noticed something looking through rild.c -- I'm going to try some things here, not willing to settle for this ;)
[RAZR HD Android Development] RMarques:
I'll flash and let you guys know.

Just fyi, I'm on XT925, since November 20ish, in any L build, I almost never get signal lock and when it does lock, I get vanished in self while. The wild killall process almost never worked and when it does, radio signal disappear in site while as well.

In CM11 is the opposite, I get signal lock 99% of the times and when it doesn't get and/or list signal, it does come back for itself in a while...but still, it does keep losing signal every now and then...maybe it's me reception here...who knows!

Btw, same mentioned in the above paragraph do happen with CM12 and stock based ROMs on my G3!

Sent from my LG-D855 using Xparent Skyblue Tapatalk 2

---------- Post added at 05:40 PM ---------- Previous post was at 05:21 PM ----------

The link a couple of pages ago leads me to a "dk8w" small file download... Am I missing something or what?

(I have access to the internet only through my cell phone ATM)
[RAZR HD Android Development] CWGSM3VO:
Make sure you uncheck "download with manager" to ensure you download the right file.

EDIT: 13 downloads and no comments so far?
[RAZR HD Android Development] RMarques:
Maybe it's because I'm on my cellphone. I'll wait until I get home since I can't find such option here!
[RAZR HD Android Development] CWGSM3VO:
Ah ha, much better. Still testing.

EDIT: Looks like this was the missing piece. 3 for 3 so far.

EDIT: Uploading this build, I'm 100% radio on boot, it's almost instantaneous for me.

OK, try this one folks, for me, I'm (so far) 10 for 10 and radio connects almost immediately on boot and stays connected. Nothing scary so far logging-wise, it looks good to me:

cm-12-20150111_E-UNOFFICIAL-moto_msm8960_RILD2.zip

EDIT: If I can get at least 3 people stating they get the same results (as many times as they wish to reboot) I'll submit this to the CM gerrit review.

EDIT: I'm 20 for 20 now, this HAS to be the fix until a dev can come up with a better solution.