yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] sga999:
I did look at your example, but my dmesg doesn't look at all like that. I can include the entire dmesg if you like. There is no mention of OTG ever in it at all. I'm just plugging in the regular charging cable into the power bank, and no charging occurs. If you'd like I could capture the dmesg where I plug into the adapter, which works, followed by the power bank, which doesn't. But I don't know if that will be too much to upload. Would that be interesting to to you?

EDIT: There is no "PMIC: BSV set" in my log at all. I tried looking at it live, but I'm doing it in terminal emulator, and it's not easy to follow. But I've also put the entire log to a file, and there's no "PMIC: BSV set".

---------- Post added at 04:58 PM ---------- Previous post was at 04:10 PM ----------

Maybe this is a hint until I can give you a log that tells you more. If I plug into the adapter FIRST, then plug into the power bank, all is well. I can switch back and forth between those chargers many times without any problem. But if I plug into the power bank FIRST, it will never charge the phone with the power bank, though I can switch to the adapter, and it will charge. That is, if I switch back and forth several times between the two methods of charging, adapter will continue to work, power bank will never work.

EDIT: That last part is not always true. I just started with power bank, it failed to charge, switched to adapter, charged, switched back to power bank, charged. So the only "constant" is that the power bank does not work when trying it FIRST. And it MAY work after charging with the adapter. (Improbable, but it seems like putting dmesg into a file made this last test work. I'd have to do it many more times to prove that, and even then, that wouldn't really be "proof").
[Nexus 4 Original Android Development] ziddey:
No idea what you're talking about but if you don't see "PMIC: BSV set" when you plug in your charger, it's a hardware problem. Since you're saying the issue first starts with 3.14, refer to https://github.com/ziddey/mako/commit/10e0d37d2bc3edcf177c00e9a01f801a98822abb. If you do find BSV being set, then I can only imagine some sort of scenario where it would have been detected as a proprietary charger, and so instead it's being forced into host mode. From there, something bizarre happens that causes it to bail out and stop charging. All speculation and I can't fix it unless you can provide logs. And again, if you aren't seeing "PMIC: BSV set" the phone is simply not detecting 5V. User or hardware issue, or some sort of auto-power feature of your battery pack.
[Nexus 4 Original Android Development] sga999:
When you say you have no idea what I'm talking about, I assume you mean the part where I talked about the dmesg going to a file resulting in different behaviors? I probably should have said more to make myself clear. All I meant was that there are cases with software where slowing it down by doing some kind of logging (or many other possibilities) can change things so that behavior is different. I know about this because I was a programmer for 30 years (nothing to do with any of this! I got my first android device more than a year ago, but I've done no programming of it). But just ignore this point because it would be very difficult for me to prove that logging is making a difference in the results.

As I said before, I can probably give you a "full" log where it doesn't work with the power bank followed by when it works with the adapter. But I don't know a way to delineate any of that well enough to show you where each part starts and ends. I have seen the PMIC part with one log I got when using the adapter.

To summarize: Both power banks work perfectly with Franco's kernel (without having to connect to the wall charger first). They also work with your kernel if I connect to the wall charger first, then switch to the power bank. But unless you'd like to tell me exactly how you'd like me to collect the dmesg info for you (cat?, dmesg?), I'm going to give up asking you more about this. Logging isn't something I've ever needed to do until you've asked, so I can't be sure I'm getting all the parts you want.

If someone else reading this has a power bank, maybe they can try this too.
[Nexus 4 Original Android Development] sga999:
This has a sequence of failing with the power bank, success with adapter, success with power bank, success with adapter. I can't tell if there's any way for you to see the first part with the failure.
[Nexus 4 Original Android Development] ziddey:
Re: [OTG] [27MAR13] [DIRTY HACKS] Externally Powered USB OTG (Seeking Devs)

Your powerbank is sending voltage on D+ and D- for compatibility with Apple garbage. Since proper ID pin detection is broken, data pin voltage detection is used to trigger host mode. Of course there is no USB device but instead raw voltage, so it freaks out. Not sure why it charges after plugging into a wall charger but I wouldn't recommend it for now.
[Nexus 4 Original Android Development] EDV11:
Re: [OTG] [27MAR13] [DIRTY HACKS] Externally Powered USB OTG (Seeking Devs)

This is so bad news.

Here is the official confirmation

https://mobile.twitter.com/mreichelt/status/266335592965627904

