anticafe
anticafe

Reputation: 6892

How to make fake NDK crashes in Android in order to test Crashlytics integration?

I follow Get Android NDK crash reports in order to integrating NDK Crashlytics report.

However, I don't know how to generate a fake NDK crash to test the integration. Do you know how to do it?

Upvotes: 0

Views: 182

Answers (1)

Boris
Boris

Reputation: 206

int* foo = (int*)-1;
printf("%d\n", *foo);
return *foo;

[recommendation from firebase support]

you can also just call __android_log_assert(0, "tag", "message")

Upvotes: 1

Related Questions