Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
235 commits
Select commit Hold shift + click to select a range
6823860
Update utils.m
notthemystery May 29, 2026
a96fa29
Update utils.h
notthemystery May 29, 2026
736274a
Update ToolsView.swift
notthemystery May 29, 2026
c9bd001
Update utils.m
notthemystery May 29, 2026
79821cd
Update utils.m
notthemystery May 29, 2026
7656d8b
Update utils.h
notthemystery May 29, 2026
2990da0
Update ToolsView.swift
notthemystery May 29, 2026
df4d888
Update build_ipa.sh
notthemystery May 29, 2026
c56c437
Update ToolsView.swift
notthemystery May 29, 2026
f6d3165
Update ToolsView.swift
notthemystery May 29, 2026
4719bd7
Update ToolsView.swift
notthemystery May 29, 2026
7539140
Update TweaksView.swift
notthemystery May 30, 2026
ecde57a
Create CoreServices.h
notthemystery May 30, 2026
28470fd
Rename lara/views/tweaks/CoreServices.h to lara/views/tweaks/downgrad…
notthemystery May 30, 2026
3561a37
Create MFSAppDelegate.h
notthemystery May 30, 2026
f76a0c6
Create MFSAppDelegate.m
notthemystery May 30, 2026
e758787
Create MFSRootViewController.h
notthemystery May 30, 2026
f1bc476
Create MFSRootViewController.m
notthemystery May 30, 2026
f4c7b7a
Create MFSVersionPickerViewController.h
notthemystery May 30, 2026
61b3075
Create MFSVersionPickerViewController.m
notthemystery May 30, 2026
2772ff2
Create DowngradeView.swift
notthemystery May 30, 2026
7d1a9c1
Delete lara/views/tweaks/downgrader/MFSAppDelegate.h
notthemystery May 30, 2026
526a15f
Delete lara/views/tweaks/downgrader/MFSAppDelegate.m
notthemystery May 30, 2026
60cb10d
Update lara-Bridging-Header.h
notthemystery May 30, 2026
53d3765
Rename lara.xcodeproj/project.pbxproj to lar.xcodeprojproject.pbxproj
notthemystery May 30, 2026
8e4ae7f
Rename lar.xcodeprojproject.pbxproj to lar.xcodeproj/project.pbxproj
notthemystery May 30, 2026
522f54c
Rename .gitignore to .gitignore
notthemystery May 30, 2026
d8ae243
Rename contents.xcworkspacedata to contents.xcworkspacedata
notthemystery May 30, 2026
ae4fb7a
Create Project.yml
notthemystery May 30, 2026
8cd7d3a
Create project.yml
notthemystery May 30, 2026
1c03047
Add files via upload
notthemystery May 30, 2026
41bf69f
Rename project.pbxproj to lara.xcodeproj/project.pbxproj
notthemystery May 30, 2026
cd39eba
Rename project.xcworkspace/contents.xcworkspacedata to lara.xcodeproj…
notthemystery May 30, 2026
8e22bdd
Update build_ipa.sh
notthemystery May 30, 2026
1506d61
Add files via upload
notthemystery May 30, 2026
f164901
Rename MuffinStore to Lara/lib/libmuffinstore.framework/MuffinStore
notthemystery May 30, 2026
b444b46
Rename MuffinStore to MuffinStore
notthemystery May 30, 2026
1a90b27
Delete lara.xcodeproj directory
notthemystery May 30, 2026
f3eb403
Rename lara/views/tweaks/downgrader/DowngradeView.swift to lara/views…
notthemystery May 30, 2026
5fc585d
Delete lara/views/tweaks/downgrader directory
notthemystery May 30, 2026
57227b2
Update project.yml
notthemystery May 30, 2026
292ecee
Delete lara/lib/libmuffinstore.framework directory
notthemystery May 31, 2026
a1b1111
Add files via upload
notthemystery May 31, 2026
15d5cc9
Rename MuffinStore.dylib to libmuffinstore.dylib
notthemystery May 31, 2026
29bc661
Update project.yml
notthemystery May 31, 2026
78e2403
Add files via upload
notthemystery May 31, 2026
2314f25
Rename project.pbxproj to lara.xcodeproj/project.pbxproj
notthemystery May 31, 2026
74ba5db
Rename project.xcworkspace/contents.xcworkspacedata to lara.xcodeproj…
notthemystery May 31, 2026
1b60a48
Update lara-Bridging-Header.h
notthemystery May 31, 2026
186c2d3
Create libmuffinstore.h
notthemystery May 31, 2026
8da94f8
Update lara-Bridging-Header.h
notthemystery May 31, 2026
49f0562
Update DowngradeView.swift
notthemystery Jun 1, 2026
2eb85d0
Delete lara/lib/libmuffinstore.dylib
notthemystery Jun 1, 2026
7eee44c
Add files via upload
notthemystery Jun 1, 2026
24cbc69
Update and rename libmuffinstore.h to MFSLauncher.h
notthemystery Jun 1, 2026
bddcd8e
Update lara-Bridging-Header.h
notthemystery Jun 1, 2026
7a5d15d
Delete lara.xcodeproj/project.pbxproj
notthemystery Jun 1, 2026
622aa31
Add files via upload
notthemystery Jun 1, 2026
be97c59
Update project.yml
notthemystery Jun 1, 2026
5ff4896
Delete lara.xcodeproj/project.pbxproj
notthemystery Jun 1, 2026
aae9b96
Add files via upload
notthemystery Jun 1, 2026
a8483a1
Update GestaltView.swift
notthemystery Jun 1, 2026
4de553a
Update GestaltView.swift
notthemystery Jun 1, 2026
c2cf0b9
Update project.yml
notthemystery Jun 1, 2026
6f6c21a
Delete lara.xcodeproj/project.pbxproj
notthemystery Jun 1, 2026
7aa3db0
Add files via upload
notthemystery Jun 1, 2026
4660cf6
Update project.pbxproj
notthemystery Jun 1, 2026
5b6ec4c
Update project.yml
notthemystery Jun 1, 2026
1539ff5
Delete lara.xcodeproj/project.pbxproj
notthemystery Jun 1, 2026
6cb50dc
Add files via upload
notthemystery Jun 1, 2026
afdb1d5
Update Info.plist
notthemystery Jun 1, 2026
c89f97f
Update Info.plist
notthemystery Jun 1, 2026
c01c2c8
Update Info.plist
notthemystery Jun 1, 2026
f296bcb
Update TweaksView.swift
notthemystery Jun 2, 2026
9603151
Update TweaksView.swift
notthemystery Jun 2, 2026
484171a
Update Info.plist
notthemystery Jun 2, 2026
3842925
Delete lara/lib/libmuffinstore.dylib
notthemystery Jun 2, 2026
1d273f1
Add files via upload
notthemystery Jun 2, 2026
28ae121
Update sbx.h
notthemystery Jun 2, 2026
187dd4f
Update ToolsView.swift
notthemystery Jun 2, 2026
d810afc
Update sbx.h
notthemystery Jun 2, 2026
8e97478
Update ToolsView.swift
notthemystery Jun 2, 2026
a06f595
Update ToolsView.swift
notthemystery Jun 2, 2026
873f1f0
Update ToolsView.swift
notthemystery Jun 2, 2026
415b49d
Update ToolsView.swift
notthemystery Jun 2, 2026
91834b7
Update ToolsView.swift
notthemystery Jun 2, 2026
4409542
Delete lara.xcodeproj directory
notthemystery Jun 2, 2026
98dc57f
Rename project.pbxproj to project.pbxproj
notthemystery Jun 2, 2026
6337f70
Rename lar.xcodeproj/.gitignore to lara.xcodeproj.gitignore
notthemystery Jun 2, 2026
33c3c21
Rename lara.xcodeproj.gitignore to lara.xcodeproj/.gitignore
notthemystery Jun 2, 2026
bf9c044
Rename contents.xcworkspacedata to contents.xcworkspacedata
notthemystery Jun 2, 2026
e981ff3
Delete lara/lib/libmuffinstore.dylib
notthemystery Jun 2, 2026
7de8783
Update lara-Bridging-Header.h
notthemystery Jun 2, 2026
609dcee
Delete lara/headers/MFSLauncher.h
notthemystery Jun 2, 2026
42dba12
Update TweaksView.swift
notthemystery Jun 2, 2026
ea07469
Delete lara/views/tweaks/DowngradeView.swift
notthemystery Jun 2, 2026
ed0ebd5
Update build_ipa.sh
notthemystery Jun 2, 2026
04b8a08
Merge branch 'rooootdev:main' into main
notthemystery Jun 2, 2026
4e3d98d
Update TweaksView.swift
notthemystery Jun 4, 2026
e006b04
Update utils.h
notthemystery Jun 4, 2026
e76d5df
Update utils.h
notthemystery Jun 4, 2026
5b8f5e9
Update sbx.h
notthemystery Jun 4, 2026
e5920ab
Update sbx.h
notthemystery Jun 4, 2026
7958f45
Update offsets.m
notthemystery Jun 4, 2026
047923f
Add off_ucred_cr_ref to offsets.h
notthemystery Jun 4, 2026
8688d99
Update utils.m
notthemystery Jun 4, 2026
4d31ebe
Update utils.h
notthemystery Jun 4, 2026
ff50c15
Fix root()s
notthemystery Jun 4, 2026
71886d0
Update SettingsView.swift
notthemystery Jun 4, 2026
8dc4d96
Update utils.h
notthemystery Jun 4, 2026
9443d9c
Update utils.m
notthemystery Jun 4, 2026
0622980
Update SettingsView.swift
notthemystery Jun 4, 2026
340c3c1
Update SettingsView.swift
notthemystery Jun 4, 2026
b3d1470
Update SettingsView.swift
notthemystery Jun 4, 2026
5a6bf8b
Update SettingsView.swift
notthemystery Jun 5, 2026
4dcc1b5
Update SettingsView.swift
notthemystery Jun 5, 2026
fd979d7
Update ContentView.swift
notthemystery Jun 5, 2026
9cd9ae4
Update utils.m
notthemystery Jun 5, 2026
01673d1
Update utils.m
notthemystery Jun 5, 2026
49e2805
Update SettingsView.swift
notthemystery Jun 5, 2026
e8c54cb
Update ContentView.swift
notthemystery Jun 5, 2026
c8bc2b5
Update utils.h
notthemystery Jun 5, 2026
6d8eacc
Delete kexit, lexit, get_root, and launchd_root functions
notthemystery Jun 5, 2026
434820b
Create CacheView
notthemystery Jun 5, 2026
3d54312
Rename CacheView to CacheView.swift
notthemystery Jun 5, 2026
63b05a5
Update project.yml
notthemystery Jun 5, 2026
be60ef9
Update CacheView.swift
notthemystery Jun 5, 2026
3820006
Update TweaksView.swift
notthemystery Jun 5, 2026
9ca5971
Update CacheView.swift
notthemystery Jun 5, 2026
8b9a143
Rename project.pbxproj to project.pbxproj
notthemystery Jun 5, 2026
8c2a68f
Add files via upload
notthemystery Jun 5, 2026
78090b6
Update build_ipa.sh
notthemystery Jun 5, 2026
d818d6d
Update CacheView.swift
notthemystery Jun 5, 2026
e4ffe20
Update project.yml
notthemystery Jun 5, 2026
091ede1
Update build_ipa.sh
notthemystery Jun 5, 2026
8818d63
Update build.yml
notthemystery Jun 5, 2026
fb66cac
Create contents.xcworkspacedata
notthemystery Jun 5, 2026
c6a2111
Delete lara.xcodeproj directory
notthemystery Jun 5, 2026
92dfc40
Update build_ipa.sh
notthemystery Jun 5, 2026
70c2733
Update README.md
notthemystery Jun 5, 2026
9517841
Update project.yml
notthemystery Jun 5, 2026
b181833
Update build_ipa.sh
notthemystery Jun 5, 2026
e324152
Update build_ipa.sh
notthemystery Jun 5, 2026
19f4433
Update Info.plist
notthemystery Jun 5, 2026
b5b0bea
Update build_ipa.sh
notthemystery Jun 5, 2026
084bf58
Update build.yml
notthemystery Jun 5, 2026
084d97b
Update build.yml
notthemystery Jun 5, 2026
5c1ac89
Update build_ipa.sh
notthemystery Jun 5, 2026
bc32374
Update build_ipa.sh
notthemystery Jun 5, 2026
b28c63d
Update build.yml
notthemystery Jun 5, 2026
0a1e66b
Update CacheView.swift
notthemystery Jun 5, 2026
1ac9985
Update CacheView.swift
notthemystery Jun 5, 2026
45aa1c0
Update CacheView.swift
notthemystery Jun 5, 2026
33aac4c
Update CacheView.swift
notthemystery Jun 5, 2026
ddbfde2
Update CacheView.swift
notthemystery Jun 5, 2026
6cd92d5
Update and rename lara/views/tweaks/CacheView.swift to lara/views/twe…
notthemystery Jun 5, 2026
e56d714
Create BundleResolver.swift
notthemystery Jun 5, 2026
4e95a0a
Update BundleResolver.swift
notthemystery Jun 5, 2026
dde910b
Update CacheView.swift
notthemystery Jun 5, 2026
1502ec3
Update CacheView.swift
notthemystery Jun 5, 2026
4d259b7
Update BundleResolver.swift
notthemystery Jun 5, 2026
1cfac79
Update CacheView.swift
notthemystery Jun 5, 2026
417716c
Update BundleResolver.swift
notthemystery Jun 5, 2026
fbbb552
Update BundleResolver.swift
notthemystery Jun 5, 2026
91b2d2e
Update CacheView.swift
notthemystery Jun 5, 2026
16aaa3e
Update CacheView.swift
notthemystery Jun 5, 2026
c4fd156
Update lara.swift
notthemystery Jun 6, 2026
8a4e48d
Update ContentView.swift
notthemystery Jun 6, 2026
bb83d5c
Update CacheView.swift
notthemystery Jun 6, 2026
bbe8308
Update TweaksView.swift
notthemystery Jun 6, 2026
a263761
Update lara.swift
notthemystery Jun 6, 2026
f1fa916
Update SettingsView.swift
notthemystery Jun 6, 2026
5e2420c
Update ContentView.swift
notthemystery Jun 6, 2026
0449af3
Update ToolsView.swift
notthemystery Jun 6, 2026
6f1b90e
Update ToolsView.swift
notthemystery Jun 6, 2026
c220fc3
Update ToolsView.swift
notthemystery Jun 6, 2026
7e75fcd
Update ToolsView.swift
notthemystery Jun 6, 2026
e917e88
Update TweaksView.swift
notthemystery Jun 6, 2026
deb1291
Update build_ipa.sh
notthemystery Jun 6, 2026
c113a95
Update CacheView.swift
notthemystery Jun 6, 2026
ae6cf7b
Update build_ipa.sh
notthemystery Jun 6, 2026
32ce5ad
Update build.yml
notthemystery Jun 6, 2026
0339c82
Update build.yml
notthemystery Jun 6, 2026
a776c82
Update TweaksView.swift
notthemystery Jun 6, 2026
4ba6025
Add files via upload
notthemystery Jun 6, 2026
78ec098
Update CacheView.swift
notthemystery Jun 6, 2026
db3d69a
Update ToolsView.swift
notthemystery Jun 6, 2026
d3b3e91
Update ToolsView.swift
notthemystery Jun 6, 2026
8f9f88b
Update README.md
notthemystery Jun 6, 2026
b6dba30
Update README.md
notthemystery Jun 6, 2026
bfb802f
Merge branch 'rooootdev:main' into main
notthemystery Jun 6, 2026
c468d16
Update README.md
notthemystery Jun 6, 2026
1cb4542
Update laramgr.swift
notthemystery Jun 6, 2026
77857e8
Update SettingsView.swift
notthemystery Jun 6, 2026
95165cb
Update TweaksView.swift
notthemystery Jun 6, 2026
abbcb75
Update SettingsView.swift
notthemystery Jun 6, 2026
48f1cbd
Update SettingsView.swift
notthemystery Jun 6, 2026
6a0a936
Update SettingsView.swift
notthemystery Jun 6, 2026
e74ca6a
Update SettingsView.swift
notthemystery Jun 6, 2026
6603b29
Delete project.pbxproj
notthemystery Jun 6, 2026
ba84903
Create main.htm
notthemystery Jun 8, 2026
930c3ea
Update main.htm
notthemystery Jun 8, 2026
51c79a0
Delete website directory
notthemystery Jun 8, 2026
dfc780c
Create themer.m
notthemystery Jun 9, 2026
9748aeb
Create themer.h
notthemystery Jun 9, 2026
c28737d
Update themer.m
notthemystery Jun 9, 2026
f66b764
Create map_app.m
notthemystery Jun 9, 2026
83481a4
Create map_app.h
notthemystery Jun 9, 2026
c8b8571
Create remote_obj.m
notthemystery Jun 9, 2026
acdc1c4
Create remote_obj.h
notthemystery Jun 9, 2026
6dd7deb
Create sb_walk.m
notthemystery Jun 9, 2026
4a53efb
Create sb_walk.h
notthemystery Jun 9, 2026
c0bf2db
Create LogTextView.h
notthemystery Jun 9, 2026
b2d1bcf
Create LogTextView.c
notthemystery Jun 9, 2026
16e2ccf
Update LogTextView.h
notthemystery Jun 9, 2026
8c39ab3
Update lara-Bridging-Header.h
notthemystery Jun 9, 2026
45071a2
Create DBV2View.swift
notthemystery Jun 9, 2026
e92a405
Add Extra Tools navigation link to TweaksView
notthemystery Jun 9, 2026
58ee81b
Update TweaksView.swift
notthemystery Jun 9, 2026
f33ba99
Update DBV2View.swift
notthemystery Jun 9, 2026
e39451f
Rename remote_obj.h to remote_objc.h
notthemystery Jun 9, 2026
8177f7b
Rename remote_obj.m to remote_objc.m
notthemystery Jun 9, 2026
4d82a82
Update remote_objc.h
notthemystery Jun 9, 2026
25906af
Rename LogTextView.c to LogTextView.m
notthemystery Jun 9, 2026
82dcdda
Update LogTextView.m
notthemystery Jun 9, 2026
ade2a6f
Update remote_objc.m
notthemystery Jun 9, 2026
cd63f75
Update remote_objc.h
notthemystery Jun 9, 2026
9a5bd46
Update remote_objc.m
notthemystery Jun 9, 2026
1edb19b
Update remote_objc.m
notthemystery Jun 9, 2026
aa8e70a
Update remote_objc.m
notthemystery Jun 9, 2026
efdbe6f
Update remote_objc.m
notthemystery Jun 9, 2026
87cb33b
Update remote_objc.m
notthemystery Jun 9, 2026
eb55c17
Update themer.m
notthemystery Jun 9, 2026
d5c2760
Update TweaksView.swift
notthemystery Jun 10, 2026
2aa38fd
Delete lara/views/tweaks/broken/darkboardv2 directory
notthemystery Jun 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/Project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Project Build

