Advertisement
jacobk-iugo

Android ndk-gdb updates for API21

Jan 28th, 2015
613
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.74 KB | None | 0 0
  1. # Get the app_server binary from the device
  2. APP_PROCESS=$APP_OUT/app_process
  3. if [ "$API_LEVEL" -lt "21" ] ; then
  4.     run adb_cmd pull /system/bin/app_process `native_path $APP_PROCESS`
  5.     log "Pulled app_process from device/emulator to $APP_PROCESS"
  6. else
  7.     run adb_cmd pull /system/bin/app_process32 `native_path $APP_PROCESS`
  8.     log "Pulled app_process32 from device/emulator to $APP_PROCESS"
  9. fi
  10.  
  11. OR:
  12.  
  13. # Get the app_server binary from the device
  14. APP_PROCESS=$APP_OUT/app_process
  15. APP_PROCESS_DEVICE=app_process32
  16. if [ "$API_LEVEL" -lt "21" ] ; then
  17.     APP_PROCESS_DEVICE=app_process
  18. fi
  19. run adb_cmd pull /system/bin/$APP_PROCESS_DEVICE `native_path $APP_PROCESS`
  20. log "Pulled $APP_PROCESS_DEVICE from device/emulator to $APP_PROCESS"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement