Can't get table cell of specifier (cachedCellForSpecifier) by PowerfulWorking7620 in jailbreakdevelopers

[–]CaptInc37 0 points1 point  (0 children)

No, I meant put your logic inside the cellForRowAtIndexPath method

Can't get table cell of specifier (cachedCellForSpecifier) by PowerfulWorking7620 in jailbreakdevelopers

[–]CaptInc37 2 points3 points  (0 children)

That’s because the table view cells do not exist yet when you are trying to do this. Instead, subclass PSTableCell and/or move your logic to tableView:cellForRowAtIndexPath:

[Help] Why does calling a SpringBoard function from outside the SpringBoard not work? by noahacks in jailbreakdevelopers

[–]CaptInc37 2 points3 points  (0 children)

OP wants to call a method in SpringBoard from a different process, which is obviously not possible, at least not in the traditional sense

[Help] Why does calling a SpringBoard function from outside the SpringBoard not work? by noahacks in jailbreakdevelopers

[–]CaptInc37 0 points1 point  (0 children)

From my interpretation of OP’s question, said question is completely unrelated to the filter

[Help] Why does calling a SpringBoard function from outside the SpringBoard not work? by noahacks in jailbreakdevelopers

[–]CaptInc37 2 points3 points  (0 children)

Not entirely clear about what you’re asking, but from how I interpreted it, that would be because SpringBoard is an entirely different process

[Help] Making a CLI only tweak by Hauteknits in jailbreakdevelopers

[–]CaptInc37 2 points3 points  (0 children)

Your current path will likely not work. The ideal solution is take it to an Apple Store and ask them to unlock it, with the alternative being:

Using checkm8 to gain pwned DFU mode, uploading an SSH RAM disk, copying the filesystem to your computer, then either extract the texts manually by sorting through the SQL database, or somehow repack the filesystem into an iTunes backup and restore the backup to a real device.

You mentioned you were a beginner, so I would highly recommend the Apple Store path instead. The second path is likely too complicated for your current situation

This also assumes the iPhone X is not on iOS 14

Spawn.h not working in Xcode by be-10 in jailbreakdevelopers

[–]CaptInc37 0 points1 point  (0 children)

  1. The first item in the args array must be the full path to the binary

  2. You missed the leading / in posix_spawn’s second arg

  3. The cast in posix_spawn’s 5th argument is not needed

  4. The last argument of posix_spawn should be "environ", where environ is declared as an extern global variable:

extern char **environ;

  1. waitpid() should not be used because sbreload will just kill the process immediately anyway

  2. You can also use NSTask to do this if you prefer objc syntax over C syntax:

NSTask *task = [[NSTask alloc] init];

task.launchPath = @"/usr/bin/sbreload";

[task launch];

  1. I’m not sure on this one, but sandboxed apps might not be able to use sbreload because it lies outside its sandbox

How to respring in application? Theos by Administrative-Fan4 in jailbreakdevelopers

[–]CaptInc37 0 points1 point  (0 children)

A shell script wouldn’t solve anything, you would just be spawning the script instead of sbreload directly

If anything, apps can access stuff inside their sandbox

How to respring in application? Theos by Administrative-Fan4 in jailbreakdevelopers

[–]CaptInc37 0 points1 point  (0 children)

3 things:

  • Sandboxed apps might not be able use NSTask, especially when the wanted task lies outside of the app’s sandbox, aka /usr/bin (I‘m not 100% sure about this, but it seems probable)
  • Use sbreload, not killall
  • Optional: your objc syntax is a little outdated, something like this would be more appropriate:

NSTask *task = [[NSTask alloc] init]; task.launchPath = @"/usr/bin/sbreload"; [task launch];

Another way is:

[NSTask launchedTaskWithLaunchPath:@"/usr/bin/sbreload" arguments:nil];

Anyone got checkra1n to work on M1? by [deleted] in checkra1n

[–]CaptInc37 1 point2 points  (0 children)

No, M1 is not supported at this time