on:
push:
pull_request:

jobs:
build:
runs-on: macos-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Install XcodeGen
run: brew install xcodegen

- name: Generate Xcode project
run: xcodegen generate

- name: List generated files
run: ls -R

- name: Upload generated project
uses: actions/upload-artifact@v4
with:
name: xcodeproj
path: "*.xcodeproj"
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
with:
fetch-depth: 0

- name: setup xcodegen
run: brew install xcodegen

- name: make project
run: xcodegen generate

- name: setup xcode
uses: maxim-lobanov/setup-xcode@v1
with:
Expand All @@ -41,15 +47,15 @@ jobs:
with:
name: lara-ipa
path: |
build/lara.ipa
./lara.ipa
build/xcodebuild.log

- name: upload release ipa
if: github.event_name != 'pull_request'
uses: actions/upload-artifact@v4
with:
name: release-ipa
path: build/lara.ipa
path: ./lara.ipa


release:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Important Notes:
- OTA Update Disabler
- Screen Time Disabler
- App Decrypt
- Clean Cache


### Coming Soon
Expand Down
1 change: 0 additions & 1 deletion lara.xcodeproj/.gitignore

This file was deleted.

12 changes: 12 additions & 0 deletions lara/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
<array>
<string>audio</string>
</array>
<key>CFBundleIdentifier</key>
<string>com.roooot.lara</string>
<key>CFBundleExecutable</key>
<string>lara</string>
<key>CFBundleName</key>
<string>Lara</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleVersion</key>
<string>2</string>
<key>CFBundleShortVersionString</key>
<string>0.2</string>
<key>UIFileSharingEnabled</key>
<true/>
</dict>
Expand Down
1 change: 1 addition & 0 deletions lara/classes/laramgr.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ final class laramgr: ObservableObject {
@Published var rcready: Bool = false
@Published var rcfailed: Bool = false
@Published var showrespring: Bool = false
@Published var developer: Bool = false

@Published var showLogs: Bool = false

Expand Down
1 change: 1 addition & 0 deletions lara/kexploit/offsets.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ extern uint32_t off_proc_p_name;
extern uint32_t off_proc_ro_pr_task;
extern uint32_t off_proc_ro_p_ucred;
extern uint32_t off_ucred_cr_label;
extern uint32_t off_ucred_cr_ref;
extern uint32_t off_task_itk_space;
extern uint32_t off_task_threads_next;
extern uint32_t off_task_task_exc_guard;
Expand Down
3 changes: 3 additions & 0 deletions lara/kexploit/offsets.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
uint32_t off_proc_ro_pr_task = 0;
uint32_t off_proc_ro_p_ucred = 0;
uint32_t off_ucred_cr_label = 0;
uint32_t off_ucred_cr_ref = 0;
uint32_t off_task_itk_space = 0;
uint32_t off_task_threads_next = 0;
uint32_t off_task_task_exc_guard = 0;
Expand Down Expand Up @@ -168,6 +169,7 @@
OFFSET32(off_proc_ro_pr_task),
OFFSET32(off_proc_ro_p_ucred),
OFFSET32(off_ucred_cr_label),
OFFSET32(off_ucred_cr_ref),
OFFSET32(off_task_itk_space),
OFFSET32(off_task_threads_next),
OFFSET32(off_task_task_exc_guard),
Expand Down Expand Up @@ -354,6 +356,7 @@ void savealloffsets(void) {
@"off_proc_p_name": @(off_proc_p_name),
@"off_proc_ro_pr_task": @(off_proc_ro_pr_task),
@"off_ucred_cr_label": @(off_ucred_cr_label),
@"off_ucred_cr_ref": @(off_ucred_cr_ref),
@"off_task_itk_space": @(off_task_itk_space),
@"off_task_threads_next": @(off_task_threads_next),
@"off_task_task_exc_guard": @(off_task_task_exc_guard),
Expand Down
1 change: 1 addition & 0 deletions lara/kexploit/pe/sbx.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include <stdint.h>

uint64_t sbx_ucredbyproc(uint64_t proc);
int sbx_escape(uint64_t self_proc);
void sbx_setlogcallback(void (*callback)(const char *message));
uint64_t sbx_gettoken(pid_t pid);
Expand Down
2 changes: 2 additions & 0 deletions lara/kexploit/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ uint64_t proc_self(void);
uint64_t task_self(void);

int crashproc(const char* pid);
int proc_pause_resume(const char *name, bool resume);
int count_pids(uint64_t allproc);

#ifdef __cplusplus
}
Expand Down
49 changes: 49 additions & 0 deletions lara/kexploit/utils.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#import "xpf.h"
#import "offsets.h"
#import "xpaci.h"
#import "pe/sbx.h"

#import <Foundation/Foundation.h>
#import <mach/mach.h>
Expand Down Expand Up @@ -47,6 +48,7 @@
static const uint32_t ARM_SS_OFFSET = 0x8;
uint32_t TASK_TNEXT_OFFSET;
uint32_t THREAD_MUPCB_OFFSET;
bool launchd = true;

struct arm_saved_state64 {
uint64_t x[29];
Expand Down Expand Up @@ -853,3 +855,50 @@ int crashproc(const char* name) {
ds_kwrite64(state + offsetof(struct arm_saved_state64, sp), 0x1337133713371337);
return 0;
}

int proc_pause_resume(const char *name, bool resume) {
if (!name) {
return -1;
}

uint64_t proc = procbyname(name);
if (!proc) {
printf("(signal) process not found: %s\n", name);
return -1;
}

uint32_t pid = ds_kread32(proc + PROC_PID_OFFSET);
int result;

if (resume) {
result = kill(pid, SIGCONT);
} else {
result = kill(pid, SIGSTOP);
}

if (result != 0) {
perror("(signal) kill failed");
return -1;
}

printf("(signal) %s %s\n",
name,
resume ? "resumed" : "paused");
return 0;
}

int count_pids(uint64_t allproc) {
int count = 0;
uint64_t proc = allproc;

for (int i = 0; i < 12000 && proc; i++) {
int pid = ds_kread32(proc + off_proc_p_pid);
if (pid > 0 && pid < 99999)
count++;
uint64_t next = ds_kread64(proc + off_proc_p_list_le_next);
if (next == 0 || next == proc)
break;
proc = next;
}
return count;
}
1 change: 1 addition & 0 deletions lara/lara-Bridging-Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#import "persistence.h"
#import "ota.h"
#import "screentime.h"
#import "themer.h"

#import <zlib.h>

Expand Down
5 changes: 5 additions & 0 deletions lara/views/app/settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import SwiftUI
import UIKit
import UniformTypeIdentifiers
import Combine

enum method: String, CaseIterable {
case vfs = "VFS"
Expand Down Expand Up @@ -254,6 +255,10 @@ struct SettingsView: View {
Toggle("Allow >10 dock icons", isOn: $rcDockUnlimited)
}
#endif

Section(header: HeaderLabel(text: "Developer", icon: "gear")) {
Toggle("Developer Mode", isOn: $mgr.developer)
}
}
.navigationTitle("Settings")
.fileImporter(isPresented: $showkcacheimport, allowedContentTypes: [.data], allowsMultipleSelection: false) { result in
Expand Down
33 changes: 31 additions & 2 deletions lara/views/tweaks/ToolsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ struct ToolsView: View {
@State private var pid: pid_t = getpid()
@State private var status: String?
@State private var crashname: String = "SpringBoard"
@State private var pausedProcesses: Set<String> = []
@State private var proc_sbx: UInt64 = 0

private enum tokenclass: String, CaseIterable, Identifiable {
case read = "com.apple.app-sandbox.read"
Expand Down Expand Up @@ -156,10 +158,37 @@ struct ToolsView: View {
}
}
.disabled(crashname.isEmpty)
Button("Pause") {
crashname.withCString { _ = proc_pause_resume($0, false) }
pausedProcesses.insert(crashname)
}
.disabled(crashname.isEmpty || pausedProcesses.contains(crashname))

Button("Resume") {
crashname.withCString { _ = proc_pause_resume($0, true) }
pausedProcesses.remove(crashname)
}
.disabled(crashname.isEmpty || !pausedProcesses.contains(crashname))

Button("SBX Escape Helper") {
crashname.withCString { cstr in
proc_sbx = procbyname(cstr)
}

if proc_sbx == 0 {
status = "Failed to get proc"
return
}

let errorcheck = sbx_escape(proc_sbx)
status = errorcheck == 0 ? nil : "Failure"
}
.disabled(crashname.isEmpty)

} header: {
Text("Crasher")
Text("Task Manager")
} footer: {
Text("Crashes the selected process")
Text("Manages The Selected Process")
}

Section {
Expand Down
3 changes: 2 additions & 1 deletion lara/views/tweaks/TweaksView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@ struct TweaksView: View {
.disabled(!mgr.vfsready)
NavigationLink("OTA Updates", destination: OTAView(mgr: mgr))
NavigationLink("Screen Time", destination: ScreenTimeView(mgr: mgr))
NavigationLink("Clean Cache", destination: CacheView())
}

Section(header: HeaderLabel(text: "Broken", icon: "exclamationmark.triangle.fill")) {
NavigationLink("DarkBoard", destination: DarkBoardView())
.disabled(true)
.disabled(!mgr.developer)
}

NavigationLink("Extra Tools", destination: ToolsView())
Expand Down
Loading