1. Download our Official Android App: Forums for Android!

Root [Guide] JellyBean Rom porting quick start

Discussion in 'Android Devices' started by LowEndGeek, Jan 16, 2014.

  1. LowEndGeek

    LowEndGeek Android Expert
    Thread Starter
    Rank:
    None
    Points:
    133
    Posts:
    969
    Joined:
    Apr 30, 2012

    Updated version can be found HERE included linux instructions and setting up adb/logcat














    This guide is from my own experiences and from various sources i've found from various sources including xda, miui forums and rootzwiki.

    So you found a rom that you want to port to the Optimus Elite but don't know where to start? This simple guide will hopefully give you a basis and guide you how to begin. This guide assumes you are using windows.

    Important things to be aware of:
    1. Find a rom from a phone that is as close as possible to the Elite
    2. The version number MUST MATCH, so if you are using phenom's cm10 which is android 4.1.2 the port rom MUST be the same version.

    Download the base and the port roms, open them both up using either 7zip or winrar (i use winrar myself). Do not extract them because it'll mess with the structure and permissions.

    With both of them open, inside the base rom delete the folders:
    and replace them with the folders in the port rom.

    Open up the build.prop in both base and port using notepadd ++ and at very least you want to change the following lines:
    with the values from port, other roms have other values, for example paranoid android has:
    so check to see if the rom you are porting has any specific values.

    MIUI and Paranoid also have specific values for the updater-script which i'll cover in another guide. Most roms don't need to edit the updater-script.

    After these are done, close the archives, rename the base zip, pop it on the elite and flash. Next post will cover what to do next.
     

    Advertisement

    Junkyarddog269 likes this.
  2. LowEndGeek

    LowEndGeek Android Expert
    Thread Starter
    Rank:
    None
    Points:
    133
    Posts:
    969
    Joined:
    Apr 30, 2012

    What to do next. Well there will really be 3 scenarios:

    Best case scenario: The rom boots and there aren't any problems, in which case congratulations, post your port, give credits and you are now a porter.

    Middle case scenario: Rom boots but there are issues. I'll be doing another guide soon that will cover basic adb usage, logcats and fixing common issues.

    Worst case scenario: Rom doesn't boot

    If the rom doesn't boot here are two things you can try:
    In the folder /system/lib replace
    with the one from the port rom. If that still doesn't work then also replace
    it SHOULD boot then, if not then there are other issues at hand.
     
  3. LowEndGeek

    LowEndGeek Android Expert
    Thread Starter
    Rank:
    None
    Points:
    133
    Posts:
    969
    Joined:
    Apr 30, 2012

    Here are some fixes for some common issues, these will be in order of difficulty rather than issue.

    1. The infamous 'roaming indicator off'.
    This is actually really easy to fix. Simply decompile the framework-res.apk from both base and port (guide coming soon). Navigate to /res/xml and replace the file eri.xml in port with the one from base.
    It is important, however, that after you recompile the new apk file, you must open the old and new framework-res.apk files in winrar. Copy AndroidManifest.xml and the META-INF folder from the old apk to the new one or you will get bootloops.

    2. No data/phone.
    Decompile framework.jar in both the base and the port rom. Navigate to
    and replace ANY file that has RIL in the name, from base to port. After this open up PhoneFactory.smali in the port rom using notepad ++ and search for RIL, you should see (among other things) the following lines:
    and
    with the device specific RIL code. This code can be found by looking at the build.prop
    so essentially, in this case you want to replace RIL in the above lines to then show LGEQualcommRIL instead. Once done close up your framework.jar and phone/data should be working. "RILClassname is" all gets replaced, not just the RIL part of it


    3. Fixing most common graphical glitches
    Coming soon
     
  4. LowEndGeek

    LowEndGeek Android Expert
    Thread Starter
    Rank:
    None
    Points:
    133
    Posts:
    969
    Joined:
    Apr 30, 2012

    Optimus Elite specific tweaks and edits

    1. Remove reboot to bootloader.
    Since there really is no need for an optimus elite user to reboot into bootloader it's easiest in my opinion to just remove it from the power menu.
    With the framework-res.apk decompiled navigate to /res/values and open up arrays.xml in notepad ++ there search for the string:
    you should see an item:
    and
    not too far below it. Simply remove those and the option will no longer be available when you recompile the framework and use it next time.
    [​IMG]

    2. Remove factory reset in settings.
    This will generally speaking brick a rooted device so here is how to just remove it completely. Coming soon
     
  5. JumpinJupiter

    JumpinJupiter Android Enthusiast
    Rank:
    None
    Points:
    38
    Posts:
    354
    Joined:
    Jan 3, 2013

    Jan 3, 2013
    354
    21
    38
    Is the next porting class starting anytime soon:p
     
  6. LowEndGeek

    LowEndGeek Android Expert
    Thread Starter
    Rank:
    None
    Points:
    133
    Posts:
    969
    Joined:
    Apr 30, 2012

    the charger is broken on my laptop so i can't do very much, plus i'm trying to transfer this to my blog and make it 'prettiified'

    if you have any questions or requests for things to include in the future just ask
     
  7. gypsyr0ad

    gypsyr0ad Newbie
    Rank:
    None
    Points:
    16
    Posts:
    28
    Joined:
    Nov 26, 2010

    Nov 26, 2010
    28
    1
    16
    And here I thought you guys started with a blank notepad and wrote everything from scratch.

    Just kidding, but actually, it seems like something even I could do, using the step by step info your explaining about.
     
  8. LowEndGeek

    LowEndGeek Android Expert
    Thread Starter
    Rank:
    None
    Points:
    133
    Posts:
    969
    Joined:
    Apr 30, 2012

    it's honestly very simple, what i've written already will fix like 90% of the issues when porting
     
  9. Guurak

    Guurak Newbie
    Rank:
    None
    Points:
    15
    Posts:
    19
    Joined:
    Jul 11, 2012

    Jul 11, 2012
    19
    0
    15
    What's a good way to find a phone that's similar to the Elite to port to the Elite?
     
  10. LowEndGeek

    LowEndGeek Android Expert
    Thread Starter
    Rank:
    None
    Points:
    133
    Posts:
    969
    Joined:
    Apr 30, 2012

    try other optimus devices, or lg devices, the important thing is that they have similar chipsets. you can also look at gsmarena at the specs of different phones
     
    ronii likes this.
  11. ronii

    ronii Well-Known Member
    Rank:
    None
    Points:
    48
    Posts:
    242
    Joined:
    May 19, 2013

    May 19, 2013
    242
    10
    48
    Male
    Haha gsmarena's the best!!
     

Share This Page

Loading...