Pablito2020 / android_device_bq_krillin

🌲 device tree for the bq E4.5
11 stars 6 forks source link

mobile internet #12

Closed martinbolte closed 6 years ago

martinbolte commented 6 years ago

Is there a chance for mobile internet to be fixed or to get it fixed? I wonder, because it has been working in previous versions. Besides that this rom is running brillantly on my phone. Thanks for all you work!

MagnusAlm commented 6 years ago

What version are you running? Prebuild or have you compiled it yourself?

martinbolte commented 6 years ago

I used the prebuild rom lineage-14.1-20170912-UNOFFICIAL-krillin.zip from here:

https://androidfilehost.com/?fid=817550096634798915

MagnusAlm commented 6 years ago

I had the same problem with that one, for what I could see, I guess it didn't read the sim card correctly. Have you tried setting the APN values manually?

I didn't put much time on it, but I think sms and calling worked for me, but not mms (but of course, you need working mobile data for that.).

Nobby888 commented 6 years ago

I have the same problem with the mobile internet. Tried to set the APN manually, but still no luck. Any progress? But all the rest ist running flawlessly, keep up the good work.

Nobby888 commented 6 years ago

Has anyone managed to get the mobile internet, with the 14.1-build, working?

martinbolte commented 6 years ago

Only using the lineage 13 rom, which for me proved to be quite unstable and getting into boot loops. I finally switched back to the Lollipop stock rom, rooted it and uninstalled all Google apps, which works fine for me.

karlkashofer commented 6 years ago

Same for me, mobile internet is not working on 14.1-20170912

MagnusAlm commented 6 years ago

I've managed to get mobile internet working with device_bq_krillin cm-14.1 by adding mtk-ril.so and librilmtk.so from https://github.com/DeVviL/android_vendor_highscreen_giraffe/tree/lineage-14.1/proprietary/lib to vendor_bq_krillin cm-14.1.

aleshorak commented 6 years ago

Hi, that sounds great - do you please publish the ROM for testing? Can it be expected to work the same as lineage-14.1-20170912 by Pablito except for the mobile data libraries?

In the last week, I have tried four ROMs:

so I am eagerly waiting for one of the lineage ROMs with the problems solved :-)

MagnusAlm commented 6 years ago

@aleshorak

I haven't tested ADB on my cm-13.0 build yet but I've used for 2 weeks without any issues.

The problem with ADB and addon-su might be because it wasn't compiled with "su" enabled. I will test that.

MagnusAlm commented 6 years ago

Here is the link for 14.1

https://drive.google.com/drive/folders/1aL37MtQKP__w8XApOTe_mxsYkWdb0i6E?usp=sharing

It was built this morning, so I've just done some rudimentary testing.

What this build differs from Pablitos repositorys:

Kernel 14.1 Fixed the "off mode charging bug" by removing two patches from kernell 14.1: https://github.com/Pablito2020/android_kernel_bq_krillin/issues/2 (actually it's the 14.1-f2fs with all the extra patches from 14.1 except those two ^^)

Vendor 14.1 Changed librilmtk.so and mtk-ril.so on vendor 14.1

Device 14.1 Copied most of the stuff from device 14.0. catalogue structure is the same as on 14.1 tho. The ril is the same as 14.1. (I've managed to build on 14.0, but it doesn't boot...)

I'll try to fork Pablitos stuff and add my patches for viewing later. I'm a noob at this stuff and just learning by doing. ;-)

What I've tested:

sms mms mobile data wifi gps adb (just logcat)

Not tested:

Camera (has worked before on my builds) FM radio (has worked before on my builds) Wifi on a hidden SSID (been too lazy to fiddle with my wifi-router.)

Not working: Gestures ("double tap 2 wake" and "haptic feedback" settings)

aleshorak commented 6 years ago

Thanks a lot, going to give it a try (fifth one :-)). I suppose lineage-14.1-20180118-EXPERIMENTAL-krillin.zip is the right file, not the ota one?

MagnusAlm commented 6 years ago

For what I know they are exactly the same.

aleshorak commented 6 years ago

Installation went ok, but the result looks the same as with lineage-14.1-20170912-UNOFFICIAL - no mobile data :-(

the android Testing mode (##4636##) says: Voice service: Running Data service: Disconnected Voice network type: HSPA Data network type: Unknown

I have checked APN setup, it is correct. Standard sms and voice work ok.

MagnusAlm commented 6 years ago

Well, my fix doesn't seem universal then. I will do some more experiments next week.

Almost done with a new build of cm-13.0 with su enabled.

Will do a quick test of it and post a link if it seems ok.

MagnusAlm commented 6 years ago

adb works now on 13.0

https://drive.google.com/open?id=1ACRa6WPqE8ZgH9_GFMRVtdFJFPmYPD80

aleshorak commented 6 years ago

super, I can confirm that 13.0 works great, mobile internet ok, adb+su works and no reboot loops (which were the problems of previous 13.0 builds

martinbolte commented 6 years ago

Dear Magnus, thanks a million for your efforts. I have your ROM 14.1 installed on my E4.5 and it runs like a charm! Mobile data working out of the box.

MagnusAlm commented 6 years ago

@martinbolte That is great. I've got around to make forks of Pablitos stuff and added my patches to it. It differs a bit from the rom you uses since I've taken the 'ril' stuff from https://github.com/DeVviL/android_device_highscreen_giraffe, fixed wifi hotspot and removed 'Gestures'.

I'm testing building it right now. What I know that doesn't work is wifi on a network with a hidden SSID. And it seems that my telephone number shows up as unknown when calling, might be related to my sim card, will test with another.

MagnusAlm commented 6 years ago

Uploaded the new build to the old link, created sub folders named after day of build.

If they aren't accessible let me know.

karlkashofer commented 6 years ago

Mobile data working on lineage-14.1-20180125-EXPERIMENTAL-krillin.zip ! Will test some more, thanks a lot ! Great !

MagnusAlm commented 6 years ago

@karlkashofer ;-)

I've might found what is missing for the hidden SSID problem:

https://github.com/danielhk/android_device_lenovo_aio_otfp/blob/cm-14.1/platform_patches/wpa_supplicant_8.patch

I'll test that.

karlkashofer commented 6 years ago

Well, it turns out mobile internet worked just once. Cant get it working any more. Just wont switch on.

bugger.

aleshorak commented 6 years ago

@MagnusAlm great! for me mobile data works in 14.1-20180125 (which was not the case for any of the previous 14.1 ROMs). and it seems stable so far, not just once.

karlkashofer commented 6 years ago

Hmm, are you using two sim cards ?

I have two in mine, maybe thats confusing something. However, i removed one of them and mobile data still would not work.

Its soo annoying...

Am 2018-01-27 um 13:27 schrieb aleshorak:

@MagnusAlm https://github.com/magnusalm great! for me mobile data works in 14.1-20180125 (which was not the case for any of the previous 14.1 ROMs). and it seems stable so far, not just once.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Pablito2020/android_device_bq_krillin/issues/12#issuecomment-360981530, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ_nP8idLjheaInTYIBZO8x_wmkG4A6wks5tOxYZgaJpZM4QluNY.

aleshorak commented 6 years ago

@karlkashofer I have only one SIM card. In 13.0 ROMs it was working ok, but no luck in any 14.1 ROM until this last one.

MagnusAlm commented 6 years ago

Hm, the data problem seems to be dependent on what operator you have. it seems like only GSM works, got a SIM that seems to requires WCDMA and no data on neither the 180118 nor the 180125 build.

Could be the radio baseband firmware that is the issue, cm 13.0 rom has: "MOLY.WR8.W1449.MD.WG.MP.V1,2015/02/11 17:50" (which seems to be stock lolli-pop version)

Whereas 14.1 has: "WR8.W1412.MD.WG.GMP.SP.W14.26.P3,2014/08/15 11:39"

Pablo changed this in https://github.com/Pablito2020/android_vendor_bq_krillin/commit/f09c808ae30c944c9817e5fb205c3e9afb665880 170922.

MagnusAlm commented 6 years ago

I've had some success, made a build with the modem firmware from vendor cm13.0.

Got mobile data working on the sim that wants WCDMA by using the app "hidden settings".

Under the menu "Radio Info" there is a switch, a bit down, for turning the power on/off for the mobile radio. (I'm a bit uncertain about the translation from Swedish tho...)

So, by turning the mobile radio off and on, then waiting for it to reconnect to service. Then I turn mobile data off and on. After a couple of seconds I get mobile data.

This isn't working on the 180125 build, so it must have to do with the change of modem firmware. And something else must be changed also, but I'll be digging some more.....

MagnusAlm commented 6 years ago

First: I did some piss poor testing with the builds made 180118 and 180125. I never tested all sim cards I have back then, I was just happy that the first one I tested worked.

What I've done now (after a weekend of trial and terror), is basically a reversing all changes related to telephony back to where it was around 170912, which is also the same binaries used for the 13.0 branch. What differs now from then is probably some bugs that has been fixed in the Lineage cm-14.1 source.

Mobile data now works on both the sim cards that I have and has that capability for mobile data. The catch is that you have turn off and on the mobile radio modem after boot.

This can bee done two ways.

  1. Either enter this code as if you where dialing: *#*#4636#*#*

A menu will pop up called "Testing". Press "Phone information" and a bit down on the screen you have "Mobile radio power", tap the button to the right of it, watch the mobile signal strength indicator in the status bar go blank, then tap the button again to turn it back on. After a few seconds, if it works for you as it does for me, you should have a mobile data connection.

  1. Or, install the app "Hidden android settings" from google play store. Start that app and choose "RadioInfo", this will take you to the same menu as the example above.

This how far I've come this weekend, it will probably take some more time to figure this out. The cause of it can be that Lineage OS 14.1 is not compatible backwards with the old Mediatek drivers/binaries/stuff or it might be a kernel bug, that one is in dear need of some TLC since it hasn't had any fixes applied since 171020, Pablo probably has been busy with studies/life or just lost interest. (and I don't blame him if he did.)

If you want to test it, you can find it here under 180203: https://drive.google.com/open?id=1aL37MtQKP__w8XApOTe_mxsYkWdb0i6E

karlkashofer commented 6 years ago

Dear Magnus !

Thanks a lot for your work ! I flashed your 0203 build, but it seems it does not recognize my sim-cards. Both slots are reported as empty, phone is not asking for the pins.

any ideas ? cheers, KK

Am 2018-02-04 um 17:27 schrieb Magnus:

First: I did some piss poor testing with the builds made 180118 and 180125. I never tested all sim cards I have back then, I was just happy that the first one I tested worked.

What I've done now (after a weekend of trial and terror), is basically a reversing all changes related to telephony back to where it was around 170912, which is also the same binaries used for the 13.0 branch. What differs now from then is probably some bugs that has been fixed in the Lineage cm-14.1 source.

Mobile data now works on both the sim cards that I have and has that capability for mobile data. The catch is that you have turn off and on the mobile radio modem after boot.

This can bee done two ways.

  1. Either enter this code as if you where dialing: |##4636##|

A menu will pop up called "Testing". Press "Phone information" and a bit down on the screen you have "Mobile radio power", tap the button to the right of it, watch the mobile signal strength indicator in the status bar go blank, then tap the button again to turn it back on. After a few seconds, if it works for you as it does for me, you should have a mobile data connection.

  1. Or, install the app "Hidden android settings" from google play store. Start that app and choose "RadioInfo", this will take you to the same menu as the example above.

This how far I've come this weekend, it will probably take some more time to figure this out. The cause of it can be that Lineage OS 14.1 is not compatible backwards with the old Mediatek drivers/binaries/stuff or it might be a kernel bug, that one is in dear need of some TLC since it hasn't had any fixes applied since 171020, Pablo probably has been busy with studies/life or just lost interest. (and I don't blame him if he did.)

If you want to test it, you can find it here under 180203: https://drive.google.com/open?id=1aL37MtQKP__w8XApOTe_mxsYkWdb0i6E

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Pablito2020/android_device_bq_krillin/issues/12#issuecomment-362919691, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ_nPwNbfNiLMQHVncyMa1vOSJC7I-wmks5tRdpvgaJpZM4QluNY.

MagnusAlm commented 6 years ago

Tried turning the phone off and on?

I get that too sometimes on a "soft" reboot, a hard reboot helps.

karlkashofer commented 6 years ago

Ok, turning on and off actually brought back the sim cards. Then i did the ## magic but still no data on any of my two sims.

Am 2018-02-04 um 19:20 schrieb Magnus:

Tried turning the phone off and on?

I get that too sometimes on a "soft" reboot, a hard reboot helps.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Pablito2020/android_device_bq_krillin/issues/12#issuecomment-362927583, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ_nPxTsil4JnAVIs-P4X4636D3U1wQzks5tRfT-gaJpZM4QluNY.

martinbolte commented 6 years ago

Hello Magnus,

one feedback from my side. I am using 14.1-20180118-EXPERIMENTAL-krillin you posted in January. Mobile data did work seamlessly, but recently the service seems to get dumped short after booting the phone. To get it back I need to restart the phone.

Is there a way to reactivate the service lets say via command?

Am 31.01.2018 um 20:30 schrieb Magnus:

Hm, the data problem seems to be dependent on what operator you have. it seems like only GSM works, got a SIM that seems to requires WCDMA and no data on neither the 180118 nor the 180125 build.

Could be the radio baseband firmware that is the issue, cm 13.0 rom has: "MOLY.WR8.W1449.MD.WG.MP.V1,2015/02/11 17:50" (which seems to be stock lolli-pop version)

Whereas 14.1 has: "WR8.W1412.MD.WG.GMP.SP.W14.26.P#,2014/08/15 11:39"

Pablo changed this in Pablito2020/android_vendor_bq_krillin@f09c808 https://github.com/Pablito2020/android_vendor_bq_krillin/commit/f09c808ae30c944c9817e5fb205c3e9afb665880 170922.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Pablito2020/android_device_bq_krillin/issues/12#issuecomment-362043798, or mute the thread https://github.com/notifications/unsubscribe-auth/AgS7hzL-8pX9O-n_bA3PLMa92xrN4VhDks5tQL85gaJpZM4QluNY.

MagnusAlm commented 6 years ago

@martinbolte For restarting the telephone mode you can try this:

This can bee done two ways.

Either enter this code as if you where dialing:
*#*#4636#*#*

A menu will pop up called "Testing". Press "Phone information" and a bit down on the screen you have "Mobile radio power", tap the button to the right of it, watch the mobile signal strength indicator in the status bar go blank, then tap the button again to turn it back on. After a few seconds, if it works for you as it does for me, you should have a mobile data connection.

Or, install the app "Hidden android settings" from google play store.
Start that app and choose "RadioInfo", this will take you to the same menu as the example above.

You might need to do it twice on 18018 and 180125 builds.

MagnusAlm commented 6 years ago

@karlkashofer with the phone info tool, have you tride setting something else than the default "WCDMA preferred" under "networktype"?

I think they correlate like this:

2G GSM or UMTS

3G CDMA, WCDMA or TD-SCDMA

4G LTE (I'm pretty sure that this is not supported by the hardware tho.)

martinbolte commented 6 years ago

@MagnusAlm Dear Marcus, one more feedback. I could not get the broken mobile data issue fixed with the 14.1-20180118-EXPERIMENTAL-krillin- Rom, but today I tried the 14.1-20180203-EXPERIMENTAL-krillin build and it worked exactly as you described. Mobile data working. Thank you so much for supporting us! Martin

I think with the two builds that MagnusAlm made for lineage 13 and 14, providing mobile data (see links above) this issue can be considered as closed