smserver icon indicating copy to clipboard operation
smserver copied to clipboard

iOS 12 support

Open gabrc52 opened this issue 3 years ago • 21 comments

Opening to see if someone has the skills for supporting iOS 12 (and maybe lower versions)?

Alternatively, the UI be decoupled from the server, if it works and there's no UI or only a command-line tool where you have to open a Terminal on the iPhone or SSH to it in order to configure it, it's still pretty fine.

Do you plan support for IOS 12?

Unfortunately, the app is written in SwiftUI, which only supports iOS 13+, and I don’t know UIKit (which is what iOS 12 uses) Its all open source, though, and I would totally welcome another developer forking it and adding support for iOS 12 and below. https://www.reddit.com/r/jailbreak/comments/i7v04g/free_release_smserver_send_texts_from_your/g14cbpg?utm_source=share&utm_medium=web2x&context=3

gabrc52 avatar May 19 '21 05:05 gabrc52

Ok, so turns out it was crazily easy to make a (potentially) iOS 12-compatible CLI version of SMServer (commit).

I don't have an iOS 12 device to test with to verify, but it runs fine (mind you, CLI only — the app is just completely blank if you launch it) on my iOS 14.4.2 6s. I'll upload a build of the 12-compatible version here in a minute for others to test out and verify.

I may expand this later to actually create a UI for iOS 12 and lower (since I have now learned UIKit), but for the time being it'll remain CLI.

Edit: download the .deb here. The binary will be located at /Applications/SMServer12.app/SMServer12. I would really appreciate it if someone could try running it with an iOS 10 - 12 device to see if it functions.

itsjunetime avatar May 19 '21 23:05 itsjunetime

image I was unable to download the .deb, can you upload it to a website like MediaFire, Google Drive, or DropBox?

Update - I was also unable to build the .deb from the source code. Is there any way to build the .deb on Windows? image

Update 2 - I was unable to run this on macOS as well. Am I missing something? Screen Shot 2021-05-21 at 12 52 05 PM

sabogalc avatar May 21 '21 16:05 sabogalc

@CSab6482 sorry about that -- I just fixed the link, and updated the make script as well so that it will work on your mac. Unfortunately, there's no way (as of right now) to build it on windows.

itsjunetime avatar May 21 '21 18:05 itsjunetime

I got it installed on my iPod, and just like you said, the app just shows a black screen when I open it. How do I start the server? Through terminal/SSH commands? image IMG_0001

sabogalc avatar May 21 '21 19:05 sabogalc

Yup, SSH in and try running /Applications/SMServer12/SMServer12 -r to see if it will show that the server has started up

itsjunetime avatar May 21 '21 19:05 itsjunetime

image I tried SMServer12 -r, SMServer12.app -r, and SMServer -r. Am I in the wrong directory or running the wrong commmand?

Update - Here are the contents of the SMServer12.app folder image I also have an SMServer.app folder image

sabogalc avatar May 21 '21 19:05 sabogalc

Another update, when I open Sileo on my iPod, I now receive this error message, after which the app stays frozen. I am going to Restore RootFS using checkra1n and rejailbreak. Maybe an error occurred during my installation of the .deb? I'll retry this with Cydia/Substitute instead of Sileo/Procursus to see if it makes a difference. Image-1

sabogalc avatar May 21 '21 19:05 sabogalc

I tried SMServer12 -r, SMServer12.app -r, and SMServer -r. Am I in the wrong directory or running the wrong commmand?

@CSab6482 Try ./SMServer12

Unlike Windows, the current directory is not part of the PATH. The dot means current directory.

As for the DPKG error try running dpkg --reconfigure -a

gabrc52 avatar May 21 '21 19:05 gabrc52

When I have Cydia set as my package manager, I received an error. However, the SMServer app still showed up after I ran uicache image Cydia then gave me this error message Image-1

sabogalc avatar May 21 '21 20:05 sabogalc

I tried SMServer12 -r, SMServer12.app -r, and SMServer -r. Am I in the wrong directory or running the wrong commmand?

@CSab6482 Try ./SMServer12

Unlike Windows, the current directory is not part of the PATH. The dot means current directory.

As for the DPKG error try running dpkg --reconfigure -a

This worked! image I'll see if the dpkg --reconfigure -a command fixes my problems with Cydia and Sileo, and I'll put my findings in a comment.

sabogalc avatar May 21 '21 20:05 sabogalc

I tried SMServer12 -r, SMServer12.app -r, and SMServer -r. Am I in the wrong directory or running the wrong commmand?

@CSab6482 Try ./SMServer12

Unlike Windows, the current directory is not part of the PATH. The dot means current directory.

As for the DPKG error try running dpkg --reconfigure -a

I was not able to run dpkg --reconfigure -a while using Sileo/Procursus image

sabogalc avatar May 21 '21 20:05 sabogalc

As far as I can tell, it works perfectly on iOS 12. The only error I could find was that installing the .deb broke my package managers, but I'm sure that once the tweak is available on Twickd, this problem will not occur. SMServer 12 5 3

Edit - Does this confirm that SMServer will also work on iOS 10 or 11? Or do we need other people to test that?

sabogalc avatar May 21 '21 20:05 sabogalc

Does this confirm that SMServer will also work on iOS 10 or 11? Or do we need other people to test that?

I think we'll need to test those as well. I don't know if I'm going to release this on a public repository (since it's CLI-only (for now, at least), and that would confuse people), so it's not crucial that I do extensive testing for those versions, but I think I'll upload a compiled version here, with instructions on how to use, if people would like to use it.

itsjunetime avatar May 22 '21 17:05 itsjunetime

I successfully installed the deb posted earlier on an old iPhone 5c with iOS 10.3.3 and can run the server. Some notes:

  • iOS 10.3.3 does not support LZMA compression out of the box, so I needed to install the "XZ Utils" tweak from Cydia for dpkg to unpack the deb
  • Specific to the iPhone 5c (32-bit so no APFS and very little space on the system partition), I needed to use iCleaner to remove languages and keyboards to make enough room to install SMServer
  • The dpkg errors appear to stem from the postinst script checking for /Applications/SMServer.app/SMServer whereas the binary for this build unpacks to /Applications/SMServer12.app/SMServer12

However, it appears the bundled libsmserver is 64-bit only? The UI doesn't load any messages nor can I send messages, and I see this in the syslog:

Jun 13 19:55:57 iMessage-Server syncdefaultsd[1015] <Notice>: MS:Notice: Injecting: com.apple.syncdefaultsd [syncdefaultsd] (1349.70)
Jun 13 19:55:57 iMessage-Server syncdefaultsd[1015] <Error>: MS:Error: binary does not support this cpu type
Jun 13 19:55:57 iMessage-Server syncdefaultsd[1015] <Error>: MS:Error: failure to check libsmserver.dylib

stevenmirabito avatar Jun 14 '21 17:06 stevenmirabito

@stevenmirabito thank you so much for checking that out! With regard to the issues you listed:

  • I'll make sure to add XZ Utils to the dependency list for SMServer12 & fix the build script to check for it instead of SMServer.app
  • You are correct that libsmserver is 64-bit only. Since up until this point, SMServer only supported iOS 13+, there was no need to build it for armv7. I can update the makefile to add support for armv7 as well.

itsjunetime avatar Jun 17 '21 02:06 itsjunetime

Does this mean that the next version will support iOS 12 out of the box? I tried the above method on my iOS 12.5.3 but encountered the same half built package error CSab6482 was seeing.

When I rebooted before cleaning up the package I wasn't able to rejailbreak and had to completely reset my phone.

vpark avatar Jun 20 '21 21:06 vpark

I just fixed the link image

Hey, your link is dead. Could you please upload the file to some more reliable file hosting? Maybe Google Drive?

Trying to install it on my old iPad Mini 2 with iOS 9.3.6 :)

Thank you in advance!

yeralin avatar Feb 03 '22 05:02 yeralin

Could you please upload the file to some more reliable file hosting?

Here ya go. https://www.mediafire.com/file/yendwdxoc5ob6rx/SMServer12.deb/file

Edit -

Trying to install it on my old iPad Mini 2 with iOS 9.3.6

I'm not sure if this will work on iOS 9, but please test it out and let us know. If it doesn't work, you can use Remote Messages as an alternative. iOS 5 version iOS 6 version iOS 7 version iOS 8 version iOS 9 version I also made a custom dark mode theme for Remote Messages that you can check out below. https://redd.it/i5rddy

sabogalc avatar Feb 03 '22 06:02 sabogalc

Hey, sorry I didn't realize I can build it myself using make.sh -ndl command.

Tried installing both .deb and .ipa to no avail on iPad Mini 2 with iOS 9.3.6.

However, Remote Messages worked perfectly. Thank you so much for a reference!

Cheers :)

yeralin avatar Feb 03 '22 15:02 yeralin

Any update on the support? Works flawlessly via CLI but curious about the frontend to be able to adjust settings

juan2three avatar Apr 02 '24 06:04 juan2three

The last commit was in 2022 and the developer now works full-time at Beeper so I think it's safe to say the project will not be updated further unless somebody forks it.

sabogalc avatar Apr 03 '24 23:04 sabogalc