| 5 |
| 6 | /*static google_breakpad::ExceptionHandler *exceptionHandler; |
| 7 |
| 8 | bool callback(const google_breakpad::MinidumpDescriptor &descriptor, void *context, bool succeeded) { |
| 9 | printf("dump path: %s\n", descriptor.path()); |
| 10 | return succeeded; |
| 11 | }*/ |
| 12 |
| 13 | extern "C" { |
| 14 | void Java_org_telegram_messenger_NativeLoader_init(JNIEnv* env, jobject obj, jstring filepath, bool enable) { |
| 15 | return; |
| 16 | /*if (enable) { |
| 17 | const char *path = env->GetStringUTFChars(filepath, 0); |
| 18 | google_breakpad::MinidumpDescriptor descriptor(path); |
| 19 | exceptionHandler = new google_breakpad::ExceptionHandler(descriptor, NULL, callback, NULL, true, -1); |
| 20 | }*/ |
| 21 | } |
| 22 | } |