yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] redeyedjedi:
Its a vold from cm11 it supports otg automount and NTFS rw......works fine on any kitkat ROM I've tried.....should work fine on stock.
[Nexus 7 Android Development] _crue_:
RE DVB-T

02-13 10:06:16.060: W/dalvikvm(2129): threadid=1: thread exiting with uncaught exception (group=0x4181dba8)

looks like someitng wrong, I can not be sure that it's drivers issues, but that's what I've got

02-13 10:06:16.060: W/dalvikvm(2129): threadid=1: thread exiting with uncaught exception (group=0x4181dba8)
02-13 10:06:16.060: E/AndroidRuntime(2129): FATAL EXCEPTION: main
02-13 10:06:16.060: E/AndroidRuntime(2129): Process: com.chrulri.droidtv, PID: 2129
02-13 10:06:16.060: E/AndroidRuntime(2129): java.lang.NullPointerException
02-13 10:06:16.060: E/AndroidRuntime(2129):	at com.chrulri.droidtv.ScanActivity.setEnabled(ScanActivity.java:885)
02-13 10:06:16.060: E/AndroidRuntime(2129):	at com.chrulri.droidtv.ScanActivity$AsyncScanTask.onCancelled(ScanActivity.java:932)
02-13 10:06:16.060: E/AndroidRuntime(2129):	at android.os.AsyncTask.onCancelled(AsyncTask.java:405)
02-13 10:06:16.060: E/AndroidRuntime(2129):	at android.os.AsyncTask.finish(AsyncTask.java:630)
02-13 10:06:16.060: E/AndroidRuntime(2129):	at android.os.AsyncTask.access$600(AsyncTask.java:177)
02-13 10:06:16.060: E/AndroidRuntime(2129):	at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
02-13 10:06:16.060: E/AndroidRuntime(2129):	at android.os.Handler.dispatchMessage(Handler.java:102)
02-13 10:06:16.060: E/AndroidRuntime(2129):	at android.os.Looper.loop(Looper.java:136)
02-13 10:06:16.060: E/AndroidRuntime(2129):	at android.app.ActivityThread.main(ActivityThread.java:5017)
02-13 10:06:16.060: E/AndroidRuntime(2129):	at java.lang.reflect.Method.invokeNative(Native Method)
02-13 10:06:16.060: E/AndroidRuntime(2129):	at java.lang.reflect.Method.invoke(Method.java:515)
02-13 10:06:16.060: E/AndroidRuntime(2129):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
02-13 10:06:16.060: E/AndroidRuntime(2129):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
02-13 10:06:16.060: E/AndroidRuntime(2129):	at dalvik.system.NativeStart.main(Native Method)
[Nexus 7 Android Development] NoXXX:
Well looks like the vold patch didn't work for me. Didn't try m kernel yet.

Отправлено с моего HTC Butterfly s через Tapatalk
[Nexus 7 Android Development] redeyedjedi:
Well, its a full binary not just a patch.....it definitely works, so there must be some other reason...... Where/if the mount points are set in init.rc is the next thing to check. So mkernel ramdisk or any CM ramdisk should work. I don't even play with full stock but otg mounting is not a stock feature IIRC, it has to be added to a stock ROM. I'm suggesting mkernels ramdisk because it is set up to run with just about every ROM out there. If flashing mine on top of his doesn't work then the patch for DAC has caused problems.....

