除便携性之外,是否有任何其他优点(或缺点)在外部存储器上存储应用程序? -- external-sd 领域 和 performance 领域 和 app2sd 领域 android 相关 的问题

Other than portability, are there any other advantages (or disadvantages) to storing apps on external storage?


26
vote

问题

中文

在Android设备的外部存储上存储应用程序是否有任何特殊的优点/缺点?当我有一个nexus s时,我想不出对我的优势,因为我无法删除存储,内部存储器也足够了解我的需求。

我注意到在手机启动时,当我拥有所有的应用程序时,我的所有应用程序都移动到USB存储时,请在菜单/主屏幕上注册所有应用程序非常迟缓。

我还阅读了从存储在外部内存上的照片中设置的壁纸的某个地方实际上与所有读数一起排干相当多的电池(虽然我认为这可能是一个错误)。

英文原文

Are there any particular advantages/disadvantages to storing apps on the external storage of an Android device? As I have a Nexus S, I can't think of advantages for me as I can't remove the storage, also the internal storage is more than enough for my needs.

I noticed that on phone start up, when I had all my apps moved to USB storage it was quite sluggish to register all the apps on the menu/home screens.

I also read somewhere that having a wallpaper set from a photo that was stored on the external memory actually drained quite a bit of battery too with all the reads (although I think this may have been a bug).

        
   
   

回答列表

25
 
vote
vote
最佳答案
 

优点:

  • 在内部存储器上扩展可用空间以安装更多应用程序。
    虽然应用程序的某些部分仍然留在内部内存(数据和设置)上,但它仍然可以释放大量空间。对于具有150MB的自由空间(G1,MT3G等)的较旧手机这是一个巨大的改进。对于这些设备的所有者来说,这种优势仅超过了这种方法带来的任何缺点。

缺点:

  • 如果未卸载,则不能使用应用程序移动到SD卡。
    一种自我解释:如果您取消安装SD卡以删除,则需要停止驻留的应用程序,也可以防止崩溃和数据丢失,如果您删除卡。
  • 无法在将这些应用程序移动到SD卡时使用小部件或同步适配器。
    这是一种从上面的设计限制。由于存储在SD卡上的应用程序需要按需删除,因此挂钩您的帐户设置(例如Skype,LinkedIn)的小部件或应用程序将崩溃,因此没有简单的方法来重新启动它们。因此,谷歌通过要求这些应用程序留在内存中来妥协。即使您确实可以强制他们到SD卡(一些自定义ROM允许这个),您也无法使用它们。
  • 更长的启动和关闭时间,系统安装/未安装SD卡上存储的所有应用程序。
    将移动到SD卡的应用程序不存储在平原视线中以防止猖獗的盗版。相反,Android设置了一些空间并为您移动的每个应用程序创建虚拟分区。这意味着在初始启动时,可以访问存储在其上的应用程序之前,所有这些虚拟分区都需要安装。当您关闭手机时,相同的保留 - 在其他关闭进程发生之前,每个虚拟分区都未安装。根据已安装的应用程序的数量,系统可以额外延长甚至更长的时间,使系统在启动时"稳定" (以及约20秒才能关闭。)一旦发生这种情况,就会启动这些应用程序比内存更长的时间。
  • SD卡上的额外磨损。
    这一点是值得争辩的,因为写入SD卡(导致磨损)不会经常发生。此外,这些日子的SD卡足够便宜,不能担心他们的生命时间。
  • 应用程序需要更新以支持此功能。
    无法自动授予旧应用程序移动到SD卡的能力。开发人员必须更改其应用程序以支持此功能,并通过市场(或它们使用的任何分发方法)发出更新。)可能不再支持某些旧的应用程序,因此可能永远不会获得此功能。虽然一些自定义ROM可以覆盖这一点,但对于正在运行股票固件的大多数人来说,这是一个问题。

对于具有千兆字节的内部存储器移动应用程序的缩小设备,而不是必需的,因为空间不是问题。然而,对于带有低内存的手机,这是一个可宝贵的工具,延长了他们的业主的保质期。

 

Advantages:

  • Extend the available space on internal memory for installing more apps.
    Although some parts of the app still stay on the internal memory (data and settings,) it still frees up a significant amount of space. For older handsets with 150MB of free space (G1, MT3G, etc.) this is a huge improvement. For owners of these devices this advantage alone outweighs any disadvantages that this method brings.

Disadvantages:

  • Cannot use apps moved to SD Card if it's unmounted.
    Kind of self-explanatory: if you un-mount the SD Card for removal, the apps that reside on it need to be stopped and um-mounted as well to prevent crashes and data loss if you do remove the card.
  • Inability to use widgets or sync adapters when you move those apps to SD Card.
    This is a design limitation that stands from the above point. Since the apps stored on SD Cards need to be able to be removed on demand, things like widgets or apps that hook into your account settings (e.g. Skype, LinkedIn) will crash, with no easy way to re-start them. So Google made a compromise by requiring these apps to stay on internal memory. Even if you do manage to force them to the SD Card (some custom ROMs allow this), you simply won't be able to use them.
  • Longer boot-up and shut-down times when the system mounts/un-mounts all of the apps stored on SD Card.
    Apps that were moved to SD Card are not stored in plain sight to prevent rampant piracy. Instead, Android sets aside some space and creates a virtual partition for each app that you move. This means that at the initial boot-up, all these virtual partitions need to be mounted before apps stored on them can be accessed. The same holds true when you turn the handset off - each virtual partition is un-mounted before other shutdown processes can happen. Depending on the number of installed apps this can take an extra minute or even longer for the system to "stabilize" upon boot-up (and about 20 extra seconds for shutting down.) Once this happens though, launching these apps doesn't take any longer than those on internal memory.
  • Extra wear on the SD Card.
    This point is debatable, since writing to SD Card (which causes wear) doesn't happen that often. And besides, the SD Cards these days are cheap enough to not worry about their life time.
  • Apps require an update to support this functionality.
    Ability to be moved to SD Card is not automatically granted to older apps. Developers must change their apps to support this feature and issue an update via Market (or whatever distribution method they use.) Some older apps may not be supported any longer, and so may never get this feature. Although some custom ROMs can override this, for most people that are running stock firmware, this is a problem.

For newer devices with gigabytes of internal memory moving apps to external storage is not necessary, since space is not an issue. However for handsets with low memory it's an invaluable tool that extends their shelf life for their owners.

 
 
     
     
31
 
vote

直接从 Android开发人员网站

  • 随着外部存储安装在设备上,只要将外部存储安装在"应用程序" 性能上没有影响。
    • .apk文件保存在外部存储器上,但所有私有用户数据,数据库,优化的.dex文件和提取的本机代码保存在内部设备内存上。
    • 存储应用程序的唯一容器是用随机生成的键加密,该密钥只​​能由最初安装的设备解密。因此,安装在SD卡上的应用程序仅适用于一个设备。
    • 用户可以通过系统设置将应用程序移动到内部存储器。

也 - >不应该在外部存储上安装的应用程序(在 Android Developer站点

上)
  • 服务
  • 报警服务
  • 动态壁纸
  • 现场文件夹
  • 应用程序小部件
  • 帐户管理者
  • 同步适配器
  • 设备管理员
  • 广播接收机侦听"启动完成"
 

taken straight from android developer site

  • 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.

Also -> Applications That Should NOT Install on External Storage (more details on android developer site)

  • Services
  • Alarm Services
  • Live Wallpapers
  • Live Folders
  • App Widgets
  • Account Managers
  • Sync Adapters
  • Device Administrators
  • Broadcast Receivers listening for "boot completed"
 
 
17
 
vote

如果它们在SD卡上,小部件将无法正常工作。

 

Widgets won't work if they're on the SD card.

 
 
13
 
vote

在SD卡上安装的应用程序如果卸下SD卡无法运行,或者您正在打开USB大容量存储(因此它可以从计算机访问)。这是我一直在体验的唯一缺点。

我实际上已经看到了绩效改进,因为移动到SD以来;在我搬到SD之前,我已经用尽了内存(左几千字节),手机滞后得非常糟糕。由于移动到SD(因此释放内存中的某些空间),并且滞后消失。

 

