免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 874 | 回复: 0
打印 上一主题 下一主题

刷自己的系统 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-06-29 14:59 |只看该作者 |倒序浏览

  • Install the
    JesusFreke's RC30 V1.3+
    . This will give you a root shell root access in recovery mode. A root adb shell is required for the next step.
  • Install the
    engineering boot loader
    .
  • Download the prebuilt
    cupcake installation images
    to your computer. Extract them to a folder somewhere. (Note: I will probably not be keeping this image up to date, so you are better of learning how to build from source. See the do-it-yourself instructions at the end.)
  • Get
    Fastboot
    for your computer.
  • Start your phone up into fastboot mode. You can do this by shutting your phone off, and holding camera and power. You will see Androids on skateboards.
  • Connect your phone to your computer. Press the back button on your phone until your screen says FASTBOOT.
  • Go to a terminal on your computer and navigate to your extracted (or built) files and type:

    • chmod a+x fastboot
    • (If you are building from source, make sure the built /out/host/platform/bin directory is in your PATH. Additionally, type "fastboot" rather than "./fastboot")
    • ./fastboot flash system system.img
    • ./fastboot flash boot boot.img
    • ./fastboot flash userdata userdata.img
    • ./fastboot reboot
    • If your phone hangs for a long time while flashing or rebooting, unplug and reconnect your phone. I run into this issue, and that is how I work around it. This may be an issue with the phone being connected to a VM.

    Congratulations! You are done!
    Reverting Back to the G1/Dev Image
  • Reflash the
    modified RC30 image
    from your SD card. If you start up now, your phone will not start up (it will stay hung at the flashing robot). No big deal though.
  • Start up in recovery mode (turn on the phone using home and power). Press Alt-L to show the menu, and press Alt-W to wipe the phone.
    Do it Yourself Instructions For Building from Source
    At the time of writing, the Android Dream build was broken. I needed to do the following to make it work:

    • Several (relatively minor) changes in the Dream audio driver code to fix compilation issues.
    • Copied libOmxCore.so to mydroid/out/target/product/dream/system/lib (this was a missing step in the Building for Dream documentation, and something that should be in the HTC provided script)
    Patching in Maps
  • Copy Maps.apk from a Android Dev Phone 1 into mydroid/out/target/product/dream/system/app
  • Copy com.google.android.maps.jar from a from a Android Dev Phone 1 into mydroid/out/target/product/dream/system/framework
  • Delete mydroid\out\target\product\dream\obj\PACKAGING\systemimage_unopt_intermediates\system.img
  • Delete mydroid\out\target\product\dream\system.img
  • make

    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/99624/showart_1980745.html
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP