TeamWin / Team-Win-Recovery-Project

Core recovery files for the Team Win Recovery Project (T.W.R.P) - this is not up to date, please see https://github.com/TeamWin/android_bootable_recovery/
http://twrp.me
1.97k stars 740 forks source link

adb shell does not provides root user, instead shell user is provided #1639

Open serdeliuk opened 1 year ago

serdeliuk commented 1 year ago

Device codename: q5q SM-F946B TWRP version: 3.7.0

WHAT STEPS WILL REPRODUCE THE PROBLEM?

~$ adb shell q5q:/ # whoami
shell q5q:/ #

WHAT IS THE EXPECTED RESULT?

the user should be root not shell

WHAT HAPPENS INSTEAD?

running from recovery image

ADDITIONAL INFORMATION

N/A

CaptainThrowback commented 1 year ago

You built as -eng, not -userdebug, right?

serdeliuk commented 1 year ago

yes, eng, I am using prebuilt kernel from stock recovery, if that counts

serdeliuk commented 1 year ago

and creating recovery.img

serdeliuk commented 1 year ago

what is interesting is that from the twrp terminal i have root image

CaptainThrowback commented 1 year ago

what is interesting is that from the twrp terminal i have root image

You sure this issue isn't caused by something in your device tree?

serdeliuk commented 1 year ago

for sure is something in my device tree, but what, this is what i am asking for, what could generate this behaviour?

CaptainThrowback commented 1 year ago

for sure is something in my device tree, but what, this is what i am asking for, what could generate this behaviour?

Did I miss the link to your device tree?

serdeliuk commented 1 year ago

indeed, this is https://github.com/serdeliuk/android_device_samsung_dm3q i only modified the device name

CaptainThrowback commented 1 year ago

indeed, this is https://github.com/serdeliuk/android_device_samsung_dm3q i only modified the device name

Nothing jumps out at me, sorry.

serdeliuk commented 1 year ago

It seems to be something in the kernel, not sure what, but for sure is a config that needs to be disabled