diff --git a/README.md b/README.md index 906ed06..034ad8d 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ However after this all SUPL requests will be send unencrypted over the internet You can trigger TLS deactivation using the `--disable` flag. ``` -[root@Xperia10II-DualSIM defaultuser]# ./suplpatch --disable --aosp 10 +[root@Xperia10II-DualSIM defaultuser]# ./suplpatch --aosp 10 --disable ______ _____ __ ___ __ __ / __/ / / / _ \/ / / _ \___ _/ /_____/ / ___ ____ @@ -134,7 +134,7 @@ However to get this working you need a valid root certificate injected into mode This is triggered via the `--upload` flag. ``` -[root@Xperia10II-DualSIM defaultuser]# ./suplpatch --upload --aosp 10 +[root@Xperia10II-DualSIM defaultuser]# ./suplpatch --aosp 10 --upload ______ _____ __ ___ __ __ / __/ / / / _ \/ / / _ \___ _/ /_____/ / ___ ____ @@ -192,43 +192,15 @@ Since SailfishOS might still try to connect to legacy MLS you should also add into your `/etc/hosts` file to make things a tick faster. #### A Word On 4G SUPL Support #### +It is mandatory to use SUPLv2 on 4G connected devices. +To change the SUPL version setting I found out that patching the modems SUPL register is not needed because Sony vendor blob is initializing the setting for you based on `gps.conf` entry. -__This is only true for SailfishOS running on Xperia X, XA2, 10 Mark 1 and 10 Mark 2__ - -If your device is connected to a 4G network (LTE) **SUPLv2** is mandatory to query the SUPL host and make things working. Sadly SailfishOS currently has no configuration options for this and hybris bindings to override the modems default setting when GNSS services are started. - -A solution for this is to change the modems default SUPL version from v1 to v2 using the `--supl` flag. +For SUPLv2 support please add the following setting into the `gps.conf` file: ``` -[root@Xperia10II-DualSIM defaultuser]# ./suplpatch --supl 2 --aosp 10 - - ______ _____ __ ___ __ __ - / __/ / / / _ \/ / / _ \___ _/ /_____/ / ___ ____ - _\ \/ /_/ / ___/ /__ / ___/ _ `/ __/ __/ _ \/ -_) __/ -/___/\____/_/ /____/ /_/ \_,_/\__/\__/_//_/\__/_/ - -SailfishOS Xperia X devices A-GPS SUPL Patcher v0.0.2.0 (git: d41f150, build: 02.07.2022 13:59) - -2022/07/02 14:07:31 ------------------------------------------------------------------------------------------ -2022/07/02 14:07:31 SailfishOS Xperia X devices A-GPS SUPL Patcher v0.0.2.0 (git: d41f150, build: 02.07.2022 13:59) -2022/07/02 14:07:31 Command line './suplpatch' launched with the following flags ... -2022/07/02 14:07:31 --aosp=10 -2022/07/02 14:07:31 --disable=false -2022/07/02 14:07:31 --enable=false -2022/07/02 14:07:31 --info=false -2022/07/02 14:07:31 --remove=false -2022/07/02 14:07:31 --supl=2 -2022/07/02 14:07:31 --upload=false -2022/07/02 14:07:31 --version=false -2022/07/02 14:07:31 Executable launched as user 'root@Xperia10II-DualSIM'. -2022/07/02 14:07:31 Modem default SUPL version changed from v1 to v2 successfully. -2022/07/02 14:07:31 Bye. +SUPL_VER=0x20000 ``` -#### Issues On Xperia 10 Mark 3 #### -The Xperia 10 Mark 3 is currently only working with SUPLv1 if you boot your device to 2G/3G network mode. You can change your SUPL host `gps.conf` setting and a insecure connection will work. -Using the device on 4G networks (LTE) is currently not possible because modem settings are wiped after reboot and restored to default, i.e. SUPLv1. - #### It's not working for me #### I've tested `suplpatch` with Xperia X, X10 Mark 2 and X10 Mark 3 and get an A-GPS fix in less than 10 seconds even if the device wasn't using GPS for many days and ephemeris data was expired. @@ -256,12 +228,19 @@ _Is this working for Jolla or Jolla C phones?_ - Sorry but it's sadly not working (modem security / diag driver issues) _Is it working for 4G networks?_ -- To get SUPL working with 4G networks please set the default modem SUPL version to v2 (--supl 2) -- SUPLv2 for Xperia 10 Mark 3 is not working +- To get SUPL working with 4G networks please set the default modem SUPL version to v2 adding the `SUPL_VER` key into `gps.conf` file. + +_I don't trust you_ +- That's ok so please don't use this tool. + +_What are you patching on my modem?_ +- `suplpatcher` is _only_ modifying a single non-volatile setting to disable / enable secure SUPL transport (--disable , --enable flag) which can't be changed using the `gps.conf` file. +- `suplpatcher` is uploading four new root certificates to get secure SUPL working (--upload, --remove flag). The certificates are uploaded to modems internal embedded files system (EFS) and can be removed by using the `--remove` flag. It is currently unclear if vendor blob supports certificate injection or if this function must be implemented by SailfishOS. #### Changelog #### - v0.0.2.0 - Added support for AOSP base 11 to get `suplpatcher` working with Xperia 10 Mark 3 - Added a new flag to modify SUPL modem default version (needed for 4G SUPL support) - CyberTrust and ISG root certificates created for second subscription (SIM2) +- Updated `README` based on new lessons learned (removed `--supl` flag instructions as patching the SUPL version register is no longer needed) +