#development

1 messages · Page 482 of 1

primal perch
#

forgot if i posted it

silver rampart
#

this is a "private UI" however it's as far up the chain as you can go, as all of the iOS gestures are hard-coded into switch cases

hardy glen
#

i have a cool way of accessing swift struct values. i might like do a write up on how to access non object swift data types

silver rampart
#

very crappily

#

I see u apple ur code is shit

primal perch
#

ah i got deleted because i used a temp site

silver rampart
#

they just assign numbers to each gesture that mean nothing so they can switch case them in this absurd way

primal perch
#

actual battery health algorithm as of ios 13.3

//requires: com.apple.private.iokit.batterydata entitlement

extern "C"
CFArrayRef IOPSCopyPowerSourcesByType(int type);

int healthPercent;

NSArray *sources = (__bridge NSArray *)IOPSCopyPowerSourcesByType(1);
NSDictionary *batteryDict = sources[0];
if (sources && sources.count && batteryDict[@"Maximum Capacity Percent"]) {
    healthPercent = [batteryDict[@"Maximum Capacity Percent"] intValue];
} else {
    healthPercent = -1;
}

double constraintedHealthPercent = fmax(fmin(healthPercent / 100.0, 1.0), 0.0) * 100;

int finalPercent = (int)constraintedHealthPercent;
NSLog(@"correctedHealthPercent: %i", finalPercent);```
#

ignore

silver rampart
#

I'm assuming for faster runtime performance but their implementation is gross

#

I've seen good code in SpringBoard

#

especially SpringBoardHome

#

props to that team (for ios 13 anyways)

hardy glen
#

i am trying to get to the point where i can reverse engineer a whole function and start to rewrite it properly

silver rampart
#

sec

primal perch
#

at one point i rewrote one of my execution functions for my gb emulator in assembly just to save one instruction

hardy glen
#

yea i actually have that script

primal perch
#

it was run like 20 million times a second tbf

primal perch
#

not very fleshed out but a basic one yea

silver rampart
#

GB emulator in pongo when

primal perch
#

true

hardy glen
#

damn, i am trying to get to that point

primal perch
#

when i get my iphone se

silver rampart
#

I'll bring the touch drivers

#

if my PC ever boots

primal perch
#

i just need to get that then i have a jb device

#

fortunately itll get 15 too so we gaming

silver rampart
#

officially spent a whole day trying to get macos to boot now

primal perch
#

loss

silver rampart
#

laying in bed i have given up

hardy glen
#

https://youtu.be/F8kx56OZQhg i remember people here recommended me to watch this series

primal perch
#

its probably pretty good yea

silver rampart
#

ya

hardy glen
#

amd or intel cpu

primal perch
#

making a chip8 interpreter was really useful to understanding assembly fully

#

if u already know asm to some degree you could poop one out and then take on a bigger console

#

its a perfect entry to emulation

silver rampart
#

I updated macos

primal perch
hardy glen
#

^

#

opencore

silver rampart
#

I got opencore

#

neither clover nor opencore can see my OS now

hardy glen
#

oh wait

silver rampart
#

it's stuck in that Phase 3 of the install process bit

primal perch
#

the gt 710 i have is really pushing above its class for like 25$ tho

#

full acceleration in big sur with like 0 lag

hardy glen
#

do you get any errors krit?

#

i spent like 4 weeks trying to perfect mine, i got like every problem you could think of

silver rampart
#

despite everything I've tried it reboots on panic

primal perch
#

hm

silver rampart
#

yes I have done everything to tell it not to do that

primal perch
#

im pretty lucky with opencore for some reason i shit one out in like 3 hours a few days ago to try a dgpu since my igpu is terrible and requires chaing bios

hardy glen
#

have you told it to log it before it panics

silver rampart
#

I can boot the recovery image but it takes 30 minutes per boot

primal perch
#

but now i can just move my video cable and thats it

#

i can enjoy hackintosh again finally

hardy glen
#

damn wtf thats not normal

#

i have a i3 and it works fast asf

silver rampart
#

yeah the screen bugs out and gets covered in pink rectangles

primal perch
#

rip

hardy glen
#

oh

#

its your display then

high citrus
hardy glen
#

framebuffer

silver rampart
#

no it boots

#

just slowly

hardy glen
#

it might be a framebuffer issue

#

mine booted too

silver rampart
#

I got bored and left it sitting earlier to go eat

#

came back 30 minutes later and it had booted

hardy glen
#

i forget

primal perch
#

it also might be the digital convertor in the display crapping out at exactly the time when you boot so it doesnt convert the signal to voltages correctly

#

and then fixing it self shortly after

#

joke btw

silver rampart
#

tbh with this machine

#

like I had to reset CMOS today because this mobo is kinda jank anymore

primal perch
#

sidenote: what really grinds my gears is how i have to have like 2 things for pcie max before i lose lanes on everything else

#

why do we have so little pcie lanes

#

and we cant use all ports

hardy glen
#

what helped me was just scouring the internet with people that had the same problems as me

#

and just trying out every single thing

primal perch
#

stupid consumer hardware

hardy glen
#

also the hack discord is super helpful especailly if the right people are on, like corpnewt

high citrus
#

I got like the most anti hackintosh pc lol,
AMD FX 8350
Nividia GTX 1050

silver rampart
#

that is incredibly generic advise

high citrus
primal perch
#

fx 8350 rip

silver rampart
#

I don't usually go there for help bc they're annoying about it sometimes

primal perch
#

get some ipc when you can my g

high citrus
primal perch
#

my 9900k certainly does

#

it pulls over 300 watts when i use prime95 on avx2 load

#

granted that will never happen but its funny

#

i saw it go to 345 once

#

vrms were only like 120c

hardy glen
#

i know there was a kext that fixes panics and it not recognizing your install and also getting panics when installing as well

#

its called catalinaacpifix or something in the guide

#

happened to me when i upgraded to big sur

faint timber
#

Shitel

stuck pier
#

Hey, I've never made an iOS tweak before but i'm pretty experienced in the programming field. I find my way around new things pretty easily. I'm looking to make a simple tweak that spoofs the gps speed value for an app. Would this be possible and any advice on where I should get started?

misty cradle
#

Start by learning objc

#

wtf

stuck pier
#

Basically I need a tweak that does that asap and it's not out there so my thinking was that since I program things this shouldn't be too hard to make, to change one value right?

misty cradle
#

Click this: #development message and it’ll lead you to the message containing the info on how to get started

misty cradle
rain prairie
#

materials

#

construction techniques

#

etc

stuck pier
#

Would it be easier to spoof the value system wide and then i wouldn't have to deal with how the app is made?

misty cradle
rain prairie
#

exactly

#

they need different approaches

misty cradle
#

You gotta look into that

stuck pier
#

and im on Windows

misty cradle
#

setup wsl2

#

get Debian

#

install Theo’s

#

theos

#

and the latest toplichten

stuck pier
#

so the tweak development happens on linux?

misty cradle
#

Toolchain*****

#

yes

stuck pier
#

I have an ubuntu server could I use that?

misty cradle
#

*nix trolldisappointed

#

sure ig

#

well

#

You’re gonna have to send the deb over everytime u wanna install it

stuck pier
#

alr

rain prairie
#

scp enters the room

misty cradle
stuck pier
#

i love that program

gaunt mesa
#

why was the tag deleted anyways

stuck pier
#

compared to all the other shit

misty cradle
#

no idea

#

can u send me the test

#

Text

#

Ill add it again

gaunt mesa
#

yeah i'm finding it

rain prairie
#

tri you need to disable autocorrect lol

misty cradle
#

I depend too much on it now

rain prairie
#

go to Autocorrecters Anonymous

misty cradle
gaunt mesa
#

tri

#

dm

#

i don't wanna post it here

misty cradle
#

ok wait brb I gotta go sell shoe

#

ok send in dm

#

I’ll make tag when I get back in train

rain prairie
#

i like the transition to speedspeak

#

i make tag wen i back in train

gaunt mesa
#

why the hell

#

just why

rain prairie
#

vim gets everywhere

#

pretty sure you can drive cars with vim keybindings these days

stuck pier
#

im following the guide it says i need to restart my shell, how does one do that?

#

im in newterm

rain prairie
#

there's probably a better way but i think you can just kill the app and reopen

faint timber
#

source the profile

rain prairie
#

oh

#

source ~/.zshrc?

stuck pier
#

never seen this before

rain prairie
#

is that what you got from running source?

stuck pier
#

I ran this echo "export THEOS=~/theos" >> ~/.profile and then restarted NewTerm

rain prairie
#

oh

#

wait are you installing theos on your phone or your ubuntu server?

stuck pier
#

ohp

rain prairie
# stuck pier

also to this i would just answer 0 because it should leave your config as is

stuck pier
#

ik !yt but the video im watching ig the guy installed theos on his phone and then ssh'd into his phone from his pc and developed it there

rain prairie
#

i'd do what tri said and install it through WSL

#

instead of on the phone

stuck pier
#

yeah i didn't even realize what i was doing

#

i hope this doesn't take all day sad

high citrus
stuck pier
#

more than one to set everything up or more than one to make the actual tweak?

rain prairie
#

it may have changed since i last did it but iirc theos is a bitch to set up

#

but it shouldn't be too hard if you're not doing anything weird

#

because then it's just running a few commands and you could be done pretty fast

stuck pier
rain prairie
#

yeah it shouldn't take long then

stuck pier
#

Where it says additionally on WSL is that something i have to run as well?

rain prairie
#

only if you're on WSL

stuck pier
#

so im on ubuntu which wouldn't be WSL

rain prairie
#

it can be

#

what is your server running on?

stuck pier
#

how can i tell?

#

VPS

rain prairie
#

ayt it won't be WSL then

stuck pier
#

downloading the sdk

tepid olive
stuck pier
#

where can i find the theos folder

rain prairie
#

$THEOS

stuck pier
#

im in WinSCP

rain prairie
#

so by the guide that's ~/theos

rain prairie
stuck pier
#

the home folder is empty

rain prairie
#

go to /home

#

i don't think it recognises the tilde

stuck pier
#

/home has one directory called ubuntu, and the ubuntu directory has a few hidden files and is empty other than that

rain prairie
#

so no theos in /home/ubuntu?

stuck pier
#

no

#

I can cd $THEOS in the terminal

#

and it takes me there

#

but i can't find it in SCP

rain prairie
#

what do you get if you run realpath $THEOS?

#

or if you cd into $THEOS and run realpath ./

stuck pier
#

op

#

found it

#

i used the SCP terminal to cd $THEOS

rain prairie
#

right

stuck pier
#

im transfering the sdk

#

damn 20minutes to transfer

#

700kb/s nice

#

shitty system

rain prairie
#

is it being throttled by the VPS provider?

stuck pier
#

well it just hit 5mbs and then went to 100kbs

#

now it says 14 minutes

#

prolly my shitty internet

rain prairie
#

the VPS isn't using your internet

#

it's using the provider's internet

stuck pier
#

I had a dedi a year back with the same provider and my speeds were 8gbs dl 900mbs up

rain prairie
stuck pier
#

thats what i did

rain prairie
#

ah ok

stuck pier
#

can someone convince me that this won't be to hard and that everythings gonna be okay

rain prairie
#

only people that haven't done it before

#

can tell you that

stuck pier
#

fuck

rain prairie
#

which bit are you worried abt

stuck pier
#

well idk what bits there are

#

idk what to do after installing theos

rain prairie
#

make a tweak

stuck pier
#

and wheres the guide for that

#

so

rain prairie
stuck pier
#

is the environment like you just have access to the IOS api, i don't think ios has an api but im calling it that

rain prairie
#

well it's kinda made up of little APIs if you really want to think of it like that

stuck pier
#

alright so now the make a tweak bit is the bit im worried about lmao

#

all i wanna do is change one system value system wide

#

sdk finished transfering

rain prairie
#

find the code that creates/gets the value, and replace it with code that gives the value you want

stuck pier
#

yep

#

cus the sdk was a folder in a git repo and i didn't feel like spending the time to make the command right

#

Alright so theos should be setup

#

how do I even get to the part where I look through and code stuff

rain prairie
#

"look through code" sounds like disassembling/decompiling

#

for a simple tweak, that should hopefully not be necessary

stuck pier
#

well where do i find the part where it gets the value

#

am i gonna change the sdk

#

?

rain prairie
#

these

#

you can think of the SDK like a diagram which shows the compiler what a lot of the code on the device looks like

stuck pier
#

i assume the sdk is like the framework for the ios im using

#

I currently have theos setup, I have google in my browser, and I have no idea wth to do lol. So "make the tweak" idk where to go, like theres no guide that says, make this file, write this code, hello world blah blah blah and there you go

rain prairie
#

write this code
this is pretty important, so i'd learn this first

stuck pier
#

yea but even if i learn objective c

#

i still don't know where to go

rain prairie
#

you may very well understand much better once you know objc

#

because you'll understand how things work better

stuck pier
#

i understand that, but what i don't understand is what file is that code in, and where is that file saved

#

what's that

#

U mean the one that gets me banned on snapchat

#

flex 3?

rain prairie
#

shh

stuck pier
#

wtf

#

i look at a video with this title "How To Make A Cydia Tweak iOS 13 #2 (Theos Tutorial)"

#

mf is choosing a template and it auto sets up his directory and files

rain prairie
#

don't trust anyone who calls it a cydia tweak in the first place

stuck pier
#

!yt ik

misty cradle
stuck pier
#

but hes actually like doing the right steps

#

ik you'll think shit of this but I don't care to learn everything, I need to learn enough to change the one value i wanna change and that's all I want as soon as I can.

#

I don't want to develop iOS tweaks, but I need this value changed, and I have plenty development experience so I didn't think it would be too hard.

rain prairie
#

tbh you could probably use flex to make a patch for that

#

as in the flex you already knew about

stuck pier
#

flex bans my snap

#

even with choicy and all the other tweak restricting shit

#

so i could uncompile a tweak that's already made

#

use those files

rain prairie
#

there might not be one

stuck pier
#

so your saying i could do this without developing anything?

#

i'm so confused deadaf

rain prairie
#

i think what propr means is that there could be a tweak that exists that you can just use normally to achieve what you want

stuck pier
#

i've been looking for this for a while

#

not text

#

a system value

#

an integer to be exact

rain prairie
#

what's the app you want to target

#

forget where the value comes from

#

what's your end goal

stuck pier
#

Well if you want the context, with my perfect driving record my parents are making me pay them $20 everytime i go 10mph over the speedlimit, so fuck that. I want to take the gps speed value and subtract 15 from it. They use Life360 to track my shit

#

I'm currently looking at the NIC wiki in the theos repo

rain prairie
stuck pier
#

nope

rain prairie
#

lmao

stuck pier
#

im not gonna sit in the right lane doing the speed limit with 20 cars passing me

#

im part of the 20 cars

#

aside from that

rain prairie
#

well you have 9.99999999999 mph to go over before your parents make you pay

stuck pier
#

but fuck that

#

ik

#

i assume making the files is one of the first steps

rain prairie
#

how about you use a location spoofer to fix your location before you start driving, and then disable it when you're at your destination. life360 will probably think you drove all the way in less than a second and say you went a million miles per hour, so you can just blame it on a glitch

stuck pier
#

I have relocate reborn and I do use it sometimes, but my parents actually watch the bullshit and sit back and eat popcorn

gentle grove
#

we used to use life360

stuck pier
#

also I'm driving 5 hours next week and ik they gonna be watching me

#

and even if i blame it on a glitch

#

they don't care, they say if it doesn't work i have to be home

#

ik how my situation is

#

i need this tweek

#

tweak*/

gentle grove
#

true

stuck pier
#

alright so i assume your not gonna help me

#

you can just tell me that

gentle grove
#

what if you just go like 5 over instead of 10 lol

stuck pier
#

I'm asking for help to make a tweak, not anything else

#

you asked for context

#

so i gave you context

rain prairie
#

but you need a lot of help because you don't know objective c

gentle grove
#

it also seems like a kind of difficult thing to do

#

especially considering that

rain prairie
#

we've weighed up the effort vs reward and decided that it's gonna be too hard to teach someone to use a build system that's new to them and a whole new programming language just so they can tell their parents they drove the speed limit

#

sorry

stuck pier
#

alright

#

have a good day

rain prairie
#

drive safe 👍

turbid bobcat
#

would anyone happen to know the domain that holds hardware serial numbers?

surreal mountain
#

what hardware serials do you want to get

restive ether
#

the

brave frost
#

@stuck pier text me and tell me what is it that you want to do and which app

misty cradle
hasty umbra
#

can someone help me? i made my own snowboard theme, i dont know why it doesnt work, compiled it etc, still doensn't work

#

and the config.plist is an generic one, because i want to do it for only me

#

please someone help

tepid olive
#

@grave sparrow is your cat walking on the keyboard or something I swear you've been typing for like 20 minutes

hasty umbra
#

i see it also lol

twilit jungle
turbid bobcat
#

@surreal mountain pretty much anything with a basic example, like display, battery, etc ..

surreal mountain
#

uh

nimble parcel
surreal mountain
#

uh

#

well

#

considering m1 is comparable to a14x

steady nest
#

disabling sip disables ctrr

#

but ctrr isn't ktrr

nimble parcel
#

it seems similar

steady nest
#

yeah but that's not your problem

#

ctrr is disabled but the pages still aren't writable

pearl sail
#

never understood why Apple forces users to be in recoveryOS when disabling this stuff

nimble parcel
#

are you sure ctrr is disabled?

nimble parcel
#

otherwise root access would be equivalent to pwning the kernel

#

^

pearl sail
#

Ah that is nice

steady nest
#

uh

nimble parcel
#

i think ctrr is what determines whether kernel text pages are writable

steady nest
#

ttbr(?)

nimble parcel
#

are you sure it’s the memcpy that’s panicking?

steady nest
#

yeah but you have to make the section writable

#

text is wxn by default(?)

nimble parcel
steady nest
#

PPL?

#

Page Protection Layer

nimble parcel
#

i believe that’s a different concept entirely

#

seems like the kernel does have page permissions though

steady nest
#

that's a bit out of my league

#

just trying to help with what I can find and remember :/

nimble parcel
#

what’s the panic log like?

steady nest
#

think not

nimble parcel
#

are you sure you have the right address? You might need to strip PAC

rain prairie
#

Ayt so for some reason about four or five people have come to me now with an issue where my tweak simply isn’t loaded

#

Random devices/iOS versions/app versions

#

Doesn’t seem to be anything common between all of the cases

#

There’s one guy who had the issue on two separate devices

#

And I’ve never been able to reproduce the bug

#

It’s starting to annoy me lol

primal perch
#

true

#

his battery health probably already 80%

gentle grove
#

tell him to try staying calm instead of panicking

lapis vessel
#

I think now is time to look for the panic string in XNU source :)

#

Cool stuff

gaunt mesa
#

troll

pearl sail
primal perch
#

ok so just build xnu without it

#

load unsigned kernel

#

problem solved

tepid olive
#

good morning capt

turbid bobcat
primal perch
#

that’s what i would’ve done the whole time personally

#

not really usable for distribution and it’s a permanent change but eh

#

i don’t know if big sur 11.4 kernel version is OS tho

#

latest might be 11.2

#

and maybe the old kernel would still work but it’s just as possible it won’t

hardy glen
#

@primal perch followed your advice about going with the chip8 interpreter

silver rampart
#

the fuck windows

hardy glen
#

wtf

tepid olive
#

funny how windows 10 ran on pentium 4 but now macOS has longer software support than Windows 11

#

2018 laptops aren’t even getting the update

silver rampart
#

my fuckin Kaby lake 7th gen laptop isn't gonna work with it

#

not to mention the Haswell desktop with better specs than a good chunk of modern PCs

tepid olive
#

yep

#

microsoft thinks an i3 8100 can run Windows 11 fine but not an i7 7700k

silver rampart
#

both machines I dumped a fuckload of money into for the sake of making them last >6 years

tepid olive
#

it’s easily bypassed though

silver rampart
#

laptop is still a beast even tho I've had it since like Junior year of highschool

tepid olive
#

just so stupid

silver rampart
tepid olive
#

no?

#

my macbook pro has the leaked build and has no tpm

#

unless that’s the insiders build that won’t boot

silver rampart
tepid olive
#

huh?

#

it boots fine for me

silver rampart
#

well I'd imagine the leaked build probably doesn't have the same arbitrary restrictions but don't really know for sure

tepid olive
silver rampart
#

2020 intel

tepid olive
#

worked fine, no mac has tpm

#

yeah

silver rampart
#

what CPU is that

tepid olive
#

i5 8th gen

#

(yes, it wasn’t a great decision, should have gotten M1 but oh well)

#

couldn’t spend 2 months without a functional computer

silver rampart
#

M1 still seems to be in a public beta state kinda thing

#

I've heard of so many issues that shouldn't be present on consumer hardware

#

nothing as bad as Windows Arm stuff but I'd imagine waiting till 2nd or 3rd generation would probably be best

tepid olive
#

for someone mostly using Xcode and Apple apps, it sounded pretty good

silver rampart
#

till everyone gets around to compiling everything natively at least

#

once we get there, goodbye intel, u won't be missed

tepid olive
#

did WOA ever get the x86 app translation on release builds?

silver rampart
#

that's been on public release channel for a very long time

#

x64 emu dropped in Decemberish of 2020 with same performance as x86 emu and has improved since then

tepid olive
#

haven’t been following windows much lol

silver rampart
#

(in Dev channel)

tepid olive
#

it sounds good, but snapdragon sounded pretty lacking

silver rampart
#

I don't know when x64 emu will be in release but it's ready

silver rampart
#

it's done the job for me

tepid olive
silver rampart
#

idk if it's public or not yet but it's been in Insider channels for a while

tepid olive
#

If you can run a virtual machine on a macbook air with the same performance for less money something is wrong

silver rampart
#

Microsoft doesn't have the vertical monopoly apple does

#

they can't do things like M1's x86 address space stuff

#

they make the OS and companies like Lenovo and Qualcom build the hardware to their own specs

#

so shit like arm migration is going to be a bumpy ass ride for windows

tepid olive
#

everyone says "x company" is making their own SoCs but i doubt anyone else is gonna try soon

#

apple is so far ahead

#

¯_(ツ)_/¯

silver rampart
#

rather not have any other company also implement a vertical monopoly

#

lack of that is what makes windows-targeting machines so good

#

you get variety and innovation and not the same boring old WalletFuckPro-Air 2021 edition that you can't repair

tepid olive
#

make your own tbd?

silver rampart
#

that'd be my guess but also idk how kernel linking works

#

probably ask on Hack Different server

#

making an ios kext or a macos one

tepid olive
tepid olive
#

ktrw?

silver rampart
#

yes he is likely your best bet for getting an answer

#

however there are a ton of smart experienced people there

silver rampart
#

ios removes the kext loading functionality present in macos' build of xnu

#

Levin has spoken vaguely about the possibility of patching it back in with krw

#

that info may be outdated tho

silver rampart
#

xnu source or someone who's read into that specific bit would tell you

#

kextstat can be built to target iOS with the same functionality as on macos tho

silver rampart
#

I've wanted to eventually get around to digging through that stuff, bc the possibilities that achieving some form of kext loading on ios unlocks is wild

primal perch
#

i’m available here if u need help as well

silver rampart
#

imagine a world with no more horrifying post exploit patchfinders working from userspace through whatever primitives carl

#

u just load ur crappy old kext and do it from there

#

idk if KTRR makes that unfeasible bc most of the knowledge and resources out there are outdated lol

turbid bobcat
#

diagnostics_relay_query_mobilegestalt(DiagnosticsRelayClientHandle client, PlistHandle keys, out PlistHandle result);

for PlistHandle keys what exactly would go there, the value i'm trying to get is from BatterySerialNumber key... not really sure how to even use plist.

frail vapor
#

Y delete my post?

#

Ummm isn’t this “development” section in “jailbreak” channel? I’m confused

#

Ok then. Could just say wrong section

#

Ahh

#

I’ll hold off then

silver rampart
#

yeah thought so

prisma citrus
silver rampart
#

repo URL? @prisma citrus

#

format has not changed in eons

prisma citrus
primal perch
#

@narrow mason @lethal ice gm

narrow mason
primal perch
#

true

lethal ice
#

@primal perch @narrow mason gm

#

listen to time

narrow mason
lethal ice
#

@everyoneexceptjules

narrow mason
#

Wtf

#

He pinged everyone

#

How

lethal ice
#

@Fermi

narrow mason
#

What’s Fermina

lethal ice
#

Alexander Fermi

#

wait no his name was Enrico wtf

primal perch
#

@listen to nfr right now

silver rampart
#

2 days without a machine bc I forgot to copy paste Lilu.kext

twilit jungle
#

oll

narrow mason
#

Please no development in #trolling

lime pivot
silver rampart
lime pivot
#

lol J wyd

silver rampart
lime pivot
#

shit doesn't add up

#

it's ok Twitter just does that

#

love how twitter website just fails to load the content half the time

silver rampart
#

seems like it was possible but J didn't want to say how lol

hardy glen
#

its finally working

glacial matrix
#

Also full of bugs troll

misty cradle
teal meteor
#

does someone have a simple example of a youtube player in ios?
like a method that given a youtube url it will play the video. It has to be in objective C since my ipad mini 1st generation doesn't support swift

pure tree
#

How do you add custom flag to theos makefile so that I can enable specific feature in my code when compile? For example in Makefile:

MyTweak_CFLAGS = -DFEATUREONE

Then in my .mm file I could

#ifdef FEATUREONE
//Do my thing
#endif

This doesn't seems to work however.

brave frost
hardy glen
#

it takes the youtube stream url or something like that i forgot, back when i was trying to experiment with it

teal meteor
#

ok thank you

hardy glen
#

yup, this will get it done, if you are familiar with obj-c

#

gl

glacial matrix
pure tree
#

Actually I just make clean and it seems to works fine now. -DFEATUREONE=1 or -DFEATUREONE=0 works too. Thanks @glacial matrix

glacial matrix
pure tree
#

Oh didn't know that, good to know.

gaunt mesa
#

oh

#

nvm

twilit jungle
faint timber
#

@grave sparrow I’m not ignoring I just have no time to respond 4 days of the week

tepid olive
#

@torpid parcel

primal perch
#

wtf

#

he used the troll emote

tepid olive
#

Hi there. When trying to install theos installer 2, it's telling me I need LLVM Clang and clang as dependencies and it can't install them automatically. However, when I install those two packages, I still can't install it.
Or can I just use theos installer (1)?

#

theos installer is shit just follow the wiki

weary heath
#

^ plus you'll learn more doing it yourself rather than have a script do it for you

twilit jungle
#

Bruh its 5 commands (probably even less on iOS) there is nothing to learn

primal perch
#

nah bro cd and git clone is hard

weary heath
#

If you have to rely on a script to do it you're probably going to learn something doing it yourself

tepid olive
#

yeah I did it without the script now

#
ld: malformed file
/var/root/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd:3:18: error: unknown enumerated scalar
platform:        iphoneos
                 ^~~~~~~~``` has anyone ever ran into this?
glacial matrix
primal perch
#

when fr emote

glacial matrix
#

love pepSip tho

solemn quiver
#

I’m ready for Pro’s LLVM toolchain

#

Might switch PojavLauncher’s GitHub Actions workflow to use Pro when it’s ready

restive ether
#

meth

pearl sail
tepid olive
solemn quiver
primal perch
twilit jungle
tepid olive
glacial matrix
#

😐

tepid olive
tepid olive
silver rampart
pearl sail
tepid olive
serene dragon
misty cradle
lime pivot
#

as a workaround you can just modify the file it mentions and change iphoneos to ios

nimble parcel
nimble parcel
nimble parcel
#

modifying iphoneos to ios might work but it’s a hacky solution at best because after that you’ve still got to deal with the fact that the toolchain won’t support any modern SDK either

#

if this is what our official iOS installation guide recommends we should def update it

primal perch
tepid olive
ember oak
#

what is a better coding lang for ios devolpment

#

i was thinking swift but idk

signal sedge
#

scratch troll

ember oak
#

bruh

#

over stfu i need actuall help

signal sedge
#

k

ember oak
silver rampart
ember oak
silver rampart
#

and what do you plan on writing, mainly; apps, jailbreak tweaks, something else?

silver rampart
#

I would say with how things currently look learning swift might be best

ember oak
#

ok thank you

silver rampart
#

it's not currently the better language for writing tweaks but

ember oak
#

hmm

silver rampart
#

for App Development and learning the language in general, swift has far more resources

ember oak
#

oh and also apps wise is xcode a lang

#

and will i have to learn that too

silver rampart
#

no, it's an IDE

ember oak
#

what does that mean?

silver rampart
#

you use it to write Swift or OBJC and create apps

ember oak
#

ohh ok

silver rampart
#

like Notepad or other editors but it has a ton of features and things for iOS dev

ember oak
#

like visual studio

#

ohhok

silver rampart
#

yeah exactly

#

it's the VS Studio for Apple shit

ember oak
#

well il get to learning and downloading

#

thank you so much for your help

silver rampart
#

I'd recommend XCode starting out and once you feel like you have a good grasp screw around with AppCode

tepid olive
#

i need to try out appcode soon, i have a jetbrains license but haven’t used it yet

silver rampart
#

it's a far better IDE for Apple stuff but requires a good understanding first

tepid olive
#

does appcode have the same error/warnings ui as xcode or do we only get compiler output

silver rampart
#

and using AppCode and XCode at the same time on a project is my preferred setup even with jailbreak tweaks

tepid olive
#

neat

#

i’ll give it a spin then

