()
| 16 | private static final String TAG = "Loader"; |
| 17 | |
| 18 | @Override |
| 19 | public boolean onCreate() { |
| 20 | try { |
| 21 | Context context = getContext(); |
| 22 | if (context != null) { |
| 23 | Log.d(TAG, "Loading native library"); |
| 24 | NativeLibLoader.loadNativeLib(context, "libpine.so"); |
| 25 | Log.d(TAG, "Loading modules"); |
| 26 | Hook.loadModules(context); |
| 27 | Log.d(TAG, "Loading config"); |
| 28 | Map<String, Map<String, Object>> config = NativeLibLoader.loadConfig(context); |
| 29 | Log.d(TAG, "Executing hook"); |
| 30 | Hook.doHook(config); |
| 31 | Log.d(TAG, "Hook executed successfully"); |
| 32 | } |
| 33 | return true; |
| 34 | } catch (Exception e) { |
| 35 | Log.e(TAG, "Error during initialization", e); |
| 36 | return false; |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | @Nullable |
| 41 | @Override |
nothing calls this directly
no test coverage detected