althafvly / AmlogicKitchen

Android firmware kitchen for amlogic devices
137 stars 55 forks source link

Windows repack makes read only partition. #3

Closed dister520 closed 2 years ago

dister520 commented 2 years ago
  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

althafvly commented 2 years ago

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.

dister520 commented 2 years ago

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

dister520 commented 2 years ago

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

althafvly commented 2 years ago

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

dister520 commented 2 years ago

thanks emailed link to the gmail account in profile.

althafvly commented 2 years ago

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

dister520 commented 2 years ago

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

dister520 commented 2 years ago

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

althafvly commented 2 years ago

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

dister520 commented 2 years ago

Correct it’s a debug build. And not sure why when I repack fs file it does not function as a debug build.

Sent from Yahoo Mail for iPhone

On Thursday, May 26, 2022, 11:41 AM, Mohammed Althaf @.***> wrote:

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>