Jump to content

Theos - What’s wrong with my tweak.xm?


Go to solution Solved by Fadexz,

15 posts in this topic

Recommended Posts

Posted (edited)

What mistake did I make?

#import <substrate.h>
#import <Foundation/Foundation.h>

%hook OTDeviceSafetyUseCase

-(BOOL) isDeviceSafeToUse {
return TRUE;
}
%end

LwpLTFG.jpg

It’s been a while since I’ve created a tweak.

Updated by Fadexz
Marked as solved.
Posted
1 minute ago, Joka said:

You forgot to add "Made by Joka"

Oh of course, how could I forget.  -_-

Posted

Theos things you wrote Return with a capital letter. remove that return line & type it again (no copy pasting)

 

return TRUE;

Posted
26 minutes ago, Ted2 said:

Theos things you wrote Return with a capital letter. remove that return line & type it again (no copy pasting)

 

return TRUE;

I did type it in lowercase, it just shows like that for some reason in theos.

I also tried rewriting it but that seemed to not fix it.

Posted (edited)

It didn't do anything.

#import <substrate.h>
#import <Foundation/Foundation.h>

string Return = "return";

%hook OTDeviceSafetyUseCase

-(BOOL) isDeviceSafeToUse {
Return TRUE;
}
%end

Here's my makefile if there's anything that needs to be added. I removed ARCHS ...

include $(THEOS)/makefiles/common.mk

TWEAK_NAME = OpalDisableJailbreakCheck
OpalDisableJailbreakCheck_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk
Updated by Fadexz
Posted
12 hours ago, Archangel04 said:

does it work in flex?

Yes, i'm just trying to turn it into a tweak.

I was thinking about creating a new project but re-writing it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines