Skip to content

Instantly share code, notes, and snippets.

@kamikat
Last active September 26, 2022 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kamikat/bb0788e89ed2a4d7f1f8829738072726 to your computer and use it in GitHub Desktop.
Save kamikat/bb0788e89ed2a4d7f1f8829738072726 to your computer and use it in GitHub Desktop.
Setup exiftool command for Terminal Emulator on Android (ROOT required).

This is a note of running exiftool with Terminal Emulator on Android.

1. Install ExifTool app

ExifTool is an Android port of exiftool:

https://play.google.com/store/apps/details?id=ru.al.exiftool&hl=en_US

2. Edit script file

Editing /data/data/ru.al.exiftool/files/exiftool/exiftool in root mode:

  1. Change first line of the file to #!/data/data/ru.al.exiftool/files/perl/bin/perl -w
  2. Run chmod +x /data/data/ru.al.exiftool/files/exiftool/exiftool to make it executable

3. Environment variables

Set following environment variables in shell:

export PERL5LIB=/data/data/ru.al.exiftool/files/perl/lib/perl5/5.22.1/arm-androideabi:/data/data/ru.al.exiftool/files/perl/lib/perl5/5.22.1
export PATH=/data/data/ru.al.exiftool/files/exiftool:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment