Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6201] Android: V8 shared libraries need to be packaged in ARM specific lib folders

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2012-01-10T10:46:14.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-46, Release 1.8.0.1
ComponentsAndroid
Labelsbranch-v8, module_build, qe-testadded, verified-1.8.0.1
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-11-16T09:51:41.000+0000
Updated2012-01-10T10:46:14.000+0000

Description

Right now we have two shared libraries in V8: libkroll-v8-device.so (for armeabi v7) and libkroll-v8-emulator.so (for armeabi v5). We need to move to using the ARM ABI specific folders in our packaging so apps can be correctly distributed to end users. Right now, some Froyo and above devices have ARM v5 chips (such as Bill's LG-P509), and the libkroll-v8-device.so library won't work for them.

Comments

  1. Opie Cyrus 2011-11-28

    Fix for this is included in 6186
  2. Marshall Culpepper 2011-12-04

    There are a few things to look for when testing this: * Build any Titanium application w/ the V8 runtime, and list the APK contents. You should see two entries for libkroll-v8.so, one for libs/armeabi, and another for libs/armeabi-v7a:
       $ unzip -l build/android/bin/app.apk
         ....
         4789260  12-05-11 01:21   lib/armeabi/libkroll-v8.so
         4776408  12-05-11 01:21   lib/armeabi-v7a/libkroll-v8.so
       
    * Run this app on the Nook Color emulator, and it should work as expected. Before, our "device" vs "emulator" library check would fail, and choose the "device" library, causing a hard crash on Nook Color emulator. This fix uses the built-in Android ABI detection to avoid the problem altogether. TIMOB-6136 can also be resolved when this is resolved
  3. Bill Dawson 2011-12-07

    Fixed by marshall as part of TIMOB-6312. I tested a V8 app on my LG phone that marshall mentions. Works great. As Marshall notes above, another test is the Nook Color Emulator (which makes this a duplicate of TIMOB-6136).
  4. Michael Pettiford 2011-12-19

    Tested with Studio 1.0.7.201112152014 Ti Mob SDK 1.8.0.1.RC3 OSX Lion Nook Emulator, Packaged app Verified that a packaged app's .apk contains the expected output, and also ran on Nook Emulator
  5. Dustin Hyde 2012-01-10

    Added Label: qe-testadded

JSON Source