(self)
| 47 | class 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): |
nothing calls this directly
no test coverage detected