[Android Auto General] Mairei:
Hi [MENTION=3165644]Eselter[/MENTION] , first thanks for all your efforts. I previously used jen94's manual process which worked but reinstalled ROM with full wipe and wanted to try your patcher. TGP 2.6 ROM on Moro 5.2 kernel for my S7 w8 variant. Installed the aamirror and carstream latest versions, enabled unknown sources in AA, ran your app chose the apps, then patched, rebooted.

Tapping last app button in car's AA screen, flashes black screen for 2-5 seconds then jumps back to AA homescreen, didn't work for me.

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

- AA Phenotype Patcher (pl.eselter.aaphenotypepatcher)

- Отображение Смартфона (com.github.slashmax.aamirror)

- CarStream (com.google.android.kk)

-- chmod 775 sqlite3 --

OutputStream:

chmod 775 /data/user/0/pl.eselter.aaphenotypepatcher/sqlite3

-- end chmod 775 sqlite3 --

-- Drop Triggers --

OutputStream:

/data/user/0/pl.eselter.aaphenotypepatcher/sqlite3 /data/data/com.google.android.gms/databases/phenotype.db 'DROP TRIGGER after_delete;'

-- DELETE old Flags --

OutputStream:

/data/user/0/pl.eselter.aaphenotypepatcher/sqlite3 /data/data/com.google.android.gms/databases/phenotype.db 'DELETE FROM Flags WHERE name="app_white_list";'

-- run SQL method #2 --

OutputStream:

/data/user/0/pl.eselter.aaphenotypepatcher/sqlite3 /data/data/com.google.android.gms/databases/phenotype.db 'INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car#car", 234, 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car#car", 230, 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car", 234, 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car", 230, 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car#car_setup", 234, 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car#car_setup", 230, 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car#car", (SELECT version FROM Packages WHERE packageName="com.google.android.gms.car"), 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car", (SELECT version FROM Packages WHERE packageName="com.google.android.gms.car"), 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car#car_setup", (SELECT version FROM Packages WHERE packageName="com.google.android.gms.car"), 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);'

OutputStream:

/data/user/0/pl.eselter.aaphenotypepatcher/sqlite3 /data/data/com.google.android.gms/databases/phenotype.db 'CREATE TRIGGER after_delete AFTER DELETE

ON Flags

BEGIN

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car#car", (SELECT version FROM Packages WHERE packageName="com.google.android.gms.car"), 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car#car", 230, 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car#car", 234, 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car", (SELECT version FROM Packages WHERE packageName="com.google.android.gms.car"), 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car", 230, 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car", 234, 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car#car_setup", (SELECT version FROM Packages WHERE packageName="com.google.android.gms.car"), 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car#car_setup", 230, 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

INSERT OR REPLACE INTO Flags (packageName, version, flagType, partitionId, user, name, stringVal, committed) VALUES ("com.google.android.gms.car#car_setup", 234, 0, 0, "", "app_white_list", "pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk",1);

END;'

-- end SQL method #2 --

-- Check (1/3) --

OutputStream:

/data/user/0/pl.eselter.aaphenotypepatcher/sqlite3 /data/data/com.google.android.gms/databases/phenotype.db 'SELECT * FROM Flags WHERE name="app_white_list";'

InputStream:

com.google.android.gms.car#car_setup|230|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car#car_setup|234|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car#car_setup|240|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car#car|230|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car#car|234|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car#car|240|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car|230|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car|234|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car|240|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

-- Check (2/3) --

OutputStream:

/data/user/0/pl.eselter.aaphenotypepatcher/sqlite3 /data/data/com.google.android.gms/databases/phenotype.db 'DELETE FROM Flags WHERE name="app_white_list";'

-- Check (3/3) --

OutputStream:

/data/user/0/pl.eselter.aaphenotypepatcher/sqlite3 /data/data/com.google.android.gms/databases/phenotype.db 'SELECT * FROM Flags WHERE name="app_white_list";'

InputStream:

com.google.android.gms.car#car_setup|230|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car#car_setup|234|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car#car_setup|240|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car#car|230|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car#car|234|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car#car|240|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car|230|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car|234|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

com.google.android.gms.car|240|0|0||app_white_list||||pl.eselter.aaphenotypepatcher,com.github.slashmax.aamirror,com.google.android.kk||1

-- Check seems OK :) --