自己下载android源码编译的system.img镜像文件安装到手机中

2015年06月02日 Android 6条评论 阅读7960次

本文以谷歌亲儿子Nexus系列移动设备的Nexus6(shamu)为例来做说明。

在自己用各种途径下载得到android源码之后,我们便可以随便修改并且编译之,最后会生成手机设备的镜像文件。。这里一般是指system.img。

Image


自己下载android源码编译的system.img镜像文件安装到手机中的命令及执行步骤

主要就是下面四条命令

adb reboot bootloader

fastboot oem unlock

fastboot -w flash boot boot.img

fastboot -w flash system system.img


注意:要把boot.img和system.img两个镜像文件放到cmd目录下,或提前在cmd窗口中cd到这两个镜像文件的路径下。

下面是我在执行上述命令时的执行过程的复制。。。

Microsoft Windows [版本 6.1.7601]

版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\jileniao.net>adb reboot bootloader

C:\Users\jileniao.net>fastboot oem unlock

...

(bootloader) Device already unlocked!

FAILED (remote failure)

finished. total time: 0.003s

C:\Users\jileniao.net>fastboot -w flash boot boot.img

target reported max download size of 536870912 bytes

sending 'boot' (7626 KB)...

OKAY [  0.245s]

writing 'boot'...

OKAY [  0.114s]

erasing 'userdata'...

OKAY [  1.226s]

formatting 'userdata' partition...

Creating filesystem with parameters:

    Size: 28474998784

    Block size: 4096

    Blocks per group: 32768

    Inodes per group: 8160

    Inode size: 256

    Journal blocks: 32768

    Label:

    Blocks: 6951904

    Block groups: 213

    Reserved block group size: 1024

Created filesystem with 11/1738080 inodes and 153124/6951904 blocks

sending 'userdata' (139061 KB)...

writing 'userdata'...

OKAY [  8.936s]

erasing 'cache'...

OKAY [  0.062s]

formatting 'cache' partition...

Creating filesystem with parameters:

    Size: 268435456

    Block size: 4096

    Blocks per group: 32768

    Inodes per group: 8192

    Inode size: 256

    Journal blocks: 1024

    Label:

    Blocks: 65536

    Block groups: 2

    Reserved block group size: 15

Created filesystem with 11/16384 inodes and 2089/65536 blocks

sending 'cache' (6248 KB)...

writing 'cache'...

OKAY [  0.405s]

finished. total time: 10.990s

C:\Users\jileniao.net>fastboot -w flash system system.img

target reported max download size of 536870912 bytes

sending sparse 'system' (520273 KB)...

OKAY [ 17.927s]

writing 'system'...

OKAY [  8.563s]

sending sparse 'system' (74374 KB)...

OKAY [  2.747s]

writing 'system'...

OKAY [  1.411s]

erasing 'userdata'...

OKAY [  1.298s]

formatting 'userdata' partition...

Creating filesystem with parameters:

    Size: 28474998784

    Block size: 4096

    Blocks per group: 32768

    Inodes per group: 8160

    Inode size: 256

    Journal blocks: 32768

    Label:

    Blocks: 6951904

    Block groups: 213

    Reserved block group size: 1024

Created filesystem with 11/1738080 inodes and 153124/6951904 blocks

sending 'userdata' (139061 KB)...

writing 'userdata'...

OKAY [  8.975s]

erasing 'cache'...

OKAY [  0.060s]

formatting 'cache' partition...

Creating filesystem with parameters:

    Size: 268435456

    Block size: 4096

    Blocks per group: 32768

    Inodes per group: 8192

    Inode size: 256

    Journal blocks: 1024

    Label:

    Blocks: 65536

    Block groups: 2

    Reserved block group size: 15

Created filesystem with 11/16384 inodes and 2089/65536 blocks

sending 'cache' (6248 KB)...

writing 'cache'...

OKAY [  0.404s]

finished. total time: 41.390s

C:\Users\jileniao.net>


其他手机暂时没有试过,不知道能否成功。

文末,欢迎拍砖。

分享本文至:

WRITTEN BY

avatar
本文标签:Nexussystemimg
看了本文是不是觉得很赞,那就赶紧点击下面按钮分享给身边的朋友吧!

6 条评论

  1. avatar bcrailroad

    <a href="http://www.bladeid.com/nike-air-max-90-orange-bl%C3%A5-butyf">nike air max 90 orange bl氓</a> <a href="http://www.bakomoms.com/adidas-zx-700-zwarte-lage-turnschuhe-scarpec">adidas zx 700 zwarte lage turnschuhe</a> <a href="http://www.macrackmount.com/air-jordan-18-marrone-verde-chaussuresf">air jordan 18 marrone verde</a> <a href="http://www.martinsedacca.com/nike-city-sabbiaal-iii-bambini-marrone-verde-butya">nike city sabbiaal iii bambini marrone verde</a> <a href="http://www.maxibymaxi.com/nike-air-max-thea-negro-light-schuhea">nike air max thea negro light</a> <a href="http://www.slatervision.com/nike-lebron-soldier-10-r%C3%B8d-guld-schuhec">nike lebron soldier 10 r酶d guld</a>
    bcrailroad http://www.bcrailroad.com/

  2. avatar googleizate

    <a href="http://www.sfhires.com/burberry-tie-price-tier">burberry tie price</a> <a href="http://www.myenergytruth.com/burberry-personalized-scarf-scarfr">burberry personalized scarf</a> <a href="http://www.klarinettino.com/nobis-merideth-xs-nobisr">nobis merideth xs</a> <a href="http://www.printonlypros.com/air-jordan-4-retro-fire-red-white-black-cement-grey-red-trainersa">air jordan 4 retro fire red white black cement grey red</a> <a href="http://www.ralfwentz.com/hermes-red-enamel-clic-h-bracelet-narrow-width-18mm-in-gold-jewelryr">hermes red enamel clic h bracelet narrow width 18mm in gold</a> <a href="http://www.hotelsuixlara.com/bon-march%C3%A9-nike-free-4.0-femmes-argent-sneakerf">bon march茅 nike free 4.0 femmes argent</a>
    googleizate http://www.googleizate.com/

  3. avatar rlhomestaging

    <a href="http://www.dazzlle.com/jordan-11-green-april-2014-sneakerc">jordan 11 green april 2014</a> <a href="http://www.fitwizhawaii.com/hermes-equestrian-scarf-hermesr">hermes equestrian scarf</a> <a href="http://www.lojandreia.com/nike-air-force-1-puerto-rico-sko-shoesv">nike air force 1 puerto rico sko</a> <a href="http://www.robinliz.com/coach-legacy-saddle-bag-workouts-coache">coach legacy saddle bag workouts</a> <a href="http://www.tracyrn.com/bon-march%C3%A9-nike-air-force-1-flyknit-high-hommes-noir-shoesc">bon march茅 nike air force 1 flyknit high hommes noir</a> <a href="http://www.primehostinc.com/nike-air-jordan-cp3-skos">nike air jordan cp3</a>
    rlhomestaging http://www.rlhomestaging.com/

  4. avatar rcrocs

    <a href="http://www.kaliteankara.com/nike-hyperdunk-2015-black-and-gold-shoesj">nike hyperdunk 2015 black and gold</a> <a href="http://www.bagsbeat.com/herren-nike-air-max-1-orange-shoesl">herren nike air max 1 orange</a> <a href="http://www.lolalolincoln.com/lavender-polo-shirt-poloh">lavender polo shirt</a> <a href="http://www.buycharboleps.com/nike-elastico-superfly-ic-sort-gr%C3%A5-hvid-skok">nike elastico superfly ic sort gr氓 hvid</a> <a href="http://www.androidsmith.com/nike-air-huarache-schwarz-carbon-soot-schuheh">nike air huarache schwarz carbon soot</a> <a href="http://www.oheyewear.com/2018-nike-air-max-air-max-2018-red-navy-blue-shoesk">2018 nike air max air max 2018 red navy blue</a>
    [url=http://www.rcrocs.com/]rcrocs[/url]

  5. avatar saleuggboot

    <a href="http://www.laketreepress.com/nike-blazer-low-royal-bleu-chaussuresh">nike blazer low royal bleu</a> <a href="http://www.prohaarklinik.com/prada-square-cat-eye-sunglasses-pradah">prada square cat eye sunglasses</a> <a href="http://www.bonfanticare.com/2016-most-popular-danduo-baltimore-ravens-jersey-men-nfli">2016 most popular danduo baltimore ravens jersey men</a> <a href="http://www.antoniopagni.com/nike-kd-8-kvinders-mintgr%C3%B8n-skoq">nike kd 8 kvinders mintgr酶n</a> <a href="http://www.wcshosting.com/ralph-lauren-blue-oxford-shirt-poloh">ralph lauren blue oxford shirt</a> <a href="http://www.biddingstream.com/mens-nike-huarache-ultra-grey-yellow-shoesi">mens nike huarache ultra grey yellow</a>
    saleuggboot http://www.saleuggboot.com/

  6. avatar 源码集中营

    博主太折腾了~

欢迎留言




用户登录

sitemap