Active Topics

 


Reply
Thread Tools
Posts: 807 | Thanked: 1,589 times | Joined on Aug 2014
#1
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.
Attached Images
  

Last edited by aspergerguy; 2019-04-23 at 19:25. Reason: Addition
 

The Following 11 Users Say Thank You to aspergerguy For This Useful Post:
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#2
Originally Posted by aspergerguy View Post
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.
__________________
My N9/N950 projects:
 

The Following 4 Users Say Thank You to ajalkane For This Useful Post:
Posts: 807 | Thanked: 1,589 times | Joined on Aug 2014
#3
Originally Posted by ajalkane View Post
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.
 

The Following 3 Users Say Thank You to aspergerguy For This Useful Post:
Posts: 4 | Thanked: 5 times | Joined on Jan 2016
#4
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.

Last edited by N9x3; 2019-05-18 at 08:01.
 

The Following 3 Users Say Thank You to N9x3 For This Useful Post:
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#5
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.
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 

The Following 2 Users Say Thank You to Bundyo For This Useful Post:
Posts: 807 | Thanked: 1,589 times | Joined on Aug 2014
#6
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/
Attached Images
  
 

The Following 5 Users Say Thank You to aspergerguy For This Useful Post:
Posts: 292 | Thanked: 294 times | Joined on Jan 2012 @ Milan, Italy
#7
Originally Posted by aspergerguy View Post
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.
 

The Following 3 Users Say Thank You to Watchmaker For This Useful Post:
Posts: 807 | Thanked: 1,589 times | Joined on Aug 2014
#8
Originally Posted by Watchmaker View Post
Does this work on Xperia X too, or only XA2?
Only upon XA2 unfortunately.
 

The Following 5 Users Say Thank You to aspergerguy For This Useful Post:
Posts: 292 | Thanked: 294 times | Joined on Jan 2012 @ Milan, Italy
#9
Originally Posted by aspergerguy View Post
Only upon XA2 unfortunately.
Pity... thanks!
 

The Following 3 Users Say Thank You to Watchmaker For This Useful Post:
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#10
What's this "Services Framework (GSF)"? I don't have it checked. How to install it and is it needed?
__________________
My N9/N950 projects:
 

The Following 2 Users Say Thank You to ajalkane For This Useful Post:
Reply

Tags
spoofing


 
Forum Jump


All times are GMT. The time now is 20:15.