silver rampart
#

it's better in every way on that stuff

#

complete with customizable formatting stuff and everything good IDES have

ember oak
#

i like the look of it

#

but il go with xcode for now

silver rampart
#

the two things AppCode lacks:
Storyboard GUI
A good project config interface

ember oak
#

wait does xcode have dark mode?

silver rampart
#

modern versions should

silver rampart
#

oh also every so often clangd + whatever xcode shim appcode uses just kinda shits itself, and you get bad errors everywhere

#

easiest fix is just close and reopen

ember oak
#

wait is xcode on windows

silver rampart
#

no

#

do you have a windows PC

ember oak
#

yes

silver rampart
#

hoh boy

#

that changes things

ember oak
#

welp im fucked for a while

silver rampart
#

you have options

#

what specs on the PC

ember oak
#

when i get my new pc i was gonna use qemu and emulate macos

ember oak
silver rampart
#

vmware or virtualbox can run it but you won't get graphics acceleration aka the UI looks like shit

ember oak
#

i ment like sending the full gpu to the vm type of emulation

silver rampart
#

it is horribly difficult

#

which GPU do you have

ember oak
#

yep but im up for the challenge

ember oak
#

yet*

silver rampart
ember oak
#

and i hae to wait till cristmas

silver rampart
#

coding in emulated macos is always gonna be subpar and painful

