Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
serdeliuk opened this issue Oct 3, 2023 · 10 comments
Open

Comments

@serdeliuk
Copy link

  • Custom built, porting to a new device
  • [ *] I am running the latest version of TWRP
  • [ *] I have read the FAQ (https://twrp.me/FAQ/)
  • [ *] I have searched for my issue and it does not already exist

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
Copy link
Contributor

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

@serdeliuk
Copy link
Author

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

@serdeliuk
Copy link
Author

and creating recovery.img

@serdeliuk
Copy link
Author

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

@CaptainThrowback
Copy link
Contributor

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
Copy link
Author

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

@CaptainThrowback
Copy link
Contributor

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
Copy link
Author

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

@CaptainThrowback
Copy link
Contributor

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

Nothing jumps out at me, sorry.

@serdeliuk
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants