26

What do I need to know to port Cyanogenmod to currently unsupported android phones and tablets?

Does it involve modifying and building the kernel from source?

Does it involve modifying and building cyanogenmod from source?

Where can I get the base cyanogenmod which is the starting point for ports to specific devices?

I saw somewhere that I need to know c/c++. Would I also need to know Assembly or Java?

Do people write the device drivers for the new hardware from scratch? How do they know how to talk to the new hardware?

Do you use adb over usb and run linux commands like dmesg to get hints about what went wrong in initial builds? Do you use anything else to get hints about what went wrong?

I would like an overview of what is involved in porting Cyanogenmod to different hardware so that I can know what to learn, where to start, and where to go from there.

Yury
  • 20,618
  • 7
  • 58
  • 86
James T
  • 1,079
  • 3
  • 13
  • 17
  • i want to know for what device are you porting :P – tiranodev Jan 02 '12 at 21:39
  • @tiranodev I have an old mytouch 3g that I can tinker with, and accidentally destroy without too much remorse. I know cyanogenmod was already created for it, but I'd like to learn how to do it myself. – James T Jan 02 '12 at 21:42

1 Answers1

13

I'd recommend that you read this post as an introduction:

http://forum.cyanogenmod.com/topic/15492-general-cyanogenmod-porting-discussion/

Also, it might be worth studying the /device/<MANUFACTURER>/<MODEL>/ directories which contain device-specific code (camera, sensors, lights, etc.) or other information (keycode configs, init scripts, etc.).

Finally, why not ask in dedicated Google Groups (android-porting for example, see http://source.android.com/community/index.html) or the CM forums (there's an Unofficial Ports section).

Also: use Google (or Bing, or Yahoo, whatever) - it took me approximately 3 minutes of my life.

jclehner
  • 1,440
  • 10
  • 18
  • 1
    Just noting that cyanogenmod topic quickly devolves into requests for CM to port Android to various devices. Pretty painful to read past the first few posts. – Ehtesh Choudhury Jan 16 '13 at 17:03
  • @capase the link is down, can somone help me? i need build it for a unsupported device... thanks :d – Milor123 Feb 27 '17 at 22:43