Native x86 - How to find out?

yuripg1

Senior Member
Oct 9, 2011
289
202
0
29
Canoas, Brazil
As far as I know, apps generally execute Dalvik bytecodes (very similar to Java). The Dalvik machines then translate it to ARM or x86 and 'run' it.

Native code, be it ARM or x86, are mostly intended to do something Dalvik can't provide.

I don't code for Android though (I know a bit of Java but it's not my thing), so I may be wrong here.

Sent from my XT890 using Tapatalk 2
 

YaPeL

Senior Member
Mar 1, 2011
454
154
0
As far as I know, apps generally execute Dalvik bytecodes (very similar to Java). The Dalvik machines then translate it to ARM or x86 and 'run' it.

Native code, be it ARM or x86, are mostly intended to do something Dalvik can't provide.

I don't code for Android though (I know a bit of Java but it's not my thing), so I may be wrong here.

Sent from my XT890 using Tapatalk 2
yeah but must games use NDK, so only the calls to the Os are executed through Dalvik.

How to tell is hard, because we have libhoudini, which translates arm code into x86, take a look at ppsspp on the android market, in our device is running a JIT for arm and it works, (really slow) but it works.
 
  • Like
Reactions: yuripg1

Omar-Avelar

Senior Member
Feb 3, 2013
1,119
2,233
0
Hi all,

I'm wondering how to find out if an app really has native x86 code and runs as a native x86 app? Is there a tool or method?

Thanks
On a rooted device you can remove /system/lib/arm/cpuinfo, or move it / rename it and if it crashes there was some ARM translation that the app requires. :silly: -- at least that's my personal experience with AnTuTu Benchmark and playing with files in there.
 
  • Like
Reactions: Lucki_X