Re: [android-building] Create flashable zip for Android source

3,022 views
Skip to first unread message

Jean-Baptiste Queru

unread,
Apr 8, 2013, 9:26:19 PM4/8/13
to android-...@googlegroups.com
My rule of thumb is to run "make dist" and everything I might seem to need is right there.

JBQ


On Mon, Apr 8, 2013 at 5:49 PM, Anthony Lai <antho...@gmail.com> wrote:
Hi,

  I have downloaded the proprietary hardware for Nexus 7, and can successfully build grouper android-4.2.1_r1 and can flash it onto a Nexus 7 device using fastboot. Everything is working great.

I now would like to create a flashable zip so that it can be deployed into a device using custom recovery, like clockworkmod. I tried using:

1) make -j16 updatepackage
and
2) make -j16 otapackage 

It looks to me that the zip file from 1) updatepackage can only be applied using fastboot. I can deploy the zip generated from 2) otapackage, but hardware like wifi does not work.

Using AOSP, how can I create a flashable zip like cyanogenmod that can be flashed on a device? I have been looking into this for couple days now. Any help or pointers are greatly appreciated.

Thanks.
Sincerely, Anthony

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jean-Baptiste M. "JBQ" Queru
Technical Lead, Android Open Source Project, Google.

Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning.

Jean-Baptiste Queru

unread,
Apr 9, 2013, 10:36:36 AM4/9/13
to android-...@googlegroups.com
That should be the -ota- file. I'm not sure why it wouldn't work, though it's possible that you need to explicitly wipe user data if you're not flashing on top of a compatible build.

JBQ


On Tue, Apr 9, 2013 at 12:08 AM, Anthony Lai <antho...@gmail.com> wrote:
Hi JBQ,

  Thank you for your quick response.

  I did "make dist", and I find the following zip files potentially to be flashable using custom recovery in the out/dist folder:

1) full_grouper-symbols-eng.alai.zip -- don't seem to be the one I want.
2) full_grouper-target_files-eng.alai.zip -- cannot flash using custom recovery.  Directory structures not seem to be correct
3) full_grouper-img-eng.alai.zip -- consists of all the img files, errors out when using custom recovery
4) full_grouper-ota-eng.alai.zip -- does install successfully using custom recovery, but hardware like wifi does not work correctly.
       For example, I could turn on wifi and see the wireless connections, but it hangs at obtaining ip address.
5) full_grouper-apps-eng.alai.zip -- consists all the apks, not what I wanted though

  Can you kindly tell me which specific zip file can be flahsed using custom recovery?  Are there any potential additional steps that I need to do to make it work?

  Thanks.
Sincerely,
Anthony

Jean-Baptiste Queru

unread,
Apr 9, 2013, 3:05:49 PM4/9/13
to android-...@googlegroups.com
Yeah, that's quite a mystery. I don't know off-hand what would cause things to not work when building an OTA package. That's the same mechanism that's used to package the official Nexus OTAs AFAIK.

JBQ


On Tue, Apr 9, 2013 at 11:16 AM, Anthony Lai <antho...@gmail.com> wrote:
Hi JBQ,

  It is great to know that I am on the right track.  

  I tested my build again.  It looks to me that only WIFI is not working.  Note that if I do the normal fastboot flash to the device, WIFI works.  I believe that I have installed the proprietary binaries correctly in my android source tree.

  I am sort of running out of ideas.  Any additional pointers to make WIFI working by flashing a zip file is greatly appreciated.

  Thanks.
Sincerely,
Anthony

Alex S

unread,
Oct 28, 2013, 5:36:13 AM10/28/13
to android-...@googlegroups.com
Hi Brother JBQ,

First thing I build the AOSP for gingerbread 2.3.7 for Samsung Galaxy Y GT-S5360.
I gave the command make dist, i got the following, on the dist folder,

/home/alex/Documents/Android/And2.3.7/out/dist/adb
/home/alex/Documents/Android/And2.3.7/out/dist/android-common.jar
/home/alex/Documents/Android/And2.3.7/out/dist/android-info.txt
/home/alex/Documents/Android/And2.3.7/out/dist/build.prop
/home/alex/Documents/Android/And2.3.7/out/dist/com.android.nfc_extras.jar
/home/alex/Documents/Android/And2.3.7/out/dist/fastboot
/home/alex/Documents/Android/And2.3.7/out/dist/galaxyy-apps-eng.alex.zip
/home/alex/Documents/Android/And2.3.7/out/dist/galaxyy-emulator-eng.alex.zip
/home/alex/Documents/Android/And2.3.7/out/dist/galaxyy-symbols-eng.alex.zip
/home/alex/Documents/Android/And2.3.7/out/dist/galaxyy-target_files-eng.alex.zip
/home/alex/Documents/Android/And2.3.7/out/dist/guava.jar
/home/alex/Documents/Android/And2.3.7/out/dist/installed-files.txt
/home/alex/Documents/Android/And2.3.7/out/dist/jsr305.jar
/home/alex/Documents/Android/And2.3.7/out/dist/mkbootfs
/home/alex/Documents/Android/And2.3.7/out/dist/mkbootimg
/home/alex/Documents/Android/And2.3.7/out/dist/mkyaffs2image
/home/alex/Documents/Android/And2.3.7/out/dist/package-stats.txt
/home/alex/Documents/Android/And2.3.7/out/dist/ramdisk.img
/home/alex/Documents/Android/And2.3.7/out/dist/signapk.jar

These are the generated files on the dist folder.

Now I didn't find any ota-eng zip file there.

Now what I have to do.

Thanks in advance..

Udi Cohen

unread,
Jan 3, 2014, 10:13:09 AM1/3/14
to android-...@googlegroups.com
Hey

Did you by any chance got that working on Mac OS? or did you did just switched to Ubuntu?

I'm having the same problem and I really want it to work on my Mac instead of switching to a different OS..

Thanks

On Thursday, April 11, 2013 8:39:52 PM UTC-4, Anthony Lai wrote:
Indeed!  Thank you for solving my mystery, which has been troubling me for couple days.  I guess I will have to get ubuntu now.

Thanks again for your response.

On Thursday, April 11, 2013 4:59:13 PM UTC-7, fairct wrote:
Are you by chance building on a Mac? When I built with Mac OSX, the flashable zip ALWAYS had broken WiFi, but the fastboot images would flash just fine. I finally switched to Ubuntu.


On Tuesday, April 9, 2013 2:16:12 PM UTC-4, Anthony Lai wrote:
Hi JBQ,

  It is great to know that I am on the right track.  

  I tested my build again.  It looks to me that only WIFI is not working.  Note that if I do the normal fastboot flash to the device, WIFI works.  I believe that I have installed the proprietary binaries correctly in my android source tree.

  I am sort of running out of ideas.  Any additional pointers to make WIFI working by flashing a zip file is greatly appreciated.

  Thanks.
Sincerely,
Anthony

On Tuesday, April 9, 2013 7:36:36 AM UTC-7, Jean-Baptiste Queru wrote:
Reply all
Reply to author
Forward
0 new messages