yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M] Bonoboo:
[MENTION=4343949]PecanCM[/MENTION]

1. "Only 3G" mode

With patch finally it works.

Now appears third network mode "WCDMA only": screenshot attached.

For sure checked all modes in "4636" menu – items correctly corresponds.

And of course "only 3G" persist between reboots, just as planned.

Thanks for attention to this request and test patch!

2. CPU settings

I use that settings for 3 days and not noticed drain.

Of course it increase energy consumption, but I doubt for too much.

BTW I found at least three devices in CM's repo that use interactive and boost: 1, 2, 3

So it's OK.

3. Init.d fix

Long time we have broken init.d support.

There was commit init: remove logwrapper

User Fox757 find cause: if revert bin/sysinit file with added logwrapper then scripts works.

I tested with simple script that creating dummy file and can confirm this fix.

Please, can be sysinit reverted at least for us (overlay)?
[Sony Xperia M] kh34d:
1-when i flash your zip file and update Rom do i need clear cache & divlack?

2-after flash zip file nothing happen the usually msg appear after update ( optimizing app 0 of 126) and take same time as usual why ?!!

thanx
[Sony Xperia M] Agu_Ra:
1. No, it will be automatically cleared

2. For me, message appears, but it takes less time to update. Check if this line appeared in build.prop

dalvik.vm.dex2oat-filter=space

or check by entering this in terminal

getprop dalvik.vm.dex2oat-filter

The output should be space.

If everything's right, but you think it still takes too long time, try disabling dalvik-cache.
[Sony Xperia M] Agu_Ra:
That's nice that addon.d installed, but we need to check the line in /system/build.prop.
[Sony Xperia M] kh34d:
At the end
[Sony Xperia M] Agu_Ra:
Everything's right. If you think it still takes too much time to update, change space in that line in build.prop and 99-cache to interpret-only.
[Sony Xperia M] kh34d:
[MENTION=5917809]cucumber09[/MENTION] thanx for your help
[Sony Xperia M] much1:
Hello gentlemen, hello [MENTION=4343949]PecanCM[/MENTION],

I tried installing this version, tried to follow guidelines. Coming from Cyanogenmod 11.

What bothers me is mobile data. I have two SIM cards, I want to use data from the first one, so everythings should be alright afaik.

I believe this is

common use case - first install

, please be patient with me, I know mobile data issues has been discussed here, however the information is getting little fragmented and I just couldnt find the way out, sorry :/ I ll try to be quick, so here I write:

I cleared Internal memory, SD card, copied recovery zip files onto SD card, so being in Recovery I did:

Wipe data, cache

Install zip - cm-12.1-20150914-NIGHTLY-nicki.zip

Install zip - tk_gapps-modular-micro-5.1.1-20150913-signed.zip

Install zip - mi2-lp-ril-blobs2.zip

Reboot

Then basically, the data from the first SIM card did not work properly. The data worked in some short time periods, then apps were getting "timeouts".

I mean -

from the very beginning

of usage itself. I know RILs are vendor dependent and we can do nothing about it :)

And so the question is...

Is this behaviour normal? What should I do or what am I doing wrong? I know when something breaks down, stopps working, etc.. ..but this is the

initial state

for me.

(i) IN ADDITION:

On the first post, where there is:

Dual sim somewhat works. xperia m dual users see this and this post

These two links link to different MI2 RILS. am I correct? Could you comment on this - is there a purpose? If not, it is a little misleading.. :(

and you rock and I really appreciate your "heroic" work!

Thank you! :)

---------- Post added at 07:55 PM ---------- Previous post was at 07:39 PM ----------

One more issue, sorry, I am such a spammer, lol.

I cannot flash mi2 RIL patch from recovery -

Signature verification failed

,

I was able to install it using old recovery when migrating from cm11 though..

Please, what's the way? Thank you much
[Sony Xperia M] Antrikos48:
Just flash TWRP recovery. Easiest way is through the TWRP manager app.
[Sony Xperia M] xa.fr:
Hey, anyone installed the app "Öffi" on this rom?

I can't open Öffi... it simply crashes if I click on it. There is a "Report Error" message - I clicked it but I am not sure where this gets sent.

What I tried so far: deinstalled Öffi, wiped cache and dalvik and installed again.

On Cm11 it just worked fine and on a different phone with CM12.1 there is also no problem.
[Sony Xperia M] Miladj:
[MENTION=4343949]PecanCM[/MENTION]

Please update mi2 patch and fix bugs.

Thanks
[Sony Xperia M] Bonoboo:
Works for me. Seek problem on your side.

BTW app depends from gapps (Maps framework).
[Sony Xperia M] Agu_Ra:
@PecanCM, can we use Moto X RIL? It is on msm-8960DT SoC and has official 5.1.

---------- Post added at 21:44 ---------- Previous post was at 21:40 ----------

Is there new Lollipop build for Mi-2 with updated RIL? If not, read few latest pages of thread, it was discussed about RIL blobs. Fixing bugs is not like pressing "fix bugs" button, you know.
[Sony Xperia M] Mysteryagr:
New hope!
[Sony Xperia M] PecanCM:
nice, change merged. and ok, once i get my xm back i will revisit that change and merge (repair shop guys saying they need minimum 10 days more)

i have no idea about moto changes but you can give a try.
[Sony Xperia M] Mysteryagr:
Anyone with speedy Internet connection can get for us moto x ril from system dump?

---------- Post added at 11:02 AM ---------- Previous post was at 10:26 AM ----------

Is that the update we are looking for!?

http://www.droidviews.com/android-5-1-lollipop-ota-for-moto-x-1st-gen-flashing-guide/
[Sony Xperia M] Bonoboo:
Thanks! Will wait.

Already done.

Replaced same files that was in MI2 patch.

Tested on Single: no SIM at all.

So on Dual very-very likely will be same.

Added / removed that two lines in build.prop – nothing.

Probably I doing something wrong and PecanCM can find more required files.

Here partial dump of 5.1 stock ROM for Moto X 2013

Contains bin, lib, vendor folders and build.prop:

motox_part_dump.7z (30 MB)
[Sony Xperia M] Mysteryagr:
[MENTION=5037002]Bonoboo[/MENTION] Could you upload your patch?
[Sony Xperia M] Bonoboo:
I thought it useless, but attached to post.

Will delete soon because someone can install and probably get no SIM's.

UPD: file deleted
[Sony Xperia M] Mysteryagr:
As expected... it didn't work; both sims are not active.

So first thing to do is getting radio log

Almost all the log is repeating the same lines:

D/RILD ( 241): **RIL Daemon Started**

D/RILD ( 241): **RILd param count=1**

E/RILD ( 241): dlopen failed: dlopen failed: library "libmotext_inf.so" not found

Does the system dumb contain this file? "libmotext_inf.so"

there are also lines related to telephony manger and subscribtion manager and others, so attached full log.
[Sony Xperia M] Bonoboo:
Yes, here you are.

Remove .txt extension.

Thanks for your deep testing.

So there is a chance.
[Sony Xperia M] Mysteryagr:
what is the directory of the file exactly so I can put it in the right place? :cyclops:
[Sony Xperia M] Bonoboo:
Sorry, forgot: /system/lib
[Sony Xperia M] Mysteryagr:
once more >.<

E/RILD ( 249): dlopen failed: dlopen failed: library [B]"libmdmcutback.so"[/B] not found

and again:

E/RILD ( 243): dlopen failed: dlopen failed: cannot locate symbol "__android_log_loggable" referenced by "libqmi_cci.so"...
[Sony Xperia M] Bonoboo:
It was expected.

In same place.
[Sony Xperia M] Mysteryagr:
I downloaded the 30 MB file that you uploaded because I thought I'm gonna face so many missed files

now it can't locate symbol "__android_log_loggable" referenced by "libqmi_cci.so"...

where should I find this!!!?

---------- Post added at 02:46 PM ---------- Previous post was at 02:42 PM ----------

I found this, maybe useful... although I don't know what does this mean xD lol

https://gerrit.omnirom.org/#/c/5391/

https://github.com/omnirom/android_system_core/commit/3f10c3b3d5234ca421e26dcb88f17fa83266ec47

