#development
1 messages ยท Page 223 of 1
oh. 
yes but it may be nil
when setting, using safeValueForKey
i should check 
like ur assigning the property value of safeValueForKey?
ye
my NSLog was never called 
even if an obj is a subclass of UIViewController, will it still call viewDidLoad ?
i hooked some methods, called them with flex, and no logs were produced
wth ๐ญ
is it possible like it just never hooked it
[[NSBundle bundleWithPath:@"/System/Library/ControlCenter/Bundles/FocusUIModule.bundle"] load];
add this in your %ctor
%ctor {
[[NSBundle bundleWithPath:@"/System/Library/ControlCenter/Bundles/FocusUIModule.bundle"] load];
%init;
}
private frameworksUIKIT core
ok, did u have to do that ?
you probably got the permissions of that file wrong
no on 18cc but Jade yes
i set it to 777
its fine, as long as i got root
16.6.1 btw, latest dopa, not 2.3
worked thanks ๐
you're welcome
that's the opposite of what it needs to be
if that file is writable by anything more than it should be, it will be rejected
oh, ok
question, does ios like use brach execution here ? becasue it seems like its executing even tho objc self.CCE_isBrightnessSliderModule = NO
i checked with flex before this method would be called
should i do an objc if(!self.CCE_isBrightnessSliderModule) return; before it ?
that means the same thing
but i know but what do i do?
ยฏ_(ใ)_/ยฏ
frcoal
this does but like the compiler removes it right ?
?????????
removes*
DOES IT?

Bro what the fuck are you doing
just comment out the lines ๐ญ
i deleted whole thing ๐
i hate how objc uses YES and NO
i like 1 and 0 better but nightwind bullied me
holy shit 1 and 0
its all the same int he end 
sksl issue
^^^^^^
my poor ipad ๐ญ
@radiant idol are your radiuses hard coded?
uh k
Why does your CC look weird?
its supposed to look like ios 18's
so you changed border radius to be 50%?
confused as to what is happening different than the iOS 17 CC
oh yea, i jus messed sm up
fixed now
its honestly a horor now
why TF would one even think of hooking that!?
CC @radiant idol
Your Control Center. Redefined. Contribute to NoisyFlake/MagmaEvo development by creating an account on GitHub.

@acoustic imp one of the changes caused prefs to stop showing up
uh, I didnโt touch prefs ?
Wdym โnot show upโ
ae i broke it somehow
its a blank screen when i go to it
Itโs a plist issue typically
Just ask chat gpt
Be like hey Iโm writing a plist for prefs are there any issues?โฆ
Uhh for what
?
plist
is it real?
mmmm Xcode moment
Can I swizzle SSOKeychainCore / NSFileManager (not theos hook) without being jailbroken?
(I know this is a jailbreak server but most here are more informed then in other communities)
Sideloading youtube with a custom framework but my SSO / OAuth login doesn't persist accross app restarts
need some method to force keychain to write under my bundleID or retrieve from my keychain not the google one
thats vscode
no its fine
I mean in some cases it switches up integer to "real"
copy paste the whole thing and ask gpt @wind ravine
@radiant idol what
its fast
@radiant idol
it works 
this is why your code looks like that
i dont use gpt to code, jus for like "give an example of this..."
then i write my own thing
riight

my code is 99% teslaware
lemin?
let see how much time do i spend on CC18 
got different radiuses for different size models and different devices/screens 
amazing
this vexxes me
๐คทโโ๏ธ
lol
@radiant idol what methods do u hook on CALayer? cornerRadius and masksToBounds ?
just check Magma evo
where? it doesn't do corner radius?
!!!!!
naw i aint schewtpid
this is not corner radius.
oh so u do somthing dif for corner radius?
u change it? on the modules?
to be like ios 18????
i did a object_setclass but hooking to setCornerRadius makes it a little funny
and masksToBounds doesnt like stay when animating
ok i think you are a strange strange person
%hook CCUIContentModuleContentContainerView
- (void)layoutSubviews {
%orig;
self.layer.masksToBounds = YES;
if (self.frame.size.width < 90 && self.frame.size.height < 90) { // 1x1
self.layer.cornerRadius = self.frame.size.width / 2;
} else if (self.frame.size.height == self.frame.size.width) { // 2x2
self.layer.cornerRadius = k2x2SquareCornerRadius;
} else { // other
self.layer.cornerRadius = kOtherCornerRadius;
}
}
%end
THERE
now SHUT up
its FINE for this
u could adleast %prop the radiuses
?????????
this or like 200 + lines of code 
that's more overhead than just constants, what ๐ญ
realy?
yes ๐ญ
putting everything in %property is not great
oh.
it needs to add a new associated object to the class whereas if you're just accessing a constant you are just doing that, that's all
teslas favorite thing to do is make %property
its INSANE
oh i also did sm dif
for this ^ (oops)
sorry i think i have been quite rude in the past couple of mins
i apologize
i am tired
theres a multiplyer
that also works
idc, i proly need it tbh
const CGFloat calculateContinuousCornerRadiusWithFrame(CGRect frame){
if(frame.size.height == frame.size.width && frame.size.width < 90){ // 1x1 module
return frame.size.height/2;
}else if(frame.size.width/2 >= frame.size.height){ // 2x1 module
return frame.size.height/2.85714;
}else if(frame.size.height/2 >= frame.size.width){ // 1x2 module (volume/brightness sliders)
return frame.size.width/2.85714;
}else{ // 2x2 and above
return (frame.size.width > frame.size.height ? frame.size.width/5 : frame.size.height/5);
}
}``` used the sims to like find it and its the same on all devices ๐
amazing
no major issues with it?
heheeheehe
is better to use instead of going like ?((someclasss*)self.superview.superview).someProp = YES
sorry what
((someclasss*)self.superview.superview).someProp = YES```a bunch of thoes ^^ or a %prop ?
โ ๐ญ
those two are NOT related
i know but like for a referance to a view
k
now what about calculating radius? call this^ or a %prop ?
uh ok
so get rid of the %prop for them ?
and jus call the funct?
well I guess the way you're doing it makes sense for a %property
my point is that you should use it sparingly, dont overuse it for everything
these r where it would need to be called
im jus using it for the ref and the radiuses
like making ur own %property BOOL is better than doing a safeValueForKey a bunch of times ?
I wouldn't say so
oh
safeValueForKey means that there's already an ivar on the object
whats going on
he's being silly
ok what else is new
im ripping my cart in preperation to read the last ~10 min of chat
like setting a corner radius larger than height/2 ?
well it hapens for a like split seccond
well it tried to here^
its not going larger than 50%
its that you assigned your corner radius for a specific height
well yea but its borked
and then when ur height changes when you hold it
it keeps that corner radius without updating the height
hold on
so a height of 100px gives a 50px radius
then when you hold it goes to 120px, which now the radius SHOULD be 60px, but its still 50px

find the resize or 3d touch method for the cell
check where it updates the height
and recalculate your corner radius
uhhh
i did
the like borked one getting added is the re calculated version
it just applies instantly when the widith is like to small for it
id have to mess with CoreAnimation to fix it ?
or a dispatchTimout 
my brother in christ
dispatchtTimout
^
dispatch_after *
uhh so hooked the like expanded radius return method and that basically it
what class
then in my CALayer subclass i just apply it
CCUIContentModuleContentContainerView
CCUIContentModuleContentContainerView layer is my subclassed layer
but only for the brightness slider
on CCUIContentModuleContentContainerView
hooking layoutsubviews would fix all my problems
honestly
this is just psychotic dude
im jus trying not to 
but this is indeed psychotic
fiore dissapeared 
oh well, im done for tn
oh ok ๐ thx
@acoustic imp
const CGFloat calculateContinuousCornerRadiusWithFrame(CGRect frame) {
CGFloat cornerRadius = 0;
CGFloat width = frame.size.width;
CGFloat height = frame.size.height;
bool isPortrait = height > width;
if (height == width && width < 90) {
// 1x1 module
cornerRadius = height / 2;
} else if (width / 2 >= height) {
// 2x1 module
cornerRadius = height / 2.85714;
} else if (height / 2 >= width) {
// 1x2 module (volume/brightness sliders)
cornerRadius = width / 2.85714;
} else {
// 2x2 and above
cornerRadius = (width > height ? width / 5 : height / 5);
}
if (isPortrait) {
cornerRadius = MIN(cornerRadius, height / 2);
} else {
cornerRadius = MIN(cornerRadius, width / 2);
}
return cornerRadius;
}
epic fiore optimizations 
well, the MIN isnt rly gona work
ur so right
bc it only gets called/applied once
thats ur issue
what
il try hooking that
wait what ios is this
what the fuck does that even mean
i was alr hooking it nvm
welp
i wasnt setting it to NO
now i am
and it working
with no need to CALayer set ๐


