On 15/05/12 19:13, ivan wrote:
[...]
> The APK contains a third party SO file contained in its /libs/armeabi
> directory, that I absolutely need to have unpackaged to /data/data/
> <package-name>/libs. -- Please disregard the why?
[...]
> But, is there a way to force the PackageManager to extract SO files,
> from APKs in /system/app, to
> /data/data/<package-name>/libs ?
Not that I know of.
But the library you want should be readable on the system *somewhere*.
If it's a ROM app it ought to be in /system/lib, but if all else fails
you could open the apk with java.util.zip.ZipFile and extract it manually.
Once you've got hold of the library it *may* be possible to just dump it
in your application's libs directory (or, preferably, make a symlink to
save space). But you'll need to check whether your app has write access
to its own lib directory.
--
┌─── dg@cowlark.com ─────
http://www.cowlark.com ─────
│
│ "Never attribute to malice what can be adequately explained by
│ stupidity." --- Nick Diamos (Hanlon's Razor)