recover-rn
v3.0.1
Published
Ferramenta CLI para recuperar código e assets de apps React Native a partir de APK
Downloads
11
Readme
RN APK Recovery CLI

Sumário
Features
- Interactive Interface: A user-friendly menu guides you through all recovery options.
- Modular Tools: Choose from a variety of recovery modules:
- Basic Extraction (Unzip): Quickly extracts files from the APK.
- Advanced Decompilation (APKTool): Disassembles the APK into a readable file structure.
- JavaScript Beautifier: Formats the JavaScript bundle to improve readability.
- Bundle Analysis: Detects libraries and provides statistics about the JS bundle.
- Asset Extraction: Copies all application assets (images, fonts, icons).
- Bundle Visualizer: Runs
react-native-bundle-visualizerfor a graphical analysis.
- Customizable Process: Run a full analysis with a single command or select only the tools you need.
- Detailed Reports: Generates a final Markdown report summarizing the process, created directories, and recommendations.
- Dependency Check: Automatically verifies if required tools (like
unzipandapktool) are installed.
Installation
To use this tool, you will need Node.js (version 16 or higher) and unzip installed on your system.
The recommended method is to use npx, which runs the package without needing a global installation.
# Run without installing
npx recover-rnAlternatively, you can install it globally using npm:
# Install globally via NPM
npm install -g recover-rnGetting Started
To get started, simply run the command in your terminal. The tool will launch and prompt you for the path to the .apk file you want to analyze.
recover-rnThe script will then guide you through an interactive menu where you can select the desired recovery options.
Usage
After providing the path to your APK, you will be presented with a menu of recovery options. You can choose to run a full analysis, which is the recommended option for a comprehensive overview, or select specific tasks like extracting assets or beautifying the JavaScript bundle.
The tool will create a set of directories prefixed with the name of your APK, each containing the output of the selected recovery modules.
Roadmap (Next Steps)
This tool is actively being developed. Here are some of the features planned for future releases:
- IPA File Support: Add support for recovering source code from iOS application archives.
- Automatic Project Scaffolding: Create a new React Native project structure based on the recovered bundle and dependencies.
- Source Map Integration: If a source map is found, use it to reconstruct a more accurate and readable version of the original source code.
- Graphical User Interface (GUI): Develop a desktop application to make the recovery process even more accessible.
How to Contribute
Contributions are highly welcome! If you have ideas for new features, improvements, or bug fixes, please feel free to open an issue or submit a pull request.
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature/your-feature). - Open a Pull Request.
License
This project is distributed under the MIT License.
