<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>856</bug_id>
          
          <creation_ts>2013-10-10 17:07:06 +0200</creation_ts>
          <short_desc>Android: Support dual ABI (x86 i686 *and* ARMv7arm), i.e. pick &apos;best&apos; ABI</short_desc>
          <delta_ts>2014-01-24 13:07:35 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Gluegen</product>
          <component>core</component>
          <version>2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>855</blocked>
    
    <blocked>853</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>brice.figureau</cc>
    
    <cc>ericb</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3089</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-10-10 17:07:06 +0200</bug_when>
    <thetext>Android Samsung Galaxy Tab 3 10.1 uses an Intel Atom Z2560 with an x86 instruction set *and* support for ARMv7.

Gluegen detects the current architecture by parsing the dalvik system 
property &quot;os.arch&quot; which in our case returns &quot;686&quot;.

It would be advisable to use the android.os.Build information to check for all defined ABI.

On this galaxy tab 3 10.1, this gives:

android.os.Build.CPU_ABI: x86
android.os.Build.CPU_ABI2: armeabi-v7a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3092</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-10-11 02:37:24 +0200</bug_when>
    <thetext>it seems that the ABI2 (armv7) is emulated on the device, 
since the Intel Atom Z2xxx does not support this ABI natively.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3635</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-01-24 13:07:35 +0100</bug_when>
    <thetext>022c31eefaa0c11fbc069fd35cf5311a556c9ae5
    - Use &apos;os.arch&apos; as a prelim CPUType for MachineDescription
    
    - Always attempt to load a binary and parse it&apos;s elf header
      - Linux: self-exe
      - Android: gluegen-rt library
      - Other: java lib
    
    - Always use details (ABI) if ARM
    
    - Android: Check CPU_TYPE and CPU_TYPE2
    
    // FIXME / HACK:
    //   We use sCPUType for MachineDescriptionRuntime.getStatic()
    //   until we have determined the final CPU_TYPE, etc.
    //   MachineDescriptionRuntime gets notified via 
    //         MachineDescriptionRuntime.notifyPropsInitialized() below.
    //
    //   We could use Elf Ehdr&apos;s machine value to determine the bit-size
    //   used for it&apos;s offset table!
    //   However, &apos;os.arch&apos; should be a good guess for this task.
    
    Tested manually on
      - Linux x86, x86_64, armhf (raspi)
      - Android intel and arm
      - Windows x86_64
      - OSX x86_64</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>