同步操作将从 qiling/qiling 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/env python3## Cross Platform and Multi Architecture Advanced Binary Emulation Framework#import os, platform, sys, unittestsys.path.append("..")from qiling import *from qiling.const import QL_VERBOSEclass TestAndroid(unittest.TestCase):def test_android_arm64(self):if platform.system() != "Linux":returntest_binary = "../examples/rootfs/arm64_android/bin/arm64_android_hello"rootfs = "../examples/rootfs/arm64_android"# FUTURE FIX: at this stage, need a file called /proc/self/exe in the rootfs - Android linker calls stat against /proc/self/exe and bails if it can't find it# qiling handles readlink against /proc/self/exe, but doesn't handle it in stat# https://cs.android.com/android/platform/superproject/+/master:bionic/linker/linker_main.cpp;l=221self.assertTrue(os.path.isfile(os.path.join(rootfs, "proc", "self", "exe")), rootfs +"/proc/self/exe not found, Android linker will bail. Need a file at that location (empty is fine)")ql = Qiling([test_binary], rootfs, verbose=QL_VERBOSE.DEBUG, multithread=True)ql.run()if __name__ == "__main__":unittest.main()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。