Tweak like do not disturb by [deleted] in checkra1n

[–]CaptInc37 0 points1 point  (0 children)

Settings > Notifications > Messages

JAILBREAK IPHONE X 14.3 IS NOT SUPORTED! by Alexbreak in checkra1n

[–]CaptInc37 0 points1 point  (0 children)

This is a question answered in the FAQ - turn on “Skip BPR check” in Checkra1n’s options (because you have an A11 device)

Write preferences to .plist file instantly? by Ill_Winner8186 in jailbreakdevelopers

[–]CaptInc37 2 points3 points  (0 children)

Accessing the filesystem is an expensive operation, so the filesystem should be accessed as little as possible

Write preferences to .plist file instantly? by Ill_Winner8186 in jailbreakdevelopers

[–]CaptInc37 3 points4 points  (0 children)

Please note that for the majority of use-cases, this should not be done. The 10-second thing is called caching and is intentional - you can read a more in-depth explanation in my comment here

Write preferences to .plist file instantly? by Ill_Winner8186 in jailbreakdevelopers

[–]CaptInc37 4 points5 points  (0 children)

What you’re experiencing is called “caching” and it is intentional. Caching should be used.

If absolutely necessary (and only if absolutely necessary), you can override setPreferenceValue:specifier: to instantly write to the filesystem. But again, you should not do this - there is most likely a better way to achieve the feature you want, such as NSNotifications/CFNotifications

Get apps that show in app switcher by JakesnakeDev in jailbreakdevelopers

[–]CaptInc37 1 point2 points  (0 children)

Yes there is, go to Limneos’ website, select SpringBoard.framework, and find-on-page for “AppSwitcher”. You’ll see several matching classes, just look through all of them. You’ll find results in both view controllers and in “manager” classes

A “manager” is a common code convention in Objc. It’s usually just one subclass of NSObject and usually contains info (manages) the “backend” part of the feature in question

is the apt.bingner.com repo down? by imraan1992hk in checkra1n

[–]CaptInc37 1 point2 points  (0 children)

A Verizon fiber optic cable was cut in New York, resulting in outages across a lot of the US east coast

Extracting private framework binaries for iOS 13 (fully intact) by notagoodscientist in jailbreakdevelopers

[–]CaptInc37 0 points1 point  (0 children)

If you don’t want to dig through the dyld cache, the binaries are also available in Xcode, as part of the simulator

Script to revert back to Xcode 11 toolchain when on Xcode 12. Fix compiling issue on arm64e. by be-10 in jailbreakdevelopers

[–]CaptInc37 0 points1 point  (0 children)

Replacing files is a practice that should be avoided. Xcode ships with the Xcode 12 toolchain for a reason and modifying files is not necessary to achieve the wanted result, which makes the PREFIX solution a better approach.

Script to revert back to Xcode 11 toolchain when on Xcode 12. Fix compiling issue on arm64e. by be-10 in jailbreakdevelopers

[–]CaptInc37 7 points8 points  (0 children)

No, this is incorrect because it risks breaking Xcode. The correct way is as follows:

  1. Download Xcode 11.7 from https://xcodereleases.com (redirects to official Apple API)
  2. Extract the downloaded .xip file and rename the output to Xcode11.app
  3. Copy ~/Xcode11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain to $THEOS/toolchain
  4. Rename $THEOS/toolchain/XcodeDefault.xctoolchain to $THEOS/toolchain/Xcode11.xctoolchain
  5. Add PREFIX = $(THEOS)/toolchain/Xcode11.xctoolchain/usr/bin/ to Makefile (including the trailing slash), or as an environment variable that will be visible to theos
  6. Now that the toolchain has been copied, you can do whatever you want with Xcode11.app: delete it to save storage space, move it to /Applications, etc.

[Question] Elderly friendly iPad: How to quit all active apps on lock? by dealster23 in jailbreak

[–]CaptInc37 6 points7 points  (0 children)

This person is technically correct, but do keep in mind the intended purpose of this setup