maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   XA2 - microG - Sailfish signature spoofing (https://talk.maemo.org/showthread.php?t=100726)

aspergerguy 2019-04-22 19:25

XA2 - microG - Sailfish signature spoofing
 
2 Attachment(s)
Whilst this resource has been well received upon TJC, it does require Linux skills which for me have been a steep learning curve and if the following saves anyone a bit of time that's great:https://together.jolla.com/question/...a2-android-81/

I wasted a lot of time trying the first method usiing squashfs-tools, vdexExtractor and SmaliPatcher requiring both Linux and Windows PC to no avail, before falling back uoon Yeoldegrove's automated script with a new set of issues:https://github.com/yeoldegrove/sailf...ature-spoofing

Just to give a bit of history with newer Dalvik in XA2 Linux Containers (lxc) are used for separation of SailfishOS and Aliendalvik (Android Support) so the old /opt/alien/system/priv-app/ is no longer easily accessible but buried in system.img:https://together.jolla.com/question/...app-directory/

Whilst there is an easy way to install microG upon XA2 following tutorial by Leszek Lesner, this does not include signature spoofing:https://www.youtube.com/watch?v=1K05m3EJJ9A

Eventually settled upon using Ubuntu 18.04.2 LTS to follow Yeoldegrove's tutorial, but TJC forum gets hopeless for continuity purposes where you keep having to chase down "more comments" in different answers.

First off I would use:
HTML Code:

git clone https://github.com/yeoldegrove/sailfish-signature-spoofing.git --recurse-submodules
to get everything in sailfish-signature-spoofing directory.
After installing Docker (https://www.digitalocean.com/communi...n-ubuntu-18-04) if not present already remember to follow Post-installation steps if you don't want to preface with sudo:https://docs.docker.com/install/linu...x-postinstall/

You will need to edit existing "Dockerfile" in resource as latest openjdk does not include apt to:
HTML Code:

FROM openjdk:11
When it comes to this command:
HTML Code:

docker build -t haystack . && docker run --rm -ti --env SAILFISH=<PHONE_IP_ADDRESS> --env LXC=1 haystack
Yeoldegrove mentions "Make sure you PC is in connected to the same WiFi network as your phone" but personally kept getting "Rsync connection error" until connected XA2 via USB > Developer mode instead.

Experienced Linux users wouldn't give this a second thought but needed to set PATH variable in Bash:http://linuxbsdos.com/2014/11/26/how...iable-in-bash/

Worth a mention come update time that whilst signature spoofing will need to be redone, there may not be sufficient space to complete update satisfactorily unless system.img.pre_haystack is first removed:
http://talk.maemo.org/showpost.php?p...37&postcount=8

Without further ado here is result as expected but may amend if further detail comes back to me.

ajalkane 2019-04-25 15:49

Re: XA2 - microG - Sailfish signature spoofing
 
Quote:

Originally Posted by aspergerguy (Post 1556259)
When it comes to this command:
HTML Code:

docker build -t haystack . && docker run --rm -ti --env SAILFISH=<PHONE_IP_ADDRESS> --env LXC=1 haystack
Yeoldegrove mentions "Make sure you PC is in connected to the same WiFi network as your phone" but personally kept getting "Rsync connection error" until connected XA2 via USB > Developer mode instead.

You probably missed the instructions on opening firewall port for the rsync (iproute), and that's why WLAN didn't work.

aspergerguy 2019-04-25 17:10

Re: XA2 - microG - Sailfish signature spoofing
 
Quote:

Originally Posted by ajalkane (Post 1556366)
You probably missed the instructions on opening firewall port for the rsync (iproute), and that's why WLAN didn't work.

Did try to apply at the time but can't remember particular error message elicited, however as Hossa has arrived no doubt will be re-visiting spoofing in the near future.

N9x3 2019-05-18 02:13

Re: XA2 - microG - Sailfish signature spoofing
 
Update:
The problems below was due to Docker interface being down or not working (lack of reset after installation).

Make sure you have this interface on linux after Docker installation:
Code:

docker0  Link encap:Ethernet  HWaddr 02:42:93:fb:54:4a 
          inet addr:172.17.0.1  Bcast:172.17.255.255  Mask:255.255.0.0
          inet6 addr: fe80::42:93ff:fefb:544a/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:92860 errors:0 dropped:0 overruns:0 frame:0
          TX packets:208931 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:110839908 (110.8 MB)  TX bytes:305974375 (305.9 MB)

Dear Aspergerguy,

Thank you for posting here your experience with activating signature-spoofing on XA2.

I have tried to follow your steps, and it seems, that I get stuck at connecting via rsync, which is very frustrating as I can see, that I could PING the XA2, and PING Kubuntu from XA2, but when I run docker I get rsync failed to connect:

Code:

rsync: failed to connect to 192.168.2.15 (192.168.2.15): No route to host (113)
rsync error: error in socket IO (code 10) at clientserver.c(125) [Receiver=3.1.2]

I have this regardless whether I use USB or WiFi.

Code:

krzys@kLatitude-E6430:/media/krzys/c959b919-34c0-4a1f-8e76-da927fb5a488/Sailfish_backup/sailfish-signature-spoofing-lxc$ ping 192.168.2.15
PING 192.168.2.15 (192.168.2.15) 56(84) bytes of data.
64 bytes from 192.168.2.15: icmp_seq=1 ttl=64 time=3.59 ms
64 bytes from 192.168.2.15: icmp_seq=2 ttl=64 time=4.26 ms
64 bytes from 192.168.2.15: icmp_seq=3 ttl=64 time=3.92 ms
^C
--- 192.168.2.15 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 3.599/3.930/4.265/0.271 ms
krzys@kLatitude-E6430:/media/krzys/c959b919-34c0-4a1f-8e76-da927fb5a488/Sailfish_backup/sailfish-signature-spoofing-lxc$ sudo docker run --rm -ti --env SAILFISH=192.168.2.15 --env LXC=1 haystack
[**] 1. Fetch files via RSYNC
rsync: failed to connect to 192.168.2.15 (192.168.2.15): No route to host (113)
rsync error: error in socket IO (code 10) at clientserver.c(125) [Receiver=3.1.2]

I don't know how to dig deeper into this..

Would you be so kind to put here console log of the all steps, when you will be redoing this signature spoofing after Hossa upgrade?

I have no idea, how to debug the problems with rsync inside docker.

Bundyo 2019-05-20 12:19

Re: XA2 - microG - Sailfish signature spoofing
 
You need to make the docker run script stop at some point (to avoid stopping and deleting it), then login with ssh on the running image and you can run commands as usual.

aspergerguy 2019-07-24 09:42

Re: XA2 - microG - Sailfish signature spoofing
 
2 Attachment(s)
Please note that since the release of 3.1.0.11 now relatively easy to achieve this result:https://together.jolla.com/question/...og-in-sfos-31/

Watchmaker 2019-07-26 08:49

Re: XA2 - microG - Sailfish signature spoofing
 
Quote:

Originally Posted by aspergerguy (Post 1558547)
Please note that since the release of 3.1.0.11 now relatively easy to achieve this result:https://together.jolla.com/question/...og-in-sfos-31/

Does this work on Xperia X too, or only XA2?
I don't have the "disable Android system package verification" option in the system settings after the update to 3.1.0.11 on my Xperia X.

aspergerguy 2019-07-26 09:23

Re: XA2 - microG - Sailfish signature spoofing
 
Quote:

Originally Posted by Watchmaker (Post 1558608)
Does this work on Xperia X too, or only XA2?

Only upon XA2 unfortunately.

Watchmaker 2019-07-26 09:39

Re: XA2 - microG - Sailfish signature spoofing
 
Quote:

Originally Posted by aspergerguy (Post 1558611)
Only upon XA2 unfortunately.

Pity... thanks!

ajalkane 2019-07-26 09:49

Re: XA2 - microG - Sailfish signature spoofing
 
What's this "Services Framework (GSF)"? I don't have it checked. How to install it and is it needed?


All times are GMT. The time now is 07:37.

vBulletin® Version 3.8.8