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

Support GApps other than the Dialer (e.g. "Message Organization" feat in Messages) #51

Closed
jacopotediosi opened this issue Jan 11, 2023 · 14 comments
Labels
enhancement New feature or request

Comments

@jacopotediosi
Copy link
Owner

As the title says, it would be useful to mods other Google Apps in addition to the Google Dialer.
The idea is to add an additional tab to the main layout to select which of the supported applications the user intends to patch.

E.g., on Google Messages, we can enable the "Message Organization" and the "Auto-delete OTPs after 24 hrs" features (https://www.makeuseof.com/auto-delete-otp-messages-android/).
For the sake of completeness, I just got it working overriding the following phenotype FlagOverrides (certainly not all of them are necessary, but I don't have time now to do an accurate analysis):

adb shell
su
/data/data/com.jacopomii.googledialermod/sqlite3 /data/data/com.google.android.gms/databases/phenotype.db "SELECT DISTINCT name,boolVal FROM FlagOverrides WHERE packageName='com.google.android.apps.messaging#com.google.android.apps.messaging'"
bugle_phenotype__bug_192909536_supersort_classify_missing_messages_only_when_charging|0
bugle_phenotype__conversation_labels_enabled|1
bugle_phenotype__enable_experiment_carrier_config_override|1
bugle_phenotype__enable_otp_auto_deletion|1
bugle_phenotype__enable_phenotype_override|1
bugle_phenotype__enable_smart_action_settings_page|1
bugle_phenotype__enable_starring_suggestion|1
bugle_phenotype__enable_supersort_annotators|1
bugle_phenotype__enable_text_classifier_actions_in_notifications|1
bugle_phenotype__enable_text_classifier_address_message_annotations|1
bugle_phenotype__enable_text_classifier_contact_message_annotations|1
bugle_phenotype__enable_text_classifier_datetime_message_annotations|1
bugle_phenotype__enable_text_classifier_email_message_annotations|1
bugle_phenotype__enable_text_classifier_map_link_message_annotations|1
bugle_phenotype__enable_text_classifier_phone_message_annotations|1
bugle_phenotype__enabled_testopenbeta_feature|1
bugle_phenotype__reranker_enable_type_sorting|1
bugle_phenotype__supersort_badge_all_filter|1
bugle_phenotype__supersort_enable_qpbc|1
bugle_phenotype__supersort_enable_update_donation_banner|1
bugle_phenotype__supersort_use_only_work_manager|0

This enhancement would probably require a major refactor of the GoogleDialerMod codebase and maybe a project name change (e.g. to "GAppsMod").

@jacopotediosi jacopotediosi added the enhancement New feature or request label Jan 11, 2023
@jacopotediosi jacopotediosi changed the title Support other Google Apps other than Google Dialer Support Google Apps other than Google Dialer Jan 11, 2023
@jacopotediosi
Copy link
Owner Author

Before doing this it is strongly recommended to reorganize the file structure of the app

@Yoanndp
Copy link
Contributor

Yoanndp commented Jan 11, 2023

Hello, for those who wish to make these changes directly using a SQL editor, I have created a script that generates SQL queries through an input file in the format of 'name|boolVal' as defined above.

Edit: make the script private as it's not used anymore.

@jacopotediosi
Copy link
Owner Author

Hello, for those who want to make these changes directly with a SQL editor, I have created a script that allows you to generate SQL queries via an input file (in "Name | BoolVal" format).

Remember, after changing flags, to force close the Google Messages app and to delete the /data/data/com.google.android.apps.messaging/files/phenotype folder

@jacopotediosi jacopotediosi changed the title Support Google Apps other than Google Dialer Support GApps other than the Dialer (e.g. "Message Organization" feat in Messages) Jan 11, 2023
@jacopotediosi
Copy link
Owner Author

Multiple GApps support is still in progress, but the "Message Organization" feature of Messages is now supported (168b209).

@Yoanndp
Copy link
Contributor

Yoanndp commented Apr 19, 2023

Thanks for the work! If needed, I can test a beta before creating an official release

@jacopotediosi
Copy link
Owner Author

jacopotediosi commented Apr 19, 2023

Thanks for the work! If needed, I can test a beta before creating an official release

Here's a debug APK compiled from the last commit 0929043:
app-debug.zip

@jacopotediosi
Copy link
Owner Author

I intend to wait to support multiple apps even in the Boolean Mods tab before publishing a release

@Yoanndp
Copy link
Contributor

Yoanndp commented Apr 19, 2023

Works great here ! I really like the updated UI : it looks fresh. Good work

@jacopotediosi
Copy link
Owner Author

Implemented with 8433bda. I'll publish a release version soon. Meanwhile, here is the current debug apk: 8433bda.zip.

5954219531604856846.mp4

@UltraHQ
Copy link

UltraHQ commented May 11, 2023

Hi, sorry, but I just wanted to say thank you!

Finally, someone is breaking that "US only" habbit from Google.
Thanks, for making our pixels what it should be, for unlocking the features we initially paid for.

@jacopotediosi
Copy link
Owner Author

Hi, sorry, but I just wanted to say thank you!

Finally, someone is breaking that "US only" habbit from Google. Thanks, for making our pixels what it should be, for unlocking the features we initially paid for.

Thanks, I'm trying my best. I plan to create suggested mods for more and more GApps over time. The next ones will probably be the play store and android auto. Feel free to suggest which features you would like, for example by sending screenshots or articles from the 9to5 website showing which hidden features can be unlocked.

@Yoanndp
Copy link
Contributor

Yoanndp commented May 11, 2023

Do you think it is possible to enable 5G in countries where it is not supported? For example, here in Belgium we have 5G relays and the phone supports 5G, but it is impossible to connect to the 5G network from a Pixel 7. I'm not sure if these settings are in the db phenotype.

@jacopotediosi
Copy link
Owner Author

Do you think it is possible to enable 5G in countries where it is not supported? For example, here in Belgium we have 5G relays and the phone supports 5G, but it is impossible to connect to the 5G network from a Pixel 7. I'm not sure if these settings are in the db phenotype.

Are you sure you are using the correct APN?

@Yoanndp
Copy link
Contributor

Yoanndp commented May 11, 2023

Yes, this is a known problem here in Belgium. Nobody can connect to the 5G network using their Pixel's phone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants