Click here to Skip to main content
15,849,197 members
Home / Discussions / Android
   

Android

 
AnswerRe: Android USB Detection Pin
Pavlex424-Jan-17 5:33
Pavlex424-Jan-17 5:33 
AnswerRe: Android USB Detection Pin
Pavlex424-Jan-17 5:42
Pavlex424-Jan-17 5:42 
GeneralRe: Android USB Detection Pin
Jochen Arndt24-Jan-17 6:09
professionalJochen Arndt24-Jan-17 6:09 
GeneralRe: Android USB Detection Pin
Pavlex424-Jan-17 7:21
Pavlex424-Jan-17 7:21 
GeneralRe: Android USB Detection Pin
Richard MacCutchan24-Jan-17 7:28
mveRichard MacCutchan24-Jan-17 7:28 
GeneralRe: Android USB Detection Pin
Pavlex424-Jan-17 8:49
Pavlex424-Jan-17 8:49 
GeneralRe: Android USB Detection Pin
Pavlex424-Jan-17 11:49
Pavlex424-Jan-17 11:49 
AnswerRe: Android USB Detection Pin
Pavlex424-Jan-17 11:48
Pavlex424-Jan-17 11:48 
I have searched all files and I didn't find kernel message for USB !!!!

I ran android terminal on my phone, typed cat /proc/kmsg and when plugged in otg cable I got msm_otg f9a55000.usb : host on

I found that message inside msm_otg kernel source:

C++
static void msm_otg_start_host(struct usb_otg *otg, int on)
{
	struct msm_otg *motg = container_of(otg->phy, struct msm_otg, phy);
	struct msm_otg_platform_data *pdata = motg->pdata;
	struct usb_hcd *hcd;

	if (!otg->host)
		return;
#ifdef CONFIG_USB_HOST_NOTIFY
	msm_otg_host_notify(motg, on);
#endif

	hcd = bus_to_hcd(otg->host);

	if (on) {
		dev_dbg(otg->phy->dev, "host on\n");

		if (pdata->otg_control == OTG_PHY_CONTROL)
			ulpi_write(otg->phy, OTG_COMP_DISABLE,
				ULPI_SET(ULPI_PWR_CLK_MNG_REG));

		/*
		 * Some boards have a switch cotrolled by gpio
		 * to enable/disable internal HUB. Enable internal
		 * HUB before kicking the host.
		 */
		if (pdata->setup_gpio)
			pdata->setup_gpio(OTG_STATE_A_HOST);
		usb_add_hcd(hcd, hcd->irq, IRQF_SHARED);
	} else {
		dev_dbg(otg->phy->dev, "host off\n");

		usb_remove_hcd(hcd);
		/* HCD core reset all bits of PORTSC. select ULPI phy */
		writel_relaxed(0x80000000, USB_PORTSC);

		if (pdata->setup_gpio)
			pdata->setup_gpio(OTG_STATE_UNDEFINED);

		if (pdata->otg_control == OTG_PHY_CONTROL)
			ulpi_write(otg->phy, OTG_COMP_DISABLE,
				ULPI_CLR(ULPI_PWR_CLK_MNG_REG));
	}
}


and do I need to create something like this: As code goes by: UEvents in Android - from kernel events to notifications[^]

modified 24-Jan-17 18:02pm.

AnswerRe: Android USB Detection Pin
Pavlex427-Jan-17 23:23
Pavlex427-Jan-17 23:23 
Questionremote android app's source code Pin
AkhilVarghese21-Jan-17 7:34
AkhilVarghese21-Jan-17 7:34 
AnswerRe: remote android app's source code Pin
Afzaal Ahmad Zeeshan21-Jan-17 8:52
professionalAfzaal Ahmad Zeeshan21-Jan-17 8:52 
QuestionAndroid USB OTG Support Enable Pin
Pavlex420-Jan-17 7:55
Pavlex420-Jan-17 7:55 
AnswerRe: Android USB OTG Support Enable Pin
Richard MacCutchan20-Jan-17 8:10
mveRichard MacCutchan20-Jan-17 8:10 
QuestionYour Best Recommended Android Apps & Android Game Apps Tutorials For Complete Beginners Pin
Member 1295678918-Jan-17 11:06
Member 1295678918-Jan-17 11:06 
AnswerRe: Your Best Recommended Android Apps & Android Game Apps Tutorials For Complete Beginners Pin
Richard MacCutchan18-Jan-17 23:14
mveRichard MacCutchan18-Jan-17 23:14 
Questionhow to input excel file into sqlite Android Pin
Member 1294623511-Jan-17 20:59
Member 1294623511-Jan-17 20:59 
QuestionRe: how to input excel file into sqlite Android Pin
Richard MacCutchan11-Jan-17 22:15
mveRichard MacCutchan11-Jan-17 22:15 
AnswerRe: how to input excel file into sqlite Android Pin
Member 1294623516-Jan-17 3:22
Member 1294623516-Jan-17 3:22 
GeneralRe: how to input excel file into sqlite Android Pin
Richard MacCutchan16-Jan-17 3:24
mveRichard MacCutchan16-Jan-17 3:24 
QuestionRe: how to input excel file into sqlite Android Pin
David Crow16-Jan-17 4:21
David Crow16-Jan-17 4:21 
QuestionAndroid Otp Verification Pin
Member 1294449710-Jan-17 22:20
Member 1294449710-Jan-17 22:20 
QuestionRe: Android Otp Verification Pin
Richard MacCutchan10-Jan-17 22:33
mveRichard MacCutchan10-Jan-17 22:33 
AnswerRe: Android Otp Verification Pin
Member 1295601618-Jan-17 2:10
Member 1295601618-Jan-17 2:10 
Questionfull source code for doctor appointment app Pin
Member 1292829230-Dec-16 7:44
Member 1292829230-Dec-16 7:44 
AnswerRe: full source code for doctor appointment app Pin
Ravi Bhavnani30-Dec-16 7:54
professionalRavi Bhavnani30-Dec-16 7:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.