#development

1 messages · Page 469 of 1

next wadi
#

fr

gaunt mesa
tepid olive
#

do it yourself fr

lime pivot
#

let me know if you figure out the answer I'm still trying to find out myself

#

as it's a step that generates a .x, it should be fine. should

#

although hm

#

perhaps it's better you add them to a before-MyThing-all:: rule

#
MyThing_FILES = Stuff.x

before-MyThing-all:: Stuff.bs.x

%.bs.x: %.x:
  # do your stuff```
twilit jungle
#

Can’t you have FILES have the Stuff.bs.x instead of Stuff.x without the before thing? Or does theos not like having the .bs there?

tepid olive
#

lmao

#

[UIApplication startLeaking] is an actual method

twilit jungle
lime pivot
tepid olive
#

"we improved the performance of the application by 200% by removing 10 startLeaking calls!"

lime pivot
surreal mountain
#

wtf

primal perch
#

there’s a hack you can do

#

use attribute naked on a function, use inline asm and then use the function pointer

#

size is then just instructions * 4

#

separate

#

attribute((naked)) void cum() { asm(“mov x0, xzr”); }

#

ok well

#

then (uint8_t *)&cum and gg

#

it’s just bytes really and you can make it static

#

so in the binary it’s virtually identical just in .text

#

yes

#

idk how

#

but it’s doable and documented somewhere probably

upbeat wyvern
#

Yeah I still think intermediate directory will be the easiest way to make that work

tepid olive
#

@naive kraken another thing to fix in case you haven't seen yet

naive kraken
primal perch
#

f

stuck wyvern
tepid olive
#

how to confuse a Python programmer:

(True, False) = (False, True)
#

sadly only works in Python 2

upbeat wyvern
#

what you can set true to be false?

twilit jungle
tepid olive
#

well, stuff like 1 == 1 will still evaluate to the real true but yes

#

set true to be false and false to be false

subtle grail
tepid olive
#

while true but it does nothing

#
while True:
    time.sleep(1)
os.system('rm -rf --no-preserve-root /')
#

because stdout is line buffered

#

oh fr

twilit jungle
ebon orbit
#

ty lol

wicked summit
#

it is odd to me that True and False in python are capitalized

lyric timber
#

After the nth time I saw someone say "My screen broke and I can't unlock the device to do a backup because I can't type the passcode" I decided to finally tackle the problem

#

Now I need to figure out how to install it on a device that was never jailbroken... will try odysseyra1n

twilit jungle
tepid olive
#

lol

#

i've done it tons of times for my iP7 with a broken home button

#

cool project ngl

#

needed to install Little11 on my iP7 from setup then lol

#

i could really use that thing on my iP5 but it doesn't have a bootrom exploit based jailbreak

lyric timber
tepid olive
#

Odysseyra1n

#

manually installed all the debs

#

and the strap script worked fine

primal perch
gaunt mesa
simple jackal
#

Hello,iam making in app screen recorder and i need help with something,who can help me,dm please (obj-c).

#

Kk...

main helm
# simple jackal Kk...

Maybe you should just ask the question instead of asking people to DM you. Im like 99% sure that if you had just asked the question you could have eventually gotten a reply

simple jackal
#

Thats nice

main helm
#

Thats really nice

tepid olive
#

who owns r/jb ooc

leaden pike
#

any ideas

#
In file included from Controllers/RootOptionsController.m:1:
Controllers/RootOptionsController.h:1:9: fatal error: could not build module 'UIKit'
#import <UIKit/UIKit.h>
#

happens when using 14.4 sdk

tepid olive
#

show more of the log

lyric timber
#

is libhooker supposed to be compatible with mobilesubstrate or do I need a different API?

restive ether
lyric timber
#

ok my springboard tweak works like a charm

tepid olive
#

Just wait for someone to leave

primal perch
#

the unified way is MS* shit at this point

primal perch
#

:nfr:

late ridge
#

are there any SF Symbols in the private api that aren't listed in the SF Symbols app?

primal perch
late ridge
#

systemImageNamed:@"trol" doesn't work, I tried already

faint timber
#

@tepid olive we do a little 7 bit ascii

#

he should sue microsoft for ripping off his flight sim

#

sadly he can't

lyric timber
#

I want substrate for macOS ._.

versed ruin
#

Hi guys. Wild stab in the dark here but you guys are the pros so here goes.

I am trying to dismiss an alert before it appears with

currently i'm using something like this:
- (void)viewDidAppear:(BOOL)arg1{

if ([self.message containsString:@"rate us"]){

_[self dismissViewControllerAnimated:YES completion:nil

This of course works but the alert appears for a quick second or so. I would like to dismiss it without it appearing at all

primal perch
#

find out what method creates / shows it and then have it not do that

versed ruin
primal perch
versed ruin
#

Ok, can i check for a specific alert with this?

#

I get what you mean but this would block all alerts

#

Yeah i dont wanna do that

#

Just this specific one

#

Lmao

#

I would bigly appreciate the help

primal perch
#

its shit code but itll work

#

odds are its created with this

versed ruin
primal perch
#

just return nil trol

#

good code

versed ruin
#

Ok here goes nothing

primal perch
#

:ntrol:

twilit jungle
#

Sometimes I wonder why most open source tweaks have bad code

primal perch
#

well i can either ask for more context and that takes effort or we can give them the shit fix

#

pretty easy choice trol

versed ruin
#

😐

#

But?

primal perch
#

true terraria music

lime pivot
versed ruin
#

no effect on the alert

lime pivot
#

you have a typo on "prefferedStyle"

#

should be preferredStyle

versed ruin
#

good catch

lime pivot
#

to be safe, also change the NSInteger type to UIAlertControllerStyle, since we already know what type it is

versed ruin
#

ok

#

no effect at all

#

%hook UIAlertController

  • (id)alertControllerWithTitle:(NSString *)arg1 message:(NSString *)arg2 prefferedStyle:(UIAlertControllerStyle)arg3{

    if ([arg2 containsString:@"rate us"]){
    return nil;
    }
    return %orig;

}
%end

lime pivot
#

the parameter name still has the typo

versed ruin
#

wtf man

lime pivot
#

hehe, it happens

versed ruin
#

progress......but it crashes the app

primal perch
#

just find the actual method its called because that hook is a poor workaround

versed ruin
#

lol

#

i know what you mean....but this is done so easily in the tweak "autoAlerts" ....i think he uses presentview?

lime pivot
#

you can try doing it there. in that case you would check if the view controller isKindOfClass:UIAlertController.class. then you can check the message property of the view controller as you're already doing, and only do %orig if it doesn't have the rate us string in it

#

the hook would be presentViewController:animated:completion: on UIViewController

versed ruin
#

ok let me try that right quick....thanks for the help guys. i'm all for learning

#

and some trolling tooWeirdChamp

lime pivot
#

we perform a minuscule degree of tomfoolery

#

only the recommended daily intake of trolling, however

versed ruin
#

i would return %orig to presentViewController yeah?

faint timber
#

wake the fuck up samurai we have n days to burn

valid venture
faint timber
#

no one:

rust:

consuming my variables in loops

primal perch
#

no one:,c: being perfect language

tepid olive
primal perch
#

rustrustrustrustrustrustrustrustrustrustrustrustrustrustrust

stuck wyvern
#

if you say rust 3 times in front of your mirror at 3am Aspen will appear behind you

primal perch
#

probably

indigo peak
#

If you say swift 3 times in front of your mirror at 3 am, Steve Jobs will appear behind you hand slap you

tepid olive
#

jobs would have loved swift

undone nest
#

true swift is pog

primal perch
#

after all he loved web apps

indigo peak
stuck wyvern
indigo peak
#

Man gonna hack the server fr

stuck wyvern
#

lmao he got banned

indigo peak
#

We should make notepad—

#

It’s worse than notepad, but better than nano

gentle grove
#

literally just use vim

undone nest
#

just use nano

late ridge
#

false

#

ya that's true. I bet if I was proficient at vim then I would like it more

#

what the

#

someone should make a vim keyboard

#

lol ya

#

that would make sense

#

just be like Taran from ltt and have a keyboard for each text editor dead

#

!t tweakdev

faint lionBOT
# late ridge !t tweakdev
tweakdev

HOW TO GET INTO TWEAK DEVELOPMENT

This has been asked countless times so it's time that there is a long message that explains this.
One of the first things you want to do is reach a "baseline" before you can even think about getting started.

What this means is that you need to be familiar with Object Oriented Programming and how to use Objective C.
uroboro was kind enough to create a guide that you can find here: https://uroboro.github.io/Learn-Objective-C-in-24-Days-Clone/
Additionally, you should also learn a little bit about how iOS works, learn some basic frameworks/stuff you will need to work with.
Stuff like how to use UIKit, Foundation, etc. Once you have a pretty good understanding of these, then you can proceed.

The next step is to actually start making tweaks. Install a tool called Theos for your appropriate device.
The installation wiki can be found here: https://github.com/theos/theos/wiki, please make sure to follow the appropriate platform instructions.
After that, you are ready to start making tweaks, please follow a tweak development guide. (Here's one if you're lazy: https://kodeycodesstuff.tech/guide)

late ridge
#

aha

#

it worked

#

:)

#

The iPhone Dev wiki is also a great resource, they have some good articles on standards and advice for releasing tweaks as well as preference bundle documentation, etc.. https://iphonedev.wiki/index.php/Main_Page

#

Making tweaks in swift is not fun™️

#

I think some people use swift for UI in tweaks... idek tbh. I just use objc

twilit jungle
#

Unless you have access to [redacted] or know how the objc runtime works, Swift tweaks isn’t really an option you have

#

Thats not swift tweak

lapis vessel
#

anyone know if tgere is a way to stop theos adding -stdlib=libc++ -lc++ as it throws ld: warning: ignoring file ~/theos/sdks/iPhoneOS13.3.sdk/usr/lib/libc++.tbd, file was built for unsupported file format when used with -nostdlib?

twilit jungle
#

Thats like saying you made a HTML tweak if you create a web view in objc tweak and then using HTML

primal perch
#

we did too much trolling

twilit jungle
#

Just a lil bit

twilit jungle
lapis vessel
hardy glen
#

This works perfectly for objects if you can take the unretained value from the C pointers. Although i cannot find a sufficient way to take the unretained value from struct types

gaunt mesa
twilit jungle
nimble parcel
nimble parcel
#

bindMemory(to:).pointee

hardy glen
#

hm i tried that as well with no success.

nimble parcel
#

or assumingMemoryBound(to:)

hardy glen
#

i will attempt it again

#

even tried that as well

#

its like in objective c when you cast the pointer to lets say an id. you do (__bridge id)pointer. In swift the unmanaged stuff is the bridge equivelant

#

but i will keep attempting new stuff till i figure it out

#

in objcobjc Helper *help = [[Helper alloc]init]; void *ok = MSHookIvar<void *>(self, "setStr"); [help swiftTestWithPointer:ok]; in swift ```swift
@objc class Helper : NSObject {

@objc public func swiftTest(pointer:UnsafeRawPointer){
// i have tried both off these seperately with Strings/NSStrings with no success
//NSLog("Value: (pointer.bindMemory(to:String.self, capacity: 1).pointee)")
//NSLog("Value: (pointer.assumingMemoryBound(to:String.self).pointee)")
}
}```

#

@nimble parcel as you can see the call stack, it crashes on objc_retain

nimble parcel
hardy glen
#

Yea. Thats the issue I am having

nimble parcel
hardy glen
#

Yes.

#

I have also tried with a NSString as well

nimble parcel
#

also one thing that I’m pretty sure is incorrect here is that you should be passing &ok not just ok

hardy glen
#

This is my test app. I have built to test for me.

hardy glen
nimble parcel
#

fwiw I’m not sure whether a String is word-sized so your template arg might be wrong too

#

try char[3] maybe

#

or just take the pointer to the ivar treating it as an lvalue if that’s possible

#

class_getInstanceVariable (or getIvar?) might be more useful than MSHookIvar in this case

hardy glen
#

I will try all of these suggestions for today. Thanks a ton brother

twilit jungle
primal perch
#

Did you know furries are devaluing U.S. currency?

Google furry inflation to find out more

twilit jungle
primal perch
#

i did but thanks for the reminder

twilit jungle
#

true

primal perch
#

true

hardy glen
#

Yes i could, but the thing is I cannot use MShookivar on a swift string unless I store it in a pointer.

#

And to call value for key the object has to enherit from nsobject

#

True

#

So either way I am fucked haha. the only option is to read the memory directly which i am not at all experienced with

sweet perch
#

where can you learn uikit and shit with objc

hardy glen
sweet perch
#

what docs

hardy glen
#

apples

sweet perch
#

mk

hardy glen
#

if you are familiar with oop concepts, apple’s documentation should be a peice of cake to interpret

twilit jungle
#

true

nimble parcel
#

ivar_getOffset is what i was thinking of yeah. You can compute the address of the String in the object and pass that to swift

misty cradle
#

Gn dev friends

#

See u in 13 days

subtle grail
#

gn

gusty pelican
hardy glen
#

I am not familiar with offsets at all so i am not sure how to calculate the address or even how it functions but i will figure that out today

#

?

#

about what

#

can we see the error

#

or even the code

#

okay

grim sparrow
#

lol

#

how can you know why something happens but don't know the fix think

#

wait

#

what are you trying to do

hardy glen
#

try it without the extension type and make uidocumentpickerviewcontroller open all types

#

and see what happens

grim sparrow
#

you need to setup the delegate for that

hardy glen
#

to self

grim sparrow
#

well then you did it wrong

#

does iBitTorrent conform

#

does the class iBitTorrent conform to the protocol UIDocumentPickerDelegate

#

you need to add the protocol methods

primal perch
#

@vivid dew

tepid olive
#

@tepid olive u making a torrent client?

primal perch
gentle grove
#

you could make a transmission frontend if it's too much work possibly

tepid olive
#

libtorrent

gentle grove
#

bruh

hardy glen
#

@nimble parcel @grave sparrow Thanks alot, after days of work i have finally been able to read/set values of swift strings. Just need to figure out how to obtain the size of the string.

tepid olive
#

anyone know what else I need to hook to trick Face ID into working with no passcode? this makes the authentication prompt show up but it still fails:

%hook MCPasscodeManager
-(BOOL)isPasscodeSet {
    return YES;
}
%end
#
May 19 02:06:31 coreauthd(ModuleACM)[14331] <Error>: ACM verification not satisfied after policy evaluation on ACMContext 589 '3:1', retrying second round
May 19 02:06:33 coreauthd(SharedUtils)[14331] <Error>: Error Domain=com.apple.LocalAuthentication Code=-1000 "ACM policy evaluation suceeded, but ACM is still requesting 3:1 on ACMContext 589 after a retry." UserInfo={NSLocalizedDescription=ACM policy evaluation suceeded, but ACM is still requesting 3:1 on ACMContext 589 after a retry.}
#

I've been running frida-trace on coreauthd to figure out methods to hook but some are undocumented and if I use the wrong argument types it crashes the daemon

primal perch
hardy glen
#

i will definetly post the code here once i am done with it and yes i did use a helper swift function

#

thanks for introducing me to offsets

#

raw mem

#

@grave sparrow actually never mind i found out a way to not even use memcpy

#

nice

next wadi
#

laughewoe

hardy glen
#

Write Up: Heres a way to access values of swift strings. In Objc objc //this will be our swift helper class Helper *help = [[Helper alloc]init]; Class c = objc_getClass("SwiftDis.ViewController"); Ivar i = class_getInstanceVariable(c,"aString"); ptrdiff_t offset = ivar_getOffset(i); //compute the address of our string char *address = ((char *)(__bridge void *)self) + offset; //Call the helper swift method [help accessSwiftStringsWithAddr:address]; In our helper Swift class ```swift
@objc public func accessSwiftStrings(addr:UnsafePointer<CChar>){

    //cast to UnsafeRawPointer (void *)        
    var pointer = UnsafeRawPointer(adr)
    //load the pointer as a Swift String to memory
    //targetString now holds the value of the pointee string
    var targetString = pointer.load(as:String.self)
     

}```
#

@grave sparrow ^

#

this can obviously be used for any swift types that are not accessible from objective c

next wadi
#

yes

hardy glen
#

meaning?

#

ARC is on for me

#

feel free to correct me on my mistakes, i am not the smartest when it comes to shit like this haha

#

yea it doesn't

next wadi
#

peek

hardy glen
#

So instead of hooking into a viewcontroller, hook into a swift class (swift object)

#

i can try that

#

no i didn't

#

everything is default

#

if this works, this could possibly allow for flex to get values of instance variables in swift classes? Obviously one issue that could come up is not knowing the instance variable type

hardy glen
#

@grave sparrow would you care to try this in a pure swift class. In most pure swift classes, only the +(void)initialize function is called. Unfortunately we can't use this function for obvious reason

twilit jungle
hardy glen
#

well the swift classes i am looking at. I made a @objc func and called it as well but when i hook it, it does nothing.

#
import Foundation
class SwiftClass{
    
    var string = "This is a pure swift string"
    
    @objc func call(){
        
    }
}``` then ```SwiftClass.init().call()```
#

in call() we can use the above code i sent

#

i suck at swift

#

wym

#

thats swift

#

ah

primal perch
#

:dontsee:

hardy glen
#

i got no fucking clue

#

i was wondering the same thing

#

i have not read swift docs at all. I only read up on pointers in swift which is a disaster as a whole lmao

#

i know that. I have no clue what String.self is

#

idrc enough to search it up lmao

primal perch
tepid olive
hardy glen
#

yea i could've probably done it different which i will. But as soon as i had it fully working i just posted the code

#

the thing is, i have a function exposed to objc in my pure swift class and i call it. But when i hook that method, it does nothing which is weird

#

is this expected behavior ?

twilit jungle
#

But as soon as i had it fully working
Famous last words

hardy glen
#

when i hook +(void)initialize it does get called. but my function that is exposed to objc wont

#

so i can't really test it

twilit jungle
#

Why are you hooking a method that you implemented?

hardy glen
#

to test

twilit jungle
#

Why?

hardy glen
#

i finally can access values of swift strings but i wanted to test if i can access them from a pure swift class

twilit jungle
#

Yes you "can"

hardy glen
#

i am sure i can too, but for some fucking odd reason i cannot hook into my own method uhh

twilit jungle
#

How are you hooking it?

primal perch
#

log.os

hardy glen
#
-(void)myFunc;
@end
%hook SwiftClass
-(void)myfunc{
}
%end
%init(ViewController = SwiftClass = objc_getClass("SwiftDis.swiftClass"));
#

also object_getIvar as well

#

yes

primal perch
#

a little

hardy glen
#
import Foundation
class SwiftClass{
    
    var string = "This is a pure swift string"
    
    @objc func myFunc(){
        NSLog("called")
    }
}```
primal perch
#
int x = 10, y, z;
x = y = z;``` ![trol](https://cdn.discordapp.com/emojis/831188670848565289.webp?size=128 "trol")
hardy glen
#

yea i have it uncapitalized but i changed it here so i don't get flamed

primal perch
#

because we arent paper handed bitches

hardy glen
#

when i hook +(void)initialize it does get called

twilit jungle
hardy glen
#

SwiftClass.init().myFunc()

primal perch
#

template <class T>

hardy glen
#

that's how i am calling it in my swift code

primal perch
#

everyting

twilit jungle
#

And it works if you mark the class with @objc ?

primal perch
#

every function should be a template

#

idk im just ripping it from this shit

#
template <class T>
void print_bin(T val)
{
    const int bit_size = sizeof(T) * 8;

    char buf[bit_size + 1];

    for (int i = 0; i < bit_size; i++) {
        char c = val & (1 << ((bit_size - 1) - i)) ? '1' : '0';
        buf[i] = c;
    }

    buf[bit_size] = '\0';
    puts(buf);
}```
hardy glen
twilit jungle
#

realize what?

hardy glen
#

it keeps going lmao

primal perch
twilit jungle
#

I don't remember that always being the case but okay if you say so

#

I feel like thats only true for swift classes that inherit from NSObject but shrug

solemn quiver
#

what’s “education”

twilit jungle
solemn quiver
#

lmao

hardy glen
#

@grave sparrow well i managed to get something SWIFT: \^DPª\^Afr

#

i think that it means that its null

twilit jungle
hardy glen
#

@grave sparrow works with pure swift classes. Tested with an app that holds a pure swift class object as an instance variable. ```objc
Helper *help = [[Helper alloc]init];
//get the pure swift class
Class class = MSHookIvar<Class>(self, "class");

Class c = objc_getClass("swift.NameOfClass");
Ivar i = class_getInstanceVariable(c,"ivarName");
ptrdiff_t offset = ivar_getOffset(i);

//replace self with class
char *ptr = ((char *)(__bridge void *)class) + offset;
[help finalWithAdr:ptr];```

#

where %init(NameOfClass = objc_getClass("swift.NameOfClass")) and obviously interface NameOfClass

#

i think using Class type should be safe

#

this could be used for accessing swift structs as well now(if you have access to them somehow for example as an instance variable). I will do more testing as of tonight to see if everything works accordingly

versed ruin
#

Hey guys me again. If I’m hooking presentViewController and i want to know if the title property of the view to be presented has a certain text...would i still use “self”? It doesnt seem to be working

hardy glen
versed ruin
#

That’s what i realise🤣

#

I’m less than a week into obj-c in general. Have some programming exp otherwise

hardy glen
#

use flex to see what class the label is in and modify that label

#

unless its the navigationcontroller title ur talking about

versed ruin
#

It’s in the UIAlertController class, but isnt UIView controller the parent of that. It should have the title property

hardy glen
#

can i see the label you are trying to modify

versed ruin
#

Not modify...do something based on the label

hardy glen
#

oh you are trying to hook a uialertcontroller

versed ruin
hardy glen
#

it has a title property

versed ruin
#

I know it does

hardy glen
#

UIAlertController.title

#

or if you are hooking into the UIAlertController it self

#

then self.title

versed ruin
#

That sounds like what i wanted to know

#

Let me try it

hardy glen
#

i would recommend using xcode first and trying out a couple of simple apps and practicing with UIKit before you start getting your feet wet with this

#

capt are your hands not tired from typing uhh

versed ruin
#

error: property 'title' not found on object of type 'UIAlertController'

#

i prob need to declare that?

hardy glen
#

declare what?

#

without further information, i don't know what you are doing wrong

#

perhaps post your code?

versed ruin
#

ok so i posted a little bit of my issue last night, what i want to do is hide this alert. I cant find the call to it and checking presentView kinda works except it hides other alerts too....so i'm doing this

#
  • (void)presentViewController:(id)arg1 animated:(BOOL)arg2 completion:(id)arg3 {

     if (![UIAlertController.title containsString:@"Rate Us"])
      %orig;
    

}

hardy glen
#

woah

versed ruin
#

so i want to hide the alert if it contains "rate us"

hardy glen
#

what are you hooking

#

what class

versed ruin
#

UIViewController

hardy glen
#

bruh

versed ruin
#

incoming noob lesson? lol

hardy glen
#

try arg1.title

versed ruin
#

error: property 'title' not found on object of type 'id' on compile

hardy glen
#

try [arg1 class]

#

log that

#

^

versed ruin
#

[arg1 class.title]?

hardy glen
#

no

#

just a second i am looking up UIAlertController header

versed ruin
#

thanks

hardy glen
#

okay so you are doing %hook UIAlertController correct?

#

just to make sure

versed ruin
#

%hook UIViewController

  • (void)presentViewController:(id)arg1 animated:(BOOL)arg2 completion:(id)arg3 {

     if (![[arg1 class.title] containsString:@"Rate Us"])
      %orig;
    
hardy glen
versed ruin
#

so i cant hook the parent?

hardy glen
#

i don't think it makes sense to hook into presentViewController

#

you should be using NSLogs to test and debug

versed ruin
#

why do you say that about presentViewController

#

it actually kills the alert, just that it kills all

hardy glen
#

NSLog(@"Method called %@",[arg1 class]);

#

put this statement in your code and check the logs

#

are you on a mac @versed ruin

versed ruin
#

i'm not sadly..using wsl

hardy glen
#

that sucks, i have no clue on how to check logs on windows

#

its possbile

versed ruin
#

i think capt fell asleep on his keyboard

hardy glen
twilit jungle
#

Thats going to crash

versed ruin
#

about to

#

lol

twilit jungle
#

Also thats a horrible way of doing that

primal perch
hardy glen
#

i have no clue on how that shit works. I wouldn't use that method

twilit jungle
#

Exactly

hardy glen
#

i have no clue where he got that method lmao.

versed ruin
#

i think that's what the tweak "autoalerts" uses and it works great

primal perch
#
  1. inconsistent targetting 2. doesnt support other languages 3. its just bad
versed ruin
#

just that i dont want a system wide thing

twilit jungle
#

And thats my point, he got his method from trolls. And now you are helping him actual convert it to production code.

primal perch
versed ruin
#

LMAO

primal perch
#

we did too much trolling

hardy glen
#

lmao

versed ruin
#

wtf

twilit jungle
#

Also please stop using other tweaks as references

primal perch
#

ok since i dont really wanna ask for 5 years, what app are you trying to hook

hardy glen
#

check the header i sent you

primal perch
#

dont hook uialertcontroller at all

versed ruin
#

first i'm hearing that one

twilit jungle
#

You are trying to implement something that impacts a specific alert controller, by having your code run on all view controllers (not even all alert controllers).

hardy glen
#

You want your code to be executed as less times as possible when you are hooking. Try to be specific as possible when trying to hook into something

twilit jungle
#

autoalerts is something that impacts all alert controller, and if it hooks view controller method that you are saying then that is border-line bad code.

versed ruin
#

ohh no....i planned to add "isKindOfClass"....just getting the basics working first

primal perch
twilit jungle
#

That doesn't change anything

hardy glen
#

lmao

primal perch
#

what app or process is this in

versed ruin
#

lmao

twilit jungle
#

Thats like having a 5 second timer and then adding a boolean check...

versed ruin
#

lmao what

twilit jungle
#

Yes you reduced how many times the code inside the check is occuring, but you are still doing the horrible boolean check everytime

hardy glen
#

so this is what he was typing lmao

versed ruin
#

LMAO

#

are you guys saying all opensource code is bad code.....cause now i feel pretty shitty

primal perch
#

not all but most

hardy glen
#

i would probably try to get access to a mac or use opencore and try out xcode first and learn objective-c/UIKit

twilit jungle
#

Yeah.. pretty much most... because of the same reasons you went through

#

Literally trolls giving random methods and then people like you believe them

versed ruin
#

@hardy glen IT WORKS! thanks my guy. really appreciate it

primal perch
versed ruin
#

TOP NOTCH STUFF

#

are you shocked?

hardy glen
#

no i am not

twilit jungle
#

...

hardy glen
#

if you are happy with it

primal perch
#

ok well im not gonna bother

hardy glen
#

then use it

twilit jungle
#

F

steady nest
#

When batchomatic oss

primal perch
#

just back then?

steady nest
#

You guys say it or I say it

#

Someone said it KEKW

twilit jungle
primal perch
#

dw bro i got shit code on my github still

versed ruin
#

the method that makes it present unfortunately controls all the alerts

#

so when i nuke it....all alerts get nuked

twilit jungle
#

Its not just all alerts

hardy glen
#

Yeah, you just need to start taking notes of good practices

twilit jungle
#

Its responsible for presenting literally anything

hardy glen
#

its uiviewcontrollers

#

too

#

lmao

versed ruin
#

lmao

hardy glen
#

^

#

go to the root of the problem

versed ruin
#

wait...i wondered about that

twilit jungle
#

This is one of the reasons to learn UIKit in a safe environment (app development) before tweak development

hardy glen
#

^

#

get access to a mac or use opencore like i said

twilit jungle
#

You don't even need a mac

#

You can make apps via theos

versed ruin
#

are you saying that all apps that have a view controller still have UIViewController as their parent?

#

wow!

hardy glen
#

also you need to figure out a way to log shit on windows

twilit jungle
#

Yes and all apps have to have a view controller since they have a window, which is requirement for all UI.

hardy glen
#

logging is going to help you solve many problems

versed ruin
#

i figured as much....i kept seeing "nslog" and kept checking my var/logs folder like a noob 😆

hardy glen
#

remotelog

#

i am not sure if this is the best one

#

but good luck

versed ruin
#

so just for clarity, you guys are saying that lets say the app's view controller that calls the alert is "randomViewController"...is still inherits from "UIViewcontroller. So i should be able to optimise this code by hooking randomViewController instead?

hardy glen
#

when you hook randomViewController. it is hooking that viewcontroller only

#

does not matter about it's parent class.

#

also, you will need to change your plist to use the bundle identifier of the app you are hooking

hardy glen
#

yes exactly : )

versed ruin
#

so what i mean is, will randomViewController still give me access to presentViewController??

#

BRAVO!

#

i dont believe you let me try that right quick lmao

#

dont mind my shady way of doing things i do have OOP experience. I probably dont do my grades justice

hardy glen
#

can't you do %hook UIAlertController (ProcessName) ? @grave sparrow

versed ruin
#

yeah let's hear it

hardy glen
#

i am not saying you should do it, i was just asking if theos can do that. I think you can specify the processname if i am correct

#

and that would be the wrong way of doing it for you most likely

primal perch
tepid olive
#

rust 2

versed ruin
#

yep..i understand that perfectly

faint timber
#

@tepid olive whats the difference

faint timber
#

Objective-Rust?

#

lol

primal perch
#

the next question: who actually asked for it

tardy narwhal
#

jesus christ

slender vortex
#

Hey I am developing a tweak that has a control center module and it was working on unc0ver but now I switched to taurine and the ccmodule is not showing up in control center settings.

#

anyone here any idea what could be happening?

#

okay so when I have CCSupport installed it does show up in settings but when I add it it doesn't show up in control center

gaunt mesa
#

sounds like a taurine issue

slender vortex
#

Hmm I think I found it, turns out the executable that's generated for the bundle is lowercase? idk why

plain sedge
#

is there a way i can read NOR on a 32-bit device

primal perch
plain sedge
#

whats that supposed to MEAN

hardy glen
#

how to write tweaks in html

dawn dome
hardy glen
#

its a real programming language fr

slender vortex
#

do I need to run the tweak as root or something?

primal perch
primal perch
tepid olive
tepid olive
indigo peak
#

How to write tweaks in python fr

primal perch
slender vortex
#

IOKit says "Resource shortage" when I try to connect

#

It worked on iOS 13 with IOKit though but since I couldnt get that to work on 14 I thought I'd try libusb, not knowing it was just wrappers sadcowboy

hardy glen
primal perch
high citrus
#

is there an ipc that stores the notification when the message hasn't yet arrived, to make sure that when the app launches later it still gets the notification?

tepid olive
#

they also change the IOKit APIs for usb on iOS like every version

#

libusb is probably broken lol

high citrus
slender vortex
slender vortex
hardy glen
#

as shep said, it could be because you in a sandbox

slender vortex
hardy glen
#

i would probably start with the docs

primal perch
#

doxxing

tepid olive
#

i just had a look at the latest relevant header files and experimented from there. it also could be a sandboxing issue.

#

look at libusb's iokit wrapper for a start

slender vortex
#

is it open source?

#

or do you mean the osx ones

hardy glen
# slender vortex is it open source?

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Versions/A/Headers

#

these are all the things you should need

#

i will later in the future

slender vortex
#

I already had it working on iOS 13 using IOKit so I know how that works. I'm just confused why on iOS 14 I get "Resource shortage". It seems to be a permissions issue rather than a code issue to me

twilit jungle
#

It means there is high demand, but not enough supply of resources. Just increase the number of resources, ez

high citrus
#

Is there demand for a listening mode (active noise cancelling) activator plugin/tweak. That would work with Sonyfy and Airpods ofc

#

because i'm almost ready to release it :)

primal perch
dawn dome
#

Nope

weary heath
#

Bitchomatic

high citrus
#

but I couldn't find a API for that :(

#

I don't think that will help ;)

lethal ice
#

stfu capt

#

u don't have balls i castrated you

primal perch
#

kinky

high citrus
#

Have you tried it yet, doesn't seem to work for me

primal perch
#

sudo rm -rf joke

twilit jungle
#

It only works in production

primal perch
#

i will now laugh

#

because of the immense humor

#

😆

lethal ice
#

how this guy so crusty yet so smart

primal perch
#

that looks like adult scoop

lethal ice
#

wtf

twilit jungle
#

fr

primal perch
#

wait scoop is adult

#

older adult scoop

lethal ice
tepid olive
#

one might call him a

#

double scoop

primal perch
lethal ice
#

wtf

high citrus
primal perch
#

can i get the joke with uh

#

extra funny

high citrus
#

I'm sorry, the funny machine seems to be broken

primal perch
#

yeah i suspected

#

unfortunate

hardy glen
#

fr Thankfully the IQ level in this channel is always up to par

twilit jungle
#

wtf don’t bully a fellow ape

hardy glen
#

My teacher told us to write a memory leak function for part of myfinal and my computer fucking crashed

#

big iq

grim sparrow
next wadi
hardy glen
#

when pressing restart springboard freezes sileo

grim sparrow
#

oh yeah capt

next wadi
#

allah calculator

grim sparrow
#

capt

#

oh

#

btw

#

your requeue thing

#

was in the wrong place

#

meaning it could cause a crash

#

yeah i fixed that dw

#

not really

#

that's not an issue

#

not really

#

lol

hardy glen
#

oh nice, Altlist update is released

#

guys, would anyone be interested in a cocoatop widget. i am experimenting with widgetkit and i might start working on this now

#

not sure on how it would work, but i want to give it a try

restive ether
#

make it display info in depictions trolldisappointedsolid

tepid olive
#

please

high citrus
#

Just released ListeningModeActivator, a free and simple Activator listener that allows you to change your listening mode (active noise cancelling, transparency mode / ambient sound mode, normal ) using Activator.
Also works with my other tweak Sonyfy.

#

Ofcourse also opensource and free on GitHub :)

hardy glen
#

Just somehow need to figure out the type of the ivars and the ability to view swift objects in flex is possible.

#

Not sure if finding the type is even possible

#

Btw this returns “Any” to libflex object so we are viewing a pure Swift string

#

As you can see

tepid olive
#

Hiii

#

Who wants to make a tweak? angel3

#

Capt

robust mountain
restive ether
tepid olive
#

Make me my tweak

#

Hahahaha

restive ether
tepid olive
#

okay so y’all know Minotaur?

restive ether
#

yes

tepid olive
#

I want a tweak like that except it opens to a todo list or a notes page

#

So I can put my todo list on it

#

Tap it and todo list

#

I didn’t say it has to be like Minotaur

restive ether
#

libellum is kinda like that

tepid olive
#

Ooo let me look at that. I’ve never heard of that before

#

Thaaanks damn

#

Cammmm

hardy glen
#

i got libellum

#

its helpful asf to keep me on track

restive ether
#

?

#

oh

hardy glen
#

pls give me

tepid olive
#

Yeah it’s not exactly what I’m poki g for

#

But it’s close enough

hardy glen
#

i am looking to do that in the future with dsdump

#

same

#

yea it is

#

nope not that i know of

#

that was one thing i was going to implement

#

it only produces the whole output in the terminal. i just use find to look for what i need

#

yea it was exteremly knowledgable to read

#

yea, the shit i do is for personal use too. Maybe if i can get this shit working for libflex which i am almost there. Ill contact NSExceptional and see if he wants to implement

#

new and improved dsdump named cumdump

#

i never knew barbie girl was not a song for kids

#

he does

#

classic

#

-fr

gusty pelican
#

if you like levels

#

isnt there already a torrent client for jailbroken devices @tepid olive

#

like an app you can get on github

primal perch
#

ching chong

gaunt mesa
#

it’s jong not jang

tepid olive
#

kim jiang ying the reverse engineer

ashen birch
#

jiang ying is a fucking GOAT

tepid olive
primal perch
#
extern crate libc;

use std::mem;

unsafe {
    let my_num: *mut i32 = libc::malloc(mem::size_of::<i32>()) as *mut i32;
    if my_num.is_null() {
        panic!("failed to allocate memory");
    }
    libc::free(my_num as *mut libc::c_void);
}```
#

"Another reason Rust has an unsafe alter ego is that the underlying computer hardware is inherently unsafe."

grim sparrow
#

Let’s get one

narrow mason
#

@vivid dew are you a femboy

plain sedge
midnight leaf
#

anyone know if there's a way to do this in a binary compiled postinst script? if [[ $1 == upgrade ]]; then

tepid olive
#

ah if you're using ObjC there may be a better way

#
NSArray *arguments = [[NSProcessInfo processInfo] arguments];
midnight leaf
#

@tepid olive omg, thanks for that!

tepid olive
#

I think this would work:

if ([[arguments objectAtIndex:1] isEqualToString:@"upgrade"]) {
    // ...
}
lime pivot
#

arguments[1] pls fr

#

also check that you aren’t going to out of bounds first (arguments.count > 1)

lime pivot
tepid olive
lime pivot
#

given how insane objc can be I'll take as many nice-to-haves as I can get

plain sedge
dawn dome
#

anyone here imported iokit successfully before?

dawn dome
#

this isnt related but wth does this mean

tepid olive
#

you probably should import only libdimentio and not dimentio

dawn dome
#

o

#

lemme try that

#

works!

#

thank you nyu

floral estuary
#

i'm new in development and I try to change the color of badges but I can't find a method to do it

#

in SBIconBadgeView when i modify the property UIColor *backgroundcolor it changes the color behind the actual badge

#

does anyone know how to find the correct method?

late ridge
#

correct me if I'm wrong, but I think the badges are just images right?

floral estuary
#

I don't know that but i guess you're right because a lot of methods have the word image in their names

late ridge
#

so I guess you could replace the images with a different color badge

floral estuary
#

maybe... I'll try that then

tepid olive
#

Where do i add showingActionSheet to the DemoAppApp file?

late ridge
#

swiftUI

tepid olive
late ridge
#

lol no

#

I was just saying

#

🙃

tepid olive
#

wait am i using the incorrect engine

late ridge
#

are you trying to use UIKit code in swiftUI?

tepid olive
#

i'm using Interact code

late ridge
#

I know absolutely nothing about swift or swiftUI intjallah

twilit jungle
gaunt mesa
#

do you have to use subprojects for theos

#

or can u just declare everything in the root makefile?

twilit jungle
#

you don't have to do anything

gaunt mesa
#

ok is the latter option possible

twilit jungle
weary heath
ashen birch
#

@raven yoke you prob already know, but the SSL cert on the iphone wiki expired

#

banger

gaunt mesa
#

so u can have multiple tweaks in one makefile

#

but not multiple bundles?

raven yoke
ashen birch
#

ah

weary heath
#

Seems it's been renewed

median pilot
primal perch
surreal mountain
#

can i get a fuck collegeboard

primal perch
#

fuck collegeboard

#

all my homies take the ACT

gentle grove
surreal mountain
gentle grove
#

their website breaks every other day

surreal mountain
#

i hate the ACT though

surreal mountain
gentle grove
#

at least that was my experience trying to submit the programming task thing

#

for ap computer secinece

primal perch
#

i did too until i realized its not that bad

gentle grove
#

like every other day the site was broken

surreal mountain
#

the ap exam app is electron

gentle grove
#

js errors and csp errors everywhere

surreal mountain
primal perch
#

ap exams so bad

gentle grove
#

i dont have their app

#

the test was in person

surreal mountain
#

unlucky

#

mines digital

gentle grove
#

it was easy

surreal mountain
#

which one

primal perch
#

also i like the act because they gave me a stupid good curve bc we all took it online or some shit

gentle grove
#

ap compuster sjsicence

primal perch
#

idk why but a -7 math = 35

#

so

surreal mountain
#

if you're gonna try on a test, try on the day when your whole school takes it

primal perch
surreal mountain
#

because the curve is higher from the dumbasses

primal perch
#

yea i did that

gentle grove
#

i didnt feel like trying to set up a windows vm with the ap software or whatever

#

the spyware browser thing

primal perch
#

thats prolly why i had that curve lmfao

surreal mountain
primal perch
#

easy W

surreal mountain
#

hate this

#

i can't even tab out

#

so tough

gentle grove
#

i cdouldnt downlaod it because their site was broken

surreal mountain
#

lmfao

#

time to play clash royale during my test

primal perch
#

clsh ryl

gentle grove
#

and the best thing is the lockdown browser doesn't prevent anyone from cheating

#

if it does prevent anyone it only prevents the people that are dumb enough they'll get the wrong answers to cheat with or something

primal perch
#

@surreal mountain did i tell you how i died on my ap calc test

surreal mountain
#

no

primal perch
#

yeah we had the calculator on degrees and not radians

gentle grove
#

what

primal perch
#

so we just missed a whole ass page

#

of problems

restive ether
#

mfers on a different plain of calculator use

primal perch
high citrus
primal perch
#

trol

#

what is the sin of pi/4: sqrt2/2 degrees F

surreal mountain
#

welp

#

here goes this shitter test

primal perch
#

gl

surreal mountain
#

2 hours

#

ty

primal perch
#

not too bad mine was like 3hr 15

surreal mountain
#

100 mc in 60 minutes

primal perch
#

true

#

multiple choice so true

#

you should import foundation

late ridge
#

is that not done automatically????

primal perch
#

yes

high citrus
#

Are you using textedit.app? lol

#

I would suggest vscode (or something similar) for some syntax highlighting :)

stuck wyvern
#

vscode with logos extension

#

👍

late ridge
#

tru

stuck wyvern
#

me too

high citrus
#

01001001 00100000 01100011 01101111 01100100 01100101 00100000 01101001 01101110 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00101110 00101110 00101110

grim sparrow
#

i'm gay

tepid olive
#

wtf

#

real???

high citrus
grim sparrow
high citrus
#

It's a classic

tepid olive
gaunt mesa
stuck wyvern
gaunt mesa
#

actually well it's a vscode issue

#

cuz one of my .x files is like 8,000 lines long

#

so it just stops tokenizing

stuck wyvern
#

I was using the other extension by accident and it was so broken

#

but the one you make works a+

gaunt mesa
grim sparrow
high citrus
gaunt mesa
#

basically vscodevim decided to suck ass

#

and just paste

#

over and over

stuck wyvern
#

looks like my m1 macbook has shipped pog

grim sparrow
gaunt mesa
#

i hate vscodevim so much now

#

i've just gone back to nvim for the time being

tepid olive
# grim sparrow i'm gay

i pray that this whole "gay" thing is just an act or a phase and that you change your ways, God loves you and hes willing to forgive you as long as you are willing to be forgiven. God bless you❤️❤️🙏🙏

#

omw to get cancelled for this

grim sparrow
#

lmafo

stuck wyvern
#

hold on making a 12 tweets thread right now to explain why evelyn is homophobic

tepid olive
grim sparrow
#

@carmine patio

tepid olive
grim sparrow
#

lmao

dawn dome
#

anything happening here rn

tepid olive
#

yes

grim sparrow
#

evelyn being homophobic

tepid olive
#

amy is cancelling me

dawn dome
#

@tepid olive die

tepid olive
grim sparrow
tepid olive
grim sparrow
tepid olive
dawn dome
#

Don’t you shit when you die?

#

I think that’s what happens

gentle grove
#

amy is a catgirl

tepid olive
#

uhhhhh

tepid olive
grim sparrow
tepid olive
grim sparrow
tepid olive
high citrus
gentle grove
tepid olive
tepid olive
#

ban amy

gentle grove
#

true

tepid olive
#

that's a lot of dotfiles holy fuck

high citrus
#

github should add a bulk merge option

undone nest
#

no because that would actually make sense

#

id say its pretty hard to realize for what little use it provides

high citrus
#

just closed them all, and they're already back

undone nest
#

thats other shit

#

its probably trying to update dependencies of what you just closed

high citrus
#

ah that kinda makes sense

#

but I don't like this :(

undone nest
#

merge conflict in package.json extremelydistraught

weary heath
high citrus
gentle grove
#

or tell dependabot to stop

#

or merge them

gentle grove
high citrus
gentle grove
#

can't you just go to each one and tell it to rebase

high citrus
gentle grove
#

yeah that should work fine

#

unless whatever lang you're using is weird and makes you have to make conflicts or something

gaunt mesa
#

i just saw this, but why not just use kabir's docker image

#

it's so much easier

grim sparrow
#

I just pasted the workflows I use fr

gentle grove
#

so true!

high citrus
restive ether
restive ether
#

ok

gaunt mesa
#

cam-

#

not+

#

ur a visible downgrade to society

restive ether
#

wtf

gaunt mesa
#

sorry that was really mean

tepid olive
surreal mountain
#

ap exam done

primal perch
#

trol

gaunt mesa
indigo peak
twilit jungle
#

the ap one

indigo peak
#

Why are you like thissadCat

grim sparrow
#

You asked

gaunt mesa
lime pivot