* Generate a random plausible-looking Android library name. * Returns just the base name (without lib prefix or .so suffix). * e.g. "hdprocess", "nativebridge", "artcompiler"
()
| 473 | * e.g. "hdprocess", "nativebridge", "artcompiler" |
| 474 | */ |
| 475 | function generateGadgetName(): string { |
| 476 | const hex = crypto.randomBytes(4).toString("hex"); |
| 477 | return `ndk_${hex}`; |
| 478 | } |
| 479 | |
| 480 | /** |
| 481 | * Patch a smali file to load a native library in onCreate. |
no outgoing calls
no test coverage detected