--- a/src/main/main.c 2026-10-14 12:41:34.673058919 +0800 +++ b/src/main/main.c 2026-10-14 12:41:34.673178642 +0800 @@ -53,6 +53,8 @@ #include #include "main.h" + +#include #include "filters.h" static int @@ -736,6 +738,10 @@ dpkg_program_init("dpkg"); set_force_default(FORCE_ALL); dpkg_options_load(DPKG, cmdinfos); + + /* Another Android application may have handed us a PATH that points at + * its own prefix; repair ours before anything looks a program up. */ + doubao_fix_environment(); dpkg_options_parse(&argv, cmdinfos, printforhelp); debug(dbg_general, "root=%s admindir=%s", dpkg_fsys_get_dir(), dpkg_db_get_dir());