itsjunetime / smserver

An app to allow Jailbroken iPhones to send texts & attachments from their browser
GNU General Public License v3.0
157 stars 26 forks source link

iOS 12 support #129

Open gabrc52 opened 3 years ago

gabrc52 commented 3 years ago

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

itsjunetime commented 3 years ago

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.

sabogalc commented 3 years ago

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

itsjunetime commented 3 years ago

@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.

sabogalc commented 3 years ago

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

itsjunetime commented 3 years ago

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

sabogalc commented 3 years ago

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 commented 3 years ago

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

gabrc52 commented 3 years ago

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

sabogalc commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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?

itsjunetime commented 3 years ago

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.

stevenmirabito commented 3 years ago

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

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
itsjunetime commented 3 years ago

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

vpark commented 3 years ago

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.

yeralin commented 2 years ago

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!

sabogalc commented 2 years ago

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

yeralin commented 2 years ago

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 :)

juan2three commented 5 months ago

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

sabogalc commented 5 months ago

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.