Fixed
Status Update
Comments
sk...@gmail.com <sk...@gmail.com> #2
See my answer here: http://stackoverflow.com/questions/26530675/ndk-debugging-ndk-gdb-fails-to-pull-app-process-who-and-when-creates-the-app-p/28200279#28200279
I've added recommended changes to the NDK here:http://pastebin.com/YfxNs06U .
The change is as follows:
# Get the app_server binary from the device
APP_PROCESS=$APP_OUT/app_process
if [ "$API_LEVEL" -lt "21" ] ; then
run adb_cmd pull /system/bin/app_process `native_path $APP_PROCESS`
log "Pulled app_process from device/emulator to $APP_PROCESS"
else
run adb_cmd pull /system/bin/app_process32 `native_path $APP_PROCESS`
log "Pulled app_process32 from device/emulator to $APP_PROCESS"
fi
This is perhaps a more elegant solution to the error-checking version from OP.
My reasoning for not keeping the app_process32 name when pulling to the development machine is so that a single debug config can be maintained in Eclipse for debugging api21 and <api21 devices.
I've added recommended changes to the NDK here:
The change is as follows:
# Get the app_server binary from the device
APP_PROCESS=$APP_OUT/app_process
if [ "$API_LEVEL" -lt "21" ] ; then
run adb_cmd pull /system/bin/app_process `native_path $APP_PROCESS`
log "Pulled app_process from device/emulator to $APP_PROCESS"
else
run adb_cmd pull /system/bin/app_process32 `native_path $APP_PROCESS`
log "Pulled app_process32 from device/emulator to $APP_PROCESS"
fi
This is perhaps a more elegant solution to the error-checking version from OP.
My reasoning for not keeping the app_process32 name when pulling to the development machine is so that a single debug config can be maintained in Eclipse for debugging api21 and <api21 devices.
an...@google.com <an...@google.com> #3
Alternatively: set the device binary name in a variable, changing based on API level.
# Get the app_server binary from the device
APP_PROCESS=$APP_OUT/app_process
APP_PROCESS_DEVICE=app_process32
if [ "$API_LEVEL" -lt "21" ] ; then
APP_PROCESS_DEVICE=app_process
fi
run adb_cmd pull /system/bin/$APP_PROCESS_DEVICE `native_path $APP_PROCESS`
log "Pulled $APP_PROCESS_DEVICE from device/emulator to $APP_PROCESS"
# Get the app_server binary from the device
APP_PROCESS=$APP_OUT/app_process
APP_PROCESS_DEVICE=app_process32
if [ "$API_LEVEL" -lt "21" ] ; then
APP_PROCESS_DEVICE=app_process
fi
run adb_cmd pull /system/bin/$APP_PROCESS_DEVICE `native_path $APP_PROCESS`
log "Pulled $APP_PROCESS_DEVICE from device/emulator to $APP_PROCESS"
bo...@gmail.com <bo...@gmail.com> #4
But at what point does it determine if it should use app_process64 instead?
Description
which cause warnings when they are unzipped (in a case-insensitive file system)
android-ndk-r10/platforms/android-L/arch-*/usr/include/linux/netfilter_ipv4/ipt_ecn.h
android-ndk-r10/platforms/android-L/arch-*/usr/include/linux/netfilter_ipv4/ipt_ttl.h
android-ndk-r10/platforms/android-L/arch-*/usr/include/linux/netfilter_ipv6/ip6t_hl.h
android-ndk-r10/platforms/android-L/arch-*/usr/include/linux/netfilter/xt_connmark.h
android-ndk-r10/platforms/android-L/arch-*/usr/include/linux/netfilter/xt_dscp.h
android-ndk-r10/platforms/android-L/arch-*/usr/include/linux/netfilter/xt_mark.h
android-ndk-r10/platforms/android-L/arch-*/usr/include/linux/netfilter/xt_rateest.h
android-ndk-r10/platforms/android-L/arch-*/usr/include/linux/netfilter/xt_tcpmss.h
Those files are copies of linux uapi headers in bionic. They are not needed for Android developments, and will be removed from next release. Please overwrite them to workaround