| 148 | ///////////////////// |
| 149 | |
| 150 | void **get_old_open_function_addr() { |
| 151 | if (is_arm_64()) { |
| 152 | if (is_oreo()) { |
| 153 | return reinterpret_cast<void **>(&old_arm64_open_common); |
| 154 | } else { |
| 155 | return reinterpret_cast<void **>(&old_arm64_open_memory); |
| 156 | |
| 157 | } |
| 158 | } else { |
| 159 | if (is_oreo()) { |
| 160 | return reinterpret_cast<void **>(&old_opencommon); |
| 161 | } else { |
| 162 | return reinterpret_cast<void **>(&old_nougat_open_memory); |
| 163 | } |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | void *get_new_open_function_addr() { |
| 168 | if (is_arm_64()) { |
no test coverage detected