Skip to content

Commit

Permalink
Retrieve example binary files from the Internet
Browse files Browse the repository at this point in the history
  • Loading branch information
sledgeh4w committed Nov 23, 2024
1 parent d8d6189 commit b66cbd7
Show file tree
Hide file tree
Showing 37 changed files with 131 additions and 31 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ from chomper.const import ARCH_ARM64, OS_IOS
emu = Chomper(
arch=ARCH_ARM64,
os_type=OS_IOS,
rootfs_path="examples/ios/rootfs",
rootfs_path="examples/rootfs/ios",
)

# Load main program
duapp = emu.load_module("examples/ios/apps/com.siwuai.duapp/DUApp")
duapp = emu.load_module("examples/binaries/ios/com.siwuai.duapp/DUApp")

s = "chomper"

Expand Down Expand Up @@ -69,12 +69,12 @@ from chomper.objc import ObjC
emu = Chomper(
arch=ARCH_ARM64,
os_type=OS_IOS,
rootfs_path="examples/ios/rootfs",
rootfs_path="examples/rootfs/ios",
)

objc = ObjC(emu)

emu.load_module("examples/ios/apps/cn.com.scal.sichuanair/zsch")
emu.load_module("examples/binaries/ios/cn.com.scal.sichuanair/zsch")

# Use this context manager to ensure that Objective-C objects can be automatically released
with objc.autorelease_pool():
Expand All @@ -98,11 +98,11 @@ from chomper.const import ARCH_ARM64, OS_ANDROID
emu = Chomper(arch=ARCH_ARM64, os_type=OS_ANDROID)

# Load C standard and other libraries
emu.load_module("examples/android/rootfs/system/lib64/libc.so")
emu.load_module("examples/android/rootfs/system/lib64/libz.so")
emu.load_module("examples/rootfs/android/system/lib64/libc.so")
emu.load_module("examples/rootfs/android/system/lib64/libz.so")

libszstone = emu.load_module(
"examples/android/apps/com.shizhuang.duapp/libszstone.so",
"examples/binaries/android/com.shizhuang.duapp/libszstone.so",
exec_init_array=True,
)

Expand Down
Loading

0 comments on commit b66cbd7

Please sign in to comment.