youre forgetting frenchie

only one thing can be labelled at once
dont want to accidentally make the info useful
whys %property bad
it's not bad
but it doesnt need to be used in whatever tweak they were on about earlier
because it was a constant integer value
no need to set up getters and setters for that lmao
even a #define would do
oh
???
why would bro %property over that
brother
the code you yap is swift
don't talk
We ain't talking about me we talking about you frenchie
give back delete perm rq plz
give me it instead
Where's your orange name?
where is your delete message perm
Taken away by @shut stag
@lyric heron you should make a tweak and apply for orange name
im gonna steal source code and publish it
and then apply for orange name
Impossible
Please feel free to delete my message if the statement I made isn't true.
oh you can just delete it if you think it's not true

I would say something.
Hey i have the perfect tweak idea
Ios 15 player for ios 16
For those who really love the ios 15 player and hate the ios 16 player
And like u can call it xplayer where u replace x with the ios version
So it could be 15player
has anyone else noticed that development doesn't really require skill
but when it comes to tesla man...
development requires skill if you're doing advanced stuff
for simple stuff it's not really that bad
like ob*c
๐คฎ
?
u heard me
ok
ok
โ
What?
What r u trying to say
nothing?
it's striked through
meaning ur skilled!
mhm
@acoustic imp its still changing the battetry btw
also i cant figure out why update frequency choice isnt working
ok, il take a look when i can
try adding some NSLogs and debug it
its primting
it updates in plist and sets the value it just looks like the timer is still lagging
hm
vibes oriented programming
already sent this in ono :/
tesla isn't in ono :/
Skill issue
i thought icraze hated swift users?
im def the only one 
the only who?
only orange name not in ono :/
no
.
(no)
A role for one guy, how selfish!
@shut stag give up
not that many people
Roughly 31 if I had to guess
@radiant idol how do i show the power down menu ? is it some method on SpringBoard or restartManager ?
Go through the struggle I want to see if you can find it
If you truly canโt Iโll send
Sure
did u ?
Yeah
oh.
bc there is this on ios 15 but not 16
oops worng thing
hol up
wait no
nvm
๐คทโโ๏ธ
In your search for the method you may find it in a userโs code that normally doesnโt write a certain language
what is that supposed to mean
Think about it in an abstract sense
are you talking about bibi or what
No
gave bro a riddle ๐ญ๐
icraze?
lemin, haxio, rugmj ? ๐ญ
No
is it that one tweak that eddits the thing
ok thatโs one way
ok il jus use ida
thereโs another which is much simpler
ida took me like 10 seconds
itโs on the github of a person you know
doubt it'll get much simpler than that
idk ppl on GH
lmao
Simple tweak to remap the long press of the power button on notched devices to the power menu instead of Siri. - NightwindDev/LockButtonX
btw nightwind
you know what i did for the first time a couple of days ago
Objective C
Then what
extract something from the dyld cache and reverse it
i did glance purely by looking at headers
Oh fun
!!!
what other fun stuff r on workspae
Idk havenโt looked
@radiant idol the uh buttons on iOS 15
K
ik :)
im clueless on how to do this without like fricking the animation
the "FUGap" tweak might help you
its not OS 
use your ida skills
everything is OSS

ik i saw that
im jus trying to see what its like doing, setting thng to
its a rly small tweak lol

no
// Declare variables
__int64 v11; // x20
double screenBoundsHeight; // v13
double screenBoundsWidth; // v12
double comparisonValue; // v14
double resultValue; // v15
// Check if some condition is true (based on byte_42E8)
if (byte_42E8) {
v11 = result;
// Check if the device is an iPhone (using userInterfaceIdiom)
if (![UIDevice currentDevice] respondsToSelector:@selector(userInterfaceIdiom) ||
[UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone) {
// Get the screen bounds
CGRect bounds = [UIScreen mainScreen].bounds;
// Assign height and width of screen bounds
screenBoundsHeight = bounds.size.height;
screenBoundsWidth = bounds.size.width;
// Set the comparison value to the larger of the screen height or width
if (screenBoundsHeight >= screenBoundsWidth) {
resultValue = screenBoundsHeight;
} else {
resultValue = screenBoundsWidth;
}
// Check if byte_42E8 is true and the result value is 812.0
if (byte_42E8 != 0 && resultValue == 812.0) {
// Assign values to output parameters
*(double *)&a3 = 30.0;
*(double *)&a4 = 0.0;
*(double *)&a5 = 0.0;
*(double *)&a6 = 0.0;
}
}
// Call the function with updated parameters
return off_42F8(v11, a2, a3, a4, a5, a6);
}
// Return the original result if byte_42E8 is false
return result;
i mean... (๐ญ )
im already doiung it lol
no!
No!
thats what reversing means...
that's not what the file was called
oh
oh thats rly helpful
i figured out byte_32E8 is representative of some bool for the tweak being enabled
cheverion doesnt exist in ios 15
that's fine
ok now why does your ida look better than mine
ยฏ_(ใ)_/ยฏ
โฌ๏ธ
probably because I added other context clues
ยฏ_(ใ)_/ยฏ
thats not what i meant ๐ญ
maybe
i meant why do i have stacked if but his is just a ||
oh idk
@radiant idol 3 things, where did u get the bin, is it arm64 arm64e and what ida version are you using
mines
Version 9.0.240807 Windows x64 (64-bit address size
same
what "context" clues did u add for this
bc idk why my shit looks ass
i tried doing de-obfuscate arithmetic operations but ion think it works
like g_tweakEnabled != 0 is clearly just g_tweakEnabled
why not make it a bool
oh my
lmao
I'm just that good
this is technically how it should be
instead of char
7670 ?
lmao
it's sub_3654 for you
mfw we have diff bins
oh
FUGap
yes
bc me and icraze have the same binary, just different sub numbers
but also look at the InitFunc_0
and nightwind has the same as u
so he looked at the function me and icraze sent, looked at the one he has, matched the similar codes tg
you'll notice the MSHookMessageEx for sub_3654
and sent your name
that shows you the hook
@radiant idol can u send your CCUIStatusLabelViewController setEdgeInsets:
or at least whatever your ida looks like
@hasty ruin can i join ono 
no
โ
-# can i join ono
tweak development ๐
i wanna actually make that plugin
remember back in like september
idk what its doing here but
// Part of FUGap - stops the giltchy bluring effect from happening in the control center
%hook CCUIHeaderPocketView
-(void)setBackgroundAlpha:(double)arg1 {
arg1 = 0.0;
%orig;
}
%end
fascinating
CCUIHeaderPocketView is the interesting thing
and proly CCUIStatusLabelViewController
cand CCUIStatusBar
the frame a bounds methods
so the whole tweak
got it
@acoustic imp helpful ida shortcuts
n -> rename a variable
y -> change a variable's type
/ -> add a comment inline
x -> display xrefs list
wait thats a thing?
@indigo peak these *
my favorite shortcut
boom
these r the methods im referring to
mine is alt + f4 once i realize ida takes too long to decomp
how does urs say (hook)

@acoustic imp void MSHookMessageEx(Class _class, SEL message, IMP hook, IMP *old);
?
I was surprised too
?
@radiant idol ok here: make a plugin for that too
MSHookMessageEx definition
wanted to but too lazy
HOW

oh :/
just type that
bruh
my brother in christ
wtf are you asking here
I used to do SBUIChevronView_initWithFrame__hook and SBUIChevronView_initWithFrame__orig
but then I found out you can do spaces and fancy things
how
works for me
no
I do orig_ and hook_
hook_SBUIChevronView_initWithFrame
orig_SBUIChevronView_initWithFrame
ohhh
I do the same
personal preferences.
you have a personal preference for boys

@torn oriole
โ
wt
what are you trying to rename
theres a line break
somewhere
oh
tesla man code
u would be correct
wha
nothing
this better
๐ญ
in black are the functions defined inside of the binary, in purple are the functions imported
@radiant idol how do u represent %orig
@slim bramble is this lore accurate
like you do -[Class method] (hook) for hook
wdym
how do you do orig
orig
take a guess
what was that first gif
Me when I don't use logos
fascinating
๐ญ
only time you should be doing that is if you're obfuscating
aside from that it's useless to do that
logos breaks clangd
ok and
you're not a child you can write your own code
Having auto completeion is cool
is clangd just intellisense
yeah
yes
autocompletion for tweaks ?
oh
bro i love intellisense so so so much iโd never be able to code without intellisense ๐ญ
yes it predicts what code ur gonna write and finishes the whole tweak for you
I've not used intellisense for as long as I've written tweaks
yes but it involves you writing a whole bunch more code to do the same thing
exactly
it doesn't predict enough %properties for his liking
so you can be fine
so its not jus like of are u trying to type somthing u typed before ?
๐ญ
๐ญ
๐ญ
do you even know what that means
ENGLISH PLEASE
i know just a tiny bit of objc
i gave up tho
so its not jus like of are u trying to type somthing u typed before ?
:3
"so its not jus like of are u trying to type"
smth smth objective-cs
It annoys me to lookup apple docs each time to find sel name
smth smth objective-html
just get gud

memorise them
so its not jus this thing
i was kidding it doesnt finish the whole tweak
why in gods name are u using vsc for objc
but that right there is symbol autocomplete
ik but like whats the dif
What.
for tweaks
where it uses the symbols already used to autocomplete
u dont use xcode?
no??
what bibi is talking about is using intellisense for all objc methods
no?
oh
@acoustic imp
ive used vsc for as long as i can remember
why not ๐ค
do u have a mac ?
bro needs intellisense for discord so he can use full words
yes
oh
forgot
i have in the past but I donโt normally do actual tweak development on my pc
bro just made up slang
usually just Ida or basic decomps
sob pray
where r u from
germany

intellisense is too good to go back
Ive never seen โfgโ before
logos:
#import <Foundation/Foundation.h>
%hook Test
- (void)testingOne:(int)arg1 two:(double)arg2 {
%orig;
NSLog(@"testingOne: %d two: %f", arg1, arg2);
}
%end
substrate:
#import <Foundation/Foundation.h>
#import <substrate.h>
static void Test_testingOne_two_orig(id, SEL, int, double) = NULL;
static void Test_testingOne_two_hook(id self, SEL _cmd, int arg1, double arg2) {
Test_testingOne_two_orig(self, _cmd, arg1, arg2);
NSLog(@"testingOne: %d two: %f", arg1, arg2);
}
__attribute__((constructor)) static void init(void) {
MSHookMessageEx(objc_getClass("Test"), @selector(testingOne:two:), (IMP)Test_testingOne_two_hook, (IMP *)&Test_testingOne_two_orig);
}
writing the second just for autocompletion is MADNESS
yes they mean the same thing
tesla man country
thereโs more wounts than fgs
they mean the same thing
bro what my brain
sorry hacked by nexus
sorry hacked by rune
@torn oriole castrate him
anyway yeah @acoustic imp
this is what bibi goes through to write with autocomplete
it's madness
WHAT
No it's worth it
no ๐ญ
discord mobile doesnt use objc or swift
so like did anyone figurout my og issue ?
it uses react
even worseโฆ
if we're talking about your og issue we'd probaby have to go back to your birth

Oh
what are you referring to โ
i still gotta finish js
โ
bros giggling and waggling his feet
its supposed to be done tm LOL
and is that gonna happen
nebula
shep
was it shep
or capt
free shep
awfully quiet
free shep
wheres capt
@grave sparrow
oh youre not ready for me to go MIA again
@native orbit can you read through rootless-patcher writeup and make sure it's not psychotically wrong (its short)
probably on my old account
yuh
psychotically
i will NOT be coming back
NO
yes
congrats, first time you spelled a word correctly
whats wrong
oh yea i remember i gave capt a free apple music method 
it was copy paste
It would be a shame if something happened to iCraze on February 21st, 2025 at 10:30 AM BST.
ghost ping :/
?
?
?
?
Moderational entities, are you seeing this message posted by itsmenebula?
go away
if only
6ft under prolly
No.
It would be a shame if something happened to iCraze on February 21st, 2025 at 10:30 AM BST.
It would be a shame if something happened to iCraze on February 21st, 2025 at 10:30 AM BST.
@native dune fucking idiot it's GMT not BST
let me make a joke it's not gonna be funny but
Hi Janis!
hi nightwind!
Work on @reef trail Tweak! ! !
going skiing tomorrow!!!
where ?
Now!
Austria
what tweak?
nothing!
hello yan!
say no more bro, iโm also going skiing next week in austria
nice
hi bibi
where about
bullshit time = bst
maybe i need to dif ios 15 to 16 to see what apple chnaged ab the CC 
but worse country
hm?

