码迷,mamicode.com
首页 > 移动开发 > 详细

Android: about /data/data/package_name/lib directory

时间:2015-01-05 18:00:43      阅读:143      评论:0      收藏:0      [点我收藏+]

标签:

You cannot write to lib/, however you do not need to.

You can write to any non-reserved location within your your application‘s private storage area, and you can load a native library from any file on the device for which you have read and execute permission, using System.load() with the full pathname, rather than System.loadLibrary() with the short library name.

The external storage (sdcard) is mounted with a non-executable flag, but a file in your private storage directory would be a workable solution. Just be sure to make it only writable by your application, so that something else can‘t change it behind your back (it is because you cannot protect external storage files from such modification that the external storage is non-executable)

Android: about /data/data/package_name/lib directory

标签:

原文地址:http://www.cnblogs.com/sfce/p/4203886.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!