ember oak
silver rampart
#

if you're on a Broadwell intel with an iGPU rn you can hackintosh ur current machine and get good enough performance

ember oak
#

never thought about that

silver rampart
ember oak
#

i only have an 100 gb ssd on my laptop is that enough

silver rampart
#

F

#

it'd require deleting windows which I'd rather not advise you to do for a first attempt

ember oak
#

when i get my new pc i wouldnt mind that

#

witch i should be getting at the end of july

#

or mid july

silver rampart
#

the struggle of being stuck with small ass drives

wicked summit
#

gm

ember oak
silver rampart
#

gm person I don't recognize

wicked summit
#

gm gm

silver rampart
#

new orangenames while I was gone

wicked summit
#

nah for like a year

silver rampart
#

new jb devs in 2021 floshed

#

in 2 years it's just gonna be 50 🌯 alter egos

wicked summit
#

burrit0z moment

silver rampart
#

I was trying to avoid triggering the selfbot

#

gj gj

ember oak
#

im so confused

silver rampart
#

drama dw

wicked summit
#

..selfbot archive 5000

silver rampart
#

kinda bored don't know what to build

ember oak
#

tbh i was gonna start with a music app

silver rampart
#

spent 2 months rewriting h+, still rewriting it, but now what

wicked summit
#

