1. Are you ready for the Galaxy S20? Here is everything we know so far!

[DEV] Continuing Triumph ICS Development

Discussion in 'Android Devices' started by mantera, Jan 23, 2012.

  1. tickerguy

    tickerguy Android Enthusiast

    Ok, here's the deal.

    To get the RIL to come up you need to deal with the following problems:

    1. The Qualcomm code likes to CLAIM it has a RUIM in it that is not ready. A RUIM is a SIM for CDMA phones, basically. The problem is that there is no socket for that in the phone at all -- in other words, it doesn't exist. This will cause the phone to be torn down and reset when it comes up the stack. Needless to say that's bad.

    To fix this you have to change the base code. In CM7 I patched RIL.java around line 2020 with the radio state (look in ril.h for the defines) for State 2, and if the class is Triumph I change the state to RadioState.NV_READY instead of RadioState.SIM_NOT_READY.

    This same code is in the ICS build and must be fixed.

    2. In the routine processUnsolicited there are a number of upcalls that have to be there. It appears that ICS picked up all but one. Add that one (VOICE_RADIO_TECH_CHANGED)

    3. RILConstants appears to be fixed, so you should be ok there.

    4. cdma/CdmaServiceStateTracker.java has a BUNCH of changes that have to be pulled over. You're going to have to go through this code in the ICS tree as it looks materially different. One place I know you have to fix is in EVENT_POLL_STATE_CDMA_SUBSCRIPTION -- you need to add the code from my CM7 build that checks for a Triumph and if so DOES NOT attempt to pull the PRL from the upcall packet -- it's missing on the Triumph and if you reference that 5th element in the array the code will fault and blow up. What I did here temporarily was to stuff a "fake" PRL in the data table.

    5. Same file, look at CASE_SIM_LOCKED_OR_ABSENT. This is one of those async upcalls that on the Triumph CANNOT be allowed to fall through to the next state (it does in the base code.) If it does, you're dead as the code then turns the radio off! This is generated from the RUIM message; see what I did in the CM7 build to fix this (basically ignore it if it's a Triumph)

    6. The poll for the ACTUAL PRL is in the default case in this same statement. Again, see my CM7 code, same file, and look at the other PRL related changes to that same file (they're not in the ICS version at all.)

    That should get the RIL to come up. You NEED all of the radio parameters (including the PRL, MEID and such) to load before Android will allow a data connection to start. Thus, all this has to be fixed for data to work.

    Once you have that you get to have fun with MMS, which will also require patching......

    There's probably more I'm missing but this should get you either working or damn close.

    1. Download the Forums for Android™ app!


  2. tgpraveen

    tgpraveen Member

    Hey tickerguy, the latest state can be seen on the second post of this thread. Right now no data, no wifi are the biggest problems. Many other things work.
  3. SamuraiFox18

    SamuraiFox18 Android Enthusiast

    Man tickerguy your like a rock star and we are like a bunch of screaming fans. Its always good to see you on the forums.
  4. marc12868

    marc12868 Android Expert

    Off topic kinda, but would this work to get data working on the Andro-ID rom also?
  5. tickerguy

    tickerguy Android Enthusiast

    I can't see why not. This is what's busted in the RIL compared to what the Qualcomm radio wants, basically.
    marc12868 likes this.
  6. PerkinsII

    PerkinsII Android Enthusiast

  7. PerkinsII

    PerkinsII Android Enthusiast

  8. mantera

    mantera Android Expert
    Thread Starter

    yeah, I wasn't sure what the difference was between the 2 and haven't really spent any time looking into it. I suppose we don't need 2 galleries. I'll dump the 1 from the manifest.

    We should already be pulling the ics branch since it's the default branch on that repo.
  9. eas014

    eas014 Well-Known Member

    Seen the same gallery error on touchpad with cm9 it has two gallerys as well .
  10. konspiracy

    konspiracy Android Enthusiast

    With andro ID you can prolly just take the whole telephony folder from tg's repo and put it into

    the andro ID repo and try and build. Or take the phone apk from the cm7zip and try it in the andro ID but make sure to use our build prop.
  11. PerkinsII

    PerkinsII Android Enthusiast

  12. progmanos

    progmanos Member

    Mantera, I just merged tickerguy's changes from android_frameworks_base for RIL. I sent you a pull request.

    In the meantime, those who want to try the modifications should git clone the following repo:


    Rename the directory to base and move it to system/frameworks/base
  13. tgenius

    tgenius Member

    Thanks TG.. everyone here i'm sure thanks you for the help.. How's T-Mobile been treating you?
  14. mantera

    mantera Android Expert
    Thread Starter

    Does this work?
  15. progmanos

    progmanos Member

    I am currently in the process of building the ROM. I will let you know.
  16. mantera

    mantera Android Expert
    Thread Starter

    I would say try it and find out...

    As for the camera, I've been working on that off and on; there's more to it than just that. But try and see if it works for you. Perhaps I'm doing something wrong.
  17. mantera

    mantera Android Expert
    Thread Starter

    Good luck.
  18. mantera

    mantera Android Expert
    Thread Starter

    Hmmm... OT... in MIUI, I had everything working but the radio. With this info, maybe I can get that working finally...
  19. konspiracy

    konspiracy Android Enthusiast

    Does the radio work no with data?
  20. PerkinsII

    PerkinsII Android Enthusiast

    I am going to work on the gps tonight
  21. reddeaddorito

    reddeaddorito Android Enthusiast

    Android/ Linux is awesome. Any problem can be fixed (almost), bet those iPhones can't do what our phones do. :p. will we be seeing the first versions in the coming month?
  22. PerkinsII

    PerkinsII Android Enthusiast

    bradhoschar and SamuraiFox18 like this.
  23. progmanos

    progmanos Member

    I made some more modifications to fix errors I made when merging the changes from tickerguy's repo. I am currently rebuilding the ROM.
  24. joemossjr

    joemossjr Android Enthusiast

    Great work guys we've really seen this forum come to life from bring a prepaid phone with stock 2.2 froyo all the way to 4.0 ics its amazing thank you to all the dev's:)
    bradhoschar likes this.
  25. hotalings

    hotalings Android Enthusiast

    amazing work guys, your getting so much done quickly. thanks to everyone who is working on this and making it come to life,
    bradhoschar likes this.

Motorola Triumph Forum

Features and specs are not yet known.

Release Date

Share This Page