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

[[LibPass sharedInstance] unlockWithCodeEnabled:NO] doesn't work #12

Open
xfl00d opened this issue Dec 23, 2014 · 4 comments
Open

[[LibPass sharedInstance] unlockWithCodeEnabled:NO] doesn't work #12

xfl00d opened this issue Dec 23, 2014 · 4 comments

Comments

@xfl00d
Copy link

xfl00d commented Dec 23, 2014

I have tried to use this method call from the wiki:

[[LibPass sharedInstance] unlockWithCodeEnabled:NO]

But it doesn't work in the tweak. The view changes to the passcode pad, but no unlock. This method works instead when there is no passcode set. Also tried to manually call:

[(SBLockScreenManager *)[%c(SBLockScreenManager) sharedInstance] unlockUIFromSource:1 withOptions:nil];

But no luck. Seems like a problem to me. Or am I doing something wrong?

@xfl00d
Copy link
Author

xfl00d commented Dec 23, 2014

I am using iOS 8.1.2 for clarification.

@bd452
Copy link
Owner

bd452 commented Dec 23, 2014

Check out the implementation for ByPass

It is an extremely simple tweak that uses this part of the libPassword library. Confirmed working iOS 7.x-8.x

Also, make sure that you have entered your passcode at least once since libPassword was installed, otherwise it won't work.

@xfl00d
Copy link
Author

xfl00d commented Dec 25, 2014

Hi! Thanks for the reply. I did what you told and looked at ByPass code, also set up LibPass, by dragging it into the theos/include folder and putting the libPass.dylib into theos/lib.

Then I have imported (#import < libPass/libPass.h >) the library into my Tweak.xm main file. Also set up the Makefile like yours in ByPass. When I try to compile, the result is this:

schermata 2014-12-25 alle 18 08 28

Any idea why this happens? It doesn't find the LibPass class when I do:

[[LibPass sharedInstance] unlockWithCodeEnabled:NO];

Could you help me out? Thanks.

@twodayslate
Copy link
Collaborator

Try %c(libPass)

-Zac on his iPhone

On Dec 25, 2014, at 12:14, xfl00d [email protected] wrote:

Hi! Thanks for the reply. I did what you told and looked at ByPass code, also set up LibPass, by dragging it into the theos/include folder and putting the libPass.dylib into theos/lib.

Then I have imported (#import ) the library into my Tweak.xm main file. Also set up the Makefile like yours in ByPass. When I try to compile, the result is this:

Any idea why this happens? It doesn't find the LibPass class when I do:

[[LibPass sharedInstance] unlockWithCodeEnabled:NO];
Could you help me out? Thanks.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants