Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hackcatml/f7b7e0458df04e9bdd13583490cf0be1 to your computer and use it in GitHub Desktop.
Save hackcatml/f7b7e0458df04e9bdd13583490cf0be1 to your computer and use it in GitHub Desktop.
AppSyncUnified ellekit error
I faced this issue with the following environment:
iPhoneX iOS 16.5.1, palera1n rootless jb, ellekit 1.0
@hackcatml
Copy link
Author

hackcatml commented Jul 13, 2023

First of all, need THEOS of course

git clone https://github.com/akemin-dayo/AppSync.git
Download fishhook.c, fishhook.h from https://github.com/facebook/fishhook
Then, move fishhook.c and fishhook.h to the AppSync/AppSyncUnified-installd/ directory

Modifiy some files

// AppSync/AppSyncUnified-installd/AppSyncUnified-installd.x
...

#import "cdhash.h"
#import "dump.h"
#import "fishhook.h"

...

#define HOOK_FUNC(name, image) do { \
	void *_ ## name = MSFindSymbol(image, "_" #name); \
	if (_ ## name == NULL) { \
		LOG(@"Failed to load symbol: " #name "."); \
		return; \
	} \
	rebind_symbols((struct rebinding[1]){{_ ## name, (void *) custom_ ## name, (void **) &original_ ## name}}, 1); \
} while(0)

...

// AppSync/AppSyncUnified-installd/Makefile
include $(THEOS)/makefiles/common.mk

TWEAK_NAME = AppSyncUnified-installd

AppSyncUnified-installd_FILES = AppSyncUnified-installd.x dump.cpp cdhash.m fishhook.c
AppSyncUnified-installd_CFLAGS += -fvisibility=hidden -Wno-unused-private-field
AppSyncUnified-installd_LIBRARIES = substrate

include $(THEOS_MAKE_PATH)/tweak.mk

For rootless

// AppSync/Makefile
...

THEOS_PACKAGE_DIR_NAME = debs
PACKAGE_VERSION = $(THEOS_PACKAGE_BASE_VERSION)

THEOS_PACKAGE_SCHEME = rootless

include $(THEOS)/makefiles/common.mk

...

Build AppSync

make clean && make package

Move the .deb file located in the AppSync/debs/ directory to your device, and then install it

In the palera1n app, Actions --> Userspace Reboot

Install IPA using Filza or appinst (if still same error, redo userspace reboot)

If the installed app crashes, try to sign the binary using ldid with the following command:
ldid -S /PATH/TO/BINARY

@hackcatml
Copy link
Author

hackcatml commented Jul 13, 2023

However, sometimes I need to do userspace reboot more than once :(
Definitely there's some problem with MSHookFunction
If you replace every MSHookFunction in "AppSyncUnified-installd.x" file with DobbyHook(https://github.com/jmpews/Dobby), then it works perfectly!

@Lizynz
Copy link

Lizynz commented Sep 1, 2023

Thank you, AppSync is now working.

@MuhammadBoubes
Copy link

Well I have the same problem but I didn’t understand how to apply the fix…
Could you please explain how to do this using simple steps? 🥺

@Lizynz
Copy link

Lizynz commented Sep 20, 2023

Well I have the same problem but I didn’t understand how to apply the fix…
Could you please explain how to do this using simple steps? 🥺

Just repeat the steps and everything will work out.

@MuhammadBoubes
Copy link

Well I have the same problem but I didn’t understand how to apply the fix…
Could you please explain how to do this using simple steps? 🥺

Just repeat the steps and everything will work out.

But I didn’t know how to apply these steps…
What is THEOUS and fishhook and how can I modify the files?
Help me please if you can😊

@MuhammadBoubes
Copy link

Well I have the same problem but I didn’t understand how to apply the fix…
Could you please explain how to do this using simple steps? 🥺

Just repeat the steps and everything will work out.

But I didn’t know how to apply these steps… What is THEOUS and fishhook and how can I modify the files? Help me please if you can😊

https://inlnk.ru/yOPwY7

IMG_1324

@Lizynz
Copy link

Lizynz commented Sep 20, 2023

Well I have the same problem but I didn’t understand how to apply the fix…
Could you please explain how to do this using simple steps? 🥺

Just repeat the steps and everything will work out.

But I didn’t know how to apply these steps… What is THEOUS and fishhook and how can I modify the files? Help me please if you can😊

https://inlnk.ru/yOPwY7

IMG_1324

Download google disk

@MuhammadBoubes
Copy link

disk

I’ve already installed the same version 112 from the main source in sileo…

@Lizynz
Copy link

Lizynz commented Sep 21, 2023

disk

I’ve already installed the same version 112 from the main source in sileo…

The version that dropped above, it has these changes. You just didn't understand.

@MuhammadBoubes
Copy link

disk

I’ve already installed the same version 112 from the main source in sileo…

The version that dropped above, it has these changes. You just didn't understand.

Ok I uninstalled appsync from sileo and then installed the deb file you sent using filza.
It works now and installs ipa files successfully but only itorrent runs fine, other apps crash immediately when opened.
Any instructions?

@Lizynz
Copy link

Lizynz commented Sep 21, 2023

disk

I’ve already installed the same version 112 from the main source in sileo…

The version that dropped above, it has these changes. You just didn't understand.

Ok I uninstalled appsync from sileo and then installed the deb file you sent using filza. It works now and installs ipa files successfully but only itorrent runs fine, other apps crash immediately when opened. Any instructions?

At the end of the instruction, there is a solution.

@MuhammadBoubes
Copy link

disk

I’ve already installed the same version 112 from the main source in sileo…

The version that dropped above, it has these changes. You just didn't understand.

Ok I uninstalled appsync from sileo and then installed the deb file you sent using filza. It works now and installs ipa files successfully but only itorrent runs fine, other apps crash immediately when opened. Any instructions?

At the end of the instruction, there is a solution.

Ok I did a userspace reboot many times but nothing is solved.
And I literally don’t know how to implement this solution: “ If the installed app crashes, try to sign the binary using ldid with the following command:
ldid -S /PATH/TO/BINARY”
Could you help me please?

@MuhammadBoubes
Copy link

disk

I’ve already installed the same version 112 from the main source in sileo…

The version that dropped above, it has these changes. You just didn't understand.

Ok I uninstalled appsync from sileo and then installed the deb file you sent using filza. It works now and installs ipa files successfully but only itorrent runs fine, other apps crash immediately when opened. Any instructions?

At the end of the instruction, there is a solution.

I tried to do the solution using newterm 3 but nothing happened. What’s wrong that I’m doing?🥺
IMG_1350

@Lizynz
Copy link

Lizynz commented Sep 23, 2023

disk

I’ve already installed the same version 112 from the main source in sileo…

The version that dropped above, it has these changes. You just didn't understand.

Ok I uninstalled appsync from sileo and then installed the deb file you sent using filza. It works now and installs ipa files successfully but only itorrent runs fine, other apps crash immediately when opened. Any instructions?

At the end of the instruction, there is a solution.

I tried to do the solution using newterm 3 but nothing happened. What’s wrong that I’m doing?🥺 IMG_1350

The problem is that you don't want to figure it out on your own. You have to choose a binary, and you choose an ipa file. Everything I write is unlikely to understand anything, look at the instructions on youtube or read them on the Internet.

@MuhammadBoubes
Copy link

disk

I’ve already installed the same version 112 from the main source in sileo…

The version that dropped above, it has these changes. You just didn't understand.

Ok I uninstalled appsync from sileo and then installed the deb file you sent using filza. It works now and installs ipa files successfully but only itorrent runs fine, other apps crash immediately when opened. Any instructions?

At the end of the instruction, there is a solution.

I tried to do the solution using newterm 3 but nothing happened. What’s wrong that I’m doing?🥺 IMG_1350

The problem is that you don't want to figure it out on your own. You have to choose a binary, and you choose an ipa file. Everything I write is unlikely to understand anything, look at the instructions on youtube or read them on the Internet.

Of course I won’t figure it out because I’m not a programmer and I don’t even know what is a binary file.
Anyway, I looked the internet as you instructed and found that it’s the .app file that I need to sign so I did the same step for this file and still the same problem.
I’m probably wrong so could you help an idiot guy who can’t define what is binary to solve his problem?
I couldn’t find anyone on the internet who solved this issue exactly other than you so you are my only hero…
Thanks alot 😊

@MuhammadBoubes
Copy link

disk

I’ve already installed the same version 112 from the main source in sileo…

The version that dropped above, it has these changes. You just didn't understand.

Ok I uninstalled appsync from sileo and then installed the deb file you sent using filza. It works now and installs ipa files successfully but only itorrent runs fine, other apps crash immediately when opened. Any instructions?

At the end of the instruction, there is a solution.

I tried to do the solution using newterm 3 but nothing happened. What’s wrong that I’m doing?🥺 IMG_1350

The problem is that you don't want to figure it out on your own. You have to choose a binary, and you choose an ipa file. Everything I write is unlikely to understand anything, look at the instructions on youtube or read them on the Internet.

Of course I won’t figure it out because I’m not a programmer and I don’t even know what is a binary file. Anyway, I looked the internet as you instructed and found that it’s the .app file that I need to sign so I did the same step for this file and still the same problem. I’m probably wrong so could you help an idiot guy who can’t define what is binary to solve his problem? I couldn’t find anyone on the internet who solved this issue exactly other than you so you are my only hero… Thanks alot 😊
IMG_1351

@Lizynz
Copy link

Lizynz commented Sep 23, 2023

disk

I’ve already installed the same version 112 from the main source in sileo…

The version that dropped above, it has these changes. You just didn't understand.

Ok I uninstalled appsync from sileo and then installed the deb file you sent using filza. It works now and installs ipa files successfully but only itorrent runs fine, other apps crash immediately when opened. Any instructions?

At the end of the instruction, there is a solution.

I tried to do the solution using newterm 3 but nothing happened. What’s wrong that I’m doing?🥺 IMG_1350

The problem is that you don't want to figure it out on your own. You have to choose a binary, and you choose an ipa file. Everything I write is unlikely to understand anything, look at the instructions on youtube or read them on the Internet.

Of course I won’t figure it out because I’m not a programmer and I don’t even know what is a binary file. Anyway, I looked the internet as you instructed and found that it’s the .app file that I need to sign so I did the same step for this file and still the same problem. I’m probably wrong so could you help an idiot guy who can’t define what is binary to solve his problem? I couldn’t find anyone on the internet who solved this issue exactly other than you so you are my only hero… Thanks alot 😊 IMG_1351

The binary file is located inside the application, you must first unpack ipa - (name).app - (name). Primer YouTube.app - YouTube (the binary file is called the same as the application itself and does not have permission). Copy the binary file and paste after ldid -S .... Primer ldid -S /var/mobile/Documents/YouTube.app/YouTube and tap enter. Next, create a Payload folder and move (name).app to in it. Pack it in zip and rename it to ipa.

And in order not to suffer, install the TrollHelper application via AppSync.

@MuhammadBoubes
Copy link

disk

I’ve already installed the same version 112 from the main source in sileo…

The version that dropped above, it has these changes. You just didn't understand.

Ok I uninstalled appsync from sileo and then installed the deb file you sent using filza. It works now and installs ipa files successfully but only itorrent runs fine, other apps crash immediately when opened. Any instructions?

At the end of the instruction, there is a solution.

I tried to do the solution using newterm 3 but nothing happened. What’s wrong that I’m doing?🥺 IMG_1350

The problem is that you don't want to figure it out on your own. You have to choose a binary, and you choose an ipa file. Everything I write is unlikely to understand anything, look at the instructions on youtube or read them on the Internet.

Of course I won’t figure it out because I’m not a programmer and I don’t even know what is a binary file. Anyway, I looked the internet as you instructed and found that it’s the .app file that I need to sign so I did the same step for this file and still the same problem. I’m probably wrong so could you help an idiot guy who can’t define what is binary to solve his problem? I couldn’t find anyone on the internet who solved this issue exactly other than you so you are my only hero… Thanks alot 😊 IMG_1351

The binary file is located inside the application, you must first unpack ipa - (name).app - (name). Primer YouTube.app - YouTube (the binary file is called the same as the application itself and does not have permission). Copy the binary file and paste after ldid -S .... Primer ldid -S /var/mobile/Documents/YouTube.app/YouTube and tap enter. Next, create a Payload folder and move (name).app to in it. Pack it in zip and rename it to ipa.

And in order not to suffer, install the TrollHelper application via AppSync.

I did the steps you mentioned exactly like you said and then reinstalled the ipa but still crashing…
IMG_1352

@Lizynz
Copy link

Lizynz commented Sep 23, 2023

disk

I’ve already installed the same version 112 from the main source in sileo…

The version that dropped above, it has these changes. You just didn't understand.

Ok I uninstalled appsync from sileo and then installed the deb file you sent using filza. It works now and installs ipa files successfully but only itorrent runs fine, other apps crash immediately when opened. Any instructions?

At the end of the instruction, there is a solution.

I tried to do the solution using newterm 3 but nothing happened. What’s wrong that I’m doing?🥺 IMG_1350

The problem is that you don't want to figure it out on your own. You have to choose a binary, and you choose an ipa file. Everything I write is unlikely to understand anything, look at the instructions on youtube or read them on the Internet.

Of course I won’t figure it out because I’m not a programmer and I don’t even know what is a binary file. Anyway, I looked the internet as you instructed and found that it’s the .app file that I need to sign so I did the same step for this file and still the same problem. I’m probably wrong so could you help an idiot guy who can’t define what is binary to solve his problem? I couldn’t find anyone on the internet who solved this issue exactly other than you so you are my only hero… Thanks alot 😊 IMG_1351

The binary file is located inside the application, you must first unpack ipa - (name).app - (name). Primer YouTube.app - YouTube (the binary file is called the same as the application itself and does not have permission). Copy the binary file and paste after ldid -S .... Primer ldid -S /var/mobile/Documents/YouTube.app/YouTube and tap enter. Next, create a Payload folder and move (name).app to in it. Pack it in zip and rename it to ipa.
And in order not to suffer, install the TrollHelper application via AppSync.

I did the steps you mentioned exactly like you said and then reinstalled the ipa but still crashing… IMG_1352

sudo su
Password:
iPhone:/ root# /var/containers/Bundle/Application/68F466EC-2674-49F5-AD8F-0AC654429A1D/Amperes\ 4.app

The application does not crash

@MuhammadBoubes
Copy link

IMG_1353
I tried an empty password and “alpine” and both didn’t work…

@Lizynz
Copy link

Lizynz commented Sep 23, 2023

IMG_1353
I tried an empty password and “alpine” and both didn’t work…

The password is the one set in the palera1n application when it was first set up.

@MuhammadBoubes
Copy link

IMG_1353
I tried an empty password and “alpine” and both didn’t work…

The password is the one set in the palera1n application when it was first set up.

But I didn’t set any password when I installed palera1n…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment