Cartucho / android-touch-record-replay

How to record and replay touchscreen events on an Android device.
Apache License 2.0
224 stars 46 forks source link

Compiling mysendevent.c for android #9

Closed SAMPROOO closed 5 years ago

SAMPROOO commented 5 years ago

Hey,

I'm trying to compile mysendevent.c for a specific android architecture and specific API Level. I have created foldersendevent/jni/containing mysendevent.c,Android.mk and Application.mk. Once I run ndk-build in sendevent directory, it creates a libs and obj folder containing the the executable for the specific arch but when pushing this executable into my android and trying to replay the touch events, nothing happens.

If I push your mysendevent executable into my android, replaying touch events works just fine.

How did you compile your mysendevent.c?

Here's my Anroid.mk:

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS) 
# give module name
LOCAL_MODULE    := mysendevent  
# list your C files to compile
LOCAL_SRC_FILES := mysendevent.c
# this option will build executables instead of building library for android application.
include $(BUILD_EXECUTABLE)

Here's my Application.mk:

APP_ABI := arm64-v8a
APP_PLATFORM := android-28
SAMPROOO commented 5 years ago

Issue was not with compiling. Issue was in the mysendevent.c code