

Rm -f $data_ac_dir/History* $data_ac_dir/Web\ Data* $data_ac_dir/Cookies* $data_ac_dir/Visited\ Links $data_ac_dir/Favicons* $data_ac_dir/Top\ Sites* $data_ac_dir/Login\ Data* $data_dir/app_tabs/0/* $data_dir/app_chrome/Local\ State Script #!/bin/shĭata_dir='/data/data/' ĭata_ac_dir=$data_dir/app_chrome/Default We'll simply use a script to delete those files and the deletion will be automated by tasker. 0 is the UID of primary user.Īll we're going to do is delete the files responsible for resuming the previous browsing data when Chrome is loaded again. Opened tabs are under /data/data//app_tabs/0/.History, Top sites, Web Data, Cookies, Log in Data) is under /data/data//app_chrome/Default, which is the profile path. Location of Chrome's data directory is /data/data/.I experimented something and it seemed to work perfectly on my devices running Android 4.2.1, 4.4.2 and 5.0.2, and using Chrome v.93, which means I don't claim any knowledge of what the files (mentioned below) actually do or are used for.

Note that this solution is reached by Trial and error. That said, somebody owning a rooted device may come looking for an answer in future.

without root access, would be NO, you can't automatically clear browsing data on exit in Chrome for Android. Both type of apps doesn't exist as of now. It's not possible with Chrome on a non-rooted device unless an app has access to Chrome's data directory, which could be the case if that app is owned by Google, or it's a Chrome plugin.
