Looks like sdat2img builds img2sdat instead, since... who knows, like a month ago latest time i tried it and was working fine
dpkg: error processing archive /data/data/com.termux/cache/apt/archives/sdat2img_1.2_all.deb (--unpack):
trying to overwrite '/data/data/com.termux/files/usr/bin/img2sdat', which is also in package img2sdat 1.7
Errors were encountered while processing:
/data/data/com.termux/cache/apt/archives/sdat2img_1.2_all.deb
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
And just to confirm
~ $ img2sdat
No command img2sdat found, did you mean:
Command img_stat in package sleuthkit
~ $ sdat2img
No command sdat2img found, did you mean:
Command simg2img in package android-tools
Command shp2img in package mapserver
~ $ apt install sdat2img
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
sdat2img
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3544 B of archives.
After this operation, 38.9 kB of additional disk space will be used.
(Reading database ... 13029 files and directories currently installed.)
Preparing to unpack .../archives/sdat2img_1.2_all.deb ...
Unpacking sdat2img (1.2) ...
Setting up sdat2img (1.2) ...
~ $ sdat2img
No command sdat2img found, did you mean:
Command simg2img in package android-tools
Command shp2img in package mapserver
~ $ img2sdat
Usage: sdat2img.py <transfer_list> <system_new_file> [system_img]
<transfer_list>: transfer list file
<system_new_file>: system new dat file
[system_img]: output system image
Visit xda thread for more information.
Press ENTER to exit...
~ $
Looks like sdat2img builds img2sdat instead, since... who knows, like a month ago latest time i tried it and was working fine
And just to confirm