重庆环氧砂浆地坪:几乎各种rom通用的 A2SD 刷机包 (2.7.5.1

来源:百度文库 编辑:九乡新闻网 时间:2024/04/28 14:31:45
有疑难最好能PM~
之前观察不仔细,直到回复别人问题时 打开tonny 7月14一看才发现有A2SD,进系统a2sd check发现a2sd启用中…,所以用tonny 6月以后版本的朋友可以不用刷了 …,有重大更新的版本俺会测试建议更新


tonny 8月8-28 rom 遇到A2SD无法激活的朋友,推荐你们刷9月18或以后的版本,已经彻底解决A2SD不自动激活的问题

刷法如同平时刷ROM一样,可在已有Darktremor a2sd的rom上升级(也就是刷),已有A2SD的各种基于CM MOD的ROM就免刷了!。
下载2.7.5.1ROM比较老的 下载2.7

作者更新页面:http://forum.xda-developers.com/showthread.php?p=7025105
2.7:http://forum.xda-developers.com/showthread.php?t=670087



A2SD是Application To SDCard的缩写,它能实现将APK安装到SD卡,这之前有一些前提条件和注意事项:


刷A2SD之前您需要先将SD卡做个EXT分区(分区会清空SD 请注意备份),进过RA Recovery的朋友可能注意到过一个叫Partition sdcard的菜单,选中它一路按home下一步,分区执行完 执行EXT2 to EXT3,分区就完成了。这时才刷系统和A2SD(如果集成的a2sd没有激活 或刷完a2sd才有ext分区,可能需要使用a2sd reinstall来激活),进入系统后可以见到/system/sd这个路径,且/data/app路径下的apk在/system/sd里面 那A2SD应该是起作用了。用a2sd命令可以100%确定a2sd处于什么状况 不用瞎猜…,adb shell执行a2sd check结果如下图红线部分就是成了:
下载 (29.93 KB)
2010-8-12 00:54



对于进阶使用者我还推荐使用以下命令:

a2sd lowmem-optimum
详见a2sd帮助的Low Memory Killer Commands部分,a2sd 2.7.5一大特色是能配置内存策略,就不用再装内存管理软件了,optimum是我认为最合适的一项。

a2sd zipalign
详见a2sd帮助的ZipAlign Commands部分,据说这个参数能让apk的访问速度稍微加快。

*a2sd cachesd
详见a2sd帮助的Dalvik Cache Commands部分,这个参数能把缓存也放入SD卡,如果你的TF卡写入速度超过10M/s 读取超过15M/s的话推荐!这么做过后机载的app空间几乎不会消耗
*注
并不是所有recovery能备份还原cahcesd创建的文件,如果您遇到启用cachesd的备份 还原后卡在开机画面,请务必使用这个GodSpeed Recovery,或用ROM Manager刷Clockwork Recovery。如果您还知道有别的支持a2sd的recovery麻烦共享一下啦,因为GodSpeed是超频768的,极个别Hero200可能跑不了这个频率。


a2sd repair
详见Apps2SD Diagnostic Commands部分,在作者发布页的回帖中,我总结了一条经验,用过任何a2sd命令后 执行一次a2sd repair,能有效的预防一些不可预知的负面情况。我个人推荐每次更新软件后 和 备份前 能想起来的话就执行一次这条命令,小心使得万年船。



————————————————————————————————————————



Q & A :

(2.7.5 RC2-3 有命令变更:原install现reinstall,原swap现reswap)

Q:分区时的swap是什么,swap和ext各应该设置多大?
A:默认值(32 & 512)即可,这些DIY的Recovery是给目标机型量身定做的,大侠们已经将最合适的值作为默认。swap分区的作用是把部分内存数据或热代码存入这个分区 可以让内存某程度上更多空余 和提高一些软件的执行效率,类似于Windows的虚拟内存和boostr。但用在手机的和PC的Linux不太一样,swap过大会卡机甚至频繁出现FC,和内存相比 SD卡的带宽小了几百倍,它对一些频繁存取的系统数据来说太慢了,如果过大比例的内存数据被置于SD的swap分区 前面的情况就会发生。

Q:为何A2SD启用后,安装程序仍会减少机载空间?
A:安装的软件会在/data目录下产生 配置文件 缓存文件 Dalvik Cache 或数据库文件等。例举我的情况:新装系统剩余100M空间,装软件到空间不足警告(低于16M),启用A2SD后装同样多的软件 ROM的可用空间还有60多M。A2SD是有积极作用的
如果启用A2SD后空间又用超了,可以使用a2sd cachesd命令 能又给你腾出80MB左右空间出来。但是需要注意:移动Dalvik Cache到EXT分区可能会让程序响应变慢,特别是卡速度不够快的话(卡标的Class不要管 关键要看实测速度,写入不达10M/s读取不达15M/s的TF卡不推荐启用cachesd功能 会感觉到软件启动时间变长了)。


Q:启用A2SD后我还能用磁盘模式访问SD卡吗?
A:能的,就和平时一样用,系统只会umount FAT分区分配给USB。但是不能把SD卡拔掉~

————————————————————————————————————————

Q:不想用A2SD了该咋办?
A:用adb shell执行a2sd  remove

以下是所有a2sd的命令和注释(用a2sd help命令获得),使用这些命令前请先对系统以及SD卡做个备份以防万一
  1. Version 2.7.5.1 (2010-09-22)
  2. =================================================
  3. Syntax: /system/bin/a2sd command
  4. All commands create a logfile: /data/dta2sd.log
  5. Command is one of the following

  6. Standard Apps2SD Commands:
  7. --------------------------------------------------
  8. reinstall
  9.   Moves free and paid apps to the ext2/ext3/ext4
  10.   partition on your secure digital card.  Removes
  11.   the No A2SD flag file.
  12.   This is used if you have already executed an
  13.   a2sd remove command.  Otherwise, this part is
  14.   automatically performed when Apps2SD is
  15.   started.
  16.   File removed: /data/.noa2sd
  17. remove
  18.   Moves free and paid apps to the internal phone
  19.   storage.  Creates the No A2SD flag file.
  20.   File created: /data/.noa2sd

  21. Swap Partition Commands:
  22. --------------------------------------------------
  23. reswap
  24.   Removes the No Swap flag.  Allows A2SD to
  25.   activate the swap partition.
  26.   This is used if you have already executed an
  27.   a2sd noswap command.  Otherwise, this part is
  28.   automatically performed when Apps2SD is
  29.   started.
  30.   File removed: /data/.noswap
  31. noswap
  32.   Creates the No Swap flag.  Prevents A2SD from
  33.   activating the swap partition.
  34.   File created: /data/.noswap
  35. swappyxx
  36.   Sets swap partition swappiness value to xx.
  37.   Example:  To set the swappiness of the swap
  38.             partition to 30%, type:
  39.             a2sd swappy30
  40.             To set at 75%, type:
  41.             a2sd swappy75
  42. File created: /data/dtswap

  43. Dalvik Cache Commands:
  44. --------------------------------------------------
  45. cachesd
  46.   Moves Dalvik cache files to the ext2/ext3/ext4
  47.   partition on your secure digital card. Creates
  48.   Dalvik Cache to SD flag.
  49.   File created: /data/.dalvikcacahe
  50.   File removed: /data/.dcpartition
  51. cachesdreset
  52.   Performs the same function as cachesd, plus
  53.   erases the contents of Dalvik-Cache, forcing
  54.   a rebuild on reboot.
  55.   File created: /data/.dalvikcache
  56.   File removed: /data/.dcpartition
  57. cachepart
  58.   Moves Dalvik cache files to the /cache partition
  59.   in your phone.  Creates Dalvik Cache to Cache
  60.   Partition flag.
  61.   File created: /data/.dcpartition
  62.   File removed: /data/.dalvikcache
  63. cachepartreset
  64.   Performs the same function as cachepart, plus
  65.   erases the contents of Dalvik-Cache, forcing
  66.   a rebuild on reboot.
  67.   File created: /data/.dcpartition
  68.   File removed: /data/.dalvikcache
  69. nocache
  70.   Moves Dalvik cache files to the internal phone
  71.   storage.  Removes all Dalvik Cache flags.
  72.   File removed: /data/.dcpartition
  73.                 /data/.dalvikcache
  74. nocachereset
  75.   Performs the same function as nocache, plus
  76.   erases the contents of Dalvik-Cache, forcing
  77.   a rebuild on reboot.
  78.   File removed: /data/.dcpartition
  79.                 /data/.dalvikcache
  80. resetcache
  81.   Clears the dalvik cache and restarts phone.

  82. Apps2SD Diagnostic Commands:
  83. --------------------------------------------------
  84. check
  85.   Performs a symlink and flag file check on your
  86.   setup.  Outputs a report that shows you if
  87.   there are issues with your Apps2SD setup.
  88. repair
  89.   Performs a repair of all symlinks based on
  90.   flag file activation.
  91. diskspace
  92.   Shows disk space statistics for the ext
  93.   partition.
  94. sysinfo
  95.   Displays information about your phone,
  96.   partitions, swap, and more.
  97.   Also writes a dump file that has an
  98.   entire profile of your phone.  This
  99.   is for troubleshooting only.
  100.   File Created:  /data/dtsysdump.txt
  101. swapspace
  102.   Shows swap space statistics for all
  103.   swap space active on the phone.
  104. partlist
  105.   Shows the supported EXT partitions
  106.   available for your particular ROM.

  107. ZipAlign Commands:
  108. --------------------------------------------------
  109. align
  110.   Performs a one-time zipalign on all APK files
  111.   in /data/app, /data/app-private and /system/app.
  112. zipalign
  113.   Allows ZipAlign to execute during the boot
  114.   process. Creates the ZipAlign flag file.
  115.   File Created: /data/.zipalign
  116. nozipalign
  117.   Prevents ZipAlign from executing during the
  118.   boot process. Removes the ZipAlign flag file.
  119.   File Removed: /data/.zipalign

  120. Dalvik Setting Commands:
  121. --------------------------------------------------
  122. jit
  123.   Installs DalvikVM JIT.
  124.   WARNING:  Do not run this command if your phone
  125.             has NAND protection active.
  126. nojit
  127.   Removes DalvikVM JIT.
  128.   WARNING:  Do not run this command if your phone
  129.             has NAND protection active.
  130. heapsizexx
  131.   Sets Dalvik Heap Size to xx, or heapsize0 resets
  132.   heap size to default settings.
  133.   Ex: If you want to set the Dalvik Heap Size to
  134.       24mb, type a2sd heapsize24
  135.   File Created: /data/a2sdheapsize (value > 0)
  136.   File Removed: /data/a2sdheapsize (value = 0)

  137. Low Memory Killer Commands:
  138. ----------------------------------------------------
  139. lowmem-moderate
  140.   Sets the internal memory killer to the following
  141.   settings:
  142.   Foreground Apps:    1536 pages /   6 MB
  143.   Visible Apps:       3072 pages /  12 MB
  144.   Secondary Server:   4096 pages /  16 MB
  145.   Hidden Apps:        7680 pages /  30 MB
  146.   Content Provider:   8960 pages /  35 MB
  147.   Empty App:         10240 pages /  40 MB
  148.   Create File: /data/.lmmoderate
  149.   Remove File: /data/.lmoptimum
  150.                /data/.lmstrict
  151.                /data/.lmaggressive
  152.                /data/.lmultimate
  153.                /data/.lmextreme
  154. lowmem-optimum
  155.   Sets the internal memory killer to the following
  156.   settings:
  157.   Foreground Apps:    1536 pages /   6 MB
  158.   Visible Apps:       2048 pages /   8 MB
  159.   Secondary Server:   4096 pages /  16 MB
  160.   Hidden Apps:       10240 pages /  40 MB
  161.   Content Provider:  12800 pages /  50 MB
  162.   Empty App:         15360 pages /  60 MB
  163.   Create File: /data/.lmoptimum
  164.   Remove File: /data/.lmmoderate
  165.                /data/.lmstrict
  166.                /data/.lmaggressive
  167.                /data/.lmultimate
  168.                /data/.lmextreme
  169. lowmem-strict
  170.   Sets the internal memory killer to the following
  171.   settings:
  172.   Foreground Apps:    1536 pages /   6 MB
  173.   Visible Apps:       2048 pages /   8 MB
  174.   Secondary Server:   4096 pages /  16 MB
  175.   Hidden Apps:       15360 pages /  60 MB
  176.   Content Provider:  17920 pages /  70 MB
  177.   Empty App:         20480 pages /  80 MB
  178.   Create File: /data/.lmstrict
  179.   Remove File: /data/.lmmoderate
  180.                /data/.lmoptimum
  181.                /data/.lmaggressive
  182.                /data/.lmultimate
  183.                /data/.lmextreme
  184. lowmem-aggressive
  185.   Sets the internal memory killer to the following
  186.   settings:
  187.   Foreground Apps:    1536 pages /   6 MB
  188.   Visible Apps:       3072 pages /  12 MB
  189.   Secondary Server:   4096 pages /  16 MB
  190.   Hidden Apps:       21000 pages /  82 MB
  191.   Content Provider:  23000 pages /  90 MB
  192.   Empty App:         25000 pages /  98 MB
  193.   Create File: /data/.lmaggressive
  194.   Remove File: /data/.lmmoderate
  195.                /data/.lmoptimum
  196.                /data/.lmstrict
  197.                /data/.lmextreme
  198.                /data/.lmultimate
  199. lowmem-extreme
  200.   Sets the internal memory killer to the following
  201.   settings:
  202.   Foreground Apps:    1536 pages /   6 MB
  203.   Visible Apps:       3072 pages /  12 MB
  204.   Secondary Server:   4096 pages /  16 MB
  205.   Hidden Apps:       38400 pages / 150 MB
  206.   Content Provider:  40960 pages / 160 MB
  207.   Empty App:         43520 pages / 170 MB
  208.   Create File: /data/.lmextreme
  209.   Remove File: /data/.lmmoderate
  210.                /data/.lmoptimum
  211.                /data/.lmstrict
  212.                /data/.lmaggressive
  213.                /data/.lmultimate
  214. lowmem-ultimate
  215.   Sets the internal memory killer to the following
  216.   settings:
  217.   Foreground Apps:    1536 pages /   6 MB
  218.   Visible Apps:       3072 pages /  12 MB
  219.   Secondary Server:   4096 pages /  16 MB
  220.   Hidden Apps:       51200 pages / 200 MB
  221.   Content Provider:  57600 pages / 225 MB
  222.   Empty App:         64000 pages / 250 MB
  223.   Create File: /data/.lmultimate
  224.   Remove File: /data/.lmmoderate
  225.                /data/.lmoptimum
  226.                /data/.lmstrict
  227.                /data/.lmaggressive
  228.                /data/.lmextreme
  229. lowmem-default
  230.   Sets the internal memory killer back to phone default
  231.   settings.
  232.   Remove File: /data/.lmmoderate
  233.                /data/.lmoptimum
  234.                /data/.lmstrict
  235.                /data/.lmaggressive
  236.                /data/.lmextreme
  237.                /data/.lmultimate
复制代码