* Fallback: detect architecture from gadget filename.
(filePath: string)
| 439 | * Fallback: detect architecture from gadget filename. |
| 440 | */ |
| 441 | function detectArchFromFilename(filePath: string): string | null { |
| 442 | const name = path.basename(filePath).toLowerCase(); |
| 443 | if (name.includes("arm64") || name.includes("aarch64")) return "arm64-v8a"; |
| 444 | if (name.includes("arm")) return "armeabi-v7a"; |
| 445 | if (name.includes("x86_64") || name.includes("x64")) return "x86_64"; |
| 446 | if (name.includes("x86") || name.includes("i386")) return "x86"; |
| 447 | return null; |
| 448 | } |
| 449 | |
| 450 | /** |
| 451 | * Find the smali file for a given class name. |
no outgoing calls
no test coverage detected