Skip to content

Commit

Permalink
skip item when it's not encrypted
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiChou committed May 16, 2024
1 parent 5c985aa commit 6151483
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,18 +216,19 @@ export class BagBak extends EventEmitter {
const { identifier } = this.#app;
const pid = await this.#device.spawn(identifier);
const info = map.get(identifier);
if (!info) throw new Error('Unable to find main executable');

const { dylibs, executable } = info;
await this.#device.resume(pid);
await task(pid, executable, dylibs);
if (info) {
const { dylibs, executable } = info;
await this.#device.resume(pid);
await task(pid, executable, dylibs);
}
}

// dump plugins
for (const pluginId of plugins) {
const pid = await SpringBoardScript.exports.run(pluginId);
const info = map.get(pluginId);
if (!info) throw new Error(`Unable to find plugin info for ${pluginId}`);
if (!info) continue;
const pid = await SpringBoardScript.exports.run(pluginId);
const { dylibs, executable } = info;
await task(pid, executable, dylibs);
}
Expand Down

0 comments on commit 6151483

Please sign in to comment.