| 41 | } |
| 42 | |
| 43 | char *get_open_function_flag() { |
| 44 | init_sdk_init(); |
| 45 | if (is_arm_64()) { |
| 46 | if (is_oreo()) { |
| 47 | return "_ZN3art7DexFile10OpenCommonEPKhmRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEjPKNS_10OatDexFileEbbPS9_PNS0_12VerifyResultE"; |
| 48 | } |
| 49 | if (is_nougat() || is_marshmallow()) { |
| 50 | return "_ZN3art7DexFile10OpenMemoryEPKhmRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEjPNS_6MemMapEPKNS_10OatDexFileEPS9_"; |
| 51 | } |
| 52 | } else { |
| 53 | if (is_oreo()) { |
| 54 | return "_ZN3art7DexFile10OpenCommonEPKhjRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEjPKNS_10OatDexFileEbbPS9_PNS0_12VerifyResultE"; |
| 55 | } |
| 56 | |
| 57 | if (is_nougat() || is_marshmallow()) { |
| 58 | return "_ZN3art7DexFile10OpenMemoryEPKhjRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEjPNS_6MemMapEPKNS_10OatDexFileEPS9_"; |
| 59 | |
| 60 | } |
| 61 | } |
| 62 | return ""; |
| 63 | } |
| 64 | |
| 65 | //64位 |
| 66 | ///////////////////// |
no test coverage detected