MCPcopy Index your code
hub / github.com/qilingframework/qiling / test_android_arm64

Method test_android_arm64

tests/test_android.py:49–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47class TestAndroid(unittest.TestCase):
48 @unittest.skipUnless(platform.system() == 'Linux', 'run only on Linux')
49 def test_android_arm64(self):
50 test_binary = "../examples/rootfs/arm64_android6.0/bin/arm64_android_jniart"
51 rootfs = "../examples/rootfs/arm64_android6.0"
52 env = {
53 'ANDROID_DATA': r'/data',
54 'ANDROID_ROOT': r'/system'
55 }
56
57 ql = Qiling([test_binary], rootfs, env, profile={'OS64': OVERRIDES}, verbose=QL_VERBOSE.DEBUG, multithread=True)
58
59 ql.os.set_syscall("close", my_syscall_close)
60 ql.add_fs_mapper("/proc/self/task/2000/maps", Fake_maps(ql))
61 ql.run()
62
63 del ql
64
65 @unittest.skipUnless(platform.system() == 'Linux', 'run only on Linux')
66 def test_android_arm(self):

Callers

nothing calls this directly

Calls 5

add_fs_mapperMethod · 0.95
runMethod · 0.95
QilingClass · 0.90
Fake_mapsClass · 0.85
set_syscallMethod · 0.80

Tested by

no test coverage detected