diff -uNr apt-2.1.11/cmdline/apt.cc apt-2.1.11.mod/cmdline/apt.cc --- apt-2.1.11/cmdline/apt.cc 2020-11-05 16:56:10.361005861 +0200 +++ apt-2.1.11.mod/cmdline/apt.cc 2020-11-05 17:03:32.752181628 +0200 @@ -106,6 +106,26 @@ return 1; } + // Reversed /data/data/com.termux/files/usr. Prevents patching with 'sed' + // by using equal-size prefixes. + const char termux_prefix_obfs[] = "rsu/selif/xumret.moc/atad/atad/"; + char termux_prefix[sizeof(termux_prefix_obfs)/sizeof(char)] = {0}; + int termux_prefix_len = sizeof(termux_prefix_obfs)/sizeof(char) - 1; + + // Decode. + for (int i=0; i