Applications installed on SD card cannot run if you remove your SD card or you're turning on USB Mass storage (so it can be accessed from a computer). That's the only drawback I have been experiencing.

I've actually seen performance improvement since moving to SD; before I moved to SD I had exhausted the internal memory (about a few kilobytes left) and the phone lags quite badly. Since moving to SD (and therefore freeing some space in the internal memory), and the lag disappears.

 
 
7
 
vote

对于某些手机和设备(尤其是较旧的)内部存储非常有限。每个应用程序(以及它的数据文件)都占用了宝贵的空间。 IE。我的Ideos有512MB,在我开始"撤离" 应用程序到SD卡之前几乎完整。

另一个因素是备份应用程序和数据的能力,或将它们移动到另一个设备。

除此之外,您是否正确在您的观察中,与内部存储相比,应用从外部存储器加载较慢。如果您在主屏幕上拥有这些应用程序的快捷方式,这是非常可见的 - 在该应用程序位于该应用程序的前30秒之前,您将看到一般的Android图标。

我发现切换到一个6类microdd(我有手机随附的默认等级2)显着提高了情况。仍然,在冷启动后,它需要我的手机大约20秒钟"均衡" 。

 

For some phones and devices (especially the older ones) the internal storage is quite limited. Every application (and it's data files) take precious space. I.e. my Ideos has 512MB and was nearly full before I started "evacuating" apps to the SD card.

Another factor is the ability to backup your apps and data, or move them to another device.

Other than that, you are right in your observation that apps load slower from the external storage compared to the internal storage. This is very visible if you have those apps' shortcuts on your home screen - you'll see a generic Android icon for the first 30 seconds until the app is located on the card.

I found that switching to a class 6 microSD (I had the default class 2 that came with the phone) improved the situation considerably. Still, it takes my phone about 20 seconds to "equalize" following a cold start.

 
 
 
 
5
 
vote

安全性和性能影响

存储在外部存储上的应用程序资源是只读的 因此,加载或启动没有任何性能问题 在SD卡上的应用。

from: http:// android-developers.blogspot.co.uk/2010/07/paps-on-sd-card-details.html

帖子是由一个在这个特征上工作的工程师的'suali amalapulapu编写的。该功能是将应用程序放到SD卡上的能力。

 

Security and Performance Implications

The application resources stored on external storage are read-only and hence there are no performance issues with loading or launching applications on SD card.

From: http://android-developers.blogspot.co.uk/2010/07/apps-on-sd-card-details.html

The post is written by a 'Suchi Amalapurapu, an engineer who worked on this feature.' The feature being the ability to put apps onto the SD card.

 
 
 
 
2
 
vote

在我的经验中,几乎没有或任何可察觉的性能问题。我有一个非常讨厌的经历,用我的nexus管理我的记忆。我用s2e迁移并没有回头。真是无法删除应用程序只是为了安装新的应用程序。

 

In my experience there has been little or any perceptible performance problem. I was having a really annoying experience managing my memory with my Nexus One. I used S2E to migrate and have not looked back. Amazing to be able to not have to delete apps just to install new ones.

 
 
-2
 
vote

我认为从外部到外部移动应用不会影响性能。

但它确实添加了额外的几毫秒,以从外部存储而不是内部存储中打开应用程序。 里程将因设备而异,取决于速度,Android版等

 

I think that moving apps from internal to external does not affect the performance.

But it does add on an extra few milliseconds to open the app from external storage instead of in internal storage. mileage will vary from device to device, depending on speed, Android version etc

 
 
-2
 
vote

具有不断打开的服务的应用程序,例如Viber,WhatsApp,Facebook Messenger,ETCetera如果有很多这些正在运行,则可以减慢UI,因此它优选保持应用程序恒定的服务在手机记忆中,由于相比之下的影响是不明显的。

 

Apps that have a service that is constantly open, like for example Viber, WhatsApp, Facebook messenger, etcetera can slow down the ui a lot if there are a lot of these running, so its preferable to keep apps with a constant service on the phone memory, since the impact there is non noticeable by comparison.

 
 
 
 
-3
 
vote

永远不会将您的应用程序移动到外部SD卡中。它会让手机滞后,手机比平时更慢地重启。您甚至可能每天或每周一次重新启动手机。处理这些应用程序的所有信息需要更长时间。我从经验中说话。

 

Never ever move your apps into your external SD card. It will make your phone to lag more and the phone will reboot more slowly than usual. You might even have to restart the phone daily or once per week. It will take longer to process all the information that those apps have. I speak from experience.

 
 
 
 

相关问题

1  我需要一个将短信转移到SD的应用程序,可以移动到SD卡本身  ( I need an app that transfers sms to sd and can be moved to sd card itself ) 
我只是将手机从摩托罗拉机器人2转移到Galaxy S III。我经常使用处理,但忘了在新手机被激活之前备份我的短信。现在我拥有我所有的旧短信都在Droid上登录,因为我没有数据流,无法备份。 我发现了多个应用程序可以将短信保存到SD卡并将其下载到S3,但是我无法将任何应用程序移动到SD卡以将SD卡转换为机器人并安装...

6  如何正确格式化froyo的microSD卡?  ( How to properly format a microsd card for froyo ) 
手机上的microSD卡片在Windows XP中显示出"FAT" 。这张2GB卡在我的HTC野火跑得很好奔跑Froyo。 我买了一个新的16GB microSD,它被格式化为"FAT32" ,但这在我的手机中不适用于窗户挑选它很好。 手机上设置下的格式选项只是挂起。 ('你想强制关闭这个应用程序吗?') 在找到 s...

7  使用SD卡作为内部存储和迁移日期  ( Using sd card as internal storage and migrate date ) 
我读取问题,但我想更新问题。 现在使用Android 6.0,我们可以选择将SD卡格式化为内部存储,这就是我所做的。我还单击了"迁移数据" 选项,将图片,音乐和诸如SD卡存储器移动。 但是,我下载了更多的音乐,现在内部存储已满。 和"迁移数据" 选项现在尝试将数据从SD移动到内部存储器。所以显然您只能使用它一次...

3  Nexus一张用32GB SD卡崩溃  ( Nexus one crashes with 32gb sd card ) 
我刚收到一个nexus一个(gingerbread),当我放入32GB的Micro SDHC时,它会在尝试阅读它(复制应用程序,打开存储设置等)后崩溃,然后锁定屏幕后它会不重新开始(菜单按钮亮起,但不是屏幕) 我重新格式化它在我的电脑上,但是当我在手机中使用它时,它会再次失败。 该卡然而,在我的旧华为IDEOS U8...

2  外部SD卡是否必须使用脂肪?  ( Does the external sd card have to use fat at all ) 
link2sd 允许一个完全移动应用程序外部SD卡上的第二个分区提供了其文件系统支持Linux权限。但它必须是第二个分区,或者我可以简单地格式化整个卡。 ext3?如果USB连接到我的电脑,这仍然可以工作吗? ...

0  交换分区不适用于华为U8160运行Cyanogenmod 7.2  ( Swap partition not working on huawei u8160 running cyanogenmod 7 2 ) 
我有一个Huawei U8160(也称为:沃达丰858智能),它正在运行Cyanogenmod 7.2(由Madteam于2012年2月7日发布)。 更新到2/7/2012更新后,我发现一个选项要使用交换分区而不是compcache(压缩缓存),因此我将SD卡重新分区,以使用 mini工具分区向导大小和主要(我有一个...

14  如何在我的SD卡上恢复丢失的文件。他们是什么?  ( How can i recover the files in lost dir on my sd card and what are they ) 
我在外部SD卡上始终有一个丢失的文件夹,直到现在已经是空的。今天我的手机抱怨说,我的SD卡损坏,不会安装它,所以我把它拉出来,看着它的电脑。现在存在 abcdefghijklmn70237 文件,里面丢失了.dir是128 MB。它以"Ã" < mswin4.1"为始于" Ã"< mswin4.1" ,似...

17  数据恢复 - 如何在高清微SD卡上恢复已删除/格式的文件  ( Data recovery how to restore deleted formatted files on hd micro sd card ) 
背景: 我放入朋友的SD卡以格式化它,因为它有问题。然后我把我的回到了,我认为我的手机格式化了我的SD卡。我在那里有大量的照片,现在已经消失了!我将卡放入计算机中,只有2MB的缓存文件,没有原始目录。 我已经尝试过以下免费软件恢复应用程序: undelete 360​​ recuva 他们都没有...

0  在三星Galaxy 2上锁定SDHC存储卡  ( Locking sdhc memory card on samsung galaxy 2 ) 
我在SAMSUNG GALAXY 2手机上存储了一个重要文件(所以我可以在GO上编辑)。未经我的权限,我不希望别人访问此文件或文件。 我知道我可以锁手机,但这个选项意味着除非被解锁,否则无法在手机上完成。 我希望别人仍可从手机拨打电话,但不能访问存储卡。 (让别人使用我的手机是一个内部安排,即在我们一起旅行时有一个接...

1  / sd-ext突然重新安装在工作期间只读  ( Sd ext gets suddenly remounted read only during work ) 
我对Cyanogenmod 7.2(用少于斑点贴剂)和分区microSD卡(第一:脂肪,第二:Ext3)。 第二个分区会自动安装读/可写作 /sd-ext ,因为它应该是。 我正在使用S2E在这个ext3分区上存储我的应用程序和应用程序数据。 mount 命令显示,ext3分区不仅安装到 /sd-ext ,还为 /...

1  为什么我的Micro SD卡突然停止在我的三星Galaxy Siii工作?  ( Why has my micro sd card suddenly stopped working in my samsung galaxy siii ) 
我星期二买了一个全新的三星Galaxy Siii,并将我的全新32GB SD卡放入其中。它锻炼身体,填充了我所有的音乐和电影的手机等。 我甚至可以无线地观看电视上的电影并查看图片......惊人! 无论如何,我昨晚通过新手机看了电影,并在睡觉前审查了我最近的照片。当我今天早上醒来时,我的手机说SD卡已被删除。 现在,...

1  我无法格式化我的SD卡  ( I cant format my sd card ) 
我刚刚在我的AT& t Galaxy S5中插入了一个新的16 GB SD卡。我正在努力格式化它,但它会问我一个PIN,我不知道这不是我的电话号码的最后4个,这不是我的最后4个SSN。请帮忙! ...

0  Android 2.1 - MyTouch 3G幻灯片 - 准备SD卡Mal-Function - 格式化SD卡在取出并重新启动后:(  ( Android 2 1 mytouch 3g slide preparing sd card mal function formatted sd c ) 
操作系统:Android 2.2 设备:HTC MyTouch 3G幻灯片 SD卡:Micro SD 8GB Sandisk卡,不到1岁) 背景: 在我把它拿出来后,这个功能格式化了我的工作SD卡与我的照片全部照片并将其放回同一部手机后。当我取出它时,我没有添加或删除设备中的任何数据......我检查了计算机上的SD...

2  Galaxy S3用于SD卡的文件系统格式  ( Filesystem format used for sd card by galaxy s3 ) 
当我删除由我的Galaxy S3格式化的SD卡,并将其放在MacBook中, fdisk 显示其唯一分区,与具有分区ID 0C 表示它是FAT32 LBA分区。但是,OSX无法安装它,并且Ubuntu似乎将其安装为exfat分区。 此分区上使用的文件系统是什么?可以在分区ID和分区上使用的文件系统之间的差异阻止OS...

4  更改屏幕截图的默认存储位置  ( Change default storage location of screenshots ) 
我已经能够更改相机的存储选项(例如,从内部存储到外部SD)。但是,我不知道如何更改该设置,甚至控制屏幕截图的格式。将"屏幕截图" 文件夹移动到外部存储器手动无效。 我有果冻豆4.1.2。 ...




© 2021 it.wenda123.org All Rights Reserved. 问答之家 版权所有


Licensed under cc by-sa 3.0 with attribution required.