Archiv für Juli, 2009

How to extract multiple archives with a shell script

I had the problem to extract multiple .tar files (all in the same folder). Doing this by hand was kind of annoying and because i like the heuristic not to do same things more then three times, i wrote a little bash script. The script takes the archive type i.e. .tar, .tar.gz as first parameter and then automatically extracts all the archives files, in the given folder, to subdirectories (foldername of created subdirectory is the basename of the file). So here is the code..maybe it could save a little bit of your time.

Baksmali/Smali (Dissassembler/Reassembler) Android Tutorial

Zunächst müssen die .jar Dateien von der Projektseite geladen und entpackt werden:
Download von http://code.google.com/p/smali/

  • baksmali-0.93.jar  ist der Disassembler
  • smali-0.92.jar ist der Reassembler

Nachdem die Dateien herunterladen wurden einfach in einen Ordner Eurer Wahl kopieren. Nun können wir auch schon mit dem Dis-/Reassemblieren beginnen.

Disassemblieren:

  • Gewünschte .apk Datei in einen leeren Ordner kopieren
  • Datei dort entpacken (in Ubuntu entweder per Doppelklick auf die .apk oder via Konsole:

mkdir <yourApp>
cd <yourApp>
adb pull /system/app/<yourApp>.apk ./
unzip <yourApp>.apk