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

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

Open
Danlip78 opened this issue Oct 16, 2023 · 15 comments
Open

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

Danlip78 opened this issue Oct 16, 2023 · 15 comments

Comments

@Danlip78
Copy link

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
Copy link

Yaff1e commented Nov 9, 2023

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

@Jon8RFC
Copy link

Jon8RFC commented Nov 29, 2023

No Android 14 support on Pixel 8 Pro

@ZanzDroid
Copy link

ZanzDroid commented Dec 23, 2023

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
Copy link

natesc0tt commented Mar 2, 2024

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
Copy link

Jon8RFC commented Mar 3, 2024

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
Copy link

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

@Buel97
Copy link

Buel97 commented Mar 6, 2024

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,"SystemUi__widescreen_breakpoint_dp", "",470,0);
INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, intVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"SystemUi__rail_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,"SystemUi__widescreen_breakpoint_dp", "",470,0);
INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, intVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"SystemUi__rail_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
Copy link

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,"SystemUi__widescreen_breakpoint_dp", "",470,0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, intVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"SystemUi__rail_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,"SystemUi__widescreen_breakpoint_dp", "",470,0); INSERT OR REPLACE INTO FlagOverrides (packageName, flagType, name, user, intVal, committed) VALUES ("com.google.android.projection.gearhead", 0,"SystemUi__rail_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
Copy link

fabio-87 commented May 2, 2024

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: --
- CarStream (com.google.android.kk2)

OutputStream:
	mv 
			 /data/local/tmp/tmpapkcom.google.android.kk2.apk
ErrorStream:
	mv: Needs 1 argument (see "mv --help")
	/system/bin/sh: <stdin>[2]: /data/local/tmp/tmpapkcom.google.android.kk2.apk: can't execute: Permission denied
OutputStream:
	pm uninstall com.google.android.kk2
InputStream:
	Failure [DELETE_FAILED_INTERNAL_ERROR]
OutputStream:
	pm install -t -i "com.android.vending" -r /data/local/tmp/tmpapkcom.google.android.kk2.apk
InputStream:
	Success

-- 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,"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";
'
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
Copy link

acress1 commented Aug 7, 2024

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
Copy link

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
Copy link

acress1 commented Aug 7, 2024 via email

@chuppito
Copy link

Works on pixel 6

@Lidl1111111
Copy link

ne fonctionne pas sur oneplus 10 pro rooté

@Mygod
Copy link

Mygod commented Oct 20, 2024

Tried patching sqlite3. No error in app but still doesn't show up.

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

No branches or pull requests