The on-device shell is super-minimal to keep its size down.  Don't expect it
to do many of these kinds of things. :}

On Fri, Sep 4, 2009 at 12:59 PM, Chris Stratton <[email protected]> wrote:

>
> On Sep 4, 2:54 pm, sdphil <[email protected]> wrote:
> > i would like to add some commands to be executed every time I run "adb
> > shell" (for example "alias ls="ls -l"").  is there a .bashrc or a .sh
> > that i could add that to?
>
> I think you may have more luck (at least on a non-rooted phone)
> injecting this or causing it to be run from the host side.... a did
> some looking at code and experimenting and one standout problem is
> that the adb shell doesn't seem to have $HOME set to anything, so it
> wouldn't seem to know where to look for the script other than in non-
> writeable (and perhaps non-existent) system directories.
>
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to