Because at this point you will have replaced every single rom component needed for otg. I hope it works cause I'm out of ideas. You do have fixed install mode off or power applied via otg y cable right?
[Nexus 7 Android Development] redeyedjedi:
I don't get these errors when I run a scan. When you scan, does the app crash? Or does it do a whole scan and not find anything?... Can you plug in your dvbt and post a "dmesg"? And a "lsmod"? Does your remote control work?
[Nexus 7 Android Development] NoXXX:
Tried to flash mkernel, then yours ontop of it and no luck :(

I have FI via OTG Y. Looks like I should rollback to USB ROM for now.
[Nexus 7 Android Development] vovaxxxx:
redeyedjedi, could you help with cameras?

here you wrote http://xdaforums.com/showpost.php?p=43823556&postcount=32:

***You will also need to switch the camera app back to the front camera before you exit the app if your gonna unplug the webcam. Otherwise, the app will just crash until you plug the webcam back in. Makes sense right??

In my case, I want to exclude totally front cam.

I use a usb logitech c525 with nexus 7 2012 wifi (throught OTG) as a dash cam, but dash programs that I use (i.e. Videoreg in google play) start to work with front cam (And I should switch manually in programs to usb webcam after each restart)

What I should type or do for totally disable (off) a front camera and all programs are adressed to usb web cam?

I use now usb rom CM 10.1
[Nexus 7 Android Development] redeyedjedi:
I have another file that disables the front cam, and then you can hotplug a webcam at will and it will act as tho IT is the front cam. You can also plug a second one and it will act as rear. The only issue is that it displays the camera in landscape mode, so if you need portrait mode it will be sideways, but in landscape mode it will function exactly how you are asking. It was used on the old gtab couple years ago, but it still works. Someone here renamed it for nexus7, let me go find the link, its been awhile.
[Nexus 7 Android Development] redeyedjedi:
uggghh! Hey crue, you run stock 4.4.2, do you have otg??? Even after patches?
[Nexus 7 Android Development] vovaxxxx:
that will be great! cus I'm totally bored with this switching... And I use it only in landscape mode, of course.
[Nexus 7 Android Development] redeyedjedi:
Good,this is what you want.

http://xdaforums.com/showthread.php?t=2100452

He links to my original post but his is already renamed for nex7, and if you are on cm (not stock) then you can ignore all the permissions, just copy the file over and reboot. Webcam does not have to be plugged in at boot, and yes every app will record video and take pictures and you can Skype. The entire android system will act as tho it ( webcam) is built in.
[Nexus 7 Android Development] vovaxxxx:
redeyedjedi, after that programs say that there is no camera... I changed camera.so, reboot nexus - no cam. Typed in emulator su .... reboot. Still no camera.

My ROM timur's usb ROM on CM 10.1 (4.2.2.)

It's weird, but how to manage with it?
[Nexus 7 Android Development] redeyedjedi:
Make sure the .so file has same permissions as the others in the folder..... If you enter those permission commands in terminal, it will work UNTIL the next reboot, not after...... So enter those permission commands, test it. If it works, make a gscript or init.d script to enter the perms for you at boot. I seem to remember Timur saying he removed those permissions because its illegal in Germany to record moving vehicles.
[Nexus 7 Android Development] NetFluke:
Deep sleep fix

[MENTION=4035939]redeyedjedi[/MENTION]

After long debugging the solution for deep sleep fix was found - please see attached files. Turned out that SMB charger was not firing up cable_type_detect() routine on time while waking up from LP0 sleep. Fix is in static int smb347_resume(struct i2c_client *client) routine and introduction of 2 new variables aimed at detection of improper sleep state.

Hope it helps.
[Nexus 7 Android Development] redeyedjedi:
R820t tuners on JB/kitkat..........confirmed!

Http://imageshack.com/a/img534/1915/zirc.jpg

tested by xda member vincibb, thanks!

Kernel update soon.
[Nexus 7 Android Development] _crue_:
waiting :) for it

I'm testing now new version of my remote inputs :) now Bluetooth compatible.

if some one :) interesting in this except me :)))
[Nexus 7 Android Development] redeyedjedi:
Its the same modules you already have......just need to make an init.d script with the following:

insmod /system/lib/modules/dvb-core.ko

insmod /system/lib/modules/dvb-pll.ko

insmod /system/lib/modules/rc-core.ko

insmod /system/lib/modules/dvb-usb.ko

