Error when pulling device files

Hello,

I get an error while pulling the device files,

Failed to attached: Unknown ELF architecture: 0x0000
Parameter name: arch

I am trying to run on a Samsung phone, is that mean I cannot only run on Tegra Bases phone? Thanks!

Currently, not all the Samsung devices is supported due to the firmware differences, however, the product supports a broad range of Android devices, not limited by Tegra ones.
Please, provide more information about your device - the output from ‘adb shell getprop’ would be very helpful.

Just saw the same issue and found this post. The device I see it on is a GT-I9505 (Galaxy S4, running 4.2.2). Anything specific in the properties you want (it is fairly lengthy)?

Well, it’s better to get the maximum information about the device configuration. You could attach a text file or post a link to the file hosted in a cloud.
By the way, the Galaxy S5 Android 5 firmware is already available - see if you could upgrade the device.

Upgrading isn’t a good option for me since I lose a device+version to test against on general issues.

Should be viewable here:
http://jpst.it/AWGQ

Unfortunately, that resource is inaccessible in our location - could you use Dropbox\GoogleDrive\OneDrive\etc.?

Hi guys, great product! But I having somewhat similar issue. I’m using x86 Android image from android-x86.org and VWWare to replace the slow Android Emulator (see http://visualgdb.com/tutorials/android/vmware/). Building, deploying and running works well however I’m getting an error “Failed to pull device files: Invalid ELF header” while starting debugging. ELF header check fails. Below is a spinet of my logfile.
Thanks heaps for help.

public ElfHeader(byte headerBytes)
{
if (headerBytes.Length == 20)
{
RawElfHeader header = headerBytes.MarshalToStruct();
this.IsLittleEndian = header.Endianness == 1;
int num = this.IsLittleEndian ? 0x464c457f : 0x7f454c46;
if (header.Magic == num)
{
this.IsValidElf = true;
this.Is64Bit = header.Class == 2;
this.RawArchitecture = this.IsLittleEndian ? header.Machine : this.ToLittleEndian(header.Machine);
this.Architecture = this.GetElfArchitecture(this.RawArchitecture);
}
}
}

Snipet of the log file below:
2015-08-31 12:00:55.0029|INFO|Nvidia.PentaK.Utilities.RedirProcess|33-exited: code 0, finished in 343 ms
2015-08-31 12:00:55.0029|INFO|Nvidia.PentaK.Utilities.RedirProcess|34-launch: D:\HOME\Tools\NVPACK\android-sdk-windows\platform-tools\adb.exe “-s 192.168.56.130:5555 shell ps” [D:\HOME\Tools\NVPACK\android-sdk-windows\platform-tools]
2015-08-31 12:00:55.0529|INFO|Nvidia.PentaK.Utilities.RedirProcess|34-stderr:

2015-08-31 12:00:55.0529|INFO|Nvidia.PentaK.Utilities.RedirProcess|34-stdout:
USER PID PPID VSIZE RSS WCHAN PC NAME
root 1 0 808 508 ffffffff 00000000 S /init
root 2 0 0 0 ffffffff 00000000 S kthreadd
root 3 2 0 0 ffffffff 00000000 S ksoftirqd/0
root 4 2 0 0 ffffffff 00000000 S kworker/0:0
root 5 2 0 0 ffffffff 00000000 S kworker/0:0H
root 6 2 0 0 ffffffff 00000000 S kworker/u2:0
root 7 2 0 0 ffffffff 00000000 S migration/0
root 8 2 0 0 ffffffff 00000000 S rcu_preempt
root 9 2 0 0 ffffffff 00000000 S rcu_bh
root 10 2 0 0 ffffffff 00000000 S rcu_sched
root 11 2 0 0 ffffffff 00000000 S watchdog/0
root 12 2 0 0 ffffffff 00000000 S khelper
root 13 2 0 0 ffffffff 00000000 S kworker/u2:1
root 298 2 0 0 ffffffff 00000000 S writeback
root 300 2 0 0 ffffffff 00000000 S bioset
root 302 2 0 0 ffffffff 00000000 S kblockd
root 528 2 0 0 ffffffff 00000000 S ata_sff
root 535 2 0 0 ffffffff 00000000 S khubd
root 653 2 0 0 ffffffff 00000000 S kworker/0:1
root 673 2 0 0 ffffffff 00000000 S kswapd0
root 674 2 0 0 ffffffff 00000000 S fsnotify_mark
root 676 2 0 0 ffffffff 00000000 S crypto
root 775 2 0 0 ffffffff 00000000 S kworker/u2:2
root 919 2 0 0 ffffffff 00000000 S scsi_eh_0
root 922 2 0 0 ffffffff 00000000 S scsi_eh_1
root 925 2 0 0 ffffffff 00000000 S kworker/u2:3
root 976 2 0 0 ffffffff 00000000 S kworker/u2:4
root 981 2 0 0 ffffffff 00000000 S kworker/0:2
root 991 2 0 0 ffffffff 00000000 S kpsmoused
root 1000 2 0 0 ffffffff 00000000 S kworker/0:3
root 1010 2 0 0 ffffffff 00000000 S cfinteractive
root 1019 2 0 0 ffffffff 00000000 S binder
root 1045 2 0 0 ffffffff 00000000 S deferwq
root 1057 2 0 0 ffffffff 00000000 S kworker/0:1H
root 1207 1 2740 212 ffffffff 00000000 S /sbin/v86d
root 1222 1 1980 1484 ffffffff 00000000 S /sbin/ueventd
root 1351 1 1428 212 ffffffff 00000000 S /system/bin/powerbtnd
media_rw 1352 1 4056 444 ffffffff 00000000 S /system/bin/sdcard
root 1355 1 1572 4 ffffffff 00000000 S /sbin/healthd
system 1356 1 1468 192 ffffffff 00000000 S /system/bin/servicemanager
root 1357 1 5480 852 ffffffff 00000000 S /system/bin/vold
root 1358 1 11248 1288 ffffffff 00000000 S /system/bin/netd
root 1359 1 1664 520 ffffffff 00000000 S /system/bin/debuggerd
root 1360 1 2252 776 ffffffff 00000000 S /system/bin/rild
root 1361 1 39940 20480 ffffffff 00000000 R /system/bin/surfaceflinger
root 1362 1 921188 68900 ffffffff 00000000 S zygote
drm 1363 1 10668 2936 ffffffff 00000000 S /system/bin/drmserver
media 1364 1 52420 18660 ffffffff 00000000 S /system/bin/mediaserver
install 1365 1 1568 496 ffffffff 00000000 S /system/bin/installd
keystore 1366 1 4736 1356 ffffffff 00000000 S /system/bin/keystore
root 1378 1 1548 616 ffffffff 00000000 S /system/bin/sh
root 1384 1 1200 4 ffffffff 00000000 S /system/xbin/su
shell 1385 1 4780 268 ffffffff 00000000 S /sbin/adbd
system 1676 1362 1007724 81408 ffffffff 00000000 S system_server
dhcp 1719 1 1632 504 ffffffff 00000000 S /system/bin/dhcpcd
u0_a11 1742 1362 955532 62276 ffffffff 00000000 S com.android.systemui
u0_a48 1835 1362 946724 50468 ffffffff 00000000 S com.google.android.inputmethod.latin
u0_a8 1848 1362 1007992 71024 ffffffff 00000000 S com.google.android.gms.persistent
radio 1855 1362 951492 51456 ffffffff 00000000 S com.android.phone
u0_a19 1864 1362 974272 62460 ffffffff 00000000 S com.cyanogenmod.trebuchet
u0_a8 1993 1362 931536 43708 ffffffff 00000000 S com.google.process.location
u0_a8 2023 1362 1005104 72344 ffffffff 00000000 S com.google.process.gapps
u0_a8 2058 1362 976520 53172 ffffffff 00000000 S com.google.android.gms.wearable
u0_a8 2164 1362 1134556 85648 ffffffff 00000000 S com.google.android.gms
u0_a20 2380 1362 954248 54728 ffffffff 00000000 S com.google.android.googlequicksearchbox:search
u0_a3 2595 1362 933804 49684 ffffffff 00000000 S android.process.acore
u0_a15 2646 1362 968096 65776 ffffffff 00000000 S com.android.vending
u0_a37 2915 1362 946292 59012 ffffffff 00000000 S com.google.android.apps.docs
u0_a42 2992 1362 933400 45196 ffffffff 00000000 S com.android.gallery3d
u0_a4 3062 1362 930272 43324 ffffffff 00000000 S com.android.defcontainer
u0_a13 3078 1362 929304 42904 ffffffff 00000000 S com.android.musicfx
system 3092 1362 929716 44072 ffffffff 00000000 S com.thirdparty.superuser
u0_a60 3144 1362 929120 41980 ffffffff 00000000 S com.svox.pico
u0_a36 3213 1362 931844 43576 ffffffff 00000000 S com.android.documentsui
u0_a8 3227 1362 981324 61868 ffffffff 00000000 S com.google.android.gms.unstable
u0_a7 3247 1362 929132 42456 ffffffff 00000000 S com.android.externalstorage
u0_a6 3268 1362 932464 46664 ffffffff 00000000 S android.process.media
u0_a30 3377 1362 938768 46616 ffffffff 00000000 S com.android.calendar
u0_a1 3396 1362 930044 45684 ffffffff 00000000 S com.android.providers.calendar
system 3448 1362 929272 43692 ffffffff 00000000 S com.android.keychain
u0_a10 3463 1362 929488 43268 ffffffff 00000000 S com.google.android.partnersetup
u0_a51 3486 1362 960532 52368 ffffffff 00000000 S com.google.android.apps.magazines
u0_a72 3578 1362 928476 41408 ffffffff 00000000 S com.example.hellojni
shell 3592 1385 1880 512 00000000 400d8166 R ps

2015-08-31 12:00:55.0529|INFO|Nvidia.PentaK.Utilities.RedirProcess|34-exited: code 0, finished in 47 ms
2015-08-31 12:00:55.0649|INFO|Nvidia.PentaK.PentaKPackage|[PentaKPackage] Mode changed to DBGMODE_Run
2015-08-31 12:00:55.1610|INFO|Nvidia.PentaK.Utilities.RedirProcess|35-launch: D:\HOME\Tools\NVPACK\android-sdk-windows\platform-tools\adb.exe “-s 192.168.56.130:5555 shell getprop” [D:\HOME\Tools\NVPACK\android-sdk-windows\platform-tools]
2015-08-31 12:00:55.2030|INFO|Nvidia.PentaK.Utilities.RedirProcess|35-stderr:

2015-08-31 12:00:55.2030|INFO|Nvidia.PentaK.Utilities.RedirProcess|35-stdout:
[app.setupwizard.disable]: [0]
[dalvik.vm.dexopt-flags]: [m=y]
[dalvik.vm.heapgrowthlimit]: [192m]
[dalvik.vm.heapmaxfree]: [8m]
[dalvik.vm.heapminfree]: [512k]
[dalvik.vm.heapsize]: [512m]
[dalvik.vm.heapstartsize]: [16m]
[dalvik.vm.heaptargetutilization]: [0.75]
[dalvik.vm.lockprof.threshold]: [500]
[dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
[debug.egl.hw]: [0]
[debug.force_rtl]: [0]
[dev.bootcomplete]: [1]
[dhcp.eth0.dns1]: [192.168.56.2]
[dhcp.eth0.dns2]:
[dhcp.eth0.dns3]:
[dhcp.eth0.dns4]:
[dhcp.eth0.domain]: [localdomain]
[dhcp.eth0.gateway]: [192.168.56.2]
[dhcp.eth0.ipaddress]: [192.168.56.130]
[dhcp.eth0.leasetime]: [1800]
[dhcp.eth0.mask]: [255.255.255.0]
[dhcp.eth0.mtu]:
[dhcp.eth0.pid]: [1719]
[dhcp.eth0.reason]: [BOUND]
[dhcp.eth0.result]: [ok]
[dhcp.eth0.server]: [192.168.56.254]
[dhcp.eth0.vendorInfo]:
[gsm.current.phone-type]: [1]
[gsm.network.type]: [Unknown]
[gsm.operator.alpha]:
[gsm.operator.iso-country]:
[gsm.operator.isroaming]: [false]
[gsm.operator.numeric]:
[gsm.sim.state]: [NOT_READY]
[hal.sensors]: [kbd]
[init.svc.adbd]: [running]
[init.svc.bootanim]: [stopped]
[init.svc.console]: [running]
[init.svc.debuggerd]: [running]
[init.svc.dhcpcd_eth0]: [running]
[init.svc.drm]: [running]
[init.svc.enable_houdini]: [stopped]
[init.svc.healthd]: [running]
[init.svc.installd]: [running]
[init.svc.keystore]: [running]
[init.svc.media]: [running]
[init.svc.netd]: [running]
[init.svc.powerbtnd]: [running]
[init.svc.ril-daemon]: [running]
[init.svc.sdcard]: [running]
[init.svc.servicemanager]: [running]
[init.svc.su_daemon]: [running]
[init.svc.surfaceflinger]: [running]
[init.svc.ueventd]: [running]
[init.svc.vold]: [running]
[init.svc.zygote]: [running]
[keyguard.no_require_sim]: [true]
[net.bt.name]: [Android]
[net.change]: [net.dns1]
[net.dns1]: [192.168.56.2]
[net.hostname]: [android-77c07e3396301bec]
[net.qtaguid_enabled]: [1]
[net.tcp.buffersize.default]: [4096,87380,110208,4096,16384,110208]
[net.tcp.buffersize.edge]: [4093,26280,35040,4096,16384,35040]
[net.tcp.buffersize.evdo]: [4094,87380,262144,4096,16384,262144]
[net.tcp.buffersize.gprs]: [4092,8760,11680,4096,8760,11680]
[net.tcp.buffersize.hsdpa]: [4094,87380,262144,4096,16384,262144]
[net.tcp.buffersize.hspa]: [4094,87380,262144,4096,16384,262144]
[net.tcp.buffersize.hspap]: [4094,87380,1220608,4096,16384,1220608]
[net.tcp.buffersize.hsupa]: [4094,87380,262144,4096,16384,262144]
[net.tcp.buffersize.lte]: [524288,1048576,2097152,262144,524288,1048576]
[net.tcp.buffersize.umts]: [4094,87380,110208,4096,16384,110208]
[net.tcp.buffersize.wifi]: [524288,1048576,2097152,262144,524288,1048576]
[persist.service.bdroid.bdaddr]: [22:22:32:df:9e:74]
[persist.sys.dalvik.vm.lib]: [libdvm.so]
[persist.sys.profiler_ms]: [0]
[persist.sys.root_access]: [3]
[persist.sys.strictmode.disable]: [1]
[persist.sys.strictmode.visual]: [0]
[persist.sys.timezone]: [Pacific/Auckland]
[persist.sys.usb.config]: [adb]
[poweroff.doubleclick]: [1]
[ro.alarm.volume.adjustable]: [true]
[ro.allow.mock.location]: [0]
[ro.arch]: [x86]
[ro.baseband]: [unknown]
[ro.board.platform]: [android-x86]
[ro.boot.hardware]: [android_x86]
[ro.bootloader]: [unknown]
[ro.bootmode]: [unknown]
[ro.build.characteristics]: [tablet]
[ro.build.date.utc]: [1400579985]
[ro.build.date]: [二 5月 20 17:59:45 CST 2014]
[ro.build.description]: [android_x86-userdebug 4.4.2 KVT49L eng.cwhuang.20140520.175817 test-keys]
[ro.build.display.id]: [android_x86-userdebug 4.4.2 KVT49L eng.cwhuang.20140520.175817 test-keys]
[ro.build.fingerprint]: [Android-x86/android_x86/x86:4.4.2/KVT49L/eng.cwhuang.20140520.175817:userdebug/test-keys]
[ro.build.host]: [fw.cwhuang.info]
[ro.build.id]: [KVT49L]
[ro.build.product]: [x86]
[ro.build.tags]: [test-keys]
[ro.build.type]: [userdebug]
[ro.build.user]: [cwhuang]
[ro.build.version.codename]: [REL]
[ro.build.version.incremental]: [eng.cwhuang.20140520.175817]
[ro.build.version.release]: [4.4.2]
[ro.build.version.sdk]: [19]
[ro.carrier]: [unknown]
[ro.com.android.dataroaming]: [true]
[ro.com.android.dateformat]: [MM-dd-yyyy]
[ro.com.google.clientidbase.am]: [android-asus-rev]
[ro.com.google.clientidbase.gmm]: [android-asus-rev]
[ro.com.google.clientidbase.ms]: [android-asus-rev]
[ro.com.google.clientidbase.yt]: [android-asus-rev]
[ro.com.google.clientidbase]: [android-asus-rev]
[ro.com.google.gmsversion]: [4.4_r2]
[ro.config.alarm_alert]: [Alarm_Classic.ogg]
[ro.config.notification_sound]: [OnTheHunt.ogg]
[ro.config.personality]: [compat_layout]
[ro.config.sync]: [yes]
[ro.crypto.fuse_sdcard]: [true]
[ro.debuggable]: [1]
[ro.factorytest]: [0]
[ro.hardware]: [android_x86]
[ro.opengles.version]: [196608]
[ro.product.board]:
[ro.product.brand]: [Android-x86]
[ro.product.cpu.abi2]: [armeabi-v7a]
[ro.product.cpu.abi]: [x86]
[ro.product.cpu.upgradeabi]: [armeabi]
[ro.product.device]: [x86]
[ro.product.locale.language]: [en]
[ro.product.locale.region]: [US]
[ro.product.manufacturer]: [VMware, Inc.]
[ro.product.model]: [VMware Virtual Platform]
[ro.product.name]: [android_x86]
[ro.radio.noril]: [no]
[ro.radio.use-ppp]: [yes]
[ro.revision]: [0]
[ro.ril.gprsclass]: [10]
[ro.ril.hsxpa]: [1]
[ro.rtc_local_time]: [1]
[ro.runtime.firstboot]: [1440935899941]
[ro.secure]: [1]
[ro.serialno]:
[ro.setupwizard.mode]: [ENABLED]
[ro.simulated.phone]: [false]
[ro.wifi.channels]:
[service.bootanim.exit]: [1]
[status.battery.level]: [5]
[status.battery.level_raw]: [50]
[status.battery.level_scale]: [9]
[status.battery.state]: [Slow]
[sys.boot_completed]: [1]
[sys.media.vdec.drop]: [0]
[sys.sysctl.extra_free_kbytes]: [5625]
[sys.usb.config]: [adb]
[sys.usb.state]: [adb]
[vold.post_fs_data_done]: [1]
[wlan.driver.status]: [unloaded]

2015-08-31 12:00:55.2030|INFO|Nvidia.PentaK.Utilities.RedirProcess|35-exited: code 0, finished in 47 ms
2015-08-31 12:00:55.2030|INFO|Nvidia.PentaK.Utilities.RedirProcess|36-launch: D:\HOME\Tools\NVPACK\android-sdk-windows\platform-tools\adb.exe “-s 192.168.56.130:5555 shell su -c dd bs=20 count=1 if=/proc/3578/exe” [D:\HOME\Tools\NVPACK\android-sdk-windows\platform-tools]
2015-08-31 12:00:55.2390|INFO|Nvidia.PentaK.Utilities.RedirProcess|36-exited: code 0, finished in 31 ms
2015-08-31 12:00:55.2390|INFO|Nvidia.PentaK.Utilities.RedirProcess|36-stderr:

2015-08-31 12:00:55.2390|INFO|Nvidia.PentaK.Utilities.RedirProcess|36-stdout:
2015-08-31 12:00:55.2390|ERROR|Nvidia.PentaK.Target.Android.AndroidDebuggingStrategy|Failed to pull device files: Invalid ELF header
2015-08-31 12:00:55.2390|INFO|Nvidia.PentaK.Utilities.RedirProcess|37-launch: D:\HOME\Tools\NVPACK\android-sdk-windows\platform-tools\adb.exe “-s 192.168.56.130:5555 shell am force-stop com.example.hellojni” [D:\HOME\Tools\NVPACK\android-sdk-windows\platform-tools]
2015-08-31 12:00:55.2680|INFO|Nvidia.PentaK.PentaKPackage|[PentaKPackage] Mode changed to DBGMODE_Design
2015-08-31 12:00:55.5920|INFO|Nvidia.PentaK.Utilities.RedirProcess|37-stdout:

.

Debugging on VMWare is not currently officially supported, but we’ll try to see if that’s easily fixable, thanks!