anbox icon indicating copy to clipboard operation
anbox copied to clipboard

some adb command unavailabe

Open b10102016 opened this issue 8 years ago • 4 comments

Make sure you are running the latest version of Anbox before reporting an issue.

Please also check that no similar bug is already reported. Have a look on the list of open bugs at https://github.com/anbox/anbox/issues

** Please paste the result of anbox system-info below:**

https://pastebin.com/SJWkJT3Y

Please describe your problem:

When I typed adb root command. The adb will disconnect with device. I need to restart the session-manager to get adb back.

And because the file system of the anbox's android image is Squashfs, I can't install busybox or anything else like updated framework into /system folder. I can't modify the android os inside anbox.

Is there any suggestion to help ,plz? What were you expecting?: Full function

Additional info:

b10102016 avatar Jul 20 '17 03:07 b10102016

And because the file system of the anbox's android image is Squashfs, I can't install busybox or anything else like updated framework into /system folder. I can't modify the android os inside anbox.

From a support standpoint we don't allow you to modify the image as we want to keep thigh control over what is in the rootfs to guarantee stability. However this doesn't prevent you modifying the underlying squashfs image and use your own one. unsquashfs, mksquashfs etc. are your friends here. Have a look at https://github.com/anbox/anbox/blob/master/scripts/create-package.sh to see how our image is constructed.

We may add an easier way in the near future to allow rootfs modifications but that doesn't exist yet. Just a rough idea in my head.

When I typed adb root command. The adb will disconnect with device.

I didn't looked yet what adb root exactly does other than restarting the adb process as root. Something we need to look into.

morphis avatar Jul 26 '17 08:07 morphis

okay thanks for your help! I just want to install busybox in anbox. I plan to analysis the anbox's performance and may write a paper about it.

b10102016 avatar Jul 27 '17 05:07 b10102016

okay thanks for your help! I just want to install busybox in anbox. I plan to analysis the anbox's performance and may write a paper about it.

hi, im new in android dev,etc.if u plan analysis anbox u can easy install busybox with temporary superuser by magisk, check magisk repo for installation guide. hope this can help u. Screenshot from 2020-06-13 02-00-50

johnremboh avatar Jun 12 '20 19:06 johnremboh

I got the same issue. It would be useful to support the adb root command so we can easily use adb pull to get data from directories that require root permissions like /data/data.

baptx avatar Nov 13 '22 21:11 baptx