yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] levenum:
How exactly are you trying to catch the key events?

For what you describe, you don't just need to know function names, you need to know with what parameters to call them so this is definitely not the way to go.

If you are coding with C++ search for info on SetWindowsHook. I am not sure of its implementation on CE, but this might be what you need.
[Windows Mobile Development and Hacking General] Tailor:
I'm using VB.Net 2005

I'll have a look at SetWindowsHook, Thanks.

Any ideas for the light sensor, there's a test app that Sony have left on the device, it gives a reading from 0 to 100?

How are they likely to be reading this value?
[Mi 3 General] The Dork Knight Rises:
My conversation with Hugo Barra of Xiaomi may interest you Devs and owners of the Mi3...

[IMG="Conversation"]https://s3.amazonaws.com/pushbullet-uploads/ujz7p6OaDPE-bNN6QTY3OtJSABDxcs0faPd7O3sps1Vq/Screenshot_2014-11-23-23-30-26.png[/IMG]

So I e-mailed him, and asked him if he knows the status of the Lollipop ROM by Ivan which was teased before.

[See THIS POST by me]

This is what he replied.

So I guess we still have to wait a few more months...but if this time, it's true, then I suppose I can live with that...:fingers-crossed:

[NOTE: I know threads exist for both kernel sources and Lollipop discussion, but I couldn't decide where to post this, so instead of posting same thing in both, I made this thread. If mods think that's not the right procedure, please make whatever changes you want. Just that people need to know this!]

EDIT:

An official update regarding kernel sources (at least now they're not ignoring the matter):

http://en.miui.com/thread-66692-1-1.html

Turns out we were right in speculating that the reason they haven't released it is cuz they're still working on the Mi4 using the same sources. :mad:

Here's an extract:

"The reason we have not shared kernel sources yet is actually quite simple. Hugo explained this at the press conference in India last week. The kernel source code for these devices contains a significant amount of source code that will be used in two upcoming models. If we release the kernel source in its current state, we will be revealing more than we would like to about future devices. We will change this going forward, but right now it is a constraint we have to live with. We hope you can understand this position, and we're very sorry for the frustration we may have caused!"

That's right, they're acting like they haven't been violating the GPL all this while...

Wonder what the other device is, though...

(EDIT: Turns out it was the Mi Note!)

UPDATE:

Sources are out:

https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/cancro-kk-oss
[Mi 3 General] purval6300:
So they are going to take more 4-5 months.....
[Mi 3 General] The Dork Knight Rises:
Yup. But if this is TRUE, and they DO release all sources in that time, I can afford to wait...

But it'll be hard, yeah...:(
[Mi 3 General] CharsiBabu:
What the fork?

that *beep* said redmi 1s sources are coming in Q1 2015 and now it turned to mi3.

I was waiting for follow up on issue. he added some "engineer" to conversation & disappeared.

fudge this sheet.
[Mi 3 General] theloneseeker:
Just as i thought.They will only release the kernel source after the miui lollipop.
[Mi 3 General] AmeyMhatre96:
They suggest they dont have complete sources with them, as they are working on it.

Q1 is waay too long they can take uptill april/may :( ,they will release after the sale of mi4 globally
[Mi 3 General] Jonfensu:
Q1 is 1st January to 31st March. Of course they have th kernel sources but the dont wanna released it yet
[Android Q&A, Help & Troubleshooting] tormuk:
My Jiayu F1 autofocus stopped working, it is locked in macro position.

Restoring the factory settings, but that did not help.

Can someone help, other working well?
[Android Q&A, Help & Troubleshooting] tormuk:
Not even Custom Rom installation did not help.

In addition, a front camera focus does not function .

It would be nice if I could help my problem !
[Android Q&A, Help & Troubleshooting] nicoletti.marcelo:
Hi, I´m having the same problem here.

Did not find anything on the internet regarding this, only a topic in a russian forum that I am preety sure that talks about this problem and how to fix it, but the translated version of the instructions did not came very clear, so I did not tried to do.

If someone could understand and do it, and post the instructions in english, I will be very happy.

I cannot post outside links, but to find the topic just search in google for "Jiayu F1 focus". The forum is

4pda.ru
[Android Q&A, Help & Troubleshooting] djborik:
hi guys :)

i solved same problem few months ago. problem is with camera module. lens is screwed out of range. so you need open the phone and manualy screw lens back to the right place.
[Android Q&A, Help & Troubleshooting] tormuk:
Yes, lens is pulled out, i screw it back, but still same problem.

Maybe then I will be without a camera....
[Nexus 6 Q&A, Help & Troubleshooting] weigeloveu1:
i often use this function
[Nexus 6 Q&A, Help & Troubleshooting] error311:
Only nexus device I recall that had FM Radio was the Nexus One, so most likely no chance. We get 6 months free google play music, why would you need FM anyway?
[Nexus 6 Q&A, Help & Troubleshooting] Skripka:
First thing I can think of...local professional and minor league (NFL and NCAA) events can and often do have local TV blackouts in the town the game is hosted at, but there's radio coverage.
[Nexus 6 Q&A, Help & Troubleshooting] tansuperman:
I myself with unlimited data wouldn't care, but for folks who don't have unlimited, our carriers want us to use music streaming services to burn our data. FM wouldn't use data or give extra money to the carriers . FM is very useful and isn't that bad for the cost conscious.
[Nexus 6 Q&A, Help & Troubleshooting] danarama:
Either way though it is not possible.
[Nexus 6 Q&A, Help & Troubleshooting] roebling:
Mobile data is $10 per gig...
[XDA Assist] momodivd:
my device wont turn on after i installed the 4.4.2 official kitkat which is flashable zip with twrp recevory i had forgotten to wipe system , data and chache . after i finished it wouldn't boot to system it just shows the lg logo and repeat it continuously without shows the system , unfortunately , the rom is official , so it delete the recovery , now i couldn't enter the recovery and i have to wait the buttery to be embty by itself in order to turn off .:confused::confused::confused::confused::confused: plse hlp :mad::mad::mad::mad:
[XDA Assist] Negan:
If all you're trying to do is power it off and enter recovery, you can long press the power button for about 10 seconds and it will power off.

This thread may be if interest

http://xdaforums.com/showthread.php?p=48361867#post48361867

Good luck
[XDA Assist] Negan:
Thread closed
[Verizon LG G3] vladimirtm:
how i can the usb plug in animation when im goin to charge my phone like in the cloudy rom.as soon i you plug in you can see usb picture apear on the screen i want to have this on jasmine rom 3.0 thanks
[Verizon LG G3] android-incredible:
Check this out . flash in recovery.
[Android Apps and Games] Koulis2000:
Introduction

Screenshots

Features

Upcoming Features

Changelog

Downloads

More Info

For Themers

Many thanks to the following

XDA:DevDB Information

Themattic, App for the Android General

Contributors

Koulis2000, Chirag_Galani

Version Information

Status: Stable

Created 2014-11-23

Last Updated 2015-08-02
[Android Apps and Games] Koulis2000:
Screenshots
[Android Apps and Games] Koulis2000:
CMTheme Families included

For Themers
[Android Apps and Games] Koulis2000:
Changelog
[Nexus 9 Accessories] MWFD:
As the title says, I want to charge my Nexus 9 while using a keyboard/mouse and other peripherals that I would have connected to the Nexus 9 through a USB hub. I know it is not always possible to charge through the hub, so I was thinking about something like a 'micro USB splitter" that expands the micro-USB port into 2 micro-USB ports: one for the charger that comes with the Nexus 9, and the second port for a OTG cable/usb hub/etc. Anyone have any thoughts on this?

I did read this post here for the Nexus 7 but not sure if the same is true for the Nexus 9.or if any additional options existed for the 9. Ultimately, I guess I'm wondering if it is unrealistic to expect to find something that charges the device at the same time as using a hub/OTG cable without too much modding or hassle? My device is rooted and I've flashed some mods and tweaked some things on previous devices I've had, but am by no means an expert so I would hope to keep the hacking/modding for something like this to a minimum, if possible. Plus, there's an outside chance I may return the Nexus 9 in the next week so I wouldn't want to get too crazy until I knew for sure I'd be keeping it.

I understand that a specific kernel with certain capabilities may be needed, but I'm unsure how to find out which kernel would work and if it would be compatible with stock ROM or CM12 (when it comes out). Any help would be greatly appreciated. Even if it's a pipe dream, I'd at least know not to continue to waste my time looking for a solution that doesn't exist
[Nexus 9 Accessories] lfrst05:
I tried this one a few days ago but it did not work: https://sites.google.com/site/sonicboomworld/my-projects/otg-and-charging

Maybe it's possible with the right resistor value.

Edit:

Mod for Nexus 7 - needs kernel support:

https://mehrvarz.github.io/usb-host-mode-power-management-nexus7/
[Nexus 9 Accessories] MWFD:
Thanks for the reply - is this kernel still being supported by the dev and is it confirmed working on Nexus 9?
[Nexus 9 Accessories] lfrst05:
I don't know as i do not own a Nexus 7.

But even if he still supports this kernel it would not help much for the Nexus 9:

A kernel is very hardware specific and the OTG changing issues is even more hardware specific.

There is absolutely no chance that you can simply use the N7 kernel on the N9.

One of the amazing kernel developers (who owns a N9) here at XDA would have to look at it.

Generally I think for "OTG + charging" to work the USB chipset on the device has to support it and/or you have to find out how you could trick the device into enabling this mode (with a certain resistor on the USB connector and/or with a kernel modification).

The bad thing is that no device seems to support the official "USB Accessory Charger Adapter" specification. (see section "OTG micro plugs" here: https://en.wikipedia.org/wiki/USB_On-The-Go for details)
[Nexus 9 Accessories] saadi03:
Just to give you more information, there was a nexus 7 kernel by flar2 called ElementalX which had OTG + charging support. He is working on ElementalX for Nexus 9 as well, and he said he may or may not add support for it. If you and maybe others are interested, I'm sure that it will get added upon request.
[Nexus 9 Accessories] mkygod:
The company I work for is developing a OTG cable that does exactly that: lets you charge your phone/tablet while using a USB peripheral.

We are testing it in the UK market currently, but not selling in the US at the moment. You can check it out here: http://www.amazon.co.uk/Sansys-Char...F8&qid=1417298449&sr=8-1&keywords=usb+otg+mlc

We were thinking about doing a kickstarter or indiegogo for it, but not sure the amount of interest in a niche device like this.
[Nexus 9 Accessories] lfrst05:
Can you confirm that it is working on the Nexus 9? (and/or the Nexus 5)?

If it is, I'll order one immediately. I've been looking for such a thing since I had my Galaxy S2.
[Nexus 9 Accessories] mkygod:
I can't confirm that it will work on the Nexus 9, but my partner from China is sending me a sample so I can try it out. I have a Nexus 9 and 5 also, and they'll be the first devices I will test it on.

We've also sent a couple out to some Youtube reviewers as well, so there may be a video review on them soon.
[Nexus 9 Accessories] mkygod:
We just put up an Amazon US listing for this cable if any of you in the states want to try it out: http://www.amazon.com/dp/B00OLKFR44/

I should have one in hand in the middle of the week to test out.
[Nexus 9 Accessories] saadi03:
I'm really excited to get my hands on one of these! let me know if it works.
[Nexus 9 Accessories] eded333:
Sweet, this sounds awesome, let us know if it works :fingers-crossed:
[Nexus 9 Accessories] TSman74:
This arrived from Amazon today. Unfortunately I can't get it to work. When the micro usb is plugged into the N9 it lights up blue. At that point I'm able to mount a thumb drive, use a mouse and Playstation controller. But once the other end is plugged into a charger the light goes off and whatever is connected stops working. The N9 begins to charge at that point. If plugged into my PC, same thing.

Note: the blue light goes off when other end is plugged in regardless of if anything else is in use.

BTW, running elementalX kernel and Lollipopalooza rom.
[Nexus 9 Accessories] saadi03:
I've heard some people say in certain other situations with OTG + charge, you need to plug everything in first, then plug the OTG cable into the device. Try that and see if it works?
[Nexus 9 Accessories] TSman74:
Gave it a shot with this method but still a no go. Tried it on my phone as well with no luck.
[Nexus 9 Accessories] eded333:
Thats a bummer, thanks for the info.
[Nexus 9 Accessories] happy73093:
Would we happen to need a kernel that supports simultaneous charging and data transfer? I bought a usb y cable and that only allows me to use one or the other. Which sucks :(.
[Nexus 9 Accessories] saadi03:
Some devices have been known to work with only modified OTG cables such as galaxy tablets and experia phones.
[Nexus 9 Accessories] happy73093:
What would this modification be?
[Nexus 9 Accessories] mkygod:
I finally got a chance to test out these cables. I thought my first cable was busted so I ordered a 2nd one.

I'm VERY sorry to report that this cable does NOT support USB OTG AND CHARGING AT THE SAME TIME. It is not just your device.

Apparently, there was some miscommunication between me and by business associate in China that lead me to believe that this cable would function this way but it only functions as a USB OTG OR CHARGER CABLE. Language barrier didn't help since I do not speak Chinese and he does not speak English very well. If you read the description, the functionality of this cable is not very clear and obviously written by someone with English as a second language. And also, I can see how the photos can be misleading as well. He went and listed this product on our Amazon account to sell before he even sent me a sample for me to test out and I'm kinda mad at him for doing that.

I was pretty excited at the prospect of it doing OTG and charging at the same time, but now im dismayed that this cable cannot do it. This whole thing was a waste of time to try to bring a product like this to the US that bares little benefit other than being a 2 in 1 cable that can replace a regular USB OTG cable and a Charging cable (albeit a very short charging cable). Sorry that I got your hopes up guys :(

I do want to clarify exactly what this cable does though: Basically all it does is switch from Charging mode to USB OTG mode depending on how you have it plugged in. If you plug the cable into the mobile device only, the blue light will turn on, letting you know that you can use the USB OTG port. However, once you plug the other end of the cable into a charger, the blue light will turn off, and the cable goes into charging mode. The USB OTG port will not work or light up again until you remove the cable from your charger.
[Nexus 9 Accessories] hopbot:
hey there everyone, i'm trying to understand this a bit more. i have the same cable, but my understanding is that it wont work unless the kernel supports it. does anyone know if this is possible to actually fix in the Nexus 9 kernel? i really need this for a project
[Nexus 9 Accessories] USBhost:
ok guys need some help

it looks like the nexus 9 kernel does support it

but its disabled https://github.com/USBhost/FIK/blob/master/drivers/usb/phy/tegra-otg.c

can anyone who has a Y-cable

can you give me a logcat and kernel log

of when you plug in power

adb logcat
adb root
adb shell cat /dev/kmsg
[Nexus 9 Accessories] lfrst05:
What kind of Y-power cable?

The special one from mkygod's amazon listing, a cable like this one (https://sites.google.com/site/sonicboomworld/my-projects/otg-and-charging), or a generic OTG-cable with an external power source connected to the +/- cables?

I do not have the one from mkygod but I can solder the other ones together if you tell me what exactly you need.

Edit: Is it a problem if I'm running CM12? Does it have to be a stock ROM?
[Nexus 9 Accessories] lfrst05:
I soldered myself a Y cable based on this schematic:

My N9 is running the latest CM12 nightly with stock CM12 kernel.

As a power source I used the original N9 charger.

Y-cable + client device (flash drive) attached, no power source:

logcat: http://pastebin.com/AWtikAGb

kmsg: http://pastebin.com/tG3Jw2Wv

Y-cable + client device + power source:

logcat: http://pastebin.com/mWyAk5GQ

kmsg: http://pastebin.com/hU8idb8S

kmsg when disconnecting the cable: http://pastebin.com/jzxvW0a8

Y-cable + power source, no client device:

logcat: nothing

kmsg: http://pastebin.com/hSSRDB7g

Y-cable + battery pack as power source, no client device (message: "VBUS overloaded, input fault"):

logcat: nothing

kmsg: http://pastebin.com/WMRTNiD5

Let me know if I should try anything else!
[Nexus 9 Accessories] USBhost:
Thanks man
[Nexus 9 Accessories] idelgado782:
Hopefully you can get it figured out or one of the other devs can work with you on getting it enabled. Thats definitely something I really am looking forward to.

Takin Notes..
[Nexus 9 Accessories] BmoreTHOR:
Anyone have any updates on this issue? I'm looking to use the n9 for a car install and this is the last thing holding me back
[Nexus 9 Accessories] toopy:
I also patiently await an answer to this topic, also can I ask has anybody had any luck mounting 2 external drives at once? So I can copy photos off my cameras SD cards to an external HDD without having an intermediate step.
[Nexus 9 Accessories] ramon.hugo:
Nexus 7 2013 OTG and charging at the same time

I have a Nexus 7 2013 rooted, default kernel, and I wanted to charge and use the mouse and keyboard - and other stuff - all at the same time.

I've tried a lot of things, ****ed up my Nexus a few times, and then the great discovery: I use a multi-reader and lots of stuff plugged into a usb-hub and the Nexus just charges.

I use it as my computer. The thing is, it does not say its charging, but just charges.

Then you just plug a wireless Miracast and you have a full computer.

To be clear, it charges while been used, I keep using it, and stays at 100% of battery.

I used it with external HDs plugged in.

Soon I will post exactly the equipment I'm using.

May will work exactly the same way to Nexus 9 - please post about it when I reach the needed number of answers to post my topic.
[Nexus 9 Accessories] jan.nau:
Charging in host mode works fine with the small kernel patch (branch android-tegra-flounder-3.10-lollipop-mr1 in google's tegra kernel repo) below. I haven't noticed anything but as disclaimer: the patch may destroy the device and burn your house down!

jannau.net/2015-06-20_Nexus9_USB_charge_in_host_mode_Y_cable.patch

From 47a99a345e6b16731527150ff7ba80d556473725 Mon Sep 17 00:00:00 2001
From: Janne Grunau <j@jannau.net>
Date: Sat, 20 Jun 2015 20:19:10 +0200
Subject: [PATCH 1/1] flounder: support charging in host mode

Tegra usb phy driver is already prepared to charge the device over the
otg port in host mode.

There seems no way to pass the support_y_cable through the devicetree.
---
arch/arm64/boot/dts/tegra132-flounder-generic.dtsi | 4 ++++
drivers/usb/phy/tegra-otg.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/tegra132-flounder-generic.dtsi b/arch/arm64/boot/dts/tegra132-flounder-generic.dtsi
index 2be9991..dc16c6d3 100644
--- a/arch/arm64/boot/dts/tegra132-flounder-generic.dtsi
+++ b/arch/arm64/boot/dts/tegra132-flounder-generic.dtsi
@@ -508,6 +508,10 @@
regulator-consumer-supply = "usb_bat_chg";
regulator-consumer-device = "tegra-udc.0";
};
+ c2 {
+ regulator-consumer-supply = "usb_bat_chg";
+ regulator-consumer-device = "tegra-otg";
+ };
};
};

diff --git a/drivers/usb/phy/tegra-otg.c b/drivers/usb/phy/tegra-otg.c
index b668799..d133eee 100644
--- a/drivers/usb/phy/tegra-otg.c
+++ b/drivers/usb/phy/tegra-otg.c
@@ -739,7 +739,7 @@ static int tegra_otg_conf(struct platform_device *pdev)
tegra->turn_off_vbus_on_lp0 =
pdata->ehci_pdata->u_data.host.turn_off_vbus_on_lp0;
tegra->support_y_cable =
- pdata->ehci_pdata->u_data.host.support_y_cable;
+ true;//pdata->ehci_pdata->u_data.host.support_y_cable;
tegra->y_cable_conn = false;
tegra->support_pmu_vbus = pdata->ehci_pdata->support_pmu_vbus;
tegra->id_det_gpio = pdata->id_det_gpio ? pdata->id_det_gpio : -1;
--
2.4.4
[Nexus 9 Accessories] USBhost:
can you pm me you email so i can author it to you

on github
[Nexus 9 Accessories] jan.nau:
it's in the patch. just apply the patch with

git am 2015-06-20_Nexus9_USB_charge_in_host_mode_Y_cable.patch
[Nexus 9 Accessories] USBhost:
o right nvm
[Nexus 9 Accessories] FD_:
Very cool! :good::)

Is this the theoretically required patch or have you successfully tried charging while using usb otg after applying the patch? :fingers-crossed::laugh:

What kind of cable did you use if you successfully tried it?
[Nexus 9 Accessories] jan.nau:
Verified to charge slowly (probably 500mA) with a random USB OTG Y-cable from Amazon. Battery actually discharges under heavy CPU load but recharges when CPI is idle.
[Nexus 9 Accessories] macmpi:
Seems great!

Sorry for noob question though: how do I do that on my stock Nexus 9 under 5.1.1?

Do I have to root, compile a new kernel (ouch!) or install another kernel (which one)?

Thanks for any step by step directions.
[Nexus 9 Accessories] irishboym4:
I'm also trying to figure how to do this on my n9. As far as the slow charge goes, fast charge over USB must be enabled. Then it will work. Though a good charger is needed. My stock charger sometimes has issues charging with the screen on. I use my oneplus charger and it can handle it.
[Nexus 9 Accessories] mikereidis:
Timur reports he is working on an OTG charging kernel for N9: https://timur.mobi/timurs-kernel-n7-2013/
[Nexus 9 Accessories] USBhost:
android M support's it

no need to add it
[Nexus 9 Accessories] mikereidis:
Yeah, I'm running M and finally got OTG charging working last night.

Previous tests didn't seem to work so I wonder if connection order might be an issue.

As reported, the charging state is not indicated on the N9, but I did see charge level rise to 100%.

Now I'm wondering if there is some reason Google is enabling OTG charging; I don't think any Nexus stock kernel has supported it until this M preview.

Google may have a specific application in mind, possibly even what I'm doing, putting an Android Auto Headunit app on a tablet.
[Nexus 9 Accessories] CZ Eddie:
The Lava USB OTG charger works great on my Galaxy tablet.

I'm thinking of going with a Nexus 9 (willing to trade my Tab S 8.4" T705 LTE) and hopefully the Lava will work on the Nexus 9 also.

http://www.lavalinkstore.com/catalog/index.php?main_page=product_info&products_id=85
[Nexus 9 Accessories] CZ Eddie:
Bummer. USB-OTG charging is not working on the Nexus 9 running stock 5.1.1 or any of the various kernels and ROM's I've tried so far.

It does charge on Android M Preview 2 though (even though it doesn't tell you it's charging). But not all apps are working in Android M yet.
[Nexus 9 Accessories] CZ Eddie:
USB OTG charging is working in 5.1.1 ROM's after flashing ElementalX's Android M kernel. Which even though it's an "M" kernel, it's working fine on all 5.1.1 ROM's I've flashed so far. Pretty cool.

http://xdaforums.com/nexus-9/orig-development/kernel-elementalx-n9-0-02-alpha-t2931657

I think it's also working on USBhost's FireIce 5.1.1 kernel. Though I didn't spend much time testing.

http://xdaforums.com/nexus-9/orig-development/kernel-fire-ice-t2930451