应用程序在Android上的SD功能 [英] App to SD functionality on Android

查看:182
本文介绍了应用程序在Android上的SD功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到的是能够使用一个应用程序到SD功能,必须是安卓2.2的一部分,越来越多的要求,但我真的与它没有任何经验。我也不知道在哪里可以找到关于如何让我的应用程序使用此功能兼容的任何文件。人们告诉我,我的应用程序不能移动到SD卡上。

I'm getting more and more requests about being able to use an App to SD feature that must be part of Android 2.2, but I really have no experience with it. I also don't know where to find any documentation regarding how to make my apps compatible with this feature. People have told me my apps cannot be moved to the SD card.

我的心也告诉我,这是没有任何形式的许可保护的付费应用一个非常糟糕的主意。

My mind is also telling me that this is a really bad idea for paid apps that don't have license protection of any kind.

有没有人有这方面的经验,知道的任何文件,或对什么会阻止被此功能不兼容的应用程序的任何提示?

Has anyone had any experience with this, know of any documentation, or have any tips regarding what would stop an app from being compatible with this feature?

注:我不想我的应用程序使用复制保护

Note: I do not use copy protection on my apps.

推荐答案

您可以让您的应用程序安装到SD卡中使用机器人:INSTALLLOCATION 的属性。这可以被设置为 preferExternal 汽车,这取决于你是否想建议将其安装在SD卡上,或简单地允许它。默认情况下,应用程序不能安装到SD卡的向后兼容性的原因,所以你必须选择加入,如果你希望你的用户能够使用它这个功能。

You can allow your app to be installed to the SD card using the android:installLocation manifest attribute. This can be set to preferExternal or auto, depending on whether you would like to recommend that it be installed on the SD card, or simply allow it. By default, applications cannot be installed to the SD card for backwards-compatibility reasons, so you must opt-in to this feature if you want your users to be able to use it.

的文档

当您的应用程序安装在外接存储:

When your application is installed on the external storage:

      
  • 对所用的应用程序的性能没有任何影响,只要外部存储装在设备上。
  •   
  • 在该.apk文件的文件保存在外部存储,但所有的私人用户数据,数据库,优化的.dex文件,并提取天然code保存在内部设备内存中。
  •   
  • 的独特容器,其中应用程序被存储进行加密随机生成的密钥只能由最初安装它的设备解密。因此,只有一台设备安装在SD卡上运行的应用程序。
  •   
  • 用户可以通过系统设置,将您的应用程序的内部存储。
  •   
  • There is no effect on the application performance so long as the external storage is mounted on the device.
  • The .apk file is saved on the external storage, but all private user data, databases, optimized .dex files, and extracted native code are saved on the internal device memory.
  • The unique container in which your application is stored is encrypted with a randomly generated key that can be decrypted only by the device that originally installed it. Thus, an application installed on an SD card works for only one device.
  • The user can move your application to the internal storage through the system settings.

所以,你不应该担心许可证的保护太多;有加密内置在功能。你也通常不应该担心许可证的保护,因为任何形式的复制保护或DRM的往往是诚实的用户,而不是海盗的危害更大。只要有人能够使用您的应用程序,会有人能够海盗​​它;这是几乎不可能建立一个牢不可破的DRM方案。如果您的应用程序已经在内部存储,它可能已经盗版。大多数用户都老实,但是,并从市场购买的应用程序,所以你不会真多,从停止盗版行为获得(大多数人谁下载盗版应用程序是那些谁没有获得在市场付费应用,它是还没有在很多国家有售)。

Thus, you shouldn't worry about license protection too much; there is encryption built into the feature. You also generally shouldn't worry about license protection because any form of copy protection or DRM tends to be more harmful to honest users than to pirates. As long as someone is able to use your app, someone will be able to pirate it; it is well nigh impossible to create an unbreakable DRM scheme. If your app is already in internal storage, it's likely already pirated. Most users are honest, however, and will buy the app from the Market, so you won't really gain much from stopping piracy (most people who download pirated apps are those who don't have access to paid apps in the Market; it's still not available in many countries).

总之,结果是,这应该是关于安全的,因为你的应用程序已经是了,只是让用户在存储他们的应用程序更多的灵活性。它不是默认情况下的错误导致了没有希望它中断应用程序启用,但它应该是绝对安全的启用。

Anyhow, the upshot is that this should be about as secure as your app already is, and just allows users more flexibility in where to store their app. It's not enabled by default in case of bugs that cause applications that aren't expecting it to break, but it should be perfectly safe to enable.

这篇关于应用程序在Android上的SD功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