Manual network selection not working 47.1.A.5.51 - Sony Xperia XZ1 Questions & Answers

Hello,
I'm running stock Android 8.0 (47.1.A.5.51) and recently I have noticed that manual network selection feature is either not implemented or not working. After selecting a network manually from the list of found networks the phone switches automatically(without even asking) to any other available network once the signal of preselected one is missing. As I live on the border between two countries it is quite a frequent problem and very frustrating one at that. I have system updates disabled; could you please comment whether Sony fixed this issue with a later SW version? Also if you know any third party app that can fix this I would appreciate a reference.

Related

[Xposed] [EXPERIMENTAL] National Roaming

Do you need to enable data roaming to get a connection even in your home network? If so, you probably know the hassle this causes when you travel abroad, or live near the border where your phone can sometimes log into another network. You have to disable data roaming every time, and if you forget, you'll get an unpleasant surprise on your next phone bill.
Maybe you know CyanogenMod's "National Roaming" feature that enables roaming only in your home country, so you don't have to disable roaming manually when you leave the country. I've used this in the past and got used to it, so much that having to live without it would annoy me a lot.
Since I just got a new phone for which CyanogenMod isn't available, I wrote an Xposed module which mimics this feature. My new phone happens to be an MTK6589 dual SIM device (Tronsmart TS7), so I also added support for the dual SIM modifications MediaTek made.
It's in a very early stage and mostly untested. It "works" insofar as the roaming icon is gone and I get a data connection without enabling roaming. I don't know if it properly detects when you're really roaming. It should, but I can't test it for now since I don't live near the border and don't have a working foreign SIM. If somebody could test whether it actually works, that would be greatly appreciated!
Requirements:
Xposed Framework
It *should* work on any Android version Xposed runs on, but so far I've only tested it on my TS7's stock 4.2.1.
Play Store?
I intend to publish it there as well, but only after it has been a bit more thoroughly tested and enough people reported that it works and doesn't cause any issues.
Source code:
https://github.com/leromarinvit/NationalRoaming
Version history (old versions here):
v0.2 - 2013-08-29 - fix Android 4.3 compatibility
v0.1 - 2013-08-25 - initial release
Technical details:
The module works by hooking pollStateDone() in com.android.internal.telephony.gsm.GsmServiceStateTracker. This function notifies listeners when the roaming state changes. So to fake the roaming state everything else sees, we only have to change it before this function is called. The logic is simple: We're roaming if and only if the MCC (mobile country code - first three digits of the numeric operator id) stored on the SIM and provided by the network differ.
In the past, I've manually patched framework.jar for some ROMs for my device and some others, by modifying isRoamingBetweenOperators()* to follow the same logic as this module. With Xposed available now, writing this as a module seems like a much cleaner solution that will work on many more devices than one could reasonably maintain manually, and with much less effort.
* I initially tried to hook this function with Xposed. However, this didn't work, because while the function exists in MediaTek's stock ROM, it never seems to be called.
I tried you module, but it doesn't work for me. I still have to enable "roaming" to get a data connection. The app "phono" shows "roaming" if I use a national roaming provider.
My network operator is "three austria", using only 3G (UMTS) networks but allows national roaming on the 2G network of "t-mobile austria". My phone is a Nexus 4 with stock rom (Android 4.3) , the XPosed framework works for XPrivacy, MaDaCo Toolkit and NFC LockScreenOff Enabler.
Can I help to find a solution?
Edit: Thanks for your dev version, works great for me now.
Thank you very much, oma, for this great little module --> this is really useful for me...!
Was anyone able to actually test it yet, either by roaming onto a foreign network, or popping in a foreign SIM?
Aaahw why didnt you post this 4 weeks back
Than my bills for my vacation were lower...
Verstuurd van mijn GT-I9505
coolnessQ said:
Aaahw why didnt you post this 4 weeks back
Than my bills for my vacation were lower...
Click to expand...
Click to collapse
Ouch . I'm afraid I can't offer anything but my sympathy... 4 weeks ago I was still using CM10 on my old phone, so I didn't need it...
oma said:
Ouch . I'm afraid I can't offer anything but my sympathy... 4 weeks ago I was still using CM10 on my old phone, so I didn't need it...
Click to expand...
Click to collapse
Ah not a big deal still many thanks for this app
Verstuurd van mijn GT-I9505
oma said:
Was anyone able to actually test it yet, either by roaming onto a foreign network, or popping in a foreign SIM?
Click to expand...
Click to collapse
Yes, for me its works perfect.
I have national roaming, and the "R" sign is gone -> so i can switch off the data roaming, which is much safer....
Thanks again.
I'm living in Austria using Hutchinsons Network "3". Yesterday I tested your module near the Czech Republic and it works perfect!
With data roaming disabled data transfer in the czech network did not work (as expected) but swiching between "3"'s austrian 2G-networks works fine.
Congratulation, great work. Let us know when we can find your program in google's play store.
Sent from my Mobistel Cynus T5 using xda app-developers app
That's good to hear! Before I put it on the Play Store, I want to add an activity that does some sanity checks (is Xposed installed? enabled? module enabled?) and tells the user what to do if anything isn't set up correctly so I don't get loads of "I installed this and it doesn't do anything, there's not even a launcher icon!!!1" comments.
This app might prove useful to me when I visit my home country in a few months.
Many thanks, it's suppose to working fine in my MTK6589 device, roaming R sign is gone, I will report some more results after a week when I am roaming in other state.
Sent from my Q800 using xda app-developers app
Help me ! how to mod in casio gzone 201L! im not acept call in! thanks! english my bad. Sorry.
Sent from my HTC Butterfly using Tapatalk 2
maphin1974 said:
Help me ! how to mod in casio gzone 201L! im not acept call in! thanks! english my bad. Sorry.
Click to expand...
Click to collapse
You can't receive incoming calls any more? This definitely shouldn't happen, and is a major bug. Thanks for catching this! Does the problem go away when you disable National Roaming or Xposed?
Edit: This seems to be a combined GSM/CDMA/LTE device, correct? Which of the radios are you using, i.e. what's your provider and which network type is it?
My device is GSM LU+ of Korea, I'm used in Vietnam.
Sent from my PI86100 using Tapatalk
Difference with GravityBox Implementation ?
Hi,
Thanks a lot for this module, it was on my todo-list for months.
Could you explain me quickly the differences with GravityBox's implementation ?
It seems to me that theirs lake per-SIM handling, am I right ?
Corresponding commit in GravityBox is :
https : // github.com/C3C0/GravityBox/commit/1df00a88d7c9692e5c13b0d82c9fe12c011f3eae
Thanks anyway for your work.
maphin1974 said:
My device is GSM LU+ of Korea, I'm used in Vietnam.
Click to expand...
Click to collapse
So you have a Korean SIM, but are currently in Vietnam, right? Which provider are you roaming on, do you know which technology it uses (GSM/UMTS or CDMA)? CDMA could potentially be a problem with the current implementation. But the most important question is still: Does the problem go away if you disable National Roaming?
bubblegum77 said:
Hi,
Thanks a lot for this module, it was on my todo-list for months.
Could you explain me quickly the differences with GravityBox's implementation ?
It seems to me that theirs lake per-SIM handling, am I right ?
Corresponding commit in GravityBox is :
https : // github.com/C3C0/GravityBox/commit/1df00a88d7c9692e5c13b0d82c9fe12c011f3eae
Thanks anyway for your work.
Click to expand...
Click to collapse
That's cool, I haven't seen this yet. Thanks! The biggest differences seem to be that GravityBox only supports 4.2+ (or at least it did last time I checked), but the implementation looks cleaner. It should support MTK dual SIM as well (the "Gemini" stuff).
I'm used gsm/utsm
Sent from my HTC Butterfly using Tapatalk 2
oma said:
Do you need to enable data roaming to get a connection even in your home network? If so, you probably know the hassle this causes when you travel abroad, or live near the border where your phone can sometimes log into another network. You have to disable data roaming every time, and if you forget, you'll get an unpleasant surprise on your next phone bill.
Maybe you know CyanogenMod's "National Roaming" feature that enables roaming only in your home country, so you don't have to disable roaming manually when you leave the country. I've used this in the past and got used to it, so much that having to live without it would annoy me a lot.
...
.
Click to expand...
Click to collapse
thanks a lot. works great on x68 Razr i !!
On my Sony Xperia Z LTE is not working with the module activated :crying:

WiFi channels 12 and 13 - unable to see them

Hello all!
As the title suggests, I found out that the networks operating on these channels are not seen by my Le Max2.
Up to now I had no any problem regarding this, and I was also not aware that I cannot see a wifi network with this phone. It all came to light about a week ago at my workplace where we have multiple Cisco routers installed on various places. Moving around, I noticed that some networks show up, some don't. It's frustrating to see that you have no network where you'll spend your next hours.
I changed the modems, hoping that it will solve the problem, and it kind of did for some time. I was using 26s modem for a long time and all was fine. Then suddenly the networks started to disappear and I was forced to try various versions. With 016s US it worked for about 2 days, then again stopped detecting the networks. After that I've changed multiple modems from 023s to RU, to developer, to US again, etc... Nothing worked. I then used the modules in Magisk and Xposed to extend the wifi channels, they also didn't work...
Currently running AICP 8.1 on my X820, but switching between the ROMs mostly, as I'm not settled on a specific one. I guess that now I'm having 028s modem installed. There is no option to change the settings of the routers as they are locked down.
Any ideas?
Thanks in advance!
I had exactly the same problem - several wifi routers cant be seen by my phone, sometimes they appeared in wifi list (strange, but only when Sim card was inserted, didnt test if it was channel numbers related), but all those problems disappeared and now my x829 can see my router everytime even without sim inserted. It got fixed for me after flashing India 19s stock rom - try it out if you haven't already - https://forum.xda-developers.com/le-max-2/how-to/le-max-2-official-stock-firmware-links-t3433761
Thanks a lot. I cannot download the full ROM, but I will try just the modem. The Internet connection is quite bad for downloading a file that large.
Will post the results after flashing the modem.
Hello again.
After installing the Indian 019s modem, still I couldn't see the networks. Reinstalled aicp, but this time after installation, the airplane mode was Off and the phone received GSM signal. Now looks like I can see the wifi networks on channels 12 and 13.
I understand the relationship between the sim card and the WiFi channels, but isn't there something that can be done to set it manually, and something that will work?
Like I told - only switching to Full India 19s stock rom, not modem only helped me and btw fixed 4g network drops problem.
Thanks for the answer. Going back to the past is not the option unfortunately. All this "Wi-Fi channel" problem is ROM related, you are right, and it depends if the developers added a region or not in their ROMs.
I searched a lot in the last days and looks like the culprit is wifi-service.odex that is located in system/framework/oat/arm64. This file takes information from the SIM card once it receives GSM signal and it determines the region where you are located. In this way, it restricts the wifi channels. Unfortunately if you don't have GSM signal (like me), then it limits the working channels to 1-11, not showing 12 and 13. As soon as the GSM signal appears, and the phone recognizes the region as being an unrestrictive one, then it releases the channels 12 and 13.
The thing is that once this file gets modified, the restrictions are gone. Most of the users reported that setting the zone to US is the best as it is one of the less restrictive. I hope that the devs will consider this in their future releases.
Now, what can I do?! I can flood all the development threads with this request, or try to modify the file myself. As I'm not that good in decompiling apps, I will still try it, not even considering the option no 1.
Maybe somebody with a bit more experience can give me a hand and change the wifi-service.odex
valy_cta said:
Thanks for the answer. Going back to the past is not the option unfortunately. All this "Wi-Fi channel" problem is ROM related, you are right, and it depends if the developers added a region or not in their ROMs.
I searched a lot in the last days and looks like the culprit is wifi-service.odex that is located in system/framework/oat/arm64. This file takes information from the SIM card once it receives GSM signal and it determines the region where you are located. In this way, it restricts the wifi channels. Unfortunately if you don't have GSM signal (like me), then it limits the working channels to 1-11, not showing 12 and 13. As soon as the GSM signal appears, and the phone recognizes the region as being an unrestrictive one, then it releases the channels 12 and 13.
The thing is that once this file gets modified, the restrictions are gone. Most of the users reported that setting the zone to US is the best as it is one of the less restrictive. I hope that the devs will consider this in their future releases.
Now, what can I do?! I can flood all the development threads with this request, or try to modify the file myself. As I'm not that good in decompiling apps, I will still try it, not even considering the option no 1.
Maybe somebody with a bit more experience can give me a hand and change the wifi-service.odex
Click to expand...
Click to collapse
Hi,
you asked for help at "LG G4 WiFi Fix - Always all channels on 2.4 GHz" (https://forum.xda-developers.com/showpost.php?p=76161940&postcount=10)
Please do not "flood all the development threads with this request". Thank you.
If you need help from specific users you can link them or quote their posts. That should be enough.
Here are some suggestions for investigation:
-Analyze the Logacat outputs while you activate airplane mode.
Search for lines like "country code to" or just the word wifi.
For that you could use the app Catlog, but I recommend using ADB to read logcat outputs.
For more details read https://forum.xda-developers.com/showthread.php?t=1726238
If you found something interesting, post it here as a filedump or in HIDE tags.
-Analyze your /system file structure. Different Android versions and devices use different file structure.
".jar" files could be replaced by ".odex" files. Sometimes there a ".oat" files.
Newer smartphones have arm and arm64 folders.
You can create a dump of your system's framework structure with
Code:
ls -lR /system/framework > file-structure.txt
And please provide more details from your phone, e.g. exact Android version, ROM version, rooting status, ...
If you want, you can upload wifi-service.odex or other files of your ROM.
Maybe someone can analyze them for you.
-Search for files in /data/data and /system that could be releated to your issue.
For example /data/data/com.android.providers.settings and /data/data/com.android.providers.settings have interesting ".db" files.
In /system/etc/wifi one will find the wpa_supplicant.conf
There are other files that should be inspected.
Good luck :fingers-crossed:

EMUI 10 - VoLTE Icon Refuses to Leave

Hello, I have been trawling through posts here and on Reddit for a few hours now.
I only today bothered to install the EMUI 10.0.0 update on my JSN-L21 (UK variant?) and have discovered the issue that many a EMUI user has had: I cannot disable the VoLTE icon on the notification bar. There is no option to disable VoLTE itself in settings. I have tried SystemUI Tuner, and directly blacklisting the volte/volte_call icons with ADB. Neither had an effect.
I suspect I may have had VoLTE switched on in settings prior to the update and left it enabled, but I cannot now disable it as the phone seems to have detected that my provider/contract does not actually support 4G Calling, so it hides this option from me; as such, I cannot see whether or not the option is turned on in the background.
Does anyone have any idea how to proceed from here? I know of SetEdit but I've no idea what I'm looking for. I've seen a small number of things that might be relevant but I fear changing them in case it's wrong. In the Global Table there's a line called "volte_vt_enabled" set to "1"; "card_volte_flag_0" set to "1"; "card_volte_flag_1" set to "-1" ( I assume flag_1 refers to the secondary sim card, which I do not have inserted), beyond that I haven't seen anything but I most likely have missed many things.
Thanks

Question Issues with mobile data and notifications

Hello.
So i bought the iqoo 7 Legend Chinese version last April and since the beginning im facing some Issues...
I thought that with a OTA update wiil become normal, but no.
So the problem is, even if the phone have mobile data on, with the 4g or 4g+ signal, he loses connections, speed transfer is like 100 kbs... He changes from 4g+ to 4g on a second, and the data transfer stucks... Its strange..
And the other thing, the notifications... I dont receive wattsapp, email, other apps notifications... Anyone have the same issue? If someone could help i apreciate... Thanks.
Are you using the phone in a country other than china, if yes then probably it is because of a different baseband/radio version. You need the particular country software version on your device.
The signal depends on compatibility of the phone, but notifications can be turned on in the settings of every app.
If you still have problems after turning on and giving priorities to the norifications, you could use adb (or adb appcontrol) to uninstall an app Called PEM (is the vivo battery management, and is very aggressive with notifications), but it will increase battery consumption.

Question 12 update gone for tmobile variant

Looks like the update for the tmobile variant for this phone was pulled. I used the msm tool to restore my device and now it won't update to 12
Interesting. I updated and have had nothing but issues so maybe it was pulled for more testing. I was planning to do a MSM restore this weekend.
It forced my update to 12 a week or two ago. I haven't had any particular issues, what's been popping up? (I'm still stock t-mobile, just with unlocked bootloader)
edale1 said:
It forced my update to 12 a week or two ago. I haven't had any particular issues, what's been popping up? (I'm still stock t-mobile, just with unlocked bootloader)
Click to expand...
Click to collapse
Android auto doesn't connect wired. Gps issues. Overall it looks like we went backwards as far as the design is concerned
edale1 said:
It forced my update to 12 a week or two ago. I haven't had any particular issues, what's been popping up? (I'm still stock t-mobile, just with unlocked bootloader)
Click to expand...
Click to collapse
I've had a number of small issues. Random auto rotation when auto rotate is disabled. Screen flickering at low brightness. Fingerprint issues where it sometimes ignores touch when locked but vibrates while unlocked from a minor brush of the palm. VPN settings and per app network settings seem harder to control. Issues with accessing hidden apps. Issues with the USB notification to switch USB modes either not being available or when it pops up, it covers half the screen from the bottom blocking the keyboard while typing. Also not a fan when fonts and UI change.
wifi hotspot 5ghz band gone
Ytube21 said:
wifi hotspot 5ghz band gone
Click to expand...
Click to collapse
I can still set mine to either band but I dislike that it just shows the raw password all the time instead of stars.
Also have issues with some text messages being dated as from 1969 and going above my other messages, even when the sender sent them all together.

Categories

Resources