emotionfxxk / ScreenRecorder

Android Screen Recorder
7 stars 4 forks source link

build failed #1

Open qingkouwei opened 9 years ago

qingkouwei commented 9 years ago

/home/shen/StudioProjects/ScreenRecorder/app/src/main/jni/kikkat/libs/libcutils.so Error:error: undefined reference to 'memcpy_chk' Error:error: undefined reference to '__memmove_chk' Error:error: undefined reference to 'strncpy_chk' Error:error: undefined reference to '__strlen_chk' Error:error: undefined reference to 'system_property_set' Error:error: undefined reference to 'system_property_foreach'

emotionfxxk commented 9 years ago

default libc.so in ndk does not work here(it' been cut), I replace it with libc.so build from kikkat The new libc.so is already commit in mater branch. You can replace the default one(backup the default one) with it to pass compilation path: android-ndk-r10d/platforms/android-19/arch-arm/usr/lib

qingkouwei commented 9 years ago

thanks!this is called shell command,do you know how to call by jni?

emotionfxxk commented 9 years ago

直接jni调用我试了下不行, app进程没法访问截屏 shell进程才有权限访问截屏

emotionfxxk commented 9 years ago

Normal Android apps lack permission to capture the frame buffer (specifically, they aren't members of the AID_GRAPHICS group) so you CANNOT capture the screen from an Android app without some way of getting around the privilege issue. Apps do this in one of two ways: either by root or by starting a server via the ADB interface. So, it can be done without root, but you need to start you own server and connect to it from your app (and, obviously, safely handle the security implications of this)

qingkouwei commented 9 years ago

哦哦

qingkouwei commented 9 years ago

我可以root后使用先调用shell将当前用户加入到AID_GRAPHICS group,然后再使用jni调用?这样可以吗?