insmod /system/lib/modules/dvb-usb-rtl2832.ko

insmod /system/lib/modules/rc-ati-tv-wonder-hd-600.ko

echo "Waiting for device"

sleep 5

cd /

mkdir /dev/dvb

chmod 777 /dev/dvb

mkdir /dev/dvb/adapter0

chmod 777 /dev/dvb/adapter0

cd /dev/dvb/adapter0

ln -s /dev/dvb0.frontend0 frontend0

ln -s /dev/dvb0.demux0 demux0

ln -s /dev/dvb0.dvr0 dvr0

ln -s /dev/dvb0.dvr0 dvr0.ts

chmod 777 /dev/dvb*
[Nexus 7 Android Development] Vilen77:
Placed this in init.d and everything works well.

Many thanks redeyedjedi!!!

A lot of people will be happy to see your kernel's feature on Nexus 7 (2013) too!
[Nexus 7 Android Development] _crue_:
[MENTION=4035939]redeyedjedi[/MENTION] will you add [MENTION=5061970]NetFluke[/MENTION] fix?
[Nexus 7 Android Development] redeyedjedi:
Im pretty sure I will, just need to make sure it doesnt affect purity rom. At least in my tests the deep sleep bug happens in aokp and cm roms.... but i get normal deep sleep with a regular cable on purity rom already. I was wanting to know what kind of results you get on pure stock, do you have this bug? I will surely leave the code in if it has no adverse effects.... but dont want to until I have had time to test it. Im wanting to release public zips that are for the most part daily-drivers.....except for any new stuff. Im messing with all this today with some unexpected free time... so Ill prolly push something in a day or two. running a build right now with all the netfluke changes..... still need to make sure I have everything right.

did you get to watch any dvb tv yet??
[Nexus 7 Android Development] _crue_:
updated Remote Inputs Manager

http://xdaforums.com/showpost.php?p=50408091&postcount=52

added Bluetooth support :)
[Nexus 7 Android Development] NoXXX:
Hey mate! What about mass storage support while using USB dac patch? I couldn't get it to work. What about you? Does USB sticks are working for you?

Отправлено с моего SM-N9005 через Tapatalk
[Nexus 7 Android Development] _crue_:
I didn't use :) any external storage, it's pretty enough internal for me :)

I've creating removable frame for tablet,

in any case :) it's kernel feature I guess

---------- Post added at 11:48 PM ---------- Previous post was at 11:40 PM ----------

nope, looks like we already switched to DVB-TV2
[Nexus 7 Android Development] NoXXX:
Too bad :(
[Nexus 7 Android Development] _crue_:
but :) I will look maybe I will add support for external flash drive :)

I will try later today how it works.
[Nexus 7 Android Development] NoXXX:
thanks! that's the only problem I had with 4.4.2 on my Nexus 7 car install.
[Nexus 7 Android Development] tjl_48:
Is this like on USB-Rom where it has to be connected to a OTG cable for deep sleep to work?

I am little confused going through this thread. I downloaded BSZKitKat Odex which I believe is stock. Flashed the V3 Beta of this kernel and installed the power event manager from a few pages back. Am I missing anything? This kernel with the power event manager work with any 4.4 ROM's?
[Nexus 7 Android Development] redeyedjedi:
On cm roms.....it behaves identical to usbrom, it deep sleeps like normal, but while charging with regular cable it wont sleep.....with otg y cable it will deep sleep and charge.

On a non cm rom, like purity, deep sleep works fine regardless of the cable you use.

Netfluke has a fix for cm based roms......will prolly be in next release.

This kernel and pwrmngr works fine on all kitkat roms.

