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

odd warnings when running /data/y/yocdroid-run #1

Open
jarkkojs opened this issue Dec 12, 2013 · 3 comments
Open

odd warnings when running /data/y/yocdroid-run #1

jarkkojs opened this issue Dec 12, 2013 · 3 comments

Comments

@jarkkojs
Copy link

I get:

root@android:/ # /data/y/sbin/yocdroid-run                                     
/data/y/sbin/yocdroid-run[13]: env: not found
/data/y/sbin/yocdroid-run[13]: sed: not found
root@localhost:/# sed

Works great otherwise and sed and env are available.

@andyross
Copy link
Owner

You need busybox sed/env installed on the PATH. That's a known limitation right now. And while this will work to get you the shell, what you won't get if these are missing is the set of environment variables needed by Android processe, so some of the integration (e.g. the ability to run Dalvik processes like "am", "pm", "app-process", etc...) that you expect won't work.

@jarkkojs
Copy link
Author

Right. Sorry for not answering this earlier. I worked around it by creating symbolic links to sed and env from /data/busybox to /system/bin.

@andyross
Copy link
Owner

Really the right solution would be to write a tiny "env" replacement using the asm syscall stubs used for chroot-static and yocdroid-mountd. It wouldn't be hard, I just haven't found the time, and all the systems I care about have a busybox handy (and even for the ones that don't, the script allows you to pull a prebuilt one from e.g. http://busybox.net/downloads/binaries/latest/ and drop it in /data)

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