Page 1 of 1

Contributing Windows 10 ARM Cellular Data

Posted: Mon Nov 11, 2019 10:51 am
by The_GTA
Dear WoA community,

you may have heard about gus33000's latest cellular work that aims to provide full call/texting/mobile-data support for WoA builds past 18908. While he already is doing an amazing job at the RILServiceInit program, there are ways how we can help him.

Cellular stuff was working fine in WoA builds 18908 or prior. But then MSFT decided to restructure certain API, especially things that have long been deemed deprecated. The goal is to fully capture the API as it was prior to the change so that it can be remade for newer WoA builds (because MSFT won't help us anymore).

Follow my instructions as posted in this repository, if you want to help.

Feel free to post the logfiles into this topic, after cleaning them up. Just be reminded that the API data could contain details about your SIM (mobile number, etc). Not sure how to redact the data without falsifying the API test results.

Motivation for this project was gus33000' statement where he is unsure where certain details in API were coming from:
gus33000 wrote:These values seem unique per SIM (?)
Only the ones I highlighted do change between SIMs and looks like they must
be valid in order for calls to work properly in windows
No idea where they come from. Change if you have problems.
They are from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Notifications\Data 0D8A0B2EA3BDF475
which is actually this entire struct if you take into consideration the change counter at the very beginning (DWORD size 4)

Re: Contributing Windows 10 ARM Cellular Data

Posted: Sat Jan 04, 2020 11:53 am
by gilius
Is this available in the latest driver pack (2012) when deploying Insider? My SIM says disconnected - how to connect it just for Internet?

Re: Contributing Windows 10 ARM Cellular Data

Posted: Sat Jan 04, 2020 12:03 pm
by The_GTA
I believe you have to disable SIM lock for it to work. Gustave is known to have tested only with SIM lock removed. Correct me if I am wrong. That is why I want to collect cellular data, maybe we can fix this issue.

Re: Contributing Windows 10 ARM Cellular Data

Posted: Sat Jan 04, 2020 12:14 pm
by gilius
I am just reading this page but seem to be missing the overall context...
https://github.com/quiret/WMRilShim

Where is the prebuilt binary? Does it get installed via inf before proceeding with the instructions?

Which part of that guide refers to disabling the SIM lock?

Re: Contributing Windows 10 ARM Cellular Data

Posted: Sat Jan 04, 2020 12:21 pm
by The_GTA
gilius wrote:
Sat Jan 04, 2020 12:14 pm
Where is the prebuilt binary?
You can download it here: https://github.com/quiret/WMRilShim/releases
gilius wrote:
Sat Jan 04, 2020 12:14 pm
Does it get installed via inf before proceeding with the instructions?
The original WMRil.dll is deployed onto your Windows 10 ARM64 installation as part of the WOA.Deployer installation process. But this fact does not matter, I believe.

To install WMRilShim.dll just follow the instructions.
gilius wrote:
Sat Jan 04, 2020 12:14 pm
Which part of that guide refers to disabling the SIM lock?
Sorry I have no idea how to do that for every SIM card vendor. Gustave appears to have a card without SIM lock/PIN requirement, that is all I know for sure right now. You know what a SIM lock is, right? It is the prompt you get when you turn on your phone in W10M, black background, asking you for PIN input. Else you cannot make calls and stuff.

Re: Contributing Windows 10 ARM Cellular Data

Posted: Sat Jan 04, 2020 12:44 pm
by gilius
I followed the instructions, but it's not working:
  • SIM doesn't connect
  • No log file is generated under C:\WMRilShim.log

Re: Contributing Windows 10 ARM Cellular Data

Posted: Sat Jan 04, 2020 12:49 pm
by gilius
This seems to be part of the solution as well, but it seems we are missing the bigger picture:
https://github.com/WOA-Project/RILServiceInit

Re: Contributing Windows 10 ARM Cellular Data

Posted: Sat Jan 04, 2020 12:50 pm
by The_GTA
gilius wrote:
Sat Jan 04, 2020 12:44 pm
I followed the instructions, but it's not working:
  • SIM doesn't connect
  • No log file is generated under C:\WMRilShim.log
1. what Windows 10 ARM64 build are you using?
2. can you post a screenshot of your registry at "Computer\HKEY_LOCAL_MACHINE\W10A\ControlSet001\Services\RILAdaptation\Parameters\0000" ?
3. are both WMRilShim.dll and WMRil.dll inside your (drive letter of MainOS):\Windows\System32 folder?
gilius wrote: This seems to be part of the solution as well, but it seems we are missing the bigger picture:
https://github.com/WOA-Project/RILServiceInit
This is Gustave's reverse engineered service. It was created by using WMRilShim.dll and, as a result, finding out the function signatures for RIL calls. There are mentions inside of his RILServiceInit resource that he does not know where all the values are coming from, so we can help him by doing further research.

My point is: if celluar does not work using gus33000's driver pack, then please debug the underlying issue with WMRilShim.dll so we can report the bug. Sorry if there was a misunderstanding.

Re: Contributing Windows 10 ARM Cellular Data

Posted: Sat Jan 04, 2020 1:03 pm
by gilius
1. what Windows 10 ARM64 build are you using?
19041.1.191206-1406.VB_RELEASE_CLIENTPRO_OEMRET_A64FRE_EN-GB.ISO
2. can you post a screenshot of your registry at "Computer\HKEY_LOCAL_MACHINE\W10A\ControlSet001\Services\RILAdaptation\Parameters\0000" ?
3. are both WMRilShim.dll and WMRil.dll inside your (drive letter of MainOS):\Windows\System32 folder?
I re-loaded the hive several times to confirm (before and after) that the path remained stuck at WMRilShim.dll, which it did.
I also ensured the WMRilShim.dll is inside the correct system32 folder
Unfortunately, I've uninstalled it for now as I've moved onto trying to get WSL2 to work. Hope to revisit this in the future otherwise I don't think it's viable to go beyond 1903 till it's working, as we need to be "always connected" (even when there's no Wifi available).