It is planned, but we won't see it in ours phones. I believe it would need a different controller than the ANX7808 we find in Nexus 4.

Enviado desde mi Nexus 4
[Nexus 4 Original Android Development] alguien24:
Just for you to know, it also works for me in 4.2.1 stock, but in the storage settings the new function doesn't appear. I can see the files with the explorer. What can I do in order to unmount the unit? unmount /usbdisk doesn't work for me
[Nexus 4 Original Android Development] ziddey:
Re: [OTG] [27MAR13] [DIRTY HACKS] Externally Powered USB OTG (Seeking Devs)

umount /storage/usbdisk0

What recovery are you using?
[Nexus 4 Original Android Development] alguien24:
Thanks. I'm using TWRP 2.4
[Nexus 4 Original Android Development] sga999:
Somehow I lost my boot animation so I decided to re-flash with a stock, rooted, deodexd version of 4.2.2. Then I ran ziddey's latest update.zip, and my results are the same as yours. There is no USB STORAGE in Settings - Storage, but other than that, it's working. I'm using twrp 2.3.3.2.

I had not had any problems before this when flashing ziddey's update.zip, but I had already modified framework-res.apk myself (after making changes to Framework Flasher runme.bat). So it's possible that it was never actually working, but I didn't realize that since the storage_list.xml change was already there.
[Nexus 4 Original Android Development] sga999:
For anyone still looking for a cable, I got this one from eBay today (it took 10 days to get here to CA from China). I already have other cables that work, but I liked this one because I don't need to attach any other cable to it. It has male A USB for power instead of female micro.

http://www.ebay.com/itm/Micro-USB-B..._USB_Cables_Hubs_Adapters&hash=item485374f23c
[Nexus 4 Original Android Development] alguien24:
Re: [OTG] [27MAR13] [DIRTY HACKS] Externally Powered USB OTG (Seeking Devs)

That was the one I wanted, I bought this in DX: http://dx.com/p/usb-female-to-micro-usb-male-usb-male-otg-host-cable-black-155233 and in the photo appears like in the eBay one, but it arrived like this:

For me it has an advantage, and is that you don't need to be next to the plug because the wire is longer (but in the case of the power bank would be better the other cable)

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 Original Android Development] sga999:
You're right, the picture on dx.com does look like the cable I got from eBay. But I can't see the difference in the picture you took of your setup. Are you saying the power part of your cable is much longer? I already have a couple of setups with long cables, so I preferred the short one. To each his own!
[Nexus 4 Original Android Development] alguien24:
Re: [OTG] [27MAR13] [DIRTY HACKS] Externally Powered USB OTG (Seeking Devs)

No, I mean the power part is a micro USB female (it doesn't appear in the photo), so you can connect the charger directly

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 Original Android Development] ritchea:
Great find on these. Half of what I paid on ebay and I spent several days searching. At least the cable works for OTG on my N7 so still only need to carry one cable.
[Nexus 4 Original Android Development] forcedairinduction:
have I ordered the right cable?, bit confused about having a male or female powered lead. My 5v power supply has a male outlet.

I've ordered one of these '·********High quality Original USB 2.0 Micro-B HOST OTG Cable

·********It's a standard USB Micro-B HOST Cable , require yourmachine support USB host OTG function .

·********The Micro-B plug is for OTG device.and also for charging(by USB female plug)

·********There is Micro USB B type male power connector, Can charge the extra USB device , link usb flash disk & usb hard disk.

Thanks in advance : )
[Nexus 4 Original Android Development] xpresotw:
can we use usb otg cable without power ?
[Nexus 4 Original Android Development] zaptac:
AW: [OTG] [27MAR13] [DIRTY HACKS] Externally Powered USB OTG (Seeking Devs)

Can you read?

SCNR

Send by me.
[Nexus 4 Original Android Development] punkmexic:
help i installed ziddley zip uding twrp but

I formarted my nexus4 and installed stock ROM then i installed ziddley zip using twrp and i cant see usb options in my storage options but if i go to about phone i see that zidley and franco kernel are installed i downloaded another ’stock' rom but deoxed to see if this could work then installed again ziddley zip but i cant get good results what should i do?
[Nexus 4 Original Android Development] adidas007:
Re: [OTG] [27MAR13] [DIRTY HACKS] Externally Powered USB OTG (Seeking Devs)

