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

Method test_android_arm

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

Source from the content-addressed store, hash-verified

64
65 @unittest.skipUnless(platform.system() == 'Linux', 'run only on Linux')
66 def test_android_arm(self):
67 test_binary = "../examples/rootfs/arm64_android6.0/bin/arm_android_jniart"
68 rootfs = "../examples/rootfs/arm64_android6.0"
69 env = {
70 'ANDROID_DATA': r'/data',
71 'ANDROID_ROOT': r'/system'
72 }
73
74 ql = Qiling([test_binary], rootfs, env, profile={'OS32': OVERRIDES}, verbose=QL_VERBOSE.DEBUG, multithread=True)
75
76 ql.os.set_syscall("close", my_syscall_close)
77 ql.add_fs_mapper("/proc/self/task/2000/maps", Fake_maps(ql))
78 ql.run()
79
80 del ql
81
82
83if __name__ == "__main__":

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