I have a native (C++) method in Android that makes the app "crash". The statement I want executed to cause the error and the application to close is the following:
uint32_t crash = (rand % 0xFFFFFFFF) / 0.0;
The curious thing is that when I compile to do the test this line is not executed (as I have verified debugging), the program skips it and does not execute it, I understand why it detects that it is a division by zero. Does anyone know how I can force it to run and cause it to crash?
Thank you very much.