It works. Thanks a ton ziddy. I live in India, and Amazon doesn't ship here. Nor was the Y type cable available on ebay. I bought different cables, cut them, and joined accordingly. It's working perfectly!
[Nexus 4 Original Android Development] ritchea:
Could be your cable. If it doesn't do what is needed--supply power and read the storage device--nothing will mount. When you plug in, does it give a message that it's preparing usb storage? You should see notification in at least two areas. When you click on "usbdisk0," you will see the files on your storage drive. You will also see that storage is mounted in the Settings>Storage choice, which, btw, is where you unmount storage.
[Nexus 4 Original Android Development] ziddey:
Yikes, what rom is that? I'm not sure how to deal with the description pointers. The only solution I have for now would be to statically define English descriptions ("Internal Storage" and "USB Storage").
[Nexus 4 Original Android Development] EDV11:
You should check with a file manager. My phone doesnt say anything when I connect the usb drive and it also doesnt appear under storage, but if I go into a file storage program I can navigate through it perfectly. I also tried a mouse and it worked perfectly fine
[Nexus 4 Original Android Development] ritchea:
Hmmm? It is XenonHD, but I honestly thought that's what the storage page looked like on stock 4.2.2. I'm still running stock deodexed on my GNex and it looks the same except for that last area for Storage. On the GNex, I have to use Stick Mount so the flash storage shows up a little differently (/storage/sdcard0/usbStorage).

The screenshot I posted was from Settings>Storage on the N4. Using my ESFile Explorer, going to root, the flash drive is shown beneath "system" folder as "usbdisk." Sorry to have confused you. It also shows in the Storage folder as "usbdisk0" beneath emulated and sdcard0
[Nexus 4 Original Android Development] ziddey:
Oh I was referring to the description for the drive. It reads "Serial Number" instead of "USB Storage." The problem is that a file needs to be modified in framework-res.apk. Normally, this is just compiled when the rom is made. However, when working backwards to add support, the apk is decompiled, the file changed, and then everything recompiled. Instead of explicitly defining the description as "USB Storage," it points to a variable, so that it can display the appropriate language for the user. It's not exactly all too feasible to do the decompiling, modifying, and recompiling all in the update. So instead, I've included a precompiled storage_list.xml and a precompiled zip program (apk is essentially a zip file) in order to simply inject the premade file into the existing apk. But different roms have differing string declarations (added features etc), and it looks like the precompiled file is pointing to a specific string in sequence. So if additional strings are added before "USB Storage" it'll effectively point at the wrong one. For me with newer versions of CM10.1, I'm seeing "Navigate Home."
[Nexus 4 Original Android Development] adidas007:
Ziddy my phone shows usb storage as Internal storage.

I am on the PAC rom.
[Nexus 4 Original Android Development] sga999:
ritchea, just an FYI. I don't know if ES File Explorer will work the same for you, but I can click "Favorites", and /storage/usbdisk0/ is the last entry there. I like doing it that way since it's quicker than going to root and paging down to find usbdisk.
[Nexus 4 Original Android Development] ritchea:
@ziddey, ok, thanks. I was getting a little wonky thinking there was something so different, but it looked the same. Still don't know if any of this helped punkmexic who seemed to be having the problem I had when I was using a cable that didn't work. Then EDV11 indicated that his drive didn't show up at all within the root but was accessible through a file manager. As is evident from my pic, my drive shows up as internal storage also (adidas007). In any case, many scenarios are presented which should help users troubleshoot. Everything is working flawlessly for me so far. A static label may be less confusing ,but most people using this "fix" can probably figure it out without that. Keep working on that portable power source. The kernel works great.

@sga99, thanks for the tip. I'll try it next time. It's actually a lot easier using this fix (even with getting to a power source) than the ravpower wifi disk I bought. I think the device is all right, but the firmware/software is so clunky. I haven't decided to keep it. While it does provide a power bank, I can get more for less in just a power bank.
[Nexus 4 Original Android Development] sga999:
ziddey, I'm unable to use my attached micro sd card for Titanium Backup backups. When trying to use /storage/usbdisk0/TitaniumBackup (which already exists on my micro sd card), Titanium Backup says "This folder is not writable". (I also tried /usbdisk/TitaniumBackup). Should I be able to use an attached OTG device for Titanium Backup purposes?
[Nexus 4 Original Android Development] ziddey:
I haven't looked into it much, but it should be a by-the-book implementation. That said, it sounds like Android 4.2 really clamped down on security as far as storage is concerned. I believe that only the "user" has access to the usb drive (and of course root). I'd imagine this would cause problems for some apps. Are you running titanium backup as root? I haven't used that app in a long time. I'll try to play around with permissions when I have some time in the next few days-- maybe see what happens if I just set the directory to 777 in initrc, but I think vold redoes the permissions on mount so I don't know if it'd have any effect..