This is beyond my ability, cannot continue :(
[Sony Xperia M] Bonoboo:
Your finding indicate, that here required change in Android library liblog

Not enough took this patched library from OmniRom, it also requires tag TARGET_USES_MOTOROLA_LOG in BoardConfig at building ROM.

So yes, we stuck here.
[Sony Xperia M] Agu_Ra:
We need someone to build with cherry-picked from OmniRom patch and needed flag in BoardConfig.mk.
[Sony Xperia M] Antrikos48:
*cough* [MENTION=4343949]PecanCM[/MENTION] has a build enviroment ready *cough*
[Sony Xperia M] Mysteryagr:
So we are not going to give up? LOL

I hope we can get this to work and have bug free RIL blobs for lollipop.

Since Ron device is at the repair center right now,

we can ask [MENTION=5039976]smartAgent47[/MENTION] , [MENTION=5161352]JustArchi[/MENTION] , [MENTION=5991465]vibhu0009[/MENTION] , and [MENTION=6024615]ace312[/MENTION]

if anyone can make a test build with required changes, aslo I remember users from other forum who build for xperia m before, can you ask them?
[Sony Xperia M] smartAgent47:
my xperia m not with me ... :(:( gave it to my relative ... will ask garv maggu to be my tester ..
[Sony Xperia M] Mysteryagr:
If you made a test build with required changes, I think many here are ready to test :good: ;)
[Sony Xperia M] JustArchi:
I don't have a dirty build, so it would take long, also I do not have prepared environment to build clean CM for nicki, as my ArchiDroid (AD) uses deep optimizations and other things which could potentially raise new unknown bugs unrelated to the mentioned change.

Also I don't use nicki as primary device, gave it to my mom (with AD), and I don't have dual sim variant. Pecan can issue blind build if he wants, will probably be fastest.
[Sony Xperia M] Agu_Ra:
Yes, you men are right. So I hope Ron will build it. BTW, it can be (and needs to be) tested on single-sim too.
[Sony Xperia M] xa.fr:
[MENTION=5037002]Bonoboo[/MENTION]

Ok, already thought that there is something wrong on my phone.

Thanks for the hint.

I just flashed "pico gapps" with only Playservices and Playstore included. How did you find out that it depends on maps framework?

After installing Google Maps Öffi still crashes. Is there more I have to install/flash?

Thanks for your help!
[Sony Xperia M] ace312:
Tell me the changes, I'll compile it for you ;) My Xperia M has its display broken, But I think it will do the testing work!
[Sony Xperia M] Mysteryagr:
We need a test build with this commit to be able to test Moto X 1st gen RIL blobs on Xperia M

https://github.com/omnirom/android_system_core/commit/3f10c3b3d5234ca421e26dcb88f17fa83266ec47

Check previous posts for more info.

Thanks
[Sony Xperia M] jkkk88:
Temporary you can write simple /system/addon.d script for backup and restore this modified system file.
[Sony Xperia M] Bonoboo:
It's mentioned in app description and meant because it shows GMaps.

Logcat for sure will tell you what cause of problem.

But I think this is not related to thread.

Yeah, I already created ZIP that replaces sysinit file and adds autorestore (attached)

But of course better, if this will be fixed by default in ROM.

2 All

To fix init.d flash once ZIP below (only for CM12.1)

Then you can run scripts after boot placed in /system/etc/init.d
[Sony Xperia M] PecanCM:
liblog with moto log function for now https://www.mediafire.com/?1jkbw64mbhtmjy5
[Sony Xperia M] Bonoboo:
As I assume, there removed check for that BoardConfig tag?

So for [MENTION=4796617]Mysteryagr[/MENTION] enough just replace lib on current ROM?
[Sony Xperia M] Mysteryagr:
I will flash link by Ron and moto X ril patch and see.
[Sony Xperia M] Mysteryagr:
Unfortunately, this wasn't the end.

E/RILD ( 325): dlopen failed: dlopen failed: cannot locate symbol "wifi_qsap_set_tx_power" referenced by "libmdmcutback.so"...
[Sony Xperia M] Mysteryagr:
[MENTION=4343949]PecanCM[/MENTION]

Here what I found, can you look into it?

http://review.cyanogenmod.org/#/c/94337/

Edit: Nevermind, so stupid, I didn't look in the system dump provided by Bonoboo, found the required file there ?
[Sony Xperia M] Mysteryagr:
Patch working !

Hey guys, finally got Moto X ril blobs working on xperia M.

Now single and dual users can test it.

It takes 5 min. for both sims to get signal.

I can select different APN for every sim (screen shots in the attachments)

Cellular data is working (couldn't test on second sim)

I didn't test more.

Thanks for all who helped in this :good:
[Sony Xperia M] kh34d:
[MENTION=4796617]Mysteryagr[/MENTION] waaaw you are clever man
[Sony Xperia M] Mysteryagr:
Moto X 1st gen Ril blobs

Single and dual users... test and report please.

Note: for single sim users please remove "script" from the patch before flashing, otherwise you will end up with dual sims icon on status bar and no network.

Download from attachment
[Sony Xperia M] catmob:
i have successfully installed cm 12.1 but only music not working....all the things working...only default music player, from file manager music not opening....showing "unfortunately stopped"... my device xperia m

thanks for support :)
[Sony Xperia M] hemanthvarma:
i just flashed the ril over my aosp rom (previous i am using mi2 ril ) i got the signal and net in 1st sim

but as you said you got two apns for each sim , in my case its same as like flashing mi2 ril only one apn for both sims and i cannot add manually also

if added it just gets deleted and accept only one apn for both sims
[Sony Xperia M] Mysteryagr:
I can select different apn for every single sim, it works for me.

But I cannot set second sim as default sim for data
[Sony Xperia M] kh34d:
[MENTION=5037002]Bonoboo[/MENTION] , What is going on here?

http://review.cyanogenmod.org/#/c/106586/

Is this affect on our TWRP?
[Sony Xperia M] AdrianDR94:
Have this rom .mkv support?

Hi, when im trying to play a mkv video (4min, 720p), it's very laggy and in sometimes the image is freeze, but the audio is playing normal. I tried different video players like stock gallery, gallery next, mx player and vlc.
[Sony Xperia M] Antrikos48:
They basically allow for larger recoveries. For now it shouldn't affect anything.
[Sony Xperia M] mbc07:
Did an extensive test with Moto X RILs and it behaves exactly the same way as Mi2 RILs, nothing new, the same known bugs. Said that, sticking with Mi2 seems the best option right now because Moto X RILs requires additional libraries and no improvement when compared to Mi2...
[Sony Xperia M] Mysteryagr:
Thanks for your report.

I stopped using previous patches (Mi2 & Xperia Z) because after a while using or even couple of days data connection stop working.

And more worse; Mi2 ril blobs caused in losing 3G network for me and the only solution I found to get it back, is flashing stock 4.2 baseband then stock 4.3 baseband.

And those bugs were preventing me from using cm12.1

Anyway, since we have many patches now, we have many options xD

Everybody is free to test and choose.
[Sony Xperia M] much1:
Reading latest news gave me this information for the end-user like me:

Using the Moto X RIL we got the feature to set APNs for both sims (compared to MI2 RIL)

is that correct? (so far)
[Sony Xperia M] Garv Maggu:
Yes, it is correct. You can set APN for each SIM. :)
[Sony Xperia M] Mysteryagr:
Yes, you can create the APN manually and set it, but still you can't set the 2nd sim as default sim for data.
[Sony Xperia M] Agu_Ra:
New RIL for testing! [Not working on Dual]

Okay, guys, we have one more hope for our Dual users. Y'all know 'bout this device. It is on the same board as Xperia Z and Xiaomi Mi2. So, here is Nexus 4 RIL. I tested only on single, calls are working, and carrier search, sorry can't test if data is working. Dual users, test and report. To install it on single remove script and system/addon.d folders from zip.User from another forum reported it doesn't work, and I couldn't find anything about missing files in logs. Seems that this RIL just doesn't work on Dual.
[Sony Xperia M] Mysteryagr:
There is no vendor/lib files needed in this one?
[Sony Xperia M] Agu_Ra:
They all are in lib/ folder on mako, so I put them there. If will not work, try moving them to vendor/lib. BTW, there are couple of files that are probably rudimentary for this RIL, but I preferred to delete nothing from actual system, only removed them from Mi2 patch (I used it as base).

---------- Post added at 17:42 ---------- Previous post was at 17:18 ----------

BTW, I think we can use RIL's not only from Snapdragon S4 phones, but from Snapdragon 600, as it is re-branded S4 Pro.
[Sony Xperia M] mbc07:
The infamous mobile data bug is related to Xperia Z RIL only, as far as I tested. I never experienced it again after switching to Mi2 or Moto X RILs...

That's not related to a specific RIL, it's related to a change in CM12.1 source and it's been here for a while (since 2015-07-24 nightly, I think)
[Sony Xperia M] Agu_Ra:
Can you test Nexus 4 RIL?
[Sony Xperia M] Mysteryagr:
So any of this devices has dual sims? It is better to try from dual sim device.

I already searched quickly.. But didn't find any.

(1) Data bug appeared also for me on mi2 patch.

(2) on previous patches, when I select APN for 1st sim it is selected too on the second sim, but now I can select 2 different APN.. One for each sim.

Can you confirm this on mi2 patch?

Anyway switching sim for data isn't working, so it is useless.
[Sony Xperia M] Agu_Ra:
HTC One M7 Dual-sim is on APQ8064T board. But I'm almost sure it has plenty of vendor changes. So dunno. ¯\(°_o)/¯

---------- Post added at 18:21 ---------- Previous post was at 18:19 ----------

BTW, here is a list.
[Sony Xperia M] Mysteryagr:
Moto x had vendors changes, and radio logcats with Google help, now it is working...

So let's give it a try ?✋
[Sony Xperia M] Agu_Ra:
I'm now busy, so ask [MENTION=5037002]Bonoboo[/MENTION] or someone else. BTW, did you test Nexus RIL blobs? They should not have many vendor changes, I think.
[Sony Xperia M] Mysteryagr:
Need to buckup my current rom, then I will try it for sure.
[Sony Xperia M] Agu_Ra:
Okay, I'll be waiting. BTW, removed libdiag.so and lib_qmi*.so files from vendor/lib (new files are in lib folder), rebooted and RIL still works.
[Sony Xperia M] mbc07:
I can't test right now, I'm busy with some college stuff but I'll test it soon. In meantime, if you guys builds more RIL patches from other devices I'll gladly test them too when I get time ;)

I'll check again, but as far as I remember, yes, I was able to select two different APNs with Mi2 RIL...
[Sony Xperia M] Agu_Ra:
UPD: removing libqcci_adc.so and libqminvapi.so (I couldn't find them in Nexus 4 system dump) from /system/lib folder seems not to affect RIL too. For example, removing libqcci_legacy.so crashes RIL with 1 exit code after restarting it (pkill rild in terminal and rild & and jobs to check the code).
[Sony Xperia M] icoolguy1995:
I am getting to much blueness in images taken from stock camera. Does anyone know how to resolve it?
[Sony Xperia M] Mysteryagr:
Actually I didn't understand, those files are not needed for ril to work?

Previous patches included some of those files...
[Sony Xperia M] Agu_Ra:
They are in stock too. Seems that yes, not needed. But I am not sure their removal will not break something. If on other RILs their removal or renaming will cause complete RIL disability it means they are useless on this one, as they don't crash it.
[Sony Xperia M] simmusss:
I was tested moto X ril but no use the patch is sameas mi2 same bugs nothing new is there

Sent from my C2004
[Sony Xperia M] Agu_Ra:
User from another forum said Nexus 4 RIL does not work. If someone will test too, provide me radio log. In terminal or adb shell (everything should be run as root):

logcat -b radio | grep RILD

or to save it in file:

logcat -b radio | grep RILD > /sdcard/log.txt

If log is empty, try

pkill logd
[Sony Xperia M] simmusss:
Hi developrs

I hav a request......

2nd sim data connection is not a problm we can manage this bug with simcards shuffle,but with cm12.1 we cant do this its usless because when we try to shuffle Sims ril was faild it is detecting Sims and network,call,messages,but no data connecting this is the major bug with cm12.1, but other AOSP roms was working fine with shuffling Sims too, I cannot understood what is the difference between those 2 roms,I think its better to request for dev to creat a different nightles for xperia m dual,

And plz develepors plz make a good ril for our dual users,anyone with new ril post it I ll test with in minutes,I want to use lollipop cm12.1 its awesome but am not using because my major problm is sim cards shuffling,please provide a good ril for our device,,,,,

Am sorry for my bad English,

Sent from my C2004
[Sony Xperia M] Agu_Ra:
Devs can't make or modify RIL, 'cause they don't have needed source code. So we are trying to extract RIL binaries from other devices. I posted Nexus 4 RIL, but some say it doesn't work on Dual. If you are a little bit familiar with shell, terminal and adb and if you are on Lollipop ROM, you can test and help us debugging. Read my previous post.
[Sony Xperia M] Agu_Ra:
UPD: new RIL doesn't work on Dual, don't waste your time on testing. User from another forum reported that it doesn't work, and I couldn't find anything about missing files in logs. Seems that this RIL just doesn't work on Dual.
[Sony Xperia M] AlexiusItaly:
There will be "ghost push" bug fixing on last nightly?
[Sony Xperia M] Mysteryagr:
HTC M7

Tested HTC M7 ril today, didn't work also.

Dual sims didn't even show up.

Edit: uploaded patch for testing and debugging proposes only, DO NOT USE IT
[Sony Xperia M] Agu_Ra:
Is it from dual-sim M7?

---------- Post added at 00:02 ---------- Previous post was at 00:00 ----------

Don't know 'bout this bug, can you describe it?
[Sony Xperia M] AlexiusItaly:
Called “Ghost Push,” it's seems that in a very short time has already managed to infect more than 600,000 devices worldwide. The virus would be present in a lot of applications such as Amazon, Memory Booster, Smart Folder. Once crept inside the device, Ghost Push Malware download unwanted applications containing, in turn, the ads.

In doing so, the developers of malware earn through the views of the above and the performance of the smartphone or android device, together with the consumption of the data connection, drop dramatically.
[Sony Xperia M] Mysteryagr:
I don't know, lol.

I searched for M7 system dump and downloaded it... I thought the device is dual sims only (no single version)
[Sony Xperia M] Agu_Ra:
No, there is regular single-sim version and dual one.
[Sony Xperia M] Rajesh_m:
A bit late, but thanks a lot for the per-app themer port! Works like a charm!:):)
[Sony Xperia M] abhatia1435:
You're Welcome :)
[Sony Xperia M] Mysteryagr:
Hotspot

