Skip to content

Commit e59a9fe

Browse files
authored
Add misagent profile managment feature, update idevice (#297)
1 parent c9e76ba commit e59a9fe

16 files changed

Lines changed: 3478 additions & 1448 deletions

StikJIT/StikJIT-Bridging-Header.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
#include "JSSupport/JSSupport.h"
99
#include "idevice/ideviceinfo.h"
1010
#include "idevice/ls.h"
11+
#include "idevice/profiles.h"

StikJIT/Utilities/mountDDI.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,10 @@ func isMounted() -> Bool {
8989
}
9090
idevice_provider_free(provider)
9191

92-
var devices: UnsafeMutableRawPointer?
92+
var deviceList: UnsafeMutablePointer<plist_t?>?
9393
var devicesLen: size_t = 0
94-
let listError = image_mounter_copy_devices(client, &devices, &devicesLen)
94+
let listError = image_mounter_copy_devices(client, &deviceList, &devicesLen)
9595
if listError == nil {
96-
let deviceList = devices?.assumingMemoryBound(to: plist_t.self)
9796
var devices: [String] = []
9897
for i in 0..<devicesLen {
9998
let device = deviceList?[i]

StikJIT/Views/MainTabView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ struct MainTabView: View {
4949
.tabItem { Label("Scripts", systemImage: "scroll") }
5050
.tag(2)
5151

52-
DeviceInfoView()
53-
.tabItem { Label("Device Info", systemImage: "info.circle.fill") }
52+
ProfileView()
53+
.tabItem { Label("Profiles", systemImage: "magazine.fill") }
5454
.tag(3)
5555

5656
SettingsView()

0 commit comments

Comments
 (0)