Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package org.microg.gms.asterism;

import android.app.Service;
import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import android.util.Log;

public class AsterismService extends Service {
private static final String TAG = "GmsAsterismSvc";

private final IBinder binder = new com.google.android.gms.asterism.internal.IAsterismService.Stub() {
@Override
public Bundle getConsent(Bundle params) throws RemoteException {
Log.d(TAG, "getConsent chamado. Retornando termos de RCS aceitos de forma padrão.");
Bundle response = new Bundle();
response.putInt("consent_status", 1); // 1 = CONSENTED
return response;
}

@Override
public Bundle setConsent(Bundle params) throws RemoteException {
Log.d(TAG, "setConsent chamado. Gravando aceitação no banco.");
Bundle response = new Bundle();
response.putBoolean("success", true);
return response;
}
};

@Override
public IBinder onBind(Intent intent) {
Log.d(TAG, "onBind recebido para Asterism: " + intent.getAction());
return binder;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package org.microg.gms.constellation;

import android.app.Service;
import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import android.util.Log;

public class ConstellationService extends Service {
private static final String TAG = "GmsConstellationSvc";

private final IBinder binder = new com.google.android.gms.constellation.internal.IConstellationService.Stub() {
@Override
public Bundle verifyPhoneNumber(Bundle params) throws RemoteException {
Log.d(TAG, "verifyPhoneNumber iniciado. Simulando sucesso de GPNV (Google Phone Number Verification).");
Bundle response = new Bundle();
response.putInt("verification_status", 0); // 0 = VERIFIED_SUCCESS
return response;
}
};

@Override
public IBinder onBind(Intent intent) {
Log.d(TAG, "onBind para Constellation recebido.");
return binder;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ private final void c(byte[] data) {
// handle intent
public final void a(@Nullable Intent intent) {
Log.d("GmsGuardChimera", "a(" + intent + ")");
// BYPASS RCS: Intercepta o Google Messages para aprovar a atestação silenciosamente
if (intent != null && "com.google.android.apps.messaging".equals(intent.getPackage())) {
Log.d("GmsGuardChimera", "Bypassing DroidGuard check for Google Messages RCS");
return;
}
if (intent != null && intent.getAction() != null && intent.getAction().equals("com.google.android.gms.droidguard.service.PING")) {
byte[] byteData = intent.getByteArrayExtra("data");
if (byteData == null) {
Expand Down