overriding the phishing model on chromium android

25 views
Skip to first unread message

V. A.

unread,
Jun 5, 2026, 9:50:10 AM (yesterday) Jun 5
to Chromium-dev
Hello
I've been trying to override the phishing model on android using the command flag --csd-model-override but it seems not working.
Steps to Reproduce / Setup:
  1. Command Line Activation: Since Android launches applications via Zygote and doesn't support direct POSIX argument injection , I enabled #enable-command-line-on-non-rooted-devices via chrome://flags.

  2. Flag File Configuration: I configured the /data/local/tmp/chrome-command-line file. To prevent the POSIX-style parser from discarding the flag as the executable name, I prefixed the string with a placeholder token: chrome --csd-model-override=/sdcard/Android/data/org.chromium.chrome/files/csd_override

  3. Model Storage Topology: To avoid SELinux AVC denials where the untrusted_app domain is restricted from reading shell_data_file contexts in /data/local/tmp/ , I pushed the models to the application-specific external storage container: /sdcard/Android/data/org.chromium.chrome/files/csd_override/. Both the Flatbuffer configuration (client_model.pb) and the visual model (pp3dc_vis_ep16_meta_int8_224only.tflite) are placed there , inheriting the correct external_files / app_data_file contexts for the browser process to read natively.


issue: I get
 [ERROR:components/safe_browsing/content/browser/client_side_detection_service.cc] ==== SetPhishingModel !IsModelAvailable() && sent_trigger_models_)
which means that the override is not working. Do you have any ideas on how to fix it?
Reply all
Reply to author
Forward
0 new messages