《终端模拟器指令》由会员分享,可在线阅读,更多相关《终端模拟器指令(4页珍藏版)》请在金锄头文库上搜索。
1、Apps2SD基本命令如下:备注:运行时必须在前加上a2sd命令例如:开启jit运行:#a2sdjitreinstallreinstallMovesfreeandpaidappstotheext2/ext3/ext4移动软件到ext分区,删除noA2sd标识文件partitiononyoursecuredigitalcard.RemovestheNoA2SDflagfile.Thisisusedifyouhavealreadyexecutedan这个主要用在你运行了删除a2sd命令a2sdremovecommand.Otherwise,thispartisautomaticallyperfor
2、medwhenApps2SDisstarted.Fileremoved:/data/.noa2sdremoveremoveMovesfreeandpaidappstotheinternalphone移动软件到手机内存,并建立noA2sd标识文件storage.CreatestheNoA2SDflagfile.Filecreated:/data/.noa2sdSwapPartitionCommands:Swap分区命令reswapreswapRemovestheNoSwapflag.AllowsA2SDto删除noswap标识,允许A2sd激活swap分区activatetheswapparti
3、tion.Thisisusedifyouhavealreadyexecutedana2sdnoswapcommand.Otherwise,thispartisautomaticallyperformedwhenApps2SDisstarted.Fileremoved:/data/.noswapnoswapnoswapCreatestheNoSwapflag.PreventsA2SDfrom建立noswap标识,防止A2sd激活swap分区activatingtheswappartition.Filecreated:/data/.noswapswappyxxswappyxxSetsswappar
4、titionswappinessvaluetoxx.设置swap分区swappiness数值为xx例子:设置swap分区swappiness数值为30%,输入a2sdswappy30,设置为75%,输入a2sdswappy75Example:Tosettheswappinessoftheswappartitionto30%,type:a2sdswappy30Tosetat75%,type:a2sdswappy75Filecreated:/data/dtswapDalvikCacheCommands:Dalvik缓存命令cachesdcachesdMovesDalvikcachefilestot
5、heext2/ext3/ext4移动Dalvik缓存到ext分区,并建立DalvikCachetoSD的标识partitiononyoursecuredigitalcard.CreatesDalvikCachetoSDflag.Filecreated:/data/.dalvikcacaheFileremoved:/data/.dcpartitioncachesdresetcachesdresetPerformsthesamefunctionascachesd,plus类似于cachesd功能,擦除原有Dalvik缓存,并要求重启时重建缓存。erasesthecontentsofDalvik-C
6、ache,forcingarebuildonreboot.Filecreated:/data/.dalvikcacheFileremoved:/data/.dcpartitioncachepartcachepartMovesDalvikcachefilestothe/cachepartition移动Dalvikcache文件到你的手机/cache分区,并建立DalvikCache到手机/cache分区的标识inyourphone.CreatesDalvikCachetoCachePartitionflag.Filecreated:/data/.dcpartitionFileremoved:/d
7、ata/.dalvikcachecachepartresetcachepartresetPerformsthesamefunctionascachepart,plus手机Dalvik-cache分区重置。erasesthecontentsofDalvik-Cache,forcingarebuildonreboot.Filecreated:/data/.dcpartitionFileremoved:/data/.dalvikcachenocachenocacheMovesDalvikcachefilestotheinternalphone移动所有Dalvikcache文件到手机存储,删除所有有关
8、标识文件storage.RemovesallDalvikCacheflags.Fileremoved:/data/.dcpartition/data/.dalvikcachenocacheresetnocacheresetPerformsthesamefunctionasnocache,plus功能同nocache,并重建Dalvik-CacheerasesthecontentsofDalvik-Cache,forcingarebuildonreboot.Fileremoved:/data/.dcpartition/data/.dalvikcacheresetcacheresetcacheCl
9、earsthedalvikcacheandrestartsphone.重置为初始模式,恢复原状Apps2SDDiagnosticCommands:Apps2SD诊断命令checkcheckPerformsasymlinkandflagfilecheckonyour检查并输出有关信息,看看是否在App2sd过程中出现错误setup.OutputsareportthatshowsyouifthereareissueswithyourApps2SDsetup.repairrepairPerformsarepairofallsymlinksbasedon执行修复所有针对标识的链接flagfileact
10、ivation.diskspacediskspaceShowsdiskspacestatisticsfortheext显示ext分区磁盘空间partition.sysinfosysinfoDisplaysinformationaboutyourphone,显示手机信息,分区,swap等等partitions,swap,andmore.Alsowritesadumpfilethathasanentireprofileofyourphone.Thisisfortroubleshootingonly.FileCreated:/data/dtsysdump.txtswapspaceswapspaceS
11、howsswapspacestatisticsforall显示你手机上的swap空间统计swapspaceactiveonthephone.partlistpartlistShowsthesupportedEXTpartitions显示你手机rom支持的ext分区类型availableforyourparticularROM.ZipAlignCommands:zipalign工具命令(一个很有用的优化apk文件的功能)alignalignPerformsaone-timezipalignonallAPKfiles一次性对手机中的apk文件进行优化in/data/app,/data/app-pr
12、ivateand/system/app.zipalignzipalignAllowsZipAligntoexecuteduringtheboot允许ZipAlign运行在启动过程中,并建立ZipAlign标识process.CreatestheZipAlignflagfile.FileCreated:/data/.zipalignnozipalignnozipalignPreventsZipAlignfromexecutingduringthe阻止ZipAlign在系统启动过程中运行,并删除ZipAlign标识bootprocess.RemovestheZipAlignflagfile.Fil
13、eRemoved:/data/.zipalignDalvikSettingCommands:Dalvik设置命令jitJitInstallsDalvikVMJIT.开启JitWARNING:DonotrunthiscommandifyourphonehasNANDprotectionactive.nojitnojitRemovesDalvikVMJIT.关闭JitWARNING:DonotrunthiscommandifyourphonehasNANDprotectionactive.heapsizexxheapsizexxSetsDalvikHeapSizetoxx,orheapsizeOr
14、esets设定DalvikHeap大小为xx,或者使用heapsize0重置为系统默认heapsizetodefaultsettings.Ex:IfyouwanttosettheDalvikHeapSizeto24mb,typea2sdheapsize24FileCreated:/data/a2sdheapsize(value0)FileRemoved:/data/a2sdheapsize(value=0)LowMemoryKillerCommands:LowMemoryKiller命令lowmem-moderate中度设定Setstheinternalmemorykillertothefol
15、lowing设定系统内存结束进程设置为settings:ForegroundApps:1536pages/6MBVisibleApps:3072pages/12MBSecondaryServer:4096pages/16MBHiddenApps:7680pages/30MBContentProvider:8960pages/35MBEmptyApp:10240pages/40MBCreateFile:/data/.lmmoderateRemoveFile:/data/.lmoptimum/data/.lmstrict/data/.lmaggressive/data/.lmultimate/data/.lmextremelowmem-optimum最佳设定Setstheinternalmemorykillertothefollowingsettings:ForegroundApps:1536pages/6MBVisibleApps:2048pages/8MBSecondaryServer:4096pages/16MBHiddenApps:10240pages/40MBContentProvider:12800pages/50MBEmptyApp:15360pages/60MBCreateFile:/data/.lmoptimumRemoveFile:/d