hotspot doesn't work for me, it shows error
[Sony Xperia M] Mysteryagr:
The firmware version is 7.15.401.1

Checked build.prop and there is no dual sims lines.

It was taken from HTC M7 single sim...
[Sony Xperia M] Bonoboo:
Try old fix.

Delete all inside folder /data/misc/wifi, except file wpa_supplicant.conf (there stored known networks).

Then reboot.
[Sony Xperia M] Mysteryagr:
Didn't find wifi folder inside misc
[Sony Xperia M] Bonoboo:
Please, check again.

All for sure must have this folder.
[Sony Xperia M] Mysteryagr:
Those are all the folders I have inside misc
[Sony Xperia M] Mysteryagr:
After testing Moto X ril blobs for a while, data connection bug appeared again.

Bug is there in all patches.
[Sony Xperia M] rahulbarai:
Yes that's why Mi 2 patch is more stable than moto-x patch at moment. Manual APN entry for second sim work in Mi 2 patch also.

You did a commendable job in testing out those patches. I guess there are not many more dual sim devices belonging to Snapdragon S4 SoC family left for testing other than Mi-2A and Htc one 802w or 802d ( dual).. If you want to continue, please check this http://xdaforums.com/htc-one/general/lollipop-ruu-zip-small-collection-t3053944 and get the RIL from here.

Thank you very much..