punkmexic, you need to be a lot more descriptive than just saying you "cant get good results." I have no idea what you mean by that.

That said, for anyone who isn't seeing the drive under settings->storage, it's because framework-res.apk isn't being modded. Again, there seems to be some issue with the script with some recoveries, so post what you're using. It has been known to work with 6.0.2.3 CWM, both regular and touch. If anyone has some experience in this and knows what's wrong, let me know. I'd love to fix it, but I don't know why it's broken.
[Nexus 4 Original Android Development] BetrayedMartyr:
I flashed it with CMW 6.0.3.0 under rooted Stock 4.2.2 and I see nothing under Settings > Storage.

It works after I flashed your kernel but if I unplug the USB-Stick and reconnect it, it doesn't work anymore. Only after I flashed your kernel again. Mices and Keyboards are always working. It's a bit strange...any ideas?
[Nexus 4 Original Android Development] ziddey:
CWM 6.0.3.0 is not an official release and another member has already reported that the update script is incompatible with that version.
[Nexus 4 Original Android Development] sga999:
Yes, I'm running titanium backup as root. Actually, I think it requires root? It definitely works fine if I point to a folder on /sdcard instead.

---------- Post added at 04:46 PM ---------- Previous post was at 04:37 PM ----------

In addition to replugging the USB stick, did you unplug the OTG cable from the phone and re-plug? I have the same problem that you do if I don't do that.
[Nexus 4 Original Android Development] BetrayedMartyr:
I installed now cmw 6.0.2.3 touch from an other thread. Flashed it again and it still doesn't work.

I unplug both, the stick and the otg cable.
[Nexus 4 Original Android Development] ritchea:
I'm running TWRP 2.4.3 which does show storage as per my earlier screenshots.

@sga999, permissions are not correct and cannot be changed. Why, I have no idea! Obviously I'm a low-to-mid-level user not a programmer. Do you own Root Explorer? I understand you can use that to change owner (to user???) but, again, I have no idea if that will solve issue. I'm searching how to do that through terminal or adb.

EDIT: The flash disk shows up with all permissions for all groups in Rom Toolbox Lite. Even more confused.
[Nexus 4 Original Android Development] sga999:
ritchea, I don't have Root Explorer. But from what ziddey said, it sounds like it's not something that could be done from an app, i.e. it's something he might be able to change...or might not. I did look at Rom Toolbox Lite, and I have no idea why it's showing all permissions checked. I think it's lying!'

ziddey, this may not be interesting to you at all, but since you mentioned initrc, I thought I'd show you this. This is about the Nexus 7, and in his method, this guy did change permissions to 0777. He also has a change to platform.xml (see modification steps 1 and 3).

http://anddisa.blogspot.com/2013/02/native-otg-usb-disk-support-for-nexus-7.html
[Nexus 4 Original Android Development] ziddey:
I came across that post in the past, but eventually settled on what I believe is the "official" way of doing things. That said, that post modifies platform.xml to add media_rw to WRITE_EXTERNAL_STORAGE. I'm not sure what the implications are and if it'd even affect our setup-- First, EXTERNAL_STORAGE=/storage/emulated/legacy for our setup (emulated sdcard). Second, when vold mounts the usbdisk, it assigns /storage/usbdisk0 to group sdcard_rw and not media_rw (the assumption here is that the N7 setup somehow assigns media_rw, which is why it'd be necessary). That or apps have media_rw group permissions and not sdcard_rw (which would indeed require the workaround). In this case, I have a feeling that setting the environment variable MEDIA_STORAGE=/storage/usbdisk0 may cause vold to set the group to media_rw and allow apps write access without "jeopardizing" the emulated sdcard (thereby following Android 4.2 protocol). Are you able to use Titanium Backup to write to /sdcard?

edit:

I just installed Titanium Backup and did some tests. It backs up to /sdcard just fine. I then used it to create a directory inside /storage/usbdisk0 and set it as the backup directory. I made a few backups and they are being written just fine over here.

What are your permissions for /storage/usbdisk0? Mine are system.sdcard_rw 075.

Here is a good article by Chainfire: http://www.chainfire.eu/articles/113/Is_Google_blocking_apps_writing_to_SD_cards_/

So there goes the idea of setting usbdisk as "media storage." Perhaps yours is being set to media_rw? Based on the code, usbdisk should NOT be set to sdcard_rw, and I'm confused why that's happening for me. But that also explains why I have no problems with Titanium Backup or any other app that wants to write to usbdisk. Perhaps someone at CM tweaked the code..

If indeed you find your usbdisk's group as media_rw, adding the permission to WRITE_EXTERNAL_STORAGE may be alright... and is definitely something you can do yourself as long as you remount /system rw. I'll look into incorporating it into the next update after I do a little more research.
[Nexus 4 Original Android Development] sga999:
ziddey, my permissions are nothing for user, rwx for group, rx for other. I can't see the format that you do for the permissions. I can definitely use /sdcard for Tit. B....that's what I was using until I tried it on /usbdisk a few days ago. So like you said, maybe CM made it work for you?

I can try the change for WRITE_EXTERNAL_STORAGE. Is it in platform.xml, just as the guy said about the Nexus 7? Or I could just wait until you make a change...I'd prefer that, of course!
[Nexus 4 Original Android Development] ziddey:
the group for /storage/usbdisk0... sdcard_rw or media_rw?
[Nexus 4 Original Android Development] sga999:
Do I look in /system/etc/permissions/platform.xml to find what you're looking for? Right now, I'm not seeing /storage/usbdisk0, but maybe I'm just missing it.
[Android Q&A, Help & Troubleshooting] dEris:
Where would I go to change the header/title background for each section in the menus... see screenshot.

I've looked in the themes apk and framework-res but cannot find where this background image is stored.

Also, if I change it to an image that has a smaller height, will it automatically change to fit new image?

[ NEXUS⁴ / VANILLA ROOTBOX / APEX PRO / TAPATALK ]
[Sprint HTC EVO 4G LTE] drobe005:
Does anyone know how to get the voicemail to work on cyanogenmod 10.1?
[Sprint HTC EVO 4G LTE] luisrod03:
stock i think is not working upto right now with cm 10.1, im using Google voice for voice mail plus i get the transcript free

HTC EVO LTE
[Sprint HTC EVO 4G LTE] juggaman:
Install this apk. I don't remember exactly where I found it, but did a google search a while back and found this apk on another site. I did not create it and honestly don't know who did, but thanks to them for doing so.

BTW, I'm on CM10.1 and update the nightlies.
[Sprint HTC EVO 4G LTE] scottspa74:
Google voice has sooo many more features.

From my Evo LTE, yup.
[Xperia Z Q&A, Help & Troubleshooting] Trollololol:
what are the apn setting for hspa+ and lte for etisalat in Dubai, UAE

Use this format pls

Name: AT&T HSPA+

APN: phone

Proxy: Blank

Port: Blank

Username: blank

Password: blank

Server: blank

MMSC: http://mmsc.mobile.att.net

MMS Proxy: proxy.mobile.att.net

MMS Port: 80

MCC: 310

MNC: 410

Authentication type: Blank

APN Type: default,supl,mms,hipri

APN protocol: leave as is

Bearer: leave as is
[T-Mobile, Samsung Galaxy SIII] mrnv45:
just got a S3 about a month ago

recently got the ota update..

i tried to root following over 5 different ways to root on a mac. since i dont have a pc or any way around one i wanted to see if anyone has any other options.. no i dont have bootcamp cause my CD/DVD drive went out.
[Galaxy Note II Q&A, Help & Troubleshooting] aboalghool:
hey i was a while ago waiting for the 4.1.2 update of the note 2 n7100 ... i saw a couple of days ago that people are not satisfied with the update and that it is causing problems ,, mainly the " SDS" and others complaining about freezes.

can someone tell me what is the update version that is having this problem??

also have anyone here faced this problem with the update
[Galaxy Note II Q&A, Help & Troubleshooting] yudodis:
if your eMMc chip is vulnerable to sds, the 4.1.2 temporaly fix it,also it fix exynos abuse

The problem i have faced since the update is:

The phone will never go on deepsleep,reducing battery life.

Is highly recommended that if your phone is vulnerable to sds upg to 4.1.2