#development
1 messages · Page 83 of 1
no one cares
your code is on the same level as rust respectively
no one cares to read it or wants to deal with it
based
this is false
15.5 - 15.8 is likely not affected by the new CoreTrust bug
it's a "regression" after all
way to fuck it up apple đ€
yeah they should've kept the coretrust bug!!!!!
ââshit_protectâ đđ
When was it introduced? Was it introduced in 16.0, cause I see a lot of changes there
I think it is but like theres a parameter missing and was added later on, I know it's not path
@elder scaffold Can I try your jailbreak on my iPad 5 on 16.4.1? I want to test ElleKit on more devices
(I am evelyn)
I would like to send it to you if possible, but since it contains private things so...
it is not possible now :/ sorry.
Okay, no worries. Seems very cool
Lol
(i am also evelyn)
flëx
(same)

can you compile an ipa with linux or do you need a mac with xcode
You can use Theos
Theos ipas suck though apparently
Apparently theyâre broken and donât work with sideloadly
Then fix it
Alright just letting the dude know before he comes back saying that itâs not working Iâm not saying theos is shit but
No idea just resaying what i heard
What dude
??????????
Did you not read the last couple words
Im telling stuffed that if he were to use theos for an ipa that there could be a problem
Yeah im not saying theos is shit
No
Ok if thats how you wanna interpret my messages be my guest
Sure
Okay dude
I haven't done much research into this, but I'm wondering how feasible an iPod Nano 7th Generation jailbreak would be to make
I see https://q3k.org/wInd3x.html was recently released
I have a decent understanding of the technicalities of jailbreaks for early iOS devices
However I know the iPod is a very different device codebase wise and has a much smaller attack surface
(though I suppose also less protections)
technically isnât ipa support separate bc itâs kabir who has the theos-jailed repo
or has that changed
oh ok didnât realize it was about that instead
anyone have or know where I could find a backup for an iPad Pro 11" 4th Gen, iOS 16.6, M2 Chip?
plug it in to your PC
open itunes
press back up now
mine isn't set up yet, I am trying to experiment with a backup that already exists first
and it won't make a backup since not yet set up
Which saves rootful jb preferences, what were they thinking back then :)
thank you, but where could I find another iPad backup to tinker with?
I mean finding another iPad
people don't just give backups, as they usually have personal data
I get that.. wonder if I could get someone to remove the personal stuff
I know, Iâm hoping to tinker with a backup and then restore mine with it eventually
oh ok
Shouldnât be an issue Iâm not planning to use sideloadly
you know you can wipe a device at any time right
capt learning about #include
he thinks its a twitter hashtag
@import so much better. dont @ me
@indigo peak
@indigo peak
@indigo peak
@import @indigo peak
how do i solve this?
youâd need to manually patch the headers to remove the iOS unavailable flags, or just write your own header copying in the stuff you need
thanks
now, im getting this. did I do something wrong?
and this
is it related to the IOKitLib.h import or is it something else?
I got that with many header files
and removed API_UNAVAILABLE(ios, watchos, tvos) from them
now I got this
I'm not too sure honestly. I don't understand why that would be a problem
hmm, but thanks for your help:)
Wait what
They also renamed
- (void)_handleMessageMessage:(NSDictionary*)message onInterface:(NSInteger)interface withGeneration:(NSUInteger)generation fromMaster:(BOOL)fromMaster
to
- (void)_handleMessageMessage:(NSDictionary*)message onInterface:(NSInteger)interface withGeneration:(NSUInteger)generation fromAgent:(BOOL)fromAgent
in iOS 15, which is some random private method inside apsd, truly racism solved now đ
its not my code
github looking ass
mfs really cmd+f'd for "master"
any news?
The sky is blue today
oh thanks
how do u add private frameworks to xcode?
owner shepgoba
wait add tbd or .framework?
you dont want it
capts ssd has like 500TBW
too many panic logs and macos reinstalls
yeah probably
when i add it it says Framework 'BackBoardServices' not found
parent folder?
i got a goofy error
wait
i have stupid
do i embed the framework?
__swift_FORCE_LOAD_$_swiftUIKit, referenced from:
__swift_FORCE_LOAD_$_swiftUIKit_$_XXTAssistiveTouch in ViewExtensions.o``` wtf
ae idk why its giving the error
it's always swift
fr
im not making an app in uikit
as usual
the backend is obj c but ui is swiftui
it might be both
TRUE

Fr
c is for the part that runs in the background
why would i write 200 lines of uikit code for something i can write in 5 in swiftui
Just captâs father did to him
because
it works
it doesnât eat ram
doesnât rape the cpu
fr
doesnât bug after 2 seconds

yall are not helpful
yeah true
its just a wrapper around uikit but somehow apple made it garbage
too far abstracted
not this slow
yeah
it should be negligible
not blatant stuttering
but alas, it is
drag down frmo lock screen
stutter
open notification center
stutter
fr
we've really gone back
hardware: capable of butter smooth 120fps
software: ass
@tired crag I LOVE QUALCOMM
14% faster @ same power according to them but its probably embellished
it is arm
based
nuvia developed cores
where the A14 apple engineers went

the problem with the product is going to be software though almost certainly
windows on arm is still a joke
i need 4 terabytes for torrents
kay why
if windows actually invested in arm itd be a good option but
hdd so its mid
its not
its on my nas so its not like im booting off that shit
200MB/s read it seems fine
i wonder if i can torrent on a network drive
i do all my torrenting on my nas
i need a 2.5 gig nic
from my pc

upload torrent
save on nas
stream via jellyfin
winning
i got swiftfin too so i enjoy my smooth apple tv
128 bit what
addressing? nothing
consumer x86 processors have 256 bit registers
avx2
swiftfin doesnât work on jellyfin 10.9 
well its still beta
so thats not surprising
nfr
10.8.11 is stable and works
and its not compiling
yeah but its better than nothing
it works but its buggy
infuse is garbage
it never worked right for me
well i only streamed like one video cus all my hsit is h265
and infuseis like
PLEASE PAY
fr

I need someone with Mac
me when zero details
@grave sparrow can help you
nebula fin
piracy :/
Giving details in DMs itâs too large
olivia rodrigo
yeah fr

that one album you post every 2 days
no no i dont
lol
lua đ€
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
i doubt this will work
words I cannot say in this server
words I cannot say in this server
is it possible to simulate touch without root
made really quick so the UI looks bad
but this is my first time doing an xpc service w a normal macOS app as it's client
What does this mean
You typically don't need root to create a file
Think he means simulate touches on the screen.
what issues
causes this:
__swift_FORCE_LOAD_$_swiftUIKit, referenced from:
__swift_FORCE_LOAD_$_swiftUIKit_$_Helium in SettingsView.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)```
good.
is it under the "link with" section in build phases?
yes
anyone knows if theres progress with the trollstore?
!t eta stop being an eta kid
Hey @tepid olive, have a look at this!
We have no way of knowing. When there is news, it will be in #announcements
it's the same fucking webpage. how are these two related to kfd at all? this man is out of his mind
can this please be unpinned by chance ok thanks
clickbaitsn0w
yes, yes he is
sure brother
thanks
im trying to animate quadratic bézier curves from a straight line and am getting some interesting results where the curve loops back on itself (rather than a smooth transition) in the middle of the animation. would appreciate any insights as to why this happens
what does your code look like?
right? i do like it i just wish i knew why it was happening. to show an even cooler example here it is as with actual input data
this code generates the points for the curve in the inital animation:
CGPoint nextPoint = CGPointMake(frame.origin.x + frame.size.width, containerHeight / 2);
CGPoint controlPoint = CGPointMake(
(currPoint.x + nextPoint.x) / 2,
_displayUpdateCount % 2 == 0 ? (i % 2 == 0 ? controlPointYTopBound : containerHeight / 2) : containerHeight / 2
);
[_wavyLinesPath addQuadCurveToPoint:nextPoint controlPoint:controlPoint];
this is just test data but it alternates between the height of the curve to the height of the container view and the middle of the view every animation update.
CABasicAnimation *morph = [CABasicAnimation animationWithKeyPath:@"path"];
morph.duration = 0.75;
morph.toValue = (id)_wavyLinesPath.CGPath;
morph.fillMode = kCAFillModeForwards;
morph.removedOnCompletion = NO;
morph.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear];
[_wavyLinesShapeLayer addAnimation:morph forKey:nil];
this is the code that does the animation. this is called once per second
yessirrrr
i've been working on music visualization for a few days now, it's been pretty cool
another example with more colors, it's kinda sick
who wrote that crossover crack with ellekit
i want Dock theme with ellekit L
i mean on screen like the guy beneath said
zefram isnât even themed smh
Capt running one tweak on Zefram and calling it stable
wallpaper goes hard
~ % zsh: segmentation fault
Oh I'm just an idiot lmao
My brain's become a Linux terminal
Same vibes as apple waiting 4 months to release a journal app
(Both are bad)
this is my loader
Bro by the time it releases it will be gone Christmas considering they announced it at WWDC
Imagine the hours
Gone into this
Blood sweat and tears
plez
đ
Now give me zefram /s 
inshallah we converted hi m
Also old Xcode actually runs 

