Build Commando Specific EmulatorGeneral


Last Updated: 2012-04-03 02:42:03
  1. computergeek24

    computergeek24 Active Member

    I need a emulator with all the stock apps as a G'zone commando. Can anyone help?

    Advertisement
  2. paxchristos

    paxchristos Well-Known Member

    Ok, so here's what you're gonna need the Android source, once you follow all the instructions, it'll show you how to build for emulator, now comes the fun part. You're gonna need unyaffs to tear apart the .img files it outputs (specifically userdata.img and system.img) so you can do a pull (adb pull /system and adb pull /data) and overlay that onto the system.img and userdata.img you already created. (Or instead of pulling, you can unyaff a nandroid, there are a couple around the all things root thread) then you'll need mkyaffs2image to rebuild the .img files ...
    You'll also need a kernel so you're gonna want to follow some of the instructions here.


    Oh, don't forget to make the Android SDK from the source code before you try to start emulating (it'll help)


    Here's another good link (it's Fedora based, if you're running fedora, it's good, otherwise, extrapolate what you can (yum==apt-get) HOWTO Setup Android Development - FedoraProject

    If you have any more questions, feel free to ask!
    Pax
  3. Spike G

    Spike G Well-Known Member

    Haha, helpful links pax but I think you scared him!
  4. paxchristos

    paxchristos Well-Known Member

    Well, I can't do all the work, after all, how else would he learn :p (pretty much I compiled most of what I've learned from the development side onto paper here :p )

    Also, in case anybody wants an easy way to tweak nandroids to their liking, (linux,) unyaffs, mkyaffs2image and md5sum are very powerful tools :p (if you change a nandroid, make sure you update nandroid.md5 or else you get a md5sum mismatch error)

    Note: If anybody sees what I just wrote, and has a md5sum error on a file that was just downloaded, and thinks to themselves, I'll fix it this way! I will laugh when you screw up your system. Always double check md5sums to guarantee you don't have a corrupted file!
    Pax

    Sent from my R800x using Tapatalk
  5. computergeek24

    computergeek24 Active Member

    how hard is it to brick/unbrick it? Especially while messing with the innopath? would it be worth setting up the emulator because that was mostly Chinese gibberish to me ;)
  6. paxchristos

    paxchristos Well-Known Member

    follow the links, they're very helpful (so are lots of google searches.)
    The only brick I've recovered from is erasing the boot partition. Any other brick is currently in recoverable.

    Sent from my R800x using Tapatalk
  7. computergeek24

    computergeek24 Active Member

    Is it worth setting up the emulator to mess with rooting the commando? I want it settup so I can work on that.
  8. paxchristos

    paxchristos Well-Known Member

    I think it is, emulators can be very, very handy :p
  9. computergeek24

    computergeek24 Active Member

    i just dont know what to do after i pull /system and /data.
    :mad:
    this is SO frustrating :eek:
  10. paxchristos

    paxchristos Well-Known Member

    do this in terminal in the directory with system.img and data.img

    1) mkdir system
    2) cp system.img system/
    3) cd system/
    4) (/path/to/)unyaffs system.img (i put the binaries I use most in /bin)
    5) cp -r /path/to/system/dump ./
    6) cd ..
    7) (/path/to) mkyaffs2image system/ system.img

    repeat with data

    (Now you have the commando specific system.img and data.img)

    Pax
  11. computergeek24

    computergeek24 Active Member

    i can't figure out how to get the img on the emulator.:confused:

Share This Page