Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- To replace files in an apk without opening it; example
- ##################################################################
- JOIN US ON TELEGRAM FOR MORE AND DETAILED CLASSES
- VISIT OUR TELEGRAM PROFILE: https://t.me/LinuxClassesEFXTv
- ##################################################################
- ic_launcher.png files in your base.apk with new PNG files from other directories while maintaining the same directory structure, you can follow these steps:
- Extract the APK: First, you need to extract the contents of the APK file. You can do this using the unzip command:
- $ unzip base.apk -d base_extracted
- Replace the PNG Files: You can use the cp command to copy the new PNG files to the appropriate locations. Assuming you have the new files named the same as the original ones, you can do something like this:
- $ cp new_icons/ic_launcher.png base_extracted/res/mipmap-hdpi-v4/ic_launcher.png
- $ cp new_icons/ic_launcher.png base_extracted/res/mipmap-mdpi-v4/ic_launcher.png
- $ cp new_icons/ic_launcher.png base_extracted/res/mipmap-xhdpi-v4/ic_launcher.png
- $ cp new_icons/ic_launcher.png base_extracted/res/mipmap-xxhdpi-v4/ic_launcher.png
- $ $ cp new_icons/ic_launcher.png base_extracted/res/mipmap-xxxhdpi-v4/ic_launcher.png
- Repack the APK: After replacing the files, you need to repack the APK. You can do this using the zip command:
- $ cd base_extracted
- $ zip -r ../new_base.apk *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement