[Android] patchrom的随笔(个人运行记录..);

1. envsetup
    . build/envsetup.sh
2. stockrom(will error)
    cd <here>
    ../tools/releasetools/ota_target_from_phone -r
3. deodex
    ../tools/deodex.sh $(pwd)/out/target_files.zip
4. stockrom(it's ok)
    TOOL_DIR=$PORT_ROOT/tools
    echo $OTA_FROM_TARGET_FILES 
    OTA_FROM_TARGET_FILES=$TOOL_DIR/releasetools/ota_from_target_files
    echo $OTA_FROM_TARGET_FILES 
    PWD=`pwd`
    TOOL_DIR=$PORT_ROOT/tools
    OTA_FROM_TARGET_FILES=$TOOL_DIR/releasetools/ota_from_target_files
    TARGET_FILES_TEMPLATE_DIR=$TOOL_DIR/target_files_template
    TMP_DIR=$PWD/out
    TARGET_FILES_DIR=$TMP_DIR/target_files
    RECOVERY_ETC_DIR=$TARGET_FILES_DIR/RECOVERY/RAMDISK/etc
    SYSTEM_DIR=$TARGET_FILES_DIR/SYSTEM
    META_DIR=$TARGET_FILES_DIR/META
    TARGET_FILES_ZIP=$TMP_DIR/target_files.zip
    OUTPUT_OTA_PACKAGE=$PWD/stockrom.zip
    OUTPUT_METADATA_DIR=$PWD/metadata
    $OTA_FROM_TARGET_FILES -n -k $PORT_ROOT/build/security/testkey $TARGET_FILES_ZIP $OUTPUT_OTA_PACKAGE
5. workspace
    make workspace
6. firstpatch
    make firstpatch
7. reject
    cd $(pwd)/temp/reject       # modifing..
8. ota
    make fullota

 

posted @ 2013-03-10 03:04  scue  阅读(543)  评论(0编辑  收藏  举报