[Android Auto General] torvalds01:
After restoring my phone I tried to repatch but It doesn't work, provably db structure is changed, here the log:

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

- AA Mirror (com.github.slashmax.aamirror)

- CarStream (com.google.android.kk)

-- 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", "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", "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", "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", "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", "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", "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", "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", "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", "com.github.slashmax.aamirror,com.google.android.kk",1);'

ErrorStream:

Error: Flags.version may not be NULL

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", "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", "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", "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", "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", "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", "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", "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", "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", "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||||com.github.slashmax.aamirror,com.google.android.kk||1

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

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

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

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

com.google.android.gms.car|234|0|0||app_white_list||||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";'

ErrorStream:

Error: Flags.version may not be NULL

-- 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||||com.github.slashmax.aamirror,com.google.android.kk||1

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

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

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

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

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

-- Check seems OK :) --

Inviato dal mio MI 8 utilizzando Tapatalk