Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force application to register to Google Cloud Messaging without having to reinstall the app #2661

Open
laurentlevi opened this issue Dec 3, 2024 · 10 comments

Comments

@laurentlevi
Copy link

Is your feature request related to a problem? Please describe.

After uninstalling / reinstalling microG all the existing app in the telephone does not reregister to GCN.
therefore no more notifications.
The only way I found to force the application to register is either deinstall/reinstall either clear data and reconfigure the app.
the process of reinstalling and configuring 300 applications is very long and painfull .

Describe the solution you'd like
Is there a way to force registration of existing application once microg is installed ?
there is a toggle button "Confirm new apps", I was wondering if we could maybe add a button " register existing apps" and then you choose the app that is installed on the telephone ?

Additional context
Add any other context or screenshots about the feature request here.

@ale5000-git
Copy link
Member

If you have root you can run this command:
find /data/data/*/shared_prefs -name 'com.google.android.gms.*.xml' -delete

It will delete the gms data from all apps causing them to re-register (other app data are left intact).

@laurentlevi
Copy link
Author

I have Huawei p40pro and pura70 ultra :(
no root , no bootloader unlock

@ale5000-git
Copy link
Member

It is the app that request the registration to microG, not the opposite, so microG can't do anything.
It is the app developer that must take care of this case.

@ildar
Copy link

ildar commented Dec 3, 2024 via email

@ale5000-git
Copy link
Member

resetting app data usually does the trick.

We already know this works but you will also lost all the data of the app you reset.

@sogood-ood
Copy link

sogood-ood commented Dec 7, 2024

If you have root you can run this command: find /data/data/*/shared_prefs -name 'com.google.android.gms.*.xml' -delete

It will delete the gms data from all apps causing them to re-register (other app data are left intact).

should i use Termux or what?
i have the same problem and if it's not too much trouble for you, tell me more

@ale5000-git
Copy link
Member

should i use Termux or what?
i have the same problem and if it's not too much trouble for you, tell me more

From the device you can also use Termux:

su
find /data/data/*/shared_prefs -name 'com.google.android.gms.*.xml' -delete

From the pc:

adb root
adb shell
find /data/data/*/shared_prefs -name 'com.google.android.gms.*.xml' -delete

@laurentlevi
Copy link
Author

laurentlevi commented Dec 7, 2024 via email

@ale5000-git
Copy link
Member

ale5000-git commented Dec 7, 2024

This thing require root, an app can't do it.
It is unlikely that microG will be changed to use root just for this.

It would be better if the option was in the ROM itself since the same thing can be useful also for the real Google Play Services.

@Iey4iej3
Copy link

If you have root you can run this command: find /data/data/*/shared_prefs -name 'com.google.android.gms.*.xml' -delete

It will delete the gms data from all apps causing them to re-register (other app data are left intact).

It is better to have this in MicroG Wiki (e.g. FAQ). Thanks a lot!

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

No branches or pull requests

5 participants