The only current issues im aware of: Because of selinux and SU you can only use easycap devices with the same SU as cyanogenmod. And one user reports no otg on stock kitkat if dac patch is applied, and lastly, cifs works on cm roms, but not stock kitkat.....there is a patch for this but it breaks cifs on cm roms so I dunno if im gonna add it.
[Nexus 7 Android Development] NetFluke:
Already fixed in http://xdaforums.com/showpost.php?p=50417390&postcount=499
[Nexus 7 Android Development] rans0m00:
I have always enjoyed having my Nexus as my car stereo but was stuck using usbrom because of the ease of volume controls. Can someone direct me as to how to get them back on the navigation or status bar? Not in the notification... not a widget... something that is always there and I don't have to do extra taps to get to (kind of a pain when driving)
[Nexus 7 Android Development] gregthomas129:
Do you mean on any rom besides USBRom or a 4.4 rom? I installed AOKP ROM (4.2.2) with Timur's kernel for this very reason. AOKP has a customizable navbar.
[Nexus 7 Android Development] rans0m00:
Yep just like USB rom. That is what I am switching from. I liked it but it had too many quirks compared to Purity 4.4.2. I found a valuable lesson though... KK roms do not adjust usb dac very easily. Got around this with this kernel, a patch, and an app to control just the volume. Not workable for doing 70 in traffic.

I am about to load cm10.1 and see if I can't get it running a little smoother. Its a shame my cars dash wont fit a 2013 n7 (have a flo just laying around) without major alterations.

If you know of a still maintained version that would allow the volume controls in the nav bar please pass it on and save me hours of work :)
[Nexus 7 Android Development] NetFluke:
What about this one? https://play.google.com/store/apps/details?id=rubberbigpepper.VolumeControl&hl=en
[Nexus 7 Android Development] rans0m00:
I like it and would be a decent bandaid. I have the nexus inside atm and not heading out to the car to test it on the dac this late. Tomorrow morning will give it a shot and see if it works.

Btw thanks for your patch since my dac wouldn't work at all before then.
[Nexus 7 Android Development] NoXXX:
Hey mate!

Did you look into the problem? I want 4.4.2 so much so I can't sleep )
[Nexus 7 Android Development] _crue_:
not yet :) maybe today :cyclops:I have not enough arms and eyes
[Nexus 7 Android Development] NoXXX:
maybe you need some transplantation procedures? :D lol just kiddin.
[Nexus 7 Android Development] redeyedjedi:
You ARE aware that cm11, omnirom, and purity ROM do not have any otg issues right?? It seems only stock 4.4.2 has otg problems... although i do understand when someone wants just a stock rooted ROM.
[Nexus 7 Android Development] NoXXX:
Well I have no luck with patching cm11 for usb dac volume support, that is the only reason I want OTG on stock rom :crying:

I f I could patch CM11 with patcher posted here I would be happy to use it instead of stock.
[Nexus 7 Android Development] redeyedjedi:
What about purity??? I've got patched files for that.

Guys, Im in the process of a ROM build.....?i want to do a multi window omnirom, but omnirom source isn't booting right now.......but i can do a purity based ROM with all these mods built in.....is there any interest for this??
[Nexus 7 Android Development] NoXXX:
AFAIK there's no 4.4.2 Purity rom for 3g nexus 7 (tilapia).

Plug'n'play Nexus 7 ROM with all the patches built in would be great! BUT for tilapia too :)
[Nexus 7 Android Development] GrandeParade:
Yes! What about Smooth Rom?

Skickat från min Nexus 5 via Tapatalk
[Nexus 7 Android Development] tjl_48:
I don't care what ROM it is this would be nice. I am bench testing a 4.4.2 rom but didn't realize OTG wasn't working with stock. Looking through all these posts looking for patches and stuff stinks. Would be nice of have everything in one.
[Nexus 7 Android Development] redeyedjedi:
Ive asked the smoothrom guy before about github....he doesnt appear to have one. If I had smmothrom source I would have already done this.