Re: Contributing Windows 10 ARM Cellular Data

Posted: Sat Jan 04, 2020 1:18 pm
by The_GTA
gilius wrote:
Sat Jan 04, 2020 1:03 pm
19041.1.191206-1406.VB_RELEASE_CLIENTPRO_OEMRET_A64FRE_EN-GB.ISO
You need to use WMRilShim.dll on build 18908 or older because newer builds do not come with WMRil.dll. Then we can use your cellular dump to fix cellular for your SIM configuration on 19041 and newer. I was hoping that my statement about cellular being broken past 18908 was clear enough.
gilius wrote:
Sat Jan 04, 2020 1:03 pm
Hope to revisit this in the future otherwise I don't think it's viable to go beyond 1903 till it's working, as we need to be "always connected" (even when there's no Wifi available).
True.
(I think that there is a chance for some people that no such future could exist because their SIM configuration was not made compatible with WOA.)

Re: Contributing Windows 10 ARM Cellular Data

Posted: Sat Jan 04, 2020 1:24 pm
by gilius
I see. Gus wants to gather logs for SIM usage on builds prior to when it became broken. Besides contributing to that project, does this mean we cannot at least test a manual hack on newer insiders that may work with our single sim/device? Or must we wait for Gus to gather data and properly implement it before we can test basic connectivity on, say, 19041?

Re: Contributing Windows 10 ARM Cellular Data

Posted: Sat Jan 04, 2020 1:55 pm
by The_GTA
gilius wrote:
Sat Jan 04, 2020 1:24 pm
I see. Gus wants to gather logs for SIM usage on builds prior to when it became broken. Besides contributing to that project, does this mean we cannot at least test a manual hack on newer insiders that may work with our single sim/device? Or must we wait for Gus to gather data and properly implement it before we can test basic connectivity on, say, 19041?
I admit that I do not have the entire picture because WMRil.dll does exist and is provided by Qualcomm (of course, they made the chipset). But this manual hack you mention, I think this is what RILServiceInit is but this manual hack was made compatible with (only) his SIM. If it does not work for you then we kinda have to adjust the hack for the newer insiders. Since I am a developer myself I could look into making it work. If you could send me your WMRilShim.log file which captured you taking a call, making a call, connecting to data, then I could empower gus33000. I sense that you are hesistant with giving your logfile for some reason but that's ok.

Re: Contributing Windows 10 ARM Cellular Data

Posted: Sat Jan 04, 2020 2:02 pm
by gilius
I would be happy just to get the SIM connected to the Internet for data, and now that I'm a bit more clear on the status I'll send the log file when I next load up an older build. Cheers.

Re: Contributing Windows 10 ARM Cellular Data

Posted: Sat Jan 04, 2020 7:07 pm
by gilius
Hmmm... my sim connects to the Internet for data on 1909? How is that explained? With recent insiders the SIM is disconnected.

April 2019: everything working great in 1903
May 2019: "cellular" stops working in build 18912
September 2019: WSL2 added to ARM64 Insider in 18980
November 2019: 1909 released. Cellular data is available (unsure about calls/sms?), but WSL2 is not.
December 2019: Cellular data not working in Insider, but WSL2 is working.
End 2019: New Insider release marks the start potentially of a new version/codebase with 19536 (untested on Lumia)

So how does cellular data vs. cellular calls differ throughout this timescale? And is November's 1909 based on some old Insider from before September or even before May?

EDIT: cellular data and calls are both working in 1909