Skip to content

Patch android_frameworks_base #11

Description

@thermatk

So, it seems to be the only thing preventing the debug builds from being recognized by apps as true GMS is the fake signature patch.
Will try to integrate it into some ROMs, hope others share their success too.

Activity

  1. mar-v-in commented on Apr 23, 2015

    @mar-v-in
    Member

    Mainly, yes. OmniROM 4.4 includes the patch and for 5.1 it's in their Gerrit, but I am not aware of any 5.* ROM that already included it.

  2. thermatk commented on Apr 25, 2015

    @thermatk
    Author

    I have patched and self-built cm 12.1, moved the built with assembleDebug file to /system/priv-app and I have tested that the signature got replaced with the fake one as I could see with the https://f-droid.org/repository/browse/?fdfilter=application&fdid=com.majeur.applicationsinfo .
    Yet, no apps from Google got tricked, they all ask me to install the Google Play Services. I have tested oldest 2.0 and newest Hangouts and YouTube.
    Or they never should be tricked and check something else not yet implemented?

  3. thermatk commented on Apr 25, 2015

    @thermatk
    Author

    Update:
    I have read logcat and found out that all the Google's apps are saying "Google Play Store is missing", so I have installed BlankStore for it just to be there. And it worked!
    Youtube working great, Hangouts is stuck in endless "Signing in"

  4. mar-v-in commented on Apr 25, 2015

    @mar-v-in
    Member

    Hangouts requires contact sync which is not there yet.

  5. thermatk commented on Apr 25, 2015

    @thermatk
    Author

    Logcat suggests it's a problem with GCM:

    D/GmsHttpFormClient( 2665): -- Response --
    D/GmsHttpFormClient( 2665): Error=PHONE_REGISTRATION_ERROR
    D/GmsGcmRegisterSvc( 2665): register[res]: Intent { act=com.google.android.c2dm.intent.REGISTRATION pkg=com.google.android.talk (has extras) }
    I/Babel (12703): Creating RTCS
    I/Babel (12703): Destroying RTCS
    W/Babel (12703): Error registering for GCM
    W/Babel (12703): java.io.IOException: SERVICE_NOT_AVAILABLE
    W/Babel (12703): at dfu.a(Unknown Source)
    W/Babel (12703): at cbz.a(SourceFile:305)
    W/Babel (12703): at cbz.doInBackground(SourceFile:298)
    W/Babel (12703): at android.os.AsyncTask$2.call(AsyncTask.java:292)
    W/Babel (12703): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    W/Babel (12703): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
    W/Babel (12703): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    W/Babel (12703): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    W/Babel (12703): at java.lang.Thread.run(Thread.java:818)
    I/Babel (12703): Setting up account:Redacted-18 clean: false fromBackground: false
    I/Babel (12703): Account is good, register account directly for Redacted-18
    I/Babel (12703): Account registration pending Gcm:Redacted-18

  6. mar-v-in commented on Apr 25, 2015

    @mar-v-in
    Member

    I guess i should write some tutorial on how to setup things like gcm and accounts. Will come soon

  7. thermatk commented on Apr 26, 2015

    @thermatk
    Author

    I have found the tricky secret codes in the source and used them both, now Hangouts is really stuck with the contacts :)
    It's truly great what you are doing here

  8. cobalt232 commented on May 6, 2015

    @cobalt232

    I just did some testing with the debug build that SWW13 provided and it looks like the Android GSF ID is not generated or it it's a least not written into gservices.db. Maybe you can look into this.

    BTW: I can't get this to build. Are you planning to provide an Android Studio project?

  9. mar-v-in commented on Aug 4, 2015

    @mar-v-in
    Member

    OmniROM 5.1 accepted the patch in their latest nightlies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions