Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling tweak injection breaks application permissions #2

Closed
runmain opened this issue Dec 28, 2023 · 12 comments
Closed

Enabling tweak injection breaks application permissions #2

runmain opened this issue Dec 28, 2023 · 12 comments
Labels
bug Something isn't working confirmed This is known and confirmed help wanted Extra attention is needed

Comments

@runmain
Copy link

runmain commented Dec 28, 2023

After respring, the mobile app cannot receive push notifications, and the app cannot be found in the settings

disable tweak and re-able tweek enabler , app can receive push notifications

@runmain runmain added the bug Something isn't working label Dec 28, 2023
@runmain

This comment was marked as abuse.

@imnltsa

This comment was marked as outdated.

@imnltsa imnltsa pinned this issue Dec 29, 2023
@imnltsa imnltsa changed the title the mobile app cannot receive push notifications Enabling tweak injection breaks application permissions Dec 29, 2023
@imnltsa imnltsa added the help wanted Extra attention is needed label Dec 29, 2023
@roothide
Copy link
Collaborator

roothide commented Dec 29, 2023

I believe it's how the bootstrap functions. This is a legitimate issue. Reproduce with Discord by enabling Discord in the bootstrap, downloading the Enmity tweak from https://enmity.app, respring and whatnot, and you won't receive notifications.

I believe it doesn't show in settings because it isn't actually the 100% original app anymore, you can see this in 'Show Details' when installing a tweak that modifies applications in Sileo, the TeamID code signature stuff.

Currently,

  • No known fix for notifications.
  • Disable tweak injection in Bootstrap's AppEnabler to show app in settings (think of switching an app from System to User in TrollStore)

Application permissions (notifications, camera, microphone) are reset when messing with apps in the bootstrap. To reproduce application permission reset, open AppEnabler, disable and enable an app. This will ASK PERMISSIONS AGAIN on app open or when the specific permission is needed. Custom app icons (think of the custom app icons you can set in Sileo > Profile Picture > Alternate Icons) are RESET when an application is disabled/enabled through AppEnabler.

Enabling tweak injection into apps CHANGES THE APP. It isn't the same anymore. It will act like a completely different app. Permissions will reset, icons will reset, some permissions don't even work, you won't get notifications, URL schemes are lost (where's Sileos URL scheme?), App Store doesn't recognize the applications (can we use shims or whatever, dummy apps?), and this breaks widgets (you can test this by enabling tweak injection into the App Store). THIS IS KNOWN. This can't be fixed as this isn't a full-fledged jailbreak, it's doing what it can!

Until we get a full jailbreak, I believe this issue will continue to exist. It's unfortunate, but it's how this works.

@"filza", 
@"db-lmvo0l08204d0a0",
@"boxsdk-810yk37nbrpwaee5907xc4iz8c1ay3my",
@"com.googleusercontent.apps.802910049260-0hf6uv6nsj21itl94v66tphcqnfl172r",
@"sileo",
@"zbra", 
@"santander", 
@"icleaner", 
@"xina", 
@"ssh",
@"apt-repo", 
@"cydia",
@"activator",
@"postbox",

we blocked these urlschemes to avoid jailbreak detection, we will restore them once we can inject into system processes.

@roothide
Copy link
Collaborator

When you enable tweaks for an app in the appstore, it will be registered as a removable system app just like it is in the trollstore, so you may not see them in preferences. You can disable tweaks for it at any time to restore it.

We tested the notifications of the app store app on iOS15/16. As long as the app has registered the notification service and can receive message notifications normally before enabling tweak for it, it should also be able to receive message notifications normally after enabling tweak. .

@roothide
Copy link
Collaborator

well, it does not get notifications after rebooting the device or rebuilding the apps, and we'll try to fix that.

@roothide
Copy link
Collaborator

roothide commented Dec 29, 2023

the current workaround is to disable tweaks for the app, launch the app once, and then enable tweaks for the app. iOS will still retain the notification for it until you reboot/respring the device.

@imnltsa
Copy link
Collaborator

imnltsa commented Dec 30, 2023

Bit of a side effect, but tweaks that list user applications (namely for enabling tweak functionality) will cease to function unless given a 'global injection' (inject into all apps) feature. You can't enable tweak injection into an app (that is now system) and use a tweak that specifically targets a user application. There is no point in time where both can occur, being tweak injection, and the tweak recognizing the user app and enabling its functionality. Most tweaks are globally injected, not requiring you to choose specific applications in its preferences.

@imnltsa

This comment was marked as resolved.

@imnltsa imnltsa added the confirmed This is known and confirmed label Jan 4, 2024
@imnltsa imnltsa pinned this issue Jan 10, 2024
roothide pushed a commit that referenced this issue Jan 16, 2024
Keep CreditsView.swift consistent with latest credits.h
@davidkh88
Copy link

well, it does not get notifications after rebooting the device or rebuilding the apps, and we'll try to fix that.

So have you found out the solution to that issue yet? The push notifications of App Store apps after enabling the tweak.

@imnltsa
Copy link
Collaborator

imnltsa commented Jan 19, 2024

well, it does not get notifications after rebooting the device or rebuilding the apps, and we'll try to fix that.

So have you found out the solution to that issue yet? The push notifications of App Store apps after enabling the tweak.

There is currently no permanent fix.

@davidkh88
Copy link

well, it does not get notifications after rebooting the device or rebuilding the apps, and we'll try to fix that.

So have you found out the solution to that issue yet? The push notifications of App Store apps after enabling the tweak.

There is currently no permanent fix.

Understood!

@imnltsa
Copy link
Collaborator

imnltsa commented Mar 8, 2024

This issue is kind of tricky. For one, the issue with notifications has been fixed. On the other hand, rebuilding applications in the Bootstrap application will essentially reset permissions for applications, prompting you to allow them when next requested by the application, though it seems to be only all TrollStore apps.

Will close. Mitigation to this issue is as simple as setting up the applications again, or simply not rebuilding the applications, as issues that would be fixed by this button are usually fixable by other means.

@imnltsa imnltsa closed this as completed Mar 8, 2024
@imnltsa imnltsa unpinned this issue Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed This is known and confirmed help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants