Switch network mode to 2G/3G/4G/(5G)/WIFI

Post your questions and help other users.

Moderator: Martin

stefanprivat
Posts: 24
Joined: 28 Jan 2019 12:42

Re: Switch network mode to 2G/3G/4G/(5G)/WIFI

Post by stefanprivat » 05 Mar 2019 10:29

@anuraag

Sorry, I only mistyped here during post. In flow it is value 9 and note value 3.

But I will take once your flow and test with that.
I will also enable "I have verified the setting I know what I'm doing".

I will come back with results.

Best regards and thanks a lot!

Results:
@anuraag

Please find below my tests with your flow:

Initial staus before flow executed: Manually set in menu network mode from phone: 2G

Executed your flow, selected 4G (see below printscreen)
But as you can see in the upper status bar, is still "G" (2G) visible. Also in menu network mode from phone: 2G (wait for a long time)

see pic1

After that:
Executed your flow, selected 3G (see below printscreen)
But as you can see in the upper status bar, is still "G" (2G). Also in menu network mode from phone: 2G (wait for a long time)
But interesting is, that "old_setting" has value 9!

see pic2


After that:
Set manually in menu from phone network mode 4G:

see pic3

After that:
Executed your flow, selected 3G (see below printscreen)
But as you can see in the upper status bar, is still "4G" (2G). Also in menu network mode from phone: 4G (wait for a long time)

see pic4

Attention to the pic order: 3, 2, 1, 4!!!

Best regards Stefan
Attachments
pic3.jpg
pic3.jpg (362.65 KiB) Viewed 17391 times
pic2.jpg
pic2.jpg (325.03 KiB) Viewed 17391 times
pic1.jpg
pic1.jpg (323.95 KiB) Viewed 17391 times
Last edited by stefanprivat on 05 Mar 2019 11:05, edited 1 time in total.

stefanprivat
Posts: 24
Joined: 28 Jan 2019 12:42

Re: Switch network mode to 2G/3G/4G/(5G)/WIFI

Post by stefanprivat » 05 Mar 2019 11:03

Now alos the 4th pic
Attachments
pic4.jpg
pic4.jpg (327.27 KiB) Viewed 17391 times

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Switch network mode to 2G/3G/4G/(5G)/WIFI

Post by anuraag » 05 Mar 2019 11:12

So is it working or not? Does it properly changed your network mode from 4G/3G/2G to 3G?

You have to wait some seconds for your device to switch network.
"4G"(2G)
When it shows 4G only (not 4G+) then your device is working on a 4G network not 2G.

Does your network actually works on 3G?

stefanprivat
Posts: 24
Joined: 28 Jan 2019 12:42

Re: Switch network mode to 2G/3G/4G/(5G)/WIFI

Post by stefanprivat » 05 Mar 2019 11:29

Unfortunately no, it is not working.
The captured Debug Dialog shows always correct values, but phone never switched in the requested state.
Does your network actually works on 3G? >> No, phone is still in 4G after last flow execution.

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Switch network mode to 2G/3G/4G/(5G)/WIFI

Post by anuraag » 05 Mar 2019 11:34

Try
1) manually switch to 2G mode.
2) execute my flow. Select 4G/3G/2G mode, wait some seconds and check whether 4G icon is showing or not.
Does your network actually works on 3G?
i mean does your operator support 3G network?

stefanprivat
Posts: 24
Joined: 28 Jan 2019 12:42

Re: Switch network mode to 2G/3G/4G/(5G)/WIFI

Post by stefanprivat » 05 Mar 2019 12:55

@anuraag

Done, exact like your instruction.

As you can see in attached dialog output, I switched with your flow from 2G (old_setting 1) to 4G/3G/2G (setting 9).
But as you also can see, over 6 minutes later, the phone is still on 2G (also in menu network mode the same visible: 2G).
Fact: Phone never change the network mode with executing the flow.

(Yes, my provider supports all:2G/3G/4G/)
Attachments
Test_2G_to_4G_tested.jpg
Test_2G_to_4G_tested.jpg (50.01 KiB) Viewed 17385 times

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Switch network mode to 2G/3G/4G/(5G)/WIFI

Post by anuraag » 05 Mar 2019 13:34

Changing system setting isn't enough for non root device. We have to open network setting page ince after applying secure setting.

Try
1) manually switch to 2G mode.
2) execute my flow. Select 4G/3G/2G mode, wait some seconds and check whether 4G icon is showing or not.
3) open system setting page from where you change network mode. Don't change anything. Now look at Statusbar.

stefanprivat
Posts: 24
Joined: 28 Jan 2019 12:42

Re: Switch network mode to 2G/3G/4G/(5G)/WIFI

Post by stefanprivat » 05 Mar 2019 16:02

1) Done
2) Done, wait 1 min. >> still only icon "G" for 2G visible
3) Manually navigated in phones menu to "Mobile-Netzwerke" >> "Netzmodus", where I can do the manual change from the mode >> status bar shows still "G" for 2G.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Switch network mode to 2G/3G/4G/(5G)/WIFI

Post by Desmanto » 05 Mar 2019 16:04

@stefan : It seems you have found the key value. And from your previous post, it seems your phone doesn't honor the changes made. If that so, it seems your only choice is using Control UI. To back from the previous setting, use back() or home() to go directly to home screen.

I have shared the flow to log the secure setting, including detail information how to use it and the setup : viewtopic.php?f=3&t=7931
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

stefanprivat
Posts: 24
Joined: 28 Jan 2019 12:42

Re: Switch network mode to 2G/3G/4G/(5G)/WIFI

Post by stefanprivat » 06 Mar 2019 20:08

@Desmanto

Thank you for the helpful information. I will consult them!
I will check also on the Galaxy S8, otherwise I know now, how to do the network change over the UI.

Thanks a lot to all here which helped in this case!

Best regards Stefan

Post Reply