Android has a removable app built into the data directory

Source: Internet
Author: User

First, the preparatory work:
Make_ext4fs, mkuserimg.sh, Simg2img,
Put them in the same directory as the. IMG.EXT4 (or. img) file that you want to modify

Second, the conversion source file is the IMG format (. img skipped)
Use the./simg2img src des command to convert USERDATA.IMG.EXT4 format files
Terminal input:

./simg2img USERDATA.IMG.EXT4 Userdata.img

Three, Mount image
Create a new directory to mount this IMG to use on this directory
Terminal input:

sudo mkdir usermain

Create a new directory named Usermain
Continue typing:

Mount-t Ext4-o Loop Userdata.img.ext4 usermain

After the mount is successful, you can manage the files in the IMG in the resource manager.

Iv. Modifying the contents of the image

Create an App directory in the Usermain directory and copy the built-in APK file into it.

sudo mkdir app

Five, RePack

Packaged as. img
Terminal input

777 ./make_ext4fs. /make_ext4fs-l 512m-s-a data userdata_out.img./usermain

Android has a removable app built into the data directory

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.