Giter VIP home page Giter VIP logo

ti_recover's Introduction

ti_recover

license lines

Package and command-line (CLI) that helps you recover your lost source code from almost any APK made using Appcelerator Titanium, either be in development or distribution mode.

INSTALL

npm install -g puntorigen/ti_recover

USAGE

It comes with a command-line (CLI), that uses all methods of this package, and that you can use as follows:

ti_recover apkfile.apk outputdir

As part of my blog post: link to my blog
As a package contains the following methods:

init (config, onReadyCB).

Initializes the component.
Can have the keys:
apk (apkfile to open),
apk_dir (optional apk_unpack dir already create to re-utilize it),
out_dir (outputdir)

test (onReadyCB).

This returns true/false on the callback, indicating the given APK was made or not using Titanium.

extract (onReadyCB).

This does the extraction of assets and js sources into memory.

reconstruct (onReadyCB). in progress

This attempts to rebuild the source code from memory into a structure that can be opened as a Titanium Project. Can be called before writeToDisk to have a well formed Titanium project.

writeToDisk ().

This creates the files and directories of the source code in memory to the given outputdir.

copyAssets ().

This retrieves the APK image and resources assets into the outputdir.

clean ().

This cleanses the temporal directory used to process the files.

info (callback(err,data)). in progress

Retrieves Titanium information about the current APK using the extracted resources. Must be called after 'extract' method.

UPDATES

version 1.1.1:

  • now assets are put on the correct directories.

version 1.0.9:

  • updated to latest apk_unpack to use jadx.
  • now resources and manifest are also copied to outputdir

version 1.0.6:

  • added ability to recover APKs created in development mode.

version 1.0.5:

  • improved readability of CLI, added prettyfier to source code, and bugfix several issues.

version 1.0.4:

  • fixed tmp dir location bug. Now CLI works ok.

version 1.0.2-3:

  • added delay before decrypting files, to account for slower hdd disks

version 1.0.1:

  • fixed console debug

version 1.0.0:

  • first version
  • Add readme.md file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.