#development
1 messages · Page 262 of 1
arm64 has xN for 64 bit addressing and wN for 32 bit
@narrow mason
@grave sparrow die die die
true
yea gimme that rax rbx rcx rdx rsi rdi rsp rbp r9 r10 r11 r12 r13 r14 r15
@lethal ice is the_selector a string or a SEL
@grave sparrow SEL
ok so I logged into Swift playgrounds. How do I create an .x file here
yesa
how are you gonna say that al is the lower 8 bits of rax there is literally no correspondence
also it has objc metadata stuff
so you need to register it if you are just using a string

no
bruh
because that needs an NSString
yea except we dont have nsstring lookin ass
sel_registerName
nfr
yeah u right
when you want to waste cpu cycles
true
while (true)
main:
b main
yea but no one uses assembly
for (;;);
true
better yet if ur using 6502 you dont even need manual
what about gordita™️ RISC arch?
true when
i mean it's already here
jmp headass
when you writing the emulator for it
soon
b.eq
true
write an arm64 emulator
ok
then run arm windows on an arm64 emulator on x64
no
but there isnt a symbol for it
arm64
- (void)fuck {
[self ass];
} - (void)ass {
}
@narrow mason true
or you just objc_msgSend
i'm on phone bro
pls

ok scoop go do stuff now instead of waste day on discord
i already slept for 4 hours

true

ret
ret it might be swapped idk
ok gn
thats literally the opcode interpreted by the cpu to take value from x30 and put that value in the program counter
not stack its fucking arm
link register
@grave sparrow first tweak of the repo 
the main issue i have with arm64 assembly is the lack of a push/pop instruction
in that respect x64 is better
i'm excited to see arm's future with the arm macs though
as long as apple doesn't fuck it up
:aixd:
@vivid dew
lol
more gay
me when PACIA
blraaz
lmfao
PACIASP
literally just take the 64 bits in register and copy the states to the program counter
its not hard just skip the key shit
hook a common syscall to do nothing
ye
not x0 x16
nah youd have triple the crashing
someone would forget to add the stack pointer back
true
it does this
arm_thread_state64_t state;
memcpy(&state, old_state, sizeof(arm_thread_state64_t));
uint64_t pc = __darwin_arm_thread_state64_get_pc(state);
int handled = 0;
if (exception == EXC_BAD_INSTRUCTION) {
if (*(uint32_t *)pc == INVALID_INSTRUCTION) {
interpose_syscall(&state, pc);
handled = 1;
goto out;
} else {
return KERN_FAILURE;
}
}```
true
void cum(who, where)
char *who;
int where;
{
}```
Then I remembered I had to update the pip module
@grim sparrow I fuckin hate managing pip
ugh
@grim sparrow I fuckin hate managing pip
@upper mountain fr is there an update all command?
What
No clue but I keep getting weird authentication errors, like my commandlinetools are half installed
hate this
Ah yes that’s it thank you
kern_return_t
task_swap_mach_voucher(
__unused task_t task,
__unused ipc_voucher_t new_voucher,
ipc_voucher_t *in_out_old_voucher)
{
/*
* Currently this function is only called from a MIG generated
* routine which doesn't release the reference on the voucher
* addressed by in_out_old_voucher. To avoid leaking this reference,
* a call to release it has been added here.
*/
ipc_voucher_release(*in_out_old_voucher);
return KERN_NOT_SUPPORTED;
}

le task_swap_mach_vouchere
@vivid dew
@grim sparrow the release page doesnt have the binaries and pip wont install it
I stg
why won’t pip install it
prebuilt extension not found in home directory, will try downloading it
querying pypi for available prebuilds
error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)>```

#assembly
wtf me?
Yeah 🤨
its not bad bro i just like x64 more
oh
when did you get green name
like march
you've really been a green name since march
wtf is wrong with me 
you use armv7 /s
checks out
I have a discord account for school and I keep trying to do the angrycry emote and it just shows as nothing cos I dont have nitro on there
i approve



I fucking hate that face it's so stupid
lmaoo
lol
you guys were spamming that while i was still back in school pre covid
I remember every weekend I would go back from the gym to stretch in the dorm and I'd read this chat and it would be that face spammed
yeah i got a few chances to talk to him about personal life
he was banned from the sub not here
afaik he just left
Oh
rip krit 2020-2020

true
@exotic spire hows it going lmao
@grave sparrow I just sat down and I'm about to start lol
prob ip ban or something
int main()
{
int num;
while (true) {
if (!num) {
num = 0;
break;
}
}
// num is now properly, efficiently initialized to 0
}```
wait krit?
True
true
true
gm
true
@restive ether
true
@narrow mason snap
what
the pen
yea
i had to ask my friend for his extra charger i lost mine

that's when i put the wire in it
btw fuck vape btw only smoke weed

not false
btw

i think 510 or 150 or whatever it is is the standard for carts, not sure about vape stuff
(the socket i mean not price) lol
smoking gei
who tf buys a vape

:oomf:
can hold carts 510 carts and 510 vapes

rip
btw i'm talking about oil cart btw
this one is super dark colored but it's not fake so


we be getting vapes
can’t convince what 😳
Could be that the dependency physically doesn't exist, dependency of the dependency is failing to load, or something is stopping it from loading (things like other tweaks).
@twilit jungle You were right. It's Activator
But I'm scratching my head right now, even though I removed everything that related to libactivator, the tweak still won't load. But if you reinstall Activator, boom, tweak magically works.
How is this possible?
yep, I always do that, especially when you changed something in #define,
Okay, f me, I have to delete the packages folder to really solve this
this is new
deletes the .theos folder alone didn't helps apparently
I wonder why? theos have any links in packages folder when compile?
last_package?
supposedly
but if when you remove packages it works once
makes me think last_lackage isnt updating
doing some checking, it did seems like it got updated
even the log shows the correct package
Hmmm...
other than that, anyone happens to know why make Activator an optional dependency will make the tweak won't load?
are you linking it
As suggested by iphonedevwiki:
...
dlopen("/usr/lib/libactivator.dylib", RTLD_LAZY);
Class la = objc_getClass("LAActivator");
if (la) { //libactivator is installed
//load my tweak
} else { //libactivator is not installed
...
}
...
```
ah
In the case where Activator not installed, the tweak won't load at all if there's reference to Activator
send your makefile
here:
ARCHS = arm64 arm64e
DEBUG = 1
FINALPACKAGE = 0
INSTALL_TARGET_PROCESSES = SpringBoard
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = BattSafe
BattSafe_FILES = $(wildcard *.xm)
BattSafe_CFLAGS = -fobjc-arc
BattSafe_LIBRARIES = activator
include $(THEOS_MAKE_PATH)/tweak.mk
include $(THEOS_MAKE_PATH)/aggregate.mk
BattSafe_LIBRARIES = activator
that's linking your project against it
if dyld cant find it then your tweak wont load
to solve this, resolve all symbols with dlsym and remove that line
Oh I didn't realize that, really good info.
I wanted to wait until udevs got an anwser, but Anyone ever had an issue with a project cleanly compiling and installing but no code injection what so ever? /s The project that I'm having issues with I know for a fact compile on my laptop and code inject properly.
Otool with -L shows that I'm linking against only stuff I should be. dlopen is definetly failing and I'm not sure why
Any ideas?
Makefile and Otool: https://prnt.sc/v538wg
your filter plist is set correctly?
should be
btw, thanks @primal perch , I should get back to the project.
@primal perch I can link you the github repo if youd like
sure why not
oh there it is
is that plist valid
should there be a comma on that last one
im not sure if apple's parsing functions like it but some things are fine with it

Negative ghost rider
lemme get ya that link
To save you the time of having to accept an invite
lol
@primal perch
ye
well first to target backboardd use Executables = ("backboardd")
{
Filter = {
Executables = ("backboardd");
Bundles = ("com.apple.springboard");
};
}``` so like this

otherwise yea looks fine
ok did not ask bro
alright bro just dont purge
true

otherwise yea looks fine
@primal perch
to see if its really injecting use cocoatop and click springboard or backboardd and check loaded modules
if so, then you just have weird logic going on
its not there
if so, then you just have weird logic going on
@primal perch and the %ctor logs arent printing
yessir
idk then
other tweaks I have installed
Looks like its no tweaks that I build locally
so toolchain?
probably your theos or smth yea
I fresh installed theos while troubleshooting earlier
and it doesnt build on DB either
well nvm it should be using the xcode one
I just git cloned and set env vars
yea rip
whos a toolchain wizard I could ask?

dgh0st is prolly asleep
hmm
most pertinent messages to the issue
if anyone else has an idea or thing to check
please convert your plists to XML or binary - it'll make everything faster
you're using a jailbreak with my substitute loader?
yea
touch /var/tmp/.loader_enable_logfile then tail -f /var/log/extensionloader.log
or just watch oslog | grep what it should be injecting to
but what I said will specifically say if it tried to dlopen it
oh lol
1603438596.819 ERROR backboardd(5779): Injection of /Library/MobileSubstrate/DynamicLibraries/pockettest.dylib failed: '(null)'```
hmm
it should have an error where it has null
let me see if I have an A12 device handy
1603438597.440 INFO com.apple.datamigrator(5782): startup is right after it but seems un related
nah it should have had the error there
@upper mountain that null is a bug I fixed in the soon to be released substitute update
1603439458.644 ERROR SpringBoard(12673): Injection of /Library/MobileSubstrate/DynamicLibraries/pockettest.dylib failed: 'dlopen(/Library/MobileSubstrate/DynamicLibraries/pockettest.dylib, 9): no suitable image found. Did find:
/Library/MobileSubstrate/DynamicLibraries/pockettest.dylib: incompatible cpu-subtype: 0x80000002 in /Library/MobileSubstrate/DynamicLibraries/pockettest.dylib
/Library/MobileSubstrate/DynamicLibraries/pockettest.dylib: stat() failed with errno=60'
tf did you use to compile it?
make
clang
apple clang?
yea
try with theos then
xcode version 11.7
xcode-select -v = 2373.
LLVM version 12.0.0
Apple clang version 12.0.0 (clang-1200.0.32.21)
Did a fresh install of theos tonight, with sdks (I moved some IOKit private headers into vendor/include/IOKit for this project)
Install dragon build using Krit's installer
theos through clang
sorry its late
like 3 am
you just said dragon build
TARGET := iphone:clang:latest:7.0 um
why are you targeting 7.0 when you only have arm64e?
maybe try targeting 12.0?
doesn't seem like it would help tho
I guess I should look and see what subtype 0x80000002 is
that just residual from me removing armv7 and arm64 to speed up build times
ill try it tough
@upper mountain https://twitter.com/FectaTr1/status/1314292876348731392?s=20
@thatmarcelbraun Are you using clang 12? Check with clang —version in terminal, if u are then that’s the issue. The “new” arm64e ABI is incompatible. So get the 13.7 toolchain and switch with the Xcode select command
Google FTW
I'd probably have known right off if I updated my toolchains 😛
Nice! I googled it but went down some stack overflow hole
you didn't have the right thing to look for
I looked for "incompatible cpu-subtype: 0x80000002"
you might pin the enable logger commands
you can get the same thing from oslog
fair
oslog --debug | grep ExtensionLoader
(other than a few processes that can't oslog)
oslog has always been buggy for me
I might try it now that I use ssh over usb, but it would wreck havoc
also I really want to get this substitute update that's been sitting here for like 2 months pushed out, it's at least 2x as fast in my loader
also I really want to get this substitute update that's been sitting here for like 2 months pushed out, it's at least 2x as fast in my loader
@upbeat wyvern sitting here for 2 months
nah I made sure it was working on ios14 like 3 months ago
thats literally like 90% of my projects
have it mostly done then just move on and forget it exists
I had real life attack
Making prefs and icons suck ass though for tweaks, writeups and readmes suck for everything else
so felt that
so didn't have time to polish things
oh damn you good?
ahh
I get that, this is a school project somehow
so I appreciate you helping me get back to work
❤️
fr thank you
not that kinda fr
yea doing school project too
what kinda fr is bad??
"
thank you" vs "for real thank you"
isnt it like 4am where you are sam?
it's 10 and I'm done working on shit for the day I'm too tired, finding the fix to your thing was something I could do quick and make me feel like I did something useful tho haha
ah so your on the other side of the date line
depends, where are you?
Kansas
then no, I'm not

Is hawaii/us islands not on the other side of the date line
I might just have public school brain
but
¯_(ツ)_/¯
well it's 10PM
yup
centeral
GMT -6 i think
but yea
I just have big time smooth brain
anyways thanks again sam
super appreciate it
You’re welcome
I really need to write up docs warning to not use Xcode 12
@lime pivot wym, I use xcode 12 with clang 11
@misty cradle have you tested on arm64e
good thing I overpaid for storage on this machine
kek
solving Apple's silly problems by just giving them more money
I don't put high priority stuff like Xcode on external drives
but if you don't have much storage, it does the job
11 isn't high priority for me, it's just for cli tools
I use 12 for actually doing stuff in Xcode, so that sits on my ssd
all I can say is it's unbelievable I got away with a base model MacBook Air for so long
I could barely keep a stable and beta version of Xcode installed without then having to go delete Microsoft Office or some shit
mine runs so much better on Mojave
I remember when I upgraded it to… Mavericks I think? and it ran unbelievably better
I was ready to throw it out of a window before that
younger me was dumb af
how many MacBooks did you defenestrate
hmm
Trying to instantiate a UIViewController from TTRIReminderLocationPickerViewController.storyboardc (Reminders.app) and this is my code. the result is a blank UINavigationController.
NSString *path = [%c(LSApplicationProxy) applicationProxyForIdentifier:@"com.apple.reminders"].bundleURL.resourceSpecifier;
NSLog(@"pathpath: %@",path);
//path = [path stringByAppendingPathComponent:@"Base.lproj/"];
NSBundle *bundle = [NSBundle bundleWithPath:path];
UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"TTRIReminderLocationPickerViewController" bundle:bundle];
TTRIReminderLocationPickerViewController *reminderLocationViewController = [mainStoryboard instantiateInitialViewController];
[reminderLocationViewController loadView];
[reminderLocationViewController setAutomaticallyAdjustsScrollViewInsets:NO];
NSLog(@"[Selenium] reminderLocationViewController: %@",reminderLocationViewController);
NSLog(@"[Selenium] reminderLocationViewController: %@",[reminderLocationViewController viewIfLoaded]);
UINavigationController *nnc = [[UINavigationController alloc] initWithRootViewController:reminderLocationViewController];
[[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:nnc animated:YES completion:nil];
What am I doing wrong?
it sounds like the number is more than 0
ick ok at least it wasn't your doing
see
as long as it wasn't your doing, and it wasn't your money being pissed away
it's only a win for you
free upgrade courtesy of dad
true
suggestion: keyboard and mouse tweak for minecraft on ipads (at least keyboard support)
That's a native feature of iOS 14, it just needs developers to add support
yes I know.
I imagine Microsoft/Mojang are on that already?
No, I don't think so
keyboard support has been around for a long time
minecraft on android already has keyboard support and has had for many years now
and mouse yes
I cannot be asked to make use of the setting in accessibility as it's going to mess up a bunch of things
In accessibility you can assign keyboard key to press on some part of the screen but that'll mess a lot of things up
and well you can only click one key at a time unless you have an iPad Pro
So that's useless
LMFAO

THEY ARE JOKING RIGHT???
“Ensure that they fits to our [....]”
They can’t even write in clear English
Quality

Twickd is a repo where developers dump their buggy messes on
A repo managed by iMuseum must be quality

i know this is really retarded question but if i have a deb that installs an app and i want to modify it so that i can install the app as a clone do i need xcode
yeah thats what im trying to do
im not trying to sideload it
just have it twice
Then just change the bundle id
so i dont need xcode for that then right
Correct
has anyone here had to mess around with Lockscreen Idle Timer
and no it doesn't act the same as the public idleTimer boolean that apple provides
the lockscreen is different


has anyone here had to mess around with Lockscreen Idle Timer
@gaunt mesa
:howisthisman:
@tepid olive
has messed with idle timer i think
@surreal mountain I just tell it to fuck off while SleepSaver is playing
@surreal mountain I just tell it to fuck off while SleepSaver is playing
@tepid olive
@tepid olive
@gaunt mesa
SBDashBoardIdleTimerProvider no hooks needed
@gaunt mesa
@gaunt mesa
@surreal mountain
why
SBDashBoardIdleTimerProviderno hooks needed
@twilit jungle that's what i was originally doing but then what would happen is that the screen would never turn off
even tho i did add an assert disable idle timer
and remove it again
thats the idea.... no?
i even confirmed it was removed
@tepid olive i mean never turn off as in after dismissing the controller it would stay on
reset timer after removing
ios14 among us hack2020 [working glows in the dark


why
Everyone shits on tihmstar for hard to compile software, but compiling img4tool was very easy
Does making an app crash still have any significance in finding an exploit?
Ok, I remember back in the early days, it would give an opportunity for an exploit...off I go!
It is quite amazing how productive one can be if they actually try

I actually finished a shit ton of work
hes prob talking about minecraft
now get off discord and continue
@misty cradle I am done bro
It is pog
Now I have free weekend where all I have to do is study

Which plan
Dm me which one
You’ve had like 3/4
Is it the one you said earlier?
This one?

Will do

A what
Of course that’s a thing
Lovely
@grave sparrow gm
who tf are u
woe



i just ate a kitkat and it was the most delicious thing i had since my mcdonalds burger
i am scoop/scorp/skoorp/skorp/scoob
shep is shlorp
but yes i will help you
with assembly
just ask sir

ok
what do i write in assembly
i just ate a kitkat and it was the most delicious thing i had since my mcdonalds burger
@lethal ice bruh
idk what to do now
@grave sparrow ive already told you how to do it
swift 
My solution, which is the correct way, is just add the feature natively through a pr
The guys been trying to do this for weeks now
I’m just telling you how to do it correctly
Don’t pretend like you haven’t been thinking about it though
if only it was that ez
Most of my bugs/problems I solve at random times thinking about shit
we would have thousands of substrates/substitues for swift
Wym
I believe in him too, just not something thats going to happen within a week
is there a vscode plugin for aarch64 asm highlighting
nvm found one
probably not
@tepid olive nice one
bribe coolstar into restoring objc interop
@grave sparrow
@grave sparrow
@gaunt mesa
hello
just hook swift
@vivid dew
hello, community. I've been worked for Fugu to support my iphone 8 (t8015) device. But I can't load iStrap - custom kernel bootstrapper of Fugu - because of unknown issues... any interested ?
what entitlements do i need for NSTask? is no-container also required?
NSTask fails even when no-sandbox is set:
<key>com.apple.private.security.container-required</key>
<true/>
<key>com.apple.private.security.no-sandbox</key>
<true/>
<key>com.apple.private.security.system-application</key>
<true/>
<key>com.apple.private.security.disk-device-access</key>
<true/>
and heif photos don't load when there's no sandbox

are you missing platform-application?
this is all NewTerm uses and it can exec just fine https://github.com/hbang/NewTerm/blob/master/iOS/entitlements.plist
that's weird
I remember trying it with platform-application
i might have removed it for testing
i'll try again
but then NewTerm also has the no-container entitlement. that was my question. No container entitlement breaks HEIC image loading (it's internally converted to JPG apparently, and the paths get broken i think)
yo so im using xcode to make an app store app but it only builds if i set it to support ios 14, im runnning ios 13.4.1 for jailbreaking, so should i just update to ios 14.0.1 since its still signed and hope for a jailbreak soon? i dont really use the jailbreak too much so it wouldnt effect me but is there any other work around or sum? i dont have a dev account so i was hoping i could install the ipa thru filza
I get a bunch of errors saying Scene, WindowGroup, main(), and PageTabViewStyle are only available in ios 14
remove the iOS 14 exclusive features from the app
Is it possible if i replace ash file system to Ubuntu for ish
So if i replace all that with Ubuntu’s root system
Will that work
All I’m saying is is it possible to replace operating system in ish
Just for curiosity purposes

Just wondering if OS in ish can be changed
@grave sparrow iSH is a term for iOS on the app store and it has its own fs
he wants to replace that with an ubuntu fs
but
thats just not how it works
^
there is no reason to run a different os
lol I’m just tryna run it cuz of curiosity reasons
well weve given you the answer
Ight lol
ok schloorp
go ahead
no
i'm about to develop
@vivid dew can you ghost dev for me
@narrow mason i already said yes i'd ghost dev for u
ok
and it will be 3.99 and you will get 10%
ok

tell me the tweak
and you will sell this for 3.99 and i get 10%?
i'm gonna be a millionaire
factual
you will get 10% of the 10%
true
tri angle is the lead member of the a12 checkra1n team
false
epi
same
did you really
elaina cute
i heard it was good
buzzy beetle

who used the ghostcock reaction on message 769688841178316831
link the message

hi
@lethal ice


gm

@misty cradle




@narrow mason fool
@lethal ice
what jules
i'm not in ghost cock server
safeghostcock or ghostcock

when does the inuyasha sequel come out

Yashahime: Princess Half-Demon
WTF IT ALREADY AIRED
watch that one
i will kill youtube ads by tomorrow
jules
@narrow mason
@narrow mason
@narrow mason
@narrow mason

fucker change title to [not working october 2020]
@lethal ice

what
bort himself

dammn
how long is an app signed for under a free account with xcode? is it still 7 days
bruh
if i just wanna make an app for my friends would they need xcode too or can they use some other sideloading tool
@carmine moon thats the purpose of appsync and sideloading tools in the first place
yea what are they? isnt cydia impactor dead?
oh yeaa i completely forgot about altsore, it works on ios 14 right?

🤷♀️
objc_getClass isnt getting my class

hmmmmmm
ok
what code u want
well i am
but thats not the reason of the crash
objc_getClass returning nil
so
i import a header with an interface for it
it may be dynamically loaded later on after your code has already run
Probably the bundle it’s in isn’t loaded
[_NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
my own
SBRingerPillView
you may also be using a class from a framework that isn't loaded at all in the first place
Can we get a frcoal
Interfaces just tell compiler things exist, it doesn't make sure things exist at runtime

True
true
basically im trying to present my own SBRingerPillView
thats my end goal
any code editors default font
comic sans
comic sans
@twilit jungle ture
comic sans
@twilit jungle burn it
Fira Code or SF Mono
@grave sparrow idk am I
Fira Code or SF Mono
@lime pivot sf mono not good imo
mono is good
ok

It’s nice to see assembly discussion in here for once though
It’s been a fat minute
real 10x engineers use wingdings
True
rumor has it some use Zapfino
#assembly @narrow mason
@grave sparrow
wtf how
Just make it for dev role only you don’t even need to moderate it
SBRingerPillView *pillView = [[objc_getClass("SBRingerPillView") alloc] initWithFrame:CGRectMake(200, 200, 300, 100)];
is anythign wrong with this

pls no bully
No
Are you doing it in springboard
yes
I'm convinced Apple only keeps Zapfino in macOS/iOS because it's a great demo/test case of the font rendering capabilities
i call my own method from NSDistributedNotificationCenter
my observer is in applicationDidFinishLaunching of springboard
my code is in that method

if i dont add the subview it dont crash
jules, go challenge aaron to 8 ball so he goes offline
@grave sparrow
do you have an idea of what line this is crashing on?
it should be in the stack trace
i know it crashes when i add the subview
where
hes just the <@&558709886397972481>
@lethal ice i own him
shit I don't wanna get owned
that doesnt make sense

far more likely you're missing something it assumes is always there

it calls layoutSubviews when subviews need to be laid out so first draw after a creation probably
it calls layoutSubviews when subviews need to be laid out so first draw after a creation probably
@primal perch so then its calling layoutSubviews and crashing there
when i addSubview
it seems there's more to it
these labels don't immediately exist, or maybe initWithFrame: is the wrong initialiser to use
well the autogenerated header has init defined
which means it overrides that instead of initWithFrame:
yep, there we go
you need to use -init not -initWithFrame:
just set frame on the next line
how would i do that
it's a property called frame
oh ok
I just said swift makes initialisers better
ok i didnt safemode when i use init
what is wrong with me
who gh0st ping
dgh0st when jules no release tweak

true

















good job







