[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87haknjtbl.fsf@nemi.mork.no>
Date: Thu, 07 Mar 2013 13:19:26 +0100
From: Bjørn Mork <bjorn@...k.no>
To: "Fangxiaozhi \(Franko\)" <fangxiaozhi@...wei.com>
Cc: Dan Williams <dcbw@...hat.com>,
Greg KH <gregkh@...uxfoundation.org>,
"Linlei \(Lei Lin\)" <lei.lin@...wei.com>,
"linux-usb\@vger.kernel.org" <linux-usb@...r.kernel.org>,
"linux-kernel\@vger.kernel.org" <linux-kernel@...r.kernel.org>,
"Xueguiying \(Zihan\)" <zihan.xue@...wei.com>,
"Yili \(Neil\)" <neil.yi@...wei.com>,
Wangyuhua <yuhua.wang@...wei.com>,
"Huqiao \(C\)" <huqiao36@...wei.com>,
"balbi\@ti.com" <balbi@...com>,
"mdharm-usb\@one-eyed-alien.net" <mdharm-usb@...-eyed-alien.net>,
"sebastian\@breakpoint.cc" <sebastian@...akpoint.cc>,
stable <stable@...r.kernel.org>,
Josua Dietze <digidietze@...isberghof.de>
Subject: Re: 答复: [PATCH] USB: storage: fix Huawei mode
switching regression
"Fangxiaozhi (Franko)" <fangxiaozhi@...wei.com> writes:
> As far as I know, except switching in kernel, there isn't any
> mode switch solution on Android now. Do you have any good ideas
> for the mode switch on Android system?
Josh, the usb_modeswitch maintainer, is also maintaining this Android app:
http://www.draisberghof.de/android/pppwidget.html
That's one possible solution. According to him, there is also
"a number of Chinese Android tablets (from the A10 family) that are
supporting a number of 3G modem sticks by providing usb_modeswitch
on-board, which is obviously working well."
That's another possible solution.
Userspace mode switching on Android should not be any more difficult
than userspace mode switching on any other Linux distro. You unbind the
usb-storage driver and submit your bulk message. Looking at a sample
Android device (Galaxy S3 running the default image):
shell@...roid:/ $ cat /proc/version
Linux version 3.0.31-836582 (se.infra@...-97) (gcc version 4.4.3 (GCC) ) #1 SMP PREEMPT Tue Jan 15 14:17:21 KST 2013
shell@...roid:/ $ ls -l /dev/bus/usb/001/
crw-rw---- root usb 189, 0 2013-02-19 19:51 001
crw-rw---- root usb 189, 2 2013-03-07 09:01 003
it looks like your app will need to be a member of the "usb" group to do
this. I assume there is a way for an app to request such permissions in
Android. Josh has obviously managed to get it.
Bjørn
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists