On Thu, May 16, 2013 at 6:29 PM, Nikolay Elenkov
<[email protected]> wrote:
> On Thu, May 16, 2013 at 6:19 PM, Filipe Madureira
> <[email protected]> wrote:
>> Hi,
>>
>> Thanks for the help.
>> The problem is that I don't know where the libraries go to when I move the
>> app to SD on my HTC for me to use System.load().
>>
>
> IIRC, the encrypted packages stored on SD card are loopback mounted.
> Try running 'mount' in a shell and look for you package name. That
> should lead you to the directory where your code is. Not 100% sure
> it includes the native libs though.

It should be in /mnt/asec/org.yourpackage-1/lib/native.so

or a similar looking directory.

The system should have taken care of setting paths, etc.
though and you shouldn't need to do anything special. My apps
with native code work just fine when moved on the SD card.
You are probably hitting a bug in a particular device or
Android version.

Note the this not using the SD card directly, but a loopback
mounted device with appropriate UID and options set:

/dev/block/dm-11 on /mnt/asec/org.package-2 type vfat
(ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to