@mcesystems/apple-kit 1.0.97 → 1.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +258 -258
- package/dist/index.js +70 -0
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +70 -0
- package/dist/index.mjs.map +2 -2
- package/dist/resources/bin/darwin/idevice_id +0 -0
- package/dist/resources/bin/darwin/idevicedebug +0 -0
- package/dist/resources/bin/darwin/idevicediagnostics +0 -0
- package/dist/resources/bin/darwin/ideviceinfo +0 -0
- package/dist/resources/bin/darwin/ideviceinstaller +0 -0
- package/dist/resources/bin/darwin/idevicename +0 -0
- package/dist/resources/bin/darwin/idevicepair +0 -0
- package/dist/resources/bin/darwin/idevicescreenshot +0 -0
- package/dist/resources/bin/darwin/idevicesyslog +0 -0
- package/dist/resources/bin/darwin/iproxy +0 -0
- package/dist/resources/bin/darwin/libcrypto.3.dylib +0 -0
- package/dist/resources/bin/darwin/libimobiledevice-1.0.6.dylib +0 -0
- package/dist/resources/bin/darwin/libimobiledevice-glue-1.0.0.dylib +0 -0
- package/dist/resources/bin/darwin/liblzma.5.dylib +0 -0
- package/dist/resources/bin/darwin/libplist-2.0.4.dylib +0 -0
- package/dist/resources/bin/darwin/libssl.3.dylib +0 -0
- package/dist/resources/bin/darwin/libusbmuxd-2.0.7.dylib +0 -0
- package/dist/resources/bin/darwin/libzip.5.dylib +0 -0
- package/dist/resources/bin/darwin/libzstd.1.dylib +0 -0
- package/dist/resources/licenses/LGPL-2.1.txt +33 -0
- package/dist/resources/plist/certificate-trust.xml +43 -43
- package/dist/resources/plist/wifi-enterprise.xml +59 -59
- package/dist/resources/plist/wifi-standard.xml +50 -50
- package/dist/types/index.d.ts +102 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/logic/actions/activation.d.ts +12 -0
- package/dist/types/logic/actions/activation.d.ts.map +1 -0
- package/dist/types/logic/actions/device.d.ts +15 -0
- package/dist/types/logic/actions/device.d.ts.map +1 -0
- package/dist/types/logic/actions/install.d.ts +10 -0
- package/dist/types/logic/actions/install.d.ts.map +1 -0
- package/dist/types/logic/actions/pair.d.ts +6 -0
- package/dist/types/logic/actions/pair.d.ts.map +1 -0
- package/dist/types/logic/actions/proxy.d.ts +23 -0
- package/dist/types/logic/actions/proxy.d.ts.map +1 -0
- package/dist/types/logic/actions/restore.d.ts +36 -0
- package/dist/types/logic/actions/restore.d.ts.map +1 -0
- package/dist/types/logic/actions/tool.d.ts +8 -0
- package/dist/types/logic/actions/tool.d.ts.map +1 -0
- package/dist/types/logic/activationFlow.d.ts +15 -0
- package/dist/types/logic/activationFlow.d.ts.map +1 -0
- package/dist/types/logic/appleDeviceKit.d.ts +164 -0
- package/dist/types/logic/appleDeviceKit.d.ts.map +1 -0
- package/dist/types/logic/dataParser.d.ts +23 -0
- package/dist/types/logic/dataParser.d.ts.map +1 -0
- package/dist/types/logic/iosCli.d.ts +6 -0
- package/dist/types/logic/iosCli.d.ts.map +1 -0
- package/dist/types/logic/utils/resolvePath.d.ts +13 -0
- package/dist/types/logic/utils/resolvePath.d.ts.map +1 -0
- package/dist/types/types/activation.d.ts +28 -0
- package/dist/types/types/activation.d.ts.map +1 -0
- package/dist/types/types/ios.d.ts +152 -0
- package/dist/types/types/ios.d.ts.map +1 -0
- package/dist/types/types/trust.d.ts +10 -0
- package/dist/types/types/trust.d.ts.map +1 -0
- package/dist/types/types/types.d.ts +47 -0
- package/dist/types/types/types.d.ts.map +1 -0
- package/dist/types/types/wifi.d.ts +19 -0
- package/dist/types/types/wifi.d.ts.map +1 -0
- package/dist/types/types.d.ts +140 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/utils/debug.d.ts +17 -0
- package/dist/types/utils/debug.d.ts.map +1 -0
- package/dist/types/utils/templateLoader.d.ts +8 -0
- package/dist/types/utils/templateLoader.d.ts.map +1 -0
- package/dist/types/utils/wifiProfile.d.ts +14 -0
- package/dist/types/utils/wifiProfile.d.ts.map +1 -0
- package/package.json +3 -3
- package/scripts/README.md +209 -209
- package/scripts/build-windows.sh.template +222 -222
- package/scripts/prepare-ios.ts +9 -1
- package/resources/ios.exe +0 -0
- package/resources/wintun-LICENSE.txt +0 -84
- package/resources/wintun.dll +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1577,6 +1577,35 @@ var DeviceActions = class {
|
|
|
1577
1577
|
}
|
|
1578
1578
|
return result.output[0];
|
|
1579
1579
|
}
|
|
1580
|
+
async batteryInfo() {
|
|
1581
|
+
logInfo(`Getting device info for ${this.udid}`);
|
|
1582
|
+
const result = await this.iosClient.batteryInfo();
|
|
1583
|
+
if (result.exitCode !== 0) {
|
|
1584
|
+
throw new Error("Failed to get battery info");
|
|
1585
|
+
}
|
|
1586
|
+
return result.output[0];
|
|
1587
|
+
}
|
|
1588
|
+
async capacityInfo() {
|
|
1589
|
+
logInfo(`Getting device info for ${this.udid}`);
|
|
1590
|
+
const result = await this.iosClient.capacityInfo();
|
|
1591
|
+
if (result.exitCode !== 0) {
|
|
1592
|
+
throw new Error("Failed to get capacity info");
|
|
1593
|
+
}
|
|
1594
|
+
return result.output[0];
|
|
1595
|
+
}
|
|
1596
|
+
async cloudConfigInfo() {
|
|
1597
|
+
logInfo(`Getting device info for ${this.udid}`);
|
|
1598
|
+
const result = await this.iosClient.cloudConfigInfo();
|
|
1599
|
+
if (result.exitCode !== 0) {
|
|
1600
|
+
throw new Error("Failed to get cloud config info");
|
|
1601
|
+
}
|
|
1602
|
+
return result.output[0];
|
|
1603
|
+
}
|
|
1604
|
+
async regularModelNumber() {
|
|
1605
|
+
logInfo(`Getting device info for ${this.udid}`);
|
|
1606
|
+
const result = await this.iosClient.regularModelNumber();
|
|
1607
|
+
return result;
|
|
1608
|
+
}
|
|
1580
1609
|
async listDevices() {
|
|
1581
1610
|
logInfo("Listing devices");
|
|
1582
1611
|
return this.iosClient.listDevices();
|
|
@@ -39143,6 +39172,31 @@ var IosClient = class {
|
|
|
39143
39172
|
async info() {
|
|
39144
39173
|
return this.runIosCommand(["info", "--udid", this.udid]);
|
|
39145
39174
|
}
|
|
39175
|
+
async batteryInfo() {
|
|
39176
|
+
return this.runIosCommand(["batteryregistry", "--udid", this.udid]);
|
|
39177
|
+
}
|
|
39178
|
+
async capacityInfo() {
|
|
39179
|
+
return this.runIosCommand([
|
|
39180
|
+
"lockdown",
|
|
39181
|
+
"get",
|
|
39182
|
+
"--domain=com.apple.disk_usage",
|
|
39183
|
+
"--udid",
|
|
39184
|
+
this.udid
|
|
39185
|
+
]);
|
|
39186
|
+
}
|
|
39187
|
+
async cloudConfigInfo() {
|
|
39188
|
+
return this.runIosCommand(["prepare", "cloudconfig", "--udid", this.udid]);
|
|
39189
|
+
}
|
|
39190
|
+
async regularModelNumber() {
|
|
39191
|
+
const result = await this.runIosCommand([
|
|
39192
|
+
"lockdown",
|
|
39193
|
+
"get",
|
|
39194
|
+
"RegulatoryModelNumber",
|
|
39195
|
+
"--udid",
|
|
39196
|
+
this.udid
|
|
39197
|
+
]);
|
|
39198
|
+
return result.raw.stdout.trim().replace(/^"|"$/g, "");
|
|
39199
|
+
}
|
|
39146
39200
|
async installApp(ipaPath) {
|
|
39147
39201
|
return this.runIosCommand(["install", `--path=${ipaPath}`, "--udid", this.udid]);
|
|
39148
39202
|
}
|
|
@@ -39461,6 +39515,22 @@ var AppleDeviceKit = class _AppleDeviceKit {
|
|
|
39461
39515
|
this.ensureNotDisposed();
|
|
39462
39516
|
return this.deviceActions.info();
|
|
39463
39517
|
}
|
|
39518
|
+
async batteryInfo() {
|
|
39519
|
+
this.ensureNotDisposed();
|
|
39520
|
+
return this.deviceActions.batteryInfo();
|
|
39521
|
+
}
|
|
39522
|
+
async capacityInfo() {
|
|
39523
|
+
this.ensureNotDisposed();
|
|
39524
|
+
return this.deviceActions.capacityInfo();
|
|
39525
|
+
}
|
|
39526
|
+
async cloudConfigInfo() {
|
|
39527
|
+
this.ensureNotDisposed();
|
|
39528
|
+
return this.deviceActions.cloudConfigInfo();
|
|
39529
|
+
}
|
|
39530
|
+
async regularModelNumber() {
|
|
39531
|
+
this.ensureNotDisposed();
|
|
39532
|
+
return this.deviceActions.regularModelNumber();
|
|
39533
|
+
}
|
|
39464
39534
|
async listDevices() {
|
|
39465
39535
|
this.ensureNotDisposed();
|
|
39466
39536
|
return this.deviceActions.listDevices();
|