althafvly/AmlogicKitchen

Windows repack makes read only partition.

Closed this issue · 10 comments

  1. take an image and unpack level 1.

Level1 repack shows no issues

  1. going into adb shell user is allowed to su and get #
  2. Unpack 2 and repack both 2 and 1
  3. Try step 2 and user receives su not permitted. Image is read only.

much thanks

Are you trying to get root access?. If so, this tool does not add super user access into a rom. You need manually add it.

Attached is the screenshot of the rom from vendor which allows su from shell. It appears that after I pack with 2 the item is changed. Wanting shell to have access to su like the vendor rom.
16F89799-40CD-4CDC-B452-11B5C08CDC4B

I believe this is an issue related to unpack and not sure if fs_context and or permissions are changed by the imgextractor?

Just unpacking and packing won't remove su, if you already have. Link me your firmware, i can check

thanks emailed link to the gmail account in profile.

I just repacked your firmware. it seems su is present here. hasnt removed and which linux distro are you running?.

Great please see the permission of su in system/xbin/su.
The permissions will have changed and be different than the above screenshot.

Before packing the system would allow su without root. After repacking su would require adb-root.

  • You can add/change permission in level2/config/*_fs_config for each files and folder manually.

  • adb root is only for development builds, which means your build is userdebug/eng.

Keep in mind that this is dev tool, try everything at your own risk.