when bored, learn ARKit

silver rampart
#

hh I wanna learn blender

ember oak
#

i hated it so much i forgot

silver rampart
#

someone built a tool that fucks with ARKit stuff and the memoji animal frameworks

silver rampart
#

that allows you to use any blender model

#

with certain specifications for the skeleton

ember oak
#

ohh

#

thats actually cool

silver rampart
#

so you can make a custom animal or whateverthefuck AR Emoji in blender and use it on your phone

ember oak
#

how does it look to the other side?

#

or is it just a video anyone can see

silver rampart
#

back when my pfp/brand was a dragon I wanted to work with an artist friend to 3d model it and get it in but we both lazy bitches

#

it's in my gh stars let me go find it

ember oak
#

when metal dev kit has windows support but xcode doesnt

silver rampart
#

wasn't in my stars but found it

ember oak
silver rampart
#

bc xcode on windows would be a rewrite and a half

ember oak
#

oh

silver rampart
#

it's a horrible bloated awful 30+ GB IDE

#

closed source written in C based languages with many features dependent on mach-o and the macos' specific filesystem

ember oak
#

u think i could use visual studio for now?

silver rampart
#

making their devs port it to windows would be human rights abuse

silver rampart
wicked summit
#

virtualbox already ported almost all macos apps to windows

ember oak
#

what are my options there

silver rampart
#

jailbroken phone?

ember oak
#

i already have a bootable use with pop

ember oak
silver rampart
#

anything you want then

ember oak
#

used to use checkra1n

faint timber
#

vbox is sex with docker

ember oak
silver rampart
#