alhamduillah
ill update when it stops getting security prob
might be 1-2 years
by then i hope sonoma/macos 15 isnt ass
@grave sparrow what's the recommended way of accessing prefs from a tweak
no sandbox
bonus points if it works in the constructor
you went to capt incâŠ
is that spanish
yes

can it be done lol
I don't want literal 'None" in db
Why no one help me with make jb
This actually ended up being it, in someplace in the code I was converting it to string and it caught all the NoneTypes as "None" literals
@grave sparrow how do cope with the software update badge 
ignore it 
I remember having a way to brick it but I can't remember what I did 
Changed a plist somewhere to immutable but the common suspects don't seem to be doing the trick
Maybe I 000'd softwareupdated 
Genuinely can't remember
Remove prefs.app from dock
All I know is that software updates were properly fucked up so
It doesn't appear to affect it
what iOS version are you on
I'm referring to macOS 
install iCleaner Pro and disable the OTA daemon
I simply install updates
Nerd


Why is no one helping actually
cron job
i didnt write this shit
i just copied it from capt then deleted his messages

mods
capt just deleted my messages
capt dick ridding into the pins part ????
@grave sparrow oi cunt suck a huge dick
meany
I will find Patrick to let him know you are available
no it's friday
But you said it
Hide the Software Update badge on macOS
- Go to System Preferences -> Software Update
- On the latest update, click "Download and Install"
This just temporarily hides the update
Hide the Software Update badge on macOS
- Get a brick
- Smash the mac with the brick until it stops showing the update badge
definitely works
capt saying he made a jb when i can just amfi_get_out_of_my_way=1
Darwin 21 Gang rise up đŁïžđŁïžđŁïžđŠŸđŠŸđŠŸ
Darwin 21 Gang rise up đŁïžđŁïžđŁïžđŠŸđŠŸđŠŸ
Darwin 21 Gang rise up đŁïžđŁïžđŁïžđŠŸđŠŸđŠŸ
Darwin 21 Gang rise up đŁïžđŁïžđŁïžđŠŸđŠŸđŠŸDarwin 21 Gang rise up đŁïžđŁïžđŁïžđŠŸđŠŸđŠŸ
Darwin 21 Gang rise up đŁïžđŁïžđŁïžđŠŸđŠŸđŠŸ
Darwin 21 Gang rise up đŁïžđŁïžđŁïžđŠŸđŠŸđŠŸ
Darwin 21 Gang rise up đŁïžđŁïžđŁïžđŠŸđŠŸđŠŸ
Darwin 21 Gang rise up đŁïžđŁïžđŁïžđŠŸđŠŸđŠŸ
Darwin 21 Gang rise up đŁïžđŁïžđŁïžđŠŸđŠŸđŠŸ
Darwin 21 Gang rise up đŁïžđŁïžđŁïžđŠŸđŠŸđŠŸ
Darwin 21 Gang rise up đŁïžđŁïžđŁïžđŠŸđŠŸđŠŸ
Darwin 21 Gang rise up đŁïžđŁïžđŁïžđŠŸđŠŸđŠŸ
Darwin 20 gang
Respectable
Darling kernel 
me when I pretend to be a darling machine
Darwin 19 gang
Dingus
Yeah?
Dingus
What about it
darwin 10 gang wya 
LMAO
when you need to use xcode 2 struggles
Tysm đđ»
hey im the only one who tweaks the calculator app around these parts
@opaque thicket installed Ellekit 1.1 beta on my iPhone X 16.6, after userspace reboot it got stuck on black screen, rejailbreaking gets stuck on "Booting" đź
it's something to do with Crane....
Who darwin and why is he 10
wtf idk what I did differently but it just works now...
palera1n experience
meow experience
TIL: OOB read doesnât qualify for a CVEđ
jelbrek experience
they just dont want to pay out đ
release 

I'm gonna make a jb
Jelly babies
make it a launchdaemon 
@grave sparrow where zefram
pretty sure git push is always supposed to output something
why didnt it start a new prompt

it was before

mf has a folder called Files, which contains non-files

"schoolwork"
okbuddy
@grave sparrow this is a certified root:xnu-8020.121.3~2/RELEASE_ARM64_T8110 moment
Better known as
Darwin 21.5.0
so is screen touch simulation possible inside a tweak or not
Record and playback touch operations, play macro scripts automatically.
not record
i meant
inside of a tweak
for example touch(x, y)
if that makes sense
example like what? i want to simulate a touch inside of my tweak
ok thank you though
yes, can you tell me what the function for it is
yes which
thats for you to find out đ
https://github.com/xuan32546/IOS13-SimulateTouch outdated but might be useful
iOS Automation Framework iOS Touch Simulation Library - GitHub - xuan32546/IOS13-SimulateTouch: iOS Automation Framework iOS Touch Simulation Library
Non Monterey users https://fixupx.com/nigahlizard/status/1718142645694812605?s=46
@gamingmaster310 @daysafterastr0
Darwin Water.local 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 20:57:23 PDT 2022; root:xnu-8020.121.3~2/RELEASE_ARM64_T8110 arm64 supremacy
đ€đ€
the world is slowing healing thanks to darwin 21 
đ
how do i set my company name in theos/xcode?
so it like auto fills here?
@radiant idol
do i need to do it in like xcode or sm?
ah yeah that then
?
wheres your .nicrc file located?
you can also set the author for it by default using username = "WilsontheWolf <email@example.com>"
like this ?
need the <> around it
k
uh
do i need to restart like theos or sm?
or restart term sesh or sm
can it not include number?
nvm got it
this didnt work, the package_prefix = "ws.hbang" did
yeah
red is username yellow is package_prefix
(Uploaded form phone. Typing on pc)
do you want me to send the code for that or do you want to figure it out yourself
i want help figuring it out my self
#import <UIKit/UIKit.h> // Importing UIKit
@interface MRUControlCenterViewCtonroller : UIViewController
@end
%hook MRUControlCenterViewCtonroller
UIImageView *ccatrwork = MSHookIvar<UIView *>(self, "artworkViewCC");
%end
is this good sofar ish
um
idk how to eddit the calayer thing
k
@import UIKit;
@interface CALayer (Private)
@property (nonatomic, assign, readwrite, setter=is_setBlurRadius:) CGFloat is_blurRadius;
@end
@interface MRUControlCenterViewController : UIViewController
@property (nonatomic, strong) UIImageView *artworkViewCC;
@end
%hook MRUControlCenterViewController
- (void)viewDidLayoutSubviews {
%orig;
if (self.artworkViewCC) {
self.artworkViewCC.layer.is_blurRadius = 20;
}
}
%end
should work I think
send crashlog
i think its caue like musicBG doesnt actully put the image there till u play somthing
so its hook/changing nothing
send a crashlog
was i right?
i dunno
still safemode
what is the issue now
oh I see why
what was it?
now try
works now thx
cool
now i get to do it for the LS
gl
wasnt hard just had to chnage the hood and artworkviewCC to LSBG
but thanks for helping/doing ot for me
just one quick thing
wha
I would suggest you use viewDidLoad if possible instead of viewDidLayoutSubviews
yea, saw that int he tutorial thing caue it get called more and can lead to mem leaks and freezes. right?
yes
it can be useful for quick testing
but I would suggest you try viewDidLoad first
how? like why would the 2 be difernet, one is just when the VC is loaded/called and the other is when any of the subviews is?
nvm
viewDidLoadonly gets called once per session, when the view controller's view is loaded/createdviewDidLayoutSubviewsthis gets called whenever the vc's view lays out its subviews
fuck swift
chad
Help
@interface MRUControlCenterView : UIView
@property (nonatomic, strong) UIView *materialView;
@end
%hook MRUControlCenterView
- (void)viewDidLoad {
%orig;
if (self.materialView) {
self.materialView.hidden = true;
}
}
%end
made this to do this/that^
so then what do i put instead?
just ```@import UIKit;
@interface MRUControlCenterView : UIView
@property (nonatomic, strong) UIView *materialView;
@end
%hook MRUControlCenterView
self.materialView.hidden = true;
%end
?
instead of viewDidLoad try didMoveToWindow
ah, works now thx
cool
I prefer layoutSubviews, especially when adding new views and doing computationally intensive tasks
is that why nexus is classified as malware
no itâs why I did your mother last night
do not disrespect my mother
yes


web dev for @grave sparrow
No way is this the famous layoutSubviews I've heard of?
no sir it's viewDidLayoutSubviews
Sir this a viewDidLayoutWendys.
```foreach (var theme in themes)
{
var tweakImage = new Image();
var tweakCard = new SettingsCard();
var tweakDownloadButton = new Button();
tweakCard.Header = theme.Name;
tweakCard.Content = tweakDownloadButton;
tweakCard.Description = theme.Author;
string imageUrl = baseUrl + theme.Preview;
var imageBytes = await client.GetByteArrayAsync(imageUrl);
using (var stream = new MemoryStream(imageBytes))
{
var bitmap = new BitmapImage();
await bitmap.SetSourceAsync(stream.AsRandomAccessStream());
tweakImage.Source = bitmap;
}
tweakDownloadButton.Content = "Download";
balls.Children.Add(tweakImage);
balls.Children.Add(tweakCard);
}```
what's this
wowz
avangelista piss me off
reboot
return after reboot
words i cannot say in this server
Yeah int main type shit
@grave sparrow you definitely main 12.6.9
my main iMac is 12.7 because I've been too lazy to update to 12.7.1
12.7.2 
Nuh uh
Get on that 12.6.9 pack
Funny
Also Xcode 14.2 
Fair
I'm on 12.4 rn because funny m2 moment
Erm ackshually it's Darwin Kernel Version 21.5.0 âïžđ€
Fr
how can i chnage the hidden thing for somthing like 2 view in/donw/deep. 3rd image is what i have and doesnt compile (errors), images 1-2 are dress
Flex
i got it to work with hooking platterView but that also sets the like materialViews to hidden for notifactions
@radiant idol ?
ok so go via the platterview and then hide the material view via it
btw for syntax highlighting there is a VSCode extension
like hook the platter view? cant...
no
i just dk how
ok hold on
did it crash or what
doesnt comile
đ
which/what?
@import UIKit;
@interface PLPlatterView : UIView
@property (nonatomic, strong) UIView *backgroundMaterialView; // The reason this doesnt say MTMaterialView is because we dont need to access anything special in this, we are just hiding it. If we were to access special properties in the MTMaterialView which aren't present in UIView, we would need to declare this as an MTMaterialView.
@end
@interface CSAdjunctItemView : UIView
@property (nonatomic, strong) PLPlatterView *platterView; // The reason I use PLPlatterView instead of UIView here is because UIView does NOT contain a property like backgroundMaterialView, so we need to tell the compiler that this is specifically a PLPlatterView, not a UIView so it doesn't complain.
@end
%hook CSAdjunctItemView
- (void)didMoveToWindow {
%orig;
if (hideLockscreenPlayerBackgroundSwitch) {
self.platterView.backgroundMaterialView.hidden = true;
}
}
%end
ah, thx
and oh. that makes snese
thanks
make sure you read the comments
yep i did
cool
uhhh ur if([this]) doesnt wokr
i think this was the thing in dress
for settings
im chaging it to self.platterView.backgroundMaterialView
well idk that was in your code so thats why I used it
you can just remove the if statement
k
if you dont want it
i mean it wount cause any issues caue it will always be there?
not sure what you mean
this one
thast what i means is it gona like reduce saftery? caue safemodes?
as long as it is always there it wont cause issues
and in objective-c you can call methods on nil (null) as well so it wont cause issues
hope that makes sense
Working, thanks đ
yea, like methods(dk what they are exaclty) but some are nill (unused atm)
thanks, i used dress before, but it casue DPKG issues so i wanted to make my own thing
do you know what functions are in javascript, python, whatever?
yea im familiar w JS
ok so you know what functions are
yes
thast the things in the artfull code to make the thing smaller and larger
like you call them
methods are just functions which belong to a class/class instance
calling them is like running the fucnton in js
right so basically if a function is put inside of an object/class (in this case CSAdjunctItemView's didMoveToWindow "function"), they're called methods
oh so nill methods are like empty functions in js
k
const someObject = null
someObject.map(key => { /* ... */ })
tihs would crash in javascript (I think)
because you cannot call functions on something that is null
k but i thought functions there like function somefucntion(){ //function code }
in js
whats someObject.map(key => { /* ... */ })
well the mapkey part
ik varibles const, var
like if u tried to set a null varible to somthing in JS it crashes? ( it does)
class SomeObjectType {
// ...
function someFunction() {
console.log("someFunction called")
}
// ...
}
this is javascript
yes
you can have classes and then have functions inside of them
the way you would call this is
const someObject = new SomeObjectType()
someObject.someFunction()
right?
u mean run the function?
its just someFunction()
that's for free floating functions that arent in classes
ok let me try to explain using a real life analogy
like <button onclcik="somefunction()"></button>
ohhhh
so like if there was a function that you could call system wide?
like anywere any time
lets say you have an apple. that apple has a function int it called eat(). this eat() function is not present anywhere else, only within the apple. so if you want to eat the apple, you do
apple = a new apple
apple.eat()
right? (this isnt valid js, more like pseudocode)
Yum
yea i get it, i think
so like u need to get the apple before you cant apple.eat() it?
yes
so thats getting the class
mhm
/importing it or sm
and then calling the function ON it
ohh
so this
@interface PLPlatterView : UIView
@property (nonatomic, strong) UIView *backgroundMaterialView; // The reason this doesnt say MTMaterialView is because we dont need to access anything special in this, we are just hiding it. If we were to access special properties in the MTMaterialView which aren't present in UIView, we would need to declare this as an MTMaterialView.
@end
@interface CSAdjunctItemView : UIView
@property (nonatomic, strong) PLPlatterView *platterView; // The reason I use PLPlatterView instead of UIView here is because UIView does NOT contain a property like backgroundMaterialView, so we need to tell the compiler that this is specifically a PLPlatterView, not a UIView so it doesn't complain.
@end
is gettign teh apple
then this is eating it
self.platterView.backgroundMaterialView.hidden = true;
well not exactly
ok let me try to explain better
lets say you have a friend who is a farmer. he "makes" these apples (gets them from the trees) and then you get the apples from him. you dont see the process of the apples getting created, you now just know that you have the apple
no, that first bit is just you telling the compiler that it exists
it doesnt already know, as that was written by apple
and it has no way to know
PLPlatter.. is a class/object? and CSAdjunctItemView is to. so it like CSAdjunctItemView is a box then to open it you @interface CSAdjunctItemView : UIView then to pick up the PLPlatterView you @property (nonatomic, strong) PLPlatterView *platterView; now you open that ox with @interface PLPlatterView : UIView then pick out the materialView wiht @property (nonatomic, strong) UIView *backgroundMaterialView;
yes technically
ok
so javascript would crash if the apple doesnt exist (aka it is set to null)
real
yes
or this is just saying hey compiler these exsist
basically that
but notice how on line 10 you do use PLPlatterView
if that was put above the PLPlatterView interface (line 5), then the compiler wouldn't know what PLPlatterView is
because you would only define it LATER
ah
wtf i always thought the sb in SBApplication was springboard
what does it mean
is it not
The class provides a mechanism enabling an Objective-C program to send Apple events to a scriptable application and receive Apple events in response. It thereby makes it possible for that program to control the application and exchange data with it. Scripting Bridge works by bridging data types between Apple event descriptors and Cocoa objects.
"Scripting Bridge"
wtf
weird
@acoustic imp ok so do you get it
Yea
cool
Quiz me?
I mean if you get it then youre good
@hasty ruin is your "VolPause" tweak open source?
oki
there
thanks
np
I am
đ
although I think bool, _Bool, Boolean, and BOOL are all intercompatible
don't quote me on that though
@radiant idol can you help me try to make a like more complicated tweak, but help me thru it not jst do it for me
whats the issue
well what i want to do generally, is add a double and tripple clcik function to icraze's
and the way i want to do this is basically...
first clcik - wait (amount of time) and if no click (clcik count = 1) run clcik counntrunner thing
fisrt clcik - wait (amount of time) and if in that time clcik (wait amount of time) then if no click (click count = 2) run clcik counntrunner thing
-first click - wait (amount of time) and if in that time, click (wait amount of time) then if click in that time, (wait amoint of time) then if click (click count = 3) run clcik counntrunner thing
click count thing -
if clickcount = 1{
do this}
if clickcount = 2{
do this} if clickcount = 3{
do this
} else{
do nothing }
how did you manage to misspell click every single time
i did
this is what chat gpt came up with
#import "MediaRemote.h"
@interface MyCustomButtonHandler : NSObject
- (void)resetClickCount;
- (void)handleButtonClick;
@end
@implementation MyCustomButtonHandler
static NSTimeInterval lastPressTime = 0;
static int clickCount = 0;
- (void)resetClickCount {
lastPressTime = 0;
clickCount = 0;
}
- (void)handleButtonClick {
// Handle the single, double, or triple click here based on the value of clickCount
if (clickCount == 1) {
// Handle single click
} else if (clickCount == 2) {
// Handle double click
} else if (clickCount == 3) {
// Handle triple click
}
[self resetClickCount];
}
@end
%hook SpringBoard
- (_Bool)_handlePhysicalButtonEvent:(UIPressesEvent *)event {
UIPress *volUp = nil;
UIPress *volDown = nil;
for (UIPress *press in [[event allPresses] allObjects]) {
if (press.type == 102 && press.force == 1) { // volume up
volUp = press;
} else if (press.type == 103 && press.force == 1) { // volume down
volDown = press;
}
}
if (volUp || volDown) {
NSTimeInterval currentTime = [[NSDate date] timeIntervalSinceReferenceDate];
if (currentTime - lastPressTime < 0.5) {
clickCount++;
} else {
clickCount = 1;
}
lastPressTime = currentTime;
if (clickCount == 1) {
[self performSelector:@selector(handleButtonClick) withObject:nil afterDelay:0.5];
}
if (clickCount >= 3) {
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(handleButtonClick) object:nil];
[MyCustomButtonHandler resetClickCount];
}
}
return %orig;
}
%end
but ot doens not do the classes/methods thing right at all
gpt is dumb
so it đ©
very
learn a bit about objc syntax and programming logic
This project was created with the intention of preservation
this seems like a pretty easy tweak to do if you learn programming logic
just the whole thing
yeah its decent
ok, so il read up on it and ask if i have any questions
cool
any other thing you know of to learn ^?
oh and
but its old
no
oh oopa
oh google auto corrected
thx
oh guse i already stared watching them
yeah
take the code he writes with a grain of salt because a lot of it wont work nowadays
but the concepts that he talks about
those are useful
and still apply
đ
480p max resolution
Meh
Objc hasnt changed in what
Like 15 years?
yeah but the classes and whatnot have changed
thats what I mean
like the infamous SBLockScreenViewControllerBase
Yeah but the videos teach you how to find headers no?
yea jus go to devolper.limenos or sm
Then what do the videos teach
Not much to teach about tweak dev
true
preferences
how to not make nexus
u cant put if state,meants in @implementation stuff right?
@radiant idol if i have a variable in a class, like the clcikcount or something, and i want to make a different' class to run the actions for the single, double, and tripple press. i would just have to do like @interface actions: clcikcount... and i could have my if statements and set the clickcount variable to 0 when im/its done in the @implementation of actions class?
write that message in proper grammar and I'll answer it
I cant understand what that says
updated*
I still dont get it
you are special, yes
for context this is what im trying to do, with no prior objc knowledge
what was the cause
well im usinf icraze's pre made thing ```#import <UIKit/UIKit.h>
#import "MediaRemote.h"
@interface doesthebuttonstuff : NSObject{
int *clickcount = 0
}
%hook SpringBoard
-(_Bool)_handlePhysicalButtonEvent:(UIPressesEvent *)event {
UIPress *volUp = nil;
UIPress *volDown = nil;
for (UIPress *press in [[event allPresses] allObjects]) {
if (press.type == 102 && press.force == 1) { // volume up
volUp = press;
} else if (press.type == 103 && press.force == 1) { // volume down
volDown = press;
}
}
if (volUp && volDown) {
MRMediaRemoteSendCommand(kMRTogglePlayPause, nil);
}
return %orig;
}
%end
thats what i thouhgt about just hve no clue how/what to do
but i will figure it out đ
k
but the thing is its both buttons, woudl that work?
like both being pressed counts as 1 button press
ok, still new to thinking in code ig
^
oh ok
i mean can i repurpose somthing in IOS already?
like theres a double tap and tripple tap for power button
like for apple pay and accessibility or sm
how the hell do I run posix_spawn as root
I have looked in various places
setuid(0) returns -1
I'm hooking Sileo
ok thanks
all this swift
woeisfade
@grave sparrow ?
its gross
plus all this reference stuff does not look swifty either
&&&&&&&
oh ok thats helpful
thanks
why wouldn't setuid(0) work though?
o
interesting
these five lines are also pretty disgusting to look at
@grave sparrow could this work?
https://stackoverflow.com/questions/8876202/uitapgesturerecognizer-single-tap-and-double-tap
singleTap.numberOfTapsRequired = 1;
[self.view addGestureRecognizer:singleTap];
UITapGestureRecognizer *doubleTap = [[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(doDoubleTap)] autorelease];
doubleTap.numberOfTapsRequired = 2;
[self.view addGestureRecognizer:doubleTap];
[singleTap requireGestureRecognizerToFail:doubleTap];```
fair fair
ok icraze already got the hardware side done in VolPause i think... right? i would just have to like put it all together?
#import "MediaRemote.h"
@interface doesthebuttonstuff : NSObject{
int *clickcount = 0
}
%hook SpringBoard
-(_Bool)_handlePhysicalButtonEvent:(UIPressesEvent *)event {
UIPress *volUp = nil;
UIPress *volDown = nil;
for (UIPress *press in [[event allPresses] allObjects]) {
if (press.type == 102 && press.force == 1) { // volume up
volUp = press;
} else if (press.type == 103 && press.force == 1) { // volume down
volDown = press;
}
}
if (volUp && volDown) {
MRMediaRemoteSendCommand(kMRTogglePlayPause, nil);
}
return %orig;
}
%end```
correct
ok
ok am I like stupid or should this work
dont mind the int status thing, I was testing
oh
frcoal
wait so
posix_spawn(pid, launch_path, NULL, attr, args, environ)?
just pseudocode
but is that right
right
ok cool

the amount of being-pissed-off-at-rosetta capt was doing was insane
oh yeah
you were complaining every day
nice lol
how many lines is it
wow

Omg please
Thank god
I can now make sure my code isn't running on an unsupported platform
Lord and saviour captinc
wtf
Major zefram datamine
swift_name??
thats a thing?
yeah makes sense
just never knew that that was specifically a thing
ya
man the objc-swift relationship is so complicated
yeaah
Smh not using apparency
wtfis is releasing before zefram and i rewrote it 3 times
Install apparency coward
@grave sparrow install apparency
Coward
Apparency is fire
thats insane






