This is a workaround fix for the app freeze on Zenfone 2.
The app freezes because the events are not being consumed. Uncomment LOGI("code: %d", code); on x48.c(line 632) fix the freeze (I found this while trying to debug this freeze). To avoid unnecessary LOG i've added an nanosleep().
I have not found what cause the consumer of the events to stop working.
The changes in emulate.c are because the Android SDK i used(25.0) was not compiling the lib.
This is a workaround fix for the app freeze on Zenfone 2. The app freezes because the events are not being consumed. Uncomment LOGI("code: %d", code); on x48.c(line 632) fix the freeze (I found this while trying to debug this freeze). To avoid unnecessary LOG i've added an nanosleep(). I have not found what cause the consumer of the events to stop working.
The changes in emulate.c are because the Android SDK i used(25.0) was not compiling the lib.