Patch to encourage third-parties to compile own packages instead of using hosted by Termux. diff -uNr apt-1.4.10/cmdline/apt.cc apt-1.4.10.mod/cmdline/apt.cc --- apt-1.4.10/cmdline/apt.cc 2020-09-28 02:39:43.263956603 +0300 +++ apt-1.4.10.mod/cmdline/apt.cc 2020-09-28 02:40:31.852376007 +0300 @@ -103,6 +103,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