Monday, 12 March 2018

Kernal Porting

  • 1st of all make 2 separate folders as PORT & BASE for easy understanding ....... & put rom to port in PORT folder & ur device any 3.10.54 kernel 5.1.1/CM12.1 rom in BASE folder. extract (unzip) them.

Note - Use previous stable 3.10.54 kernel CM12.1 or 5.1.1 rom as a BASE ROM

Steps -

  • 1. Open BASE/system/ & delete appfontsframeworkmediapriv-appbuild.prop
  • Open PORT/system/ & copy appfontsframeworkmediapriv-appbuild.prop
  • Paste them in BASE/system/

  • 2. Open BASE/system/lib/ & copy all the lib files except
  •           libandroid_runtime.so
  •           libandroid_servers.so
  •           libandroidfw.so
  •           libjava (all files starting from libjava)
  •           libweb (all files starting from libweb)
  •  Paste them in the PORT/system/lib/ (replace them).

  • 3. Open PORT/system/lib/ & copy all the lib files & paste them in BASE/system/lib (replace them).

  • 4.  Open BASE/system/bin/ copy all the files inside bin folder 
  • Paste them in PORT/system/bin/ (replace them).

  • 5. Open PORT/system/bin/ & copy all the files inside bin folder
  • Paste them in the BASE/system/bin/ (replace them).

  • 6. Open BASE/system & open build.prop with notepad++
  • Search for this 2 lines -
  • ro.sf.lcd_density=
  • ro.sf.hwrotation=
  • change values as it has in ur BASE buid.prop file (for example - ro.sf.lcd_density=220 & ro.sf.hwrotation=0)............... if ro.sf.hwrotation=0 line is not present then add it in the build.prop
  • You can also change device name in the build.prop file

  • 7Done.................... make a zip of the BASE rom & flash through recovery..................... enjoy..................

No comments:

Post a Comment