I just finished a purity build that has dac support fully......need to figure out sepolicy for ezcap devices and a few other things.....I will push it as soon as I get something good.
[Nexus 7 Android Development] Kuchar09:
Hell yeah!!! I'm up for any 4.4.2 ROM with all these mods backed in!!!
[Nexus 7 Android Development] rans0m00:
And would be a perfect option except it keeps throwing my volume either to 0 or 100%. Will play with it more since when I set it up I was in a hurry. Maybe I missed something.

---------- Post added at 09:46 AM ---------- Previous post was at 09:44 AM ----------

Are you incorporating an easy way for volume control? Battling with that right now where my Nexus uses a dac but also needs the nexus to control the volume levels. Currently without this one program it is an all or nothing type thing.
[Nexus 7 Android Development] redeyedjedi:
Its all built in..... dac on boot, hotplug, and volume control. Youll need crue's pwrmnager to easily set fixed install mode for dac on boot. Currently building with cm vold so it will have automatic otg harddrive support. Ill upload this one for you all...... but what it wont have yet is apollo with autoplay after deep sleep, and no carcam for easycap devices.

Firm sleep, otg charging will be working fine tho.

If anyone can help me figure out why I can get carcam working on cm11 and all JB roms but still not with any other kitkat rom, id appreciate it.
[Nexus 7 Android Development] rans0m00:
That will be great. I am really looking forward to this download. Next month will have to throw a couple beers your way.

Unsure if it is do able or not but the way timur did the volume controls and track control was fairly nice. The only way I can think to make it better is if the volume control was a slider that went along the status bar or something similar.

I assume you do a fix install yourself or is this just a pet project?
[Nexus 7 Android Development] redeyedjedi:
no i dont run fixed install, but i do aux out from a dac to my deck.....

I screwed something up, if you want otg drives, you will need stickmount, otherwise it all seems fine:

a beta build........

dvbt, including r820t, otg charging, dac on boot, hotplug, and volume control. need stickmount thats it. I doubt cifs is working. ill do a thread with a good release when i have more time, but time ran out today, and i have this for you.... a purity rom build with a few essentials.... mostly everything you need. you can use "slider widget" for onscreen volume... its super easy widgets for volume control on screen

all the cool stuff like that will come later....like apollo with autoplayback after deep sleep etc.

http://d-h.st/P6i
[Nexus 7 Android Development] redeyedjedi:
For firm sleep and dac on boot....... get the latest pwrmnger app from crue in this thread.
[Nexus 7 Android Development] rans0m00:
Will give this a shot hopefully in the next day or so.
[Nexus 7 Android Development] NoXXX:
does it work on 3g nexus 7 ? i would try it if it does.

argh, I see in updater script that that is just for grouper devices :(
[Nexus 7 Android Development] redeyedjedi:
No.....I need to run a tilapia build.

Currently I have the same code as cm for flashdrive otg mounts.....but its not right because stickmount is needed. When I figure this out...ill do a new rom thread and a tilapia build. What I pushed last night is just like a beta tester. I was hoping a handful 9f people would try it and tell me if there are any other issues I need to fix before I do a full release.

Time is my enemy during tax season.
[Nexus 7 Android Development] _crue_:
I've tries usbstick works for me :)

could you describe you problem?

[MENTION=4035939]redeyedjedi[/MENTION]

did you ported fstab from Timur's rom?

we could get usb storage from his kernel

it's not a ROM feature
[Nexus 7 Android Development] redeyedjedi:
well.....im tired of fighting this incomplete patchwork code that is kitkat. much like with the easycap devices, ive merged all the needed bits and still cant get the automatic otg to work. I do not want to have a cm based rom....and its completely frustrating that so many little things refuse to work.

im going to do a tilapia build, but stickmount will be needed for otg drives. My next feature attempt will be an updated apollo for automatic playback from external drives....but i dont have high hopes as these drives wont be natively mounted. If anyone can shed some light on kitkat info about

what entirely controls otg besides "fstab.grouper" and "system/vold" (on the rom side of things) I could sure use the help.
[Nexus 7 Android Development] redeyedjedi:
it IS a rom feature. Its different on kitkat than jellybean. Ive merged all of cm system/vold and Ive merged cm fstab.grouper and ive merged temasek patch for ramdisk. these three things give full automatic otg on cm11, but on my purity build they do nothing.
[Nexus 7 Android Development] _crue_:
why it's ROM? if you get usb plugged kernel know that it was plugged and it's type?

why you can perform "mount /.... /...." command to get it?

---------- Post added at 09:07 PM ---------- Previous post was at 09:05 PM ----------

where I could get DEV mount for such devices? like "/dev/sda1"
[Nexus 7 Android Development] redeyedjedi:
this is what stickmount does,

but the cyanogenmod vold mounts it at /mnt/media_rw/usbdisk i think.

I can get fat32 drives to mount, but its read only. What im after is read and write, and support for ntfs drives.

EDIT: so, i can see now that at /mnt/media_rw/usbdisk there is read and write support... but not at /storage/usbdisk so this is just a symlink issue, not a problem. But still, there doesnt appear to be ntfs support...
[Nexus 7 Android Development] _crue_:
hey :) usbstick uses someking on drivers for each filesystem

https://code.google.com/p/exfat/wiki/HOWTO

and NTFS-3G

how this works you'd know

then just ketch usb event doing mount and unmount.

this all could be done by kernel :)
[Nexus 7 Android Development] _crue_:
https://source.android.com/devices/tech/storage/config.html

Also in this reference, all mounts performed by vold

---------- Post added at 11:49 PM ---------- Previous post was at 11:13 PM ----------

Vold ntfs patch http://xdaforums.com/showthread.php?t=897075
[Nexus 7 Android Development] redeyedjedi:
yes, exactly. The cyanogenmod code has support for all of these filesystems, and it works. I built a purity rom build using the entire vold from cyanogenmod, it has all these patches in it, but it is not working. even tho the same vold is working in cm11. there is something else with kitkat, probably in selinux that is keeping it from working.

I am going back now and doing a rom build using cyanogenmod's entire device tree for grouper, and koush superuser. but there is no missing patches for exfat/ntfs they are already there.
[Nexus 7 Android Development] _crue_:
I'm trying :)

dev_mount not found :)

how to fix that?

why it absent?
[Nexus 7 Android Development] redeyedjedi:
I figured it out....finally. I was trying to implement the wrong ntfs-3g binary.

What I needed was this:

https://github.com/CyanogenMod/android_external_ntfs-3g
[Nexus 7 Android Development] _crue_:
Good news :)IHope you will handle it, gj
[Nexus 7 Android Development] redeyedjedi:
Just finished first test build and all seems well........ntfs support with read and write and no addl apps needed. Exfat should be supported too.

With no other hiccups I should have a good build up soon......ill need someone to test tilapia.
[Nexus 7 Android Development] _crue_:
wow :) yehhhhhooooo
[MENTION=382021]NoXXX[/MENTION] could do this, Am I right?
[Nexus 7 Android Development] NoXXX:
Hell yeah, ready to do it tomorrow!

Download link please!

Отправлено с моего SM-N9005 через Tapatalk
[Nexus 7 Android Development] redeyedjedi:
bad news.... Ive just realized that the purity device tree for tilapia is a little...well....a LOT, incomplete. no pointer to the kernel source, no boardconfigcommon, etc.

I dont have one (tilapia), so if i do a build with handmade device tree files, for someone else to test....this is not a good idea.

I think I will try and copy the device tree from omnirom(aosp based) and copy it over, then remove the omni-only stuff from it, and run a build. this will take longer than a day or two because of my job. If i rush it, bad things can happen.

on a good note, I am uploading a much better release candidate for grouper.....it ALL WORKS!
[Nexus 7 Android Development] NoXXX:
Why not use CM11 base? I thought that it is the best one to start with :confused: