shmykelsa / AA-Tweaker

Tool to apply patches to Google Play Services that will enable some extra functionality on Android Auto
GNU General Public License v2.0
409 stars 28 forks source link

AA-Tweaker doesn't work on Android 14 #84

Open Danlip78 opened 11 months ago

Danlip78 commented 11 months ago

Working well on my old Huawei 6p / Android 11 Lineage. Yesterday, i have switched to my new Pixel P8P and i can't use any options on AA Tweaker without error message that tell me "action can't be performed, please wait and try again".

Does AA Tweaker is supposed to be working and Android 14 / Android Auto 10.5.633834?

Yaff1e commented 10 months ago

Same problem for me. Worked fine with Lineage 20 on my OnePlus 6T but not on my new Pixel 8 Pro.

Jon8RFC commented 10 months ago

No Android 14 support on Pixel 8 Pro

ZanzDroid commented 9 months ago

To work with Android 14 on Pixel 8, and Pixel 8 Pro, you need to replace the following file with a 64-bit version. This will make AA AIO Tweaker work if it is not. Here is a 64-bit version that works for me.

sqlite3.zip

/data/data/sksa.aa.tweaker/sqlite3

Edit: I should have added this originally. Make sure you set the file to be readable, and executable by user/group/other:

chmod 555 /data/data/sksa.aa.tweaker/sqlite3

or

chmod a=rx /data/data/sksa.aa.tweaker/sqlite3

Perform either of those two commands (they are equivalent and do the exact same thing) via adb shell, with root permission. You can also set the attributes in Root Explorer, or via Terminal if you don't have access to adb.

natesc0tt commented 7 months ago

That file replacement solution is a universal fix for Android 14 or only specific to pixel 8 pro? I have a Xiaomi 13 pro with android 14...

Jon8RFC commented 7 months ago

That file replacement solution is a universal fix for Android 14 or only specific to pixel 8 pro? I have a Xiaomi 13 pro with android 14...

It didn't work for me on android 14 wuth a pixel 8 pro, unfortunately.

BenJewell commented 7 months ago

This app still works for me and I have Android 14 on a Pixel 5.

Buel97 commented 7 months ago

I have a POCO X6 Pro (Android 14 HyperOS) and the app doesn't work (I tried also modified sqlite3). Any operation I try to do tells me: command failed. On other phones it works perfectly. LOG: -- Force stopping Google Play Services -- OutputStream: am kill all com.google.android.gms

-- Gaining ownership of the database -- OutputStream: chown root /data/data/com.google.android.gms/databases/phenotype.db

-- Setting SELINUX to permessive -- OutputStream: setenforce 0

-- run SQL method -- OutputStream: /data/user/0/sksa.aa.tweaker/sqlite3 -batch /data/data/com.google.android.gms/databases/phenotype.db 'DROP TRIGGER IF EXISTS force_ws; DROP TRIGGER IF EXISTS force_no_ws; INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, intVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"SystemUiwidescreen_breakpoint_dp", "",470,0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, intVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"SystemUirail_assistant_media_rec_enabled_min_screen_width", "",470,0); ' ErrorStream: /system/bin/sh: [5]: /data/user/0/sksa.aa.tweaker/sqlite3: can't execute: Permission denied OutputStream: /data/user/0/sksa.aa.tweaker/sqlite3 -batch /data/data/com.google.android.gms/databases/phenotype.db 'CREATE TRIGGER force_ws AFTER DELETE On FlagOverrides BEGIN INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, intVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"SystemUiwidescreen_breakpoint_dp", "",470,0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, intVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"SystemUirail_assistant_media_rec_enabled_min_screen_width", "",470,0); END;' ErrorStream: /system/bin/sh: [6]: /data/user/0/sksa.aa.tweaker/sqlite3: can't execute: Permission denied

-- restoring Google Play Services -- OutputStream: pm enable com.google.android.gms InputStream: Package com.google.android.gms new state: enabled

-- Restoring ownership of the database -- OutputStream: chown u0_a146 /data/data/com.google.android.gms/databases/phenotype.db

SubSpaceManeuvers commented 6 months ago

I have a POCO X6 Pro (Android 14 HyperOS) and the app doesn't work (I tried also modified sqlite3). Any operation I try to do tells me: command failed. On other phones it works perfectly. LOG: -- Force stopping Google Play Services -- OutputStream: am kill all com.google.android.gms

-- Gaining ownership of the database -- OutputStream: chown root /data/data/com.google.android.gms/databases/phenotype.db

-- Setting SELINUX to permessive -- OutputStream: setenforce 0

-- run SQL method -- OutputStream: /data/user/0/sksa.aa.tweaker/sqlite3 -batch /data/data/com.google.android.gms/databases/phenotype.db 'DROP TRIGGER IF EXISTS force_ws; DROP TRIGGER IF EXISTS force_no_ws; INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, intVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"SystemUiwidescreen_breakpoint_dp", "",470,0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, intVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"SystemUirail_assistant_media_rec_enabled_min_screen_width", "",470,0); ' ErrorStream: /system/bin/sh: [5]: /data/user/0/sksa.aa.tweaker/sqlite3: can't execute: Permission denied OutputStream: /data/user/0/sksa.aa.tweaker/sqlite3 -batch /data/data/com.google.android.gms/databases/phenotype.db 'CREATE TRIGGER force_ws AFTER DELETE On FlagOverrides BEGIN INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, intVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"SystemUiwidescreen_breakpoint_dp", "",470,0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, intVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"SystemUirail_assistant_media_rec_enabled_min_screen_width", "",470,0); END;' ErrorStream: /system/bin/sh: [6]: /data/user/0/sksa.aa.tweaker/sqlite3: can't execute: Permission denied

-- restoring Google Play Services -- OutputStream: pm enable com.google.android.gms InputStream: Package com.google.android.gms new state: enabled

-- Restoring ownership of the database -- OutputStream: chown u0_a146 /data/data/com.google.android.gms/databases/phenotype.db

Reread your logs. You're lacking permission to execute your sqlite3 executable.

chmod ugo+rx /data/data/sksa.aa.tweaker/sqlite3

fabio-87 commented 5 months ago

This is my log (I replaced the sqlite3 and make it executable), but Car Stream doesn't show up in AA (I'm on Xiaomi 12 Pro stock ROM with Android 14):

REGISTRO: -- Apps which will be added to whitelist: --

-- Force stopping Google Play Services -- OutputStream: am kill all com.google.android.gms

-- Gaining ownership of the database -- OutputStream: chown root /data/data/com.google.android.gms/databases/phenotype.db

-- Setting SELINUX to permessive -- OutputStream: setenforce 0

-- run SQL method -- OutputStream: /data/user/0/sksa.aa.tweaker/sqlite3 -batch /data/data/com.google.android.gms/databases/phenotype.db 'DROP TRIGGER IF EXISTS aa_patched_apps; DROP TRIGGER IF EXISTS after_delete; DROP TRIGGER IF EXISTS aa_patched_apps_fix; INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, stringVal, committed) VALUES ("com.google.android.gms.car", 0,"app_white_list", "","com.google.android.kk2",0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, stringVal, committed) VALUES ("com.google.android.gms.car", 0,"car_connect_broadcast_whitelist", "","com.google.android.kk2",0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, stringVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"AppValidationallowed_package_list", "" ,"",0);INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, stringVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"AppValidationblocked_packages_by_installer", "" ,"",0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"AppValidationshould_bypass_validation", "" ,1,0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"AppValidationplay_install_api", "" ,0,0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.gms.car", 0,"FrameworkCarProjectionValidatorFlagslog_reason_apps_not_allowed_all_apps", "" ,0,0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.gms.car", 0,"should_bypass_validation", "" ,1,0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.gms.car", 0,"FrameworkCarProjectionValidatorFlagsuse_package_manager_api_for_installed_by_play_check", "" ,0,0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.gms.car", 0,"FrameworkCarProjectionValidatorFlagsvalidator_must_run_on_background_thread", "" ,0,0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"CarProjectionValidator__filter_disabled_packages_in_ispackageallowed_method", "" ,0,0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"CarProjectionValidatorfilter_disabled_packages_in_ispackageallowed_method", "" ,1,0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"UnknownSources__allow_full_screen_apps", "" ,1,0); DELETE FROM Flags WHERE name="app_black_list"; ' OutputStream: /data/user/0/sksa.aa.tweaker/sqlite3 -batch /data/data/com.google.android.gms/databases/phenotype.db 'CREATE TRIGGER aa_patched_apps AFTER DELETE On FlagOverrides BEGIN

    INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, stringVal, committed) VALUES ("com.google.android.gms.car",  0,"app_white_list", "","com.google.android.kk2",0);
    INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, stringVal, committed) VALUES ("com.google.android.gms.car",  0,"car_connect_broadcast_whitelist", "","com.google.android.kk2",0);
    INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, stringVal, committed) VALUES ("com.google.android.projection.gearhead",  0,"AppValidation__allowed_package_list",  "" ,"",0);INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, stringVal, committed) VALUES ("com.google.android.projection.gearhead",  0,"AppValidation__blocked_packages_by_installer", "" ,"",0);
    INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.projection.gearhead",  0,"AppValidation__should_bypass_validation", "" ,1,0);
    INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.projection.gearhead",  0,"AppValidation__play_install_api", "" ,0,0);
    INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.gms.car",  0,"FrameworkCarProjectionValidatorFlags__log_reason_apps_not_allowed_all_apps", "" ,0,0);
    INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.gms.car",  0,"should_bypass_validation", "" ,1,0);
    INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.gms.car",  0,"FrameworkCarProjectionValidatorFlags__use_package_manager_api_for_installed_by_play_check", "" ,0,0);
    INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.gms.car",  0,"FrameworkCarProjectionValidatorFlags__validator_must_run_on_background_thread", "" ,0,0);
    INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.projection.gearhead",  0,"CarProjectionValidator__filter_disabled_packages_in_ispackageallowed_method", "" ,0,0);
    INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.projection.gearhead",  0,"CarProjectionValidator__filter_disabled_packages_in_ispackageallowed_method", "" ,1,0);
    INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, boolVal, committed) VALUES ("com.google.android.projection.gearhead",  0,"UnknownSources__allow_full_screen_apps", "" ,1,0);
    DELETE FROM Flags WHERE name="app_black_list";
    END;'

-- end SQL method --

-- restoring Google Play Services -- OutputStream: pm enable com.google.android.gms InputStream: Package com.google.android.gms new state: enabled

-- Restoring ownership of the database -- OutputStream: chown u0_a141 /data/data/com.google.android.gms/databases/phenotype.db

acress1 commented 1 month ago

Hi, still not working on LineageOS21/Android 14 :/ I tried to patch Organic Maps but it doesn't display on AA. I also tried to modify the sqlite3 file as mentionned above but still doesn't work. Thanks ! cress

BenJewell commented 1 month ago

Don't forget to enable developer options in Android auto first. I think there's a setting you have to change after doing that if I remember correctly.

acress1 commented 1 month ago

Yes it is already done.. :/

chuppito commented 2 weeks ago

Works on pixel 6