thereareseveralwaystoinstallapplicationsorlibraryfilestoanandroidphone.youcanusemarketapplicationtofindinstallloradbcomane hthefilestoandroidfilesystem.thesearealleasytoimplementforsinglefilebutifyouhaveseveralaplicationsor库文件到安装at ooo itmightbebettertouseupdatezipfile.theupdatezipfileisandroidadvancedsystemtoinstallapplicationsorlibfilestoandroidfilesysteum odiscommonlyusedbyromorthemedeveloperstodistributetheirpackage。
creatinganupdatezipfileisquiteeasy, allyouhavetodoisputthefilesincorrespondingdirectoryinandroidfilesystemandanupdate-scriptfiletocopythefiles.for example, to install calculator.apkintosystem/appandcopylibsec-RIL.sofileintosystem/lib 3360 createanemptyfolder (eg.c 3: )
createc :my updatesystemappfolderforcalculator.apkandc :my updatesystemlibfolderforlibsec-RIL
createc :my更新 meta-INFcomGoogleandroidfolderforupdate-script file。
createtheupdate-scriptfilewiththefollowingsyntax : show _ progress 0.10
copy _ dir package 3360系统系统:
show_progress 0.1 10
Line 15 : show progress bar
line 3: copysystemfolderfromupdatepackagetoandroid’s/system
note : youshouldaddoneextralineattheendofthefile (行6 ) )。
compresstheentirecontentsofc : (myupdatefoldertozip (notthemyupdatefolderitself ) )。
Sign the myupdate.zip file
Java-jarsignapk.jar certificate.PEM key.pk8 my update.zip update.zip
note : youcanfindtutorialonhowtosigntheupdate.zipfile here
copytheupdate.zipfiletosdcardandapplyitfromrecoveryconsole
更新-脚本同步参考(definitionsfromrecovery.candroidsourcecode ) : copy_dir
syntax : copy _ dir [ kld xh/pcopythecontentsofto.theoriginalcontentsofarepreservedunlesssomethinginoverwrotethem。
ex : copy _ dir package :系统系统:
格式
syntax :格式
格式a partiti 0n
ex :格式系统:willformatentire/system.note :格式存储数据验证器。
删除
syntax : delete [ . kld xh/pdeletefile。
ex : delete system 3360 app/calculator.apk,willdeletecalculator.apkfromsystem/app目录。
delete_recursive
syntax : delete _ recursive [ . kld xh/pdeleteafileordirectorywithallofit’scontentsrecursively
ex : delete _ recursive data : dal vik-cache,will delete/data/dal vik-cachedirectorywithallofit’s contents
run_program
syntax : run _ program [ . kld xh/prunanexternalprogramincludedintheupdatepackage。
ex : run _ program package : install _ busybox.sh,willruninstall _ busybox.sh script (shell commmand ) Includedinthe
set_perm
syntax : set _ perm [ . kld xh/psetownershipandpermissionofsinglefileorentiredirectorytrees,like‘chmod’,‘chown’
ex : set _ perm 020000550 system : etc/init.goldfish.sh
set_perm_recursive
syntax : set _ perm _ recursive [ . kld xh/psetownershipandpermissionofadirectorywithallofit’scontentsrecursively
ex : set _ perm _ recursive 007550644 system : app
show_progress
Syntax: show_progress
useoftheon-screenprogressmeterforthenextoperation,automaticallyadvancingthemeteroverseconds (ormorerapidlyiftheactualrate
Ex: show_progress 0.1 0
symlink
Syntax: symlink
createasymlink (like‘ln-s’).The is in root:path format,but is
forthetargetfilesystem (andmayberelative ) )。
------------