you can develop apps for ios but you can't use storyboards so have fun with GUI shit

#

you can't use xcode or appcode

silver rampart
#

I recommend VS Code

ember oak
#

think il just wait/ use vs

silver rampart
#

I'll also give the opinion that vscode dev with WSL on windows is gonna be nicer than Linux

#

much easier to set up and all

ember oak
#

hmm

silver rampart
ember oak
#

hmm

silver rampart
#

recommend theos for beginners bc the userbase and support community is long-standing and all

ember oak
#

hmm il check that out too

silver rampart
#

dragon is just my mostly solo project still in early phases

#

in theory easier to get started with but in practice requires knowing how build systems work to some extent :p

#

still reluctant to make a NIC for it

ember oak
#

yo can i add u

silver rampart
#

sure

#

but unless it's related specifically to my projects ask stuff here or in other appropriate dev channels

ember oak
#

ok

silver rampart
#

90% of the time someone who knows more can chime in with helpful info and that's what these channels are for

#

it is neat

tepid olive
#

could I write a normal iOS app with Xcode and port it as a tweak

twilit jungle
#

Yes

#

It would still be an app, not a tweak

#

But yeah you can create a package (deb) for the app which you can distribute via one of the package managers.

silver rampart
#

feelin productive

tepid olive
twilit jungle
gentle grove
silver rampart
pliant basin
#

woe

primal perch
next wadi
#

.

next wadi
silver rampart
#

deleted scene

#

camera app on s21 has a directional mic that increases sensitivity whenever u zoom

silver rampart
#

never had an actual use for it but it does make sense to have

lime pivot
silver rampart
#

yeah preferred setup is macos host windows guest if you really need dual boot for both at the same time

#

windows runs great (enough) in a VM, macos just shits itself

primal perch
undone nest
next wadi
#

lmfao

#

can you imagine

#

being judged on the first letter of your name

#

and the RHYME of your name with a STATE

silver rampart
#

jate

#

nvm

next wadi
#

ok so my name is jaidan

silver rampart
#

i didn't process that correctly

next wadi
#

what would i rhyme with

silver rampart
#

diatrus

next wadi
silver rampart
#

imagine having a name that rhymes what a loser

#

all my homies named orange

next wadi
next wadi
#

mans is a beast

#

this one's better

silver rampart
#

eminem washed up

#

only ever punches down and disses rappers far far smaller than him

#

if he disses a big name person its some random unrelated mf and if some big dude like snoop talks shit he gets all 'i respected u y do dis sadCat '

silver rampart
#

@lime pivot

lime pivot
silver rampart
#

i plan to expand it

lime pivot
#

it would be super cool for it to be part of theos though, that's a real good point

silver rampart
#

occasionally i dig through theos issues and see if there's something I can do when i'm bored and in bed

lime pivot
#

yeah, that one is low hanging fruit for sure

#

possibly can be fixed by just tweaking one of the sed commands' regexes

silver rampart
#

wanting to ideally expand it to verify/check plenty of other stuff

#

linking/bundle filter/preferencebundle issues and all

#

bc even i regularly screw those things up and a linter would be nice

lime pivot
#

heheh, forgot I was clinging onto the pipe dream that maybe watchos-arm64 becomes something we seriously support

#

wen eta @silver rampart 😂

silver rampart
#

tweaks r priority rn

#

hopefully this year

lime pivot
#

hope it can happen someday, hey we already waited 6 years at this point what's another 1 year

silver rampart
#

saw there was a blank internal-package-check target in package.mk and just stuck a call to it there

lime pivot
#

but honestly when looking at the numbers that came out in the lawsuit about the watchOS and tvOS app stores' weekly submissions I'm not surprised the demand for a watch jb is so minuscule

silver rampart
#

ios jb has practical applications

#

a watchos jb is something truly only very interesting to enthusiasts

lime pivot
#

I'm sure if you take watchOS submissions as a proportion of iOS submissions, and then divide that again by the number of active jb devices as a proportion of all active iOS devices, the lack of demand will make sense

silver rampart
lime pivot
#

watch is more like a clock with built in fitness measurement device that happens to sync with your phone and can also tell you weather and remote control your music

silver rampart
#

list of what the few consumers who want watch jbs want:

  • Custom watch faces
lime pivot
#

yep basically accurate lmao

silver rampart
#

honestly while i'm not backlogging it (anymore than necessary) idek what it'll be useful for

lime pivot
#

sometimes I wonder if we need to just ship a watch jb and release a NanoWatchFaceLoader or something to make Apple give in and provide an official watchfaces API

silver rampart
#

i just wanna do it for the sake of doing it (and i spent so much on ibus cables lol)

lime pivot
#

remind me to buy one I still haven't

#

well two

#

I'm imagining it might be able to unbrick my S1 by providing much higher charge current than the puck can provide

silver rampart
#

i dont believe they support charging properly

#

may be useful for figuring out what's up but not sure on current

#

here's the board btw

#

bottom is lightning

#

S1 is a 6 pin and i dont have that ibus yet but it'll be mostly similar

lime pivot
#

watches do 🧱 from drained batteries and then being stuck in a catch-22 of being so drained it needs a charge to do anything, but, not having enough charge to successfully negotiate with the puck to start charging

silver rampart
#

oh lol

#

yeah that might actually work then

lime pivot
#

something along those lines I guess

silver rampart
#

I know when I plug it into lightning while it's dead it turns green

#

doesn't charge worth a shit but /shrug

lime pivot
#

yeah see as long as I can get it as far as booting up to Carousel I should be able to quickly throw it on the puck and revive the battery

#

I'm usually careful of leaving devices totally drained… but like, you can usually revive a totally dry battery by just charging with a high current brick for a few hours. just didn't occur to me that the watch will be totally different and potentially an impossible situation

#

funny is my S0 and S3 are both perfectly fine, it's the S1 that's in trouble

#

and I really don't feel like opening it to "jumpstart" the battery by feeding power directly into it

silver rampart
pliant fossil
#

ok

#

so

#

cctools-port and ld64 are both installed

#

they're in $HOME/cctools-port

#

I have an SDK in my home directory

#

clang's installed

#

how do I compile stuff?

#

on linux btw

silver rampart
pliant fossil
#

btw not compiling tweaks

#

just CLI utilities i find useful

silver rampart
#

clang myprogram.c -o myprogram

tepid olive
#

@pliant fossil try a toolchain wrapper

pliant fossil
#

most use autotools

tepid olive
#

theres one in the cctools-port repo

#

you can modify it to your needs

pliant fossil
#

aight

tepid olive
#

aarch64-apple-darwin-clang will likely spit out

silver rampart
#

ohhh stuff already existing

pliant fossil
#

yep

tepid olive
#

then autotools will pick up on it

silver rampart
#

im smart

pliant fossil
#

alr

#

thanks

#

lemme boot up my ubuntu vm again

tepid olive
#

You may find this helpful at some point

pliant fossil
#

👍

tepid olive
#

Obv not the procursus parts but some parts help with the toolchain

pliant fossil
#

yea

#

oh damn it

#

i need to reinstall cctools-port

#

do i install it to $HOME/cctools-port or /usr?

#

because the cctools-port repo suggests it

tepid olive
#

I used $HOME myself

pliant fossil
#

guessing i add the bin/ folder to PATH right?

tepid olive
#

Yes

#

Or manually specify the path in CC=

pliant fossil
#

that'd be better actually

glacial matrix
#

@silver rampart you can do
key, value = line.split(":", 1)
To store the two parts of a restricted split

silver rampart
#

thought so

tepid olive
#

Definitely look at adding that repo in the link if you want to make it quick

#

Should have an uptodate ldid and such

silver rampart
#

wrote that entirely in vscode remote over ssh, and its been a minute since i've done python so didn't want to screw with a language feature i wasn't sure about

pliant fossil
#

ok

glacial matrix
#

I’ll try to read it in full later this week

tepid olive
#

It may be debian only tho 😁

pliant fossil
#

god damn i installed ubuntu solely for this

glacial matrix
#

I wouldn’t care too much about Python 2 support in 2021

pliant fossil
#

and when i cleared my ~100GB or so downloads folder it took my debian ISO with it

silver rampart
#

basically is just a bandaid for theos not being able to parse errors from other processes, with the added benefit of catching stuff that causes problems in cydia/on-device

silver rampart
#

till pytheos exists

tepid olive
#

I prefer debian myself

pliant fossil
#

debian's decent

#

wanted to try ubuntu 21.04 anyway

tepid olive
#

I find myself compiling if needed on older iphones more than linux nowadays 😂

pliant fossil
#

so did i

#

libxml2 wouldnt compile on my ipad tho

tepid olive
#

Whys that?

pliant fossil
#

claimed that libxml2.dylib didnt exist

tepid olive
#

Also protip libxml2 is in the sdk

pliant fossil
#

it was a symlink to libxml2.2.dylib

silver rampart
faint timber
#

just link -L sysroot

#

its a tbd

tepid olive
pliant fossil
#

yes

tepid olive
#

Odd

pliant fossil
#

and i specified the sysroot in CFLAGS

#

and i know it was using the libxml2.2.dylib file because i saw it in the verbose make, but it just disappeared mid compilation

tepid olive
#

What were u comp’ing

pliant fossil
#

libxml2, to compile php

tepid olive
#

Just use the libxml2 tbd in the ios sdk

#

Save some time

pliant fossil
#

aight

silver rampart
pliant fossil
#

php configure script claims that libxml2 is missing though

tepid olive
#

On ios?

pliant fossil
#

yes

tepid olive
#

What jb

pliant fossil
#

ora1n

tepid olive
#

Update everything and try again

pliant fossil
#

everything was up to date as of yesterday

tepid olive
#

I bundled an sdk as of a couple of days ago

#

Maybe its wanting a pkgconfig file

pliant fossil
#

pretty sure it does

tepid olive
#

You install libxml2-dev?

pliant fossil
#

uh

#

lemme check

tepid olive
#

That may be of some help 😉

pliant fossil
#

pretty sure i did but lemme get my ipad

tepid olive
#

It installs to usr local as to be separate from the apple one

#

Theres some symbols in the upstream one not in the ios one

pliant fossil
#

yeah lol forgot to install libxml2-dev

tepid olive
#

Lol

#

Yea thats got a pkgconfig file in it

pliant fossil
#

aight

#

i'll give an update when i try the configure script again

#

ok now cmake, cctools, ld64 want to update

#

i should do that

tepid olive
#

Yessum

pliant fossil
#

is procursus built daily btw

tepid olive
#

Depends on my day lol

#

Usually

#

Something gets added or updated about daily i think

pliant fossil
#

yeah noticed a lot of upgrades lol

#

but i do have tons of libs installed

tepid olive
#

I wanted to get the swift 5.4.1 update out so did a little llvm updates last couple days

pliant fossil
#

oh and what should i use as target for cctools-port

tepid olive
#

aarch64-apple-darwin

pliant fossil
#

ok just started the configure script

#

saying cannot run c compiled programs, after CATting the config.log it shows Killed: 9

#

:/

#

massive pain in the ass lol

tepid olive
#

I have your solution

#

Compile programs in the root partition and not var

#

I make a /home

pliant fossil
#

ok

#

works now

#

why does it fail on /var?

tepid olive
#

ios 14.2 , iphone xs

tepid olive
pliant fossil
#

tru

#

i compiled pcre2 on it tho thishowitis

tepid olive
#

Idk man