kernel source for android emulator

168 views
Skip to first unread message

Massimo Canonico

unread,
Apr 13, 2016, 6:59:25 PM4/13/16
to android-platform
Hi all,
I would like use Lime
(https://github.com/504ensicsLabs/LiME/tree/master/doc) in my emulator
(Nexus One API 22).

Lime requires the kernel source code.

Do you have any idea where I can find it, please?

Massimo

Dave Smith

unread,
Apr 13, 2016, 8:07:06 PM4/13/16
to android-platform
The emulator uses the Goldfish kernel:
https://android.googlesource.com/kernel/goldfish/

Check out and build the version branch that matches the emulator AVD image you are targeting.

Cheers,
Dave Smith, PE
@devunwired

Massimo Canonico

unread,
Apr 14, 2016, 1:37:56 PM4/14/16
to android-...@googlegroups.com
Thanks Dave for your answer.
One more question, just to be sure that I'm doing right.
In "about phone" inside my emulator, I've got what you can see as attachment.
Kernel version says 3.10.0+ and build number does not say much (for me).

I think I have to download what is called "android-goldfish-3.10", right?
The other two kernels seems not necessary (android-goldfish-3.10-l-mr1-dev and android-goldfish-3.10-m-dev), right?

Best,
    Massimo
device-2016-04-14-150315.png

Dave Smith

unread,
Apr 14, 2016, 1:49:03 PM4/14/16
to android-platform, m...@di.unipmn.it
Massimo -

Correct, that is the branch you would want to check out. Since your virtual device is x86 based, if you need to build the kernel you would want to use the i386_emu_defconfig or x86_64_emu_defconfig configurations.

Cheers,
Dave Smith, PE
@devunwired

Massimo Canonico

unread,
Apr 14, 2016, 5:19:28 PM4/14/16
to android-...@googlegroups.com
Thank you Dave.
About config, do you mean to use one of the *_defconfig instead of '/proc/config.gz' as suggeste in the LiME guide (https://github.com/504ensicsLabs/LiME/tree/master/doc#Android), where it suggests to do:
./adb pull /proc/config.gz

I am asking since in the emulator device the "/proc/config.gz" file does not exist.

Thanks,
Massimo
-- You received this message because you are subscribed to the Google Groups "android-platform" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com. To post to this group, send email to android-...@googlegroups.com. Visit this group at https://groups.google.com/group/android-platform. For more options, visit https://groups.google.com/d/optout.

Dave Smith

unread,
Apr 14, 2016, 5:35:52 PM4/14/16
to android-platform, m...@di.unipmn.it
Indeed, I don't believe the SDK system images include the config file anymore (since Jelly Bean perhaps?), so those instructions probably won't work.
Assuming you are running this with one of the standard SDK emulator images, using one of those default configs will work just fine for you. If it wasn't apparent before, one is 32-bit (i386) and the other is 64-bit. Use whichever matches your emulator target.

Cheers,
Dave Smith, PE
@devunwired
Reply all
Reply to author
Forward
0 new messages