yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] redeyedjedi:
I just realized I haven't updated the op with that info...I'll get to it.

for fixed install mode :

in terminal or with gscript enter :

echo "1" > /sys/kernel/usbhost/usbhost_fixed_install_mode
[Nexus 7 Android Development] mad212:
Thanks!! and thanks to _crue_ for posting the powereventmgr.apk! Changed to fi mode and its going to deep sleep when ignition is off just like usbrom. Maybe the apk should be posted in the op also.

Anyone know how to get the volume controls and skip tracks in the nav bar?
[Nexus 7 Android Development] _crue_:
volume controls will be ready later, as I will finished new patcher.

you could post ) where you want :) I've change it for myself, just share it.

Later, I will create a topic with my in-car install

with all app :) also there will be new resistive button manager app :) it's in a progress
[Nexus 7 Android Development] cy80rg:
Kang-aroo on CM10.2?

Hi guys,

Just installed CM10.2 on my N7 (2012 - Wifi) using the Cyanogenmod installer...

(Have done manually in the past).

Moving away from from Timurs Kernal on my previous N7 (NB - the N7 discussed is a new unit, not the same).

Can someone confirm if Kang-aroo will work with CM10.2 as above?

I Believe it does?

Secondly, does Kang-aroo have any UI for the settings - like Timur's - or are all the settings and modules set via terminal etc?

(Sorry if these are "silly questions"! )

THX :)
[Nexus 7 Android Development] sgt. meow:
It will work in CM10.2. But all commands are Terminal-based as the UI you talk about depends on the ROM you use.
[Nexus 7 Android Development] redeyedjedi:
what he said......but soon crue will push a new pwrmngr where these things can be toggled in the settings...... and it should also work with oxydo...and allow you to use the ROM you want.

I've been trying to completely replace my OC setup with mkernels. Its tough, but it will be next release.
[Nexus 7 Android Development] _crue_:
PowerEventManager updated.

- changed package name (delete an old version before installing, otherwise you will get 2 power event mgr installed)

- added new preferences (fixed_install_mode, fastcharge_in_host_mode, firm_sleep, lock_usbdisk)

- added on boot writing preferences in files (/sys/kernel/usbhost/...)

- to add image for before sleep timeout screen, add one called "powerdown.png" in applidation data dir (/data/data/org.kangaroo.pem) an example attached
[Nexus 7 Android Development] redeyedjedi:
Im blown away....... this is great. If for any reason you need the kernel defaults changed let me know....

also, this should function with oxydo as well. great news.

now.....its time to fix dac on boot once and for all.
[Nexus 7 Android Development] NetFluke:
This is a great complement to OTG kernel! Waiting for a private build with extensive kernel logging to work on DAC on boot issue.
[Nexus 7 Android Development] GrandeParade:
Brilliant! Fantastic work.

I didn't get your powerdown image to work but maybe it has to be a PNG and not the JPG you provided?

The screens shuts off within a second or two after power is lost, even if I set the power off delay to 10 seconds. Is the the app or the system that turns the screen off? Any chance off having the screen lit all the way until it actually shuts down? Or have a separate screen dim timer?

And would it be possible to add longer delay times, like up to 60 seconds or maybe even more?

I want to have a Tasker task set up to send GPS coordinates (where am I parked) and some other stuff before it shuts down and I want to be sure it has enough time to execute it.

---------- Post added at 12:34 AM ---------- Previous post was at 12:00 AM ----------

Oh, and also: Fixed install mode doesn't stick on reboot. Is it supposed to or does it just change usbhost_fixed_install to 1, but doesn't change any boot scripts?
[Nexus 7 Android Development] jyesucevitz:
I did search for the answer 1st. Simply put, it won't install. Flashed using TWRP 2.6.3.1 aroma installer come up. I go through the steps. Get the green "successful" and reboot. Settings shows oxydo is still the installed kernel. I'm sure this is my error, but not sure.

Sent from PURIfied Nexus 7
[Nexus 7 Android Development] GrandeParade:
I think it was stated before that it doesnt work with TWRP 2.6.3.1?

Try TWRP 2.6.3.0 or CWM.
[Nexus 7 Android Development] redeyedjedi:
it has been stated...but exactly..... 2.6.3.0. The next release is soon, real soon. no more aroma installer, no more ridiculous interactive error spamming the dmesg, and user controlled GPU over clock with aroma. real soon, need to make sure its stable, had to give up on Franco's interactive governor. still trying driver changes for DAC on boot.
[Nexus 7 Android Development] SlavPala4a:
You truly ROCK! =)
[Nexus 7 Android Development] _crue_:
Should works, just convert it to PNG or rename it (powerdown.png) it will appears only before sleep, activity with backcounter will be shown.

There is settings, where you able to set timeout before going to sleep and release audio focus timeout.

it just changed usbhost_fixed_install, no more need in scripts.

all usbhost_ settings could be setted in app setings (USB HOST category)
[Nexus 7 Android Development] GrandeParade:
Hmm, still doesn't work. Not a big deal though. Created my own PNG and put it directly under org.kangaroo.pem but it still doesn't show.

Yes, I know! Works perfectly!

I just wanted to know if you could make the slider go up to 60 seconds instead of 10. Is that possible to add?

Yes, I saw that. But when I set it to fixed_install_mode it works, but if I reboot I have to set it to fixed_install_mode again. The setting doesn't stay after I reboot.

Everything else works perfectly, nice work!

Now I am just waiting for Themer to support the Nexus 7 to build a car GUI.
[Nexus 7 Android Development] _crue_:
ok. np, I will add it .

remove etc/init.d/01usbcontrol, or other one that rewrite these settings on boot.

I will checked why image is not shown, it works for me.
[Nexus 7 Android Development] GrandeParade:
Cool! I tried to change it in the preferences.xml and it worked. The countdown started from 60. But I couldn't edit the Settings in the app, it crashed :)

Hmm, it worked now. Without having to delete anything. Strange. Well, at least it works!

Allright, could it be dimensions on the image? PNG format (24 or 32 bits)? Could you send me you PNG so I can try it here?
[Nexus 7 Android Development] _crue_:
PowerEventManager updated.

- version 1.2

- changed view of timeout preferences.
[Nexus 7 Android Development] GrandeParade:
Ahh, perfect! Works as it should over here.

Sorry to nag, but the powerdown.png still doesnt show over here. Tried all kinds of things, no clue whats wrong.

Any chance of having a setting where the app doesnt launch itself visibly when countdown starts?

Or maybe just an overlay with the countdown over the homescreen or whatever app you have running?

Really happy with the work you put in. Anything I can do to help? I work as a designer and UX if need any help in that department.

//GP
[Nexus 7 Android Development] redeyedjedi:
any chance you could build this with a lower API for jellybean 4.3? great job BTW.
[Nexus 7 Android Development] redeyedjedi:
crop the image so that it is the same dimensions as the test image. must also be same format i'd bet.
[Nexus 7 Android Development] _crue_:
I will, just can not test it on 4.3, so all will be up to you :)

it was file permisson, if you copy file please checked permisisons on read for :) app should be 0666 (default)
[Nexus 7 Android Development] GrandeParade:
Thank you redeyedjedi.

We found the problem, it wasn't the resolution. It was the permissions on the file. Had to add read access...

Me so stooopid..

Skickat från min Nexus 5 via Tapatalk
[Nexus 7 Android Development] NoXXX:
Hi guys! Your work is awesome!

I know that I may not ask for any ETAs, but I will :)

Is there any ETA for USB DAC volume control?
[Nexus 7 Android Development] redeyedjedi:
this is a ROM function, not kernel. It already exists in the Zeljko cm11 ROM. There is also uploaded zip with the source files used. I believe netfluke went through the kitkat code and made it all work, and zeljko builds. If you want this function in your rom, there are links in the zeljko cm11 thread for that source, or just ask one of those guys.

What needs to be addressed is dac on boot with OTG+charging. I am lookin into this, but its hard, because timur was fixing this issue on the ROM side as well... but I will figure it out.
[Nexus 7 Android Development] NoXXX:
I am far away from ROM development, so I will just wait. Thank you mate for your work!

Отправлено с моего SM-N9005 через Tapatalk
[Nexus 7 Android Development] _crue_:
PowerEventMgr updated.

- version 1.3

- changed min sdk to 4.3

- fixed min seconds value, 59 instead of 60 :)

I can not test it on 4.3, so if there will be issues please describe them as possible detailed.
[Nexus 7 Android Development] GrandeParade:
Nice!

I don't have 4.3 either so I can't check..

Later on, would it be hard to have "Sleep Now" function accessible through Tasker?

I LOVE the firm sleep. Makes the battery last for ages, but it still wakes up instantly. So having it accessible would be fantastic.
[Nexus 7 Android Development] GrandeParade:
ezcap

Since it's pretty quiet here, I might as well go slightly off-topic.

With the EZCap, I remember from Timurs thread that it had to be the old EZCap with the STK1160 chip for it to work.

Is that still true? Does anyone know any online retailers that has the correct version of EZCap/EasyCap?
[Nexus 7 Android Development] mad212:
For you guys with fixed car installs what roms are you running with this kernel?

Also anyone know of a good widget or some easy way to control volume up down? Im using the bluetooth from my head unit which is hidden in the dash so I cant access volume via the knob or remote control and no steering wheel controls in my car. Really love the volume in the nav bar like timurs rom but have yet to figure out how to get that to work in any other rom.
[Nexus 7 Android Development] redeyedjedi:
EVERY easycap works now..... ive tested two myself, forgot to upload pics. others have been tested as well. check threads linked in my 2nd or 3rd post.... there is a script to insmod the modules I can upload and there is one in the zip you can download from those links. his app has come a long way too.
[Nexus 7 Android Development] redeyedjedi:
there is an app that controls the volume, ill find a link. I recomend the zeljko cm11......it has volume control and dac hotplug built in.....but you have to get the specific version. new kernel is almost finished.....I have one crash issue to fix and it'll be ready.
[Nexus 7 Android Development] GrandeParade:
Wow, fantastic!

Anyone knows which EasyCap (which chip) is the best?

//GP

---------- Post added at 11:31 PM ---------- Previous post was at 11:25 PM ----------

I haven't tried it myself, but you could try GMD Gesture Control and add gesture to raise/lower the volume.

I'm thinking three fingers down/up or something?

Not sure if you can define specific areas or if its always the whole screen but check it out:

https://play.google.com/store/apps/details?id=com.goodmooddroid.gesturecontrol&hl=en

Then, there the Slider Widget. Which adds slider widgets to your homescreen:

Good visual feedback on your volume, but you can't change volume from anywhere else but the homescreen.

https://play.google.com/store/apps/details?id=de.hinterhofapps.sliderwidget&hl=en

And then you have this one. cV3 - Change Volume App.

Lets you define a couple of different volumes and then show you big buttons to hit.

Ugly though...

https://play.google.com/store/apps/details?id=tinyappfactory.cv3.free&hl=en

I would go for GMD I think!
[Nexus 7 Android Development] mad212:
I've been messing with GMD but can't figure out how to gesture volume up and down. Only thing I could find was getting volume slider to pop up.
[Nexus 7 Android Development] GrandeParade:
Hmm, maybe no support for it yet?

Maybe set GMD to launch a Tasker task thats sets the volume to predefined steps?

Three fingers up -> Tasker sets the Bluetooth volume to 8

Three fingers down -> Tasker sets the BT volume to 2

Or advanced:

Three finger up on the top half of the screen -> 8

Three fingers down on the top half of the screen -> 6

Three fingers up on the bottom half of the screen -> 4

Three fingers down on the bottom half of the screen ->2

OR

Maybe two finger tap to set it?

Two finger tap once -> low volume

Two finger tap twive -> mid volume

Two finger tap three times -> High volume

All done with Tasker...

Just ideas (after midnight. probably bad ideas.)
[Nexus 7 Android Development] mad212:
Another question and let me know if im veering too far off topic and need to open my own thread.

I just picked up a 128gb pny flash drive and can't get it to remount after returning from deep sleep. I had no problem with my 64gb sd card and card reader. I tried ntfs and fat32. Anyone know how to fix this or did I just waste my money on this flash drive?
[Nexus 7 Android Development] redeyedjedi:
first, I'd make sure its the same format as the others that work. But, if its fat32, then change it to NTFS and try again. but if all your others work (all other things being equal) then it should too. make sure it even works at all with your PC. the size of your stick should not matter is using NTFS, but sometimes the drives with a light on them don't function right unless you use a powered USB hub.....which would be my next suggestion. I have a vold with NTFS R/W that you can flash....it may already be linked in OP.
[Nexus 7 Android Development] mad212:
I tried everything you suggested except a powered usb hub. It does have a flashing light. Which file for ntfs r/w are you suggesting I should flash in the op? I dont know if its there or if im just missing it.
[Nexus 7 Android Development] redeyedjedi:
flash this:

http://d-h.st/Bsj

then make sure its ntfs, then if it still wont work, youll need at least a powered otg y-cable. I see that I need to seriously update my OP. sorry bout that.
[Nexus 7 Android Development] mad212:
Thanks ill flash when I get home! I am using an otg y cable so if this wont work ill order a powered usb hub.
[Nexus 7 Android Development] _crue_:
PowerEventMgr updated

- version 1.4

- added support of Tasker setting plugin (now sleep events could be used through Tasker, new task - plugins - power event manager)

- added screen lock preference, if set screen will be locked (always on) works only with FI mode - on and when device is powered.

- added restore audio focus and airplane status when screen is on, if device was previously slept in force mode (by button or through Tasker)

- added possibility to cancel sleep event with countdown screen if it was triggered manually (if it was triggered on power disconnect, it will be executed in any case)
[Nexus 7 Android Development] GrandeParade:
Fantastic update! Very useful new features! Will try it out when I get back home tonight.

Thanks crue!

Skickat från min Nexus 5 via Tapatalk
[Nexus 7 Android Development] GrandeParade:
Tried it out. Everything seems to work. Tried screen lock, Tasker and waking up after forced sleep. Everything works!

How do I cancel a forced sleep event?
[Nexus 7 Android Development] _crue_:
you can't :) only sleep countdown and only not in host mode
[Nexus 7 Android Development] GrandeParade:
Hmm, I don't really get it. If I remove the USB otg cable and the sleep timer starts, is there any way to cancel that?

Maybe you could add a cancel button to all countdown screens for the user to have a way to cancel, regardless of what triggered the sleep countdown?

Skickat från min Nexus 5 via Tapatalk
[Nexus 7 Android Development] _crue_:
in fixed install :) you don't need to cancel sleep, but I will do it

new patcher built from NetFluke archive (sources) works perfect :)

with it USB dac plugged on boot and hot plug also works fine :)

but bad news :) I don't know when I will publish it

need to do a lot changes in patcher code.
[Nexus 7 Android Development] _crue_:
just tested :) patch for framework.jar

for volume controls :) yahoooooo

controls :) presents

but no efect :) need patch for audio.policy in kernel

sources for audio.policy here: http://xdaforums.com/showpost.php?p=49025086&postcount=349

to redeyedjedi please, please, please :) build it for me :))))
[Nexus 7 Android Development] GrandeParade:
Are you adding USB-DAC volume controls in the Power Event Mgr app?
[Nexus 7 Android Development] _crue_:
he-he no, I've patched services.jar and framework.jar to get this.

this is message related to Jacknoris patcher :) that I've modifed
[Nexus 7 Android Development] GrandeParade:
Ok, just asked because it seemed to be a strange place to put volume controls... ;)

I have made some mockup screenshots for an alternative PowerEventMgr look (Car Dashboard look, since most ppl seems to use it for in-car installations).

Want to have a look?
[Nexus 7 Android Development] _crue_:
sure :) I do,
[Nexus 7 Android Development] redeyedjedi:
http://d-h.st/g8s

make sure the permissions are right......

I too want the cancel button!

and a widget for desktop control....... I can help work on it soon, new kernel is done, just need stability/endurance testing.
[Nexus 7 Android Development] _crue_:
if this is a copy from ROM ^( it doesn't works for me, I don't know why
[Nexus 7 Android Development] redeyedjedi:
Well, the source should be the same..... I'll do a whole ROM....its the only way. The kernel update will be up later today.....then I'll sync with most likely omnirom and do a build with all the mods. The audio policy mod is simple......it should've worked. I'll need a couple days to downloadrom source.....my internet is sloooooooow. But I'm focused just on this now......and multi window.....
[Nexus 7 Android Development] _crue_:
don't worry, now it works fine

I don't know why it wont works first time

but after I've apply it in second time, everything become alright :)

so now, I 've got workable volume controls for stock KIt Kat 4.4.2

next step DTB :) and car cam :) but for second one I need easycup or something else.

what is multy window? and for what it?
[Nexus 7 Android Development] _crue_:
Power Event Manager updated.

- version 1.5

- added canceling countdown sleep screen by pressing "back" button.

- changed settings icon :)
[Nexus 7 Android Development] redeyedjedi:
all easycap devices are supported.....latest carcam works but autoswitch is little buggy. the picture is very nice on backup camera and other slower moving images, but it gets distorted on fast moving images.....every update it gets better but there hasnt been any in a while.''multiwindow, like samsung multiwindiw, two apps at once side by side, like google maps and apollo music at same time. What rom do you run? i was thinking omnirom would be a good base for this, unless there is a better suggestion.
[Nexus 7 Android Development] _crue_:
I'm using stock ROM, and will not change it :) as I want always be up to date :)
[Nexus 7 Android Development] GrandeParade:
crue, what are you going to do with the carcam app?

I'm waiting for my EasyCAP right now.

redeyedjedi, how buggy is the autoswitch? And does it work better with any specific versions of EasyCap?

And do you know if it has support to autoswitch based on OBD2 information? Like when the OBD2 bluetooth adapter sends information that the car is in reverse, the app listen for that and turn on. But maybe it already does?
[Nexus 7 Android Development] redeyedjedi:
OK guys...new build is up. I think I addressed every issue that was discussed. No more aroma installer, just flash and go. No more wierd OC bug where the minimum setting changes by itself. And, you can now set GPU OC in trickstermod. BFQ from mkernal...and other changes I dont remember, but they are all good!!

any new issues?? let me know. any new features you would like? let me know. Im still sorting out dac on boot with crue. I think he is close, now has patch code for dac on boot and volume control...we'll get there.
[Nexus 7 Android Development] NetFluke:
[MENTION=4035939]redeyedjedi[/MENTION]

Kernel feels good, but suffers from "no charge in firm sleep" problem. Debugging now.
[Nexus 7 Android Development] redeyedjedi:
what problem is this? was it there before? explain a little more please....I want there to be no issues.
[Nexus 7 Android Development] NetFluke:
Sure - if device is sleeping (with magnetic lid closed or just went to sleep for 3-5 min) and regular (not OTG) cable with power is plugged in, device will not charge and will not wake up. If device is not sleeping - charging is OK. OTG Y-cable does not have this problem - device wakes up and charges.

Look at comments inside Timur's (and yours) tegra-otg.c lines 225, 265

Simplest way to reproduce - reboot Nexus and leave it with magnetic lid closed without any power attached for 5 min (or let it go to sleep for 5 min). Plug in regular charger without waking the device, then wake it and check charging state.
[Nexus 7 Android Development] redeyedjedi:
yes... I did know this... turn screen on, plug in charger. it doesnt go lp0 while charging, I thought this was always a problem. did I have it working right on a previous release? if I did...ill go back and fix it..... did I have this working?
[Nexus 7 Android Development] NetFluke:
I think it was always a problem. Other than that looks good, will be testing tomorrow.
[Nexus 7 Android Development] Mugga:
Very nice progress here guys:good: And a big :good: for redeyedjedi, for his commitment.

I think I will give this Kernel another try. With the new updated PowerEventMgr, it should be much easier to configure everything for a car install.

Does anyone have a good idea regarding a rom for the tilapia version (3G)?
[Nexus 7 Android Development] SlavPala4a:
Well done! Soon I will be able to test on everyday bases. Keep up the wonderful work!
[Nexus 7 Android Development] rebel1699:
I have been testing this kernel out for a few days, and have really been enjoying the versatility. But today, I have discovered a problem. I use Intercepter-NG on my home network, and with this kernel, it is unable to detect the network interface. I am sure it is probably due to all the extra drivers, but not sure on a fix. Also, it could cause the same issue in other apps. Would you like a logcat? If so, I can grab one in just a few minutes.

I am running the latest Omnirom nightly with kangaroo v2 (all modules) in a multirom setup.

Edit: Tested on another omnirom install and same issue. Flashed to m-kernel a67 and issue was resolved. Wanted to make sure it was an issue isolated to the kernel.
[Nexus 7 Android Development] redeyedjedi:
I guess I dunno what this is. Which drivers or modules are required? One kernel module cannot interfere with another, but they can be insmodded in the wrong order. Mkernel has all his modules built in but mine is too big for that. If I know what drivers you need, I can make sure they are there and tell you which order to insmod them.

Hmmmmm. A quick Google search says it only' requires root and busybox....... My WiFi drivers have all the kitkat updates......maybe showp1984 missed some of the older updates or something. If you can find the other requirements let me know. I'll compare my github network drivers to mkernel to see what he has that I don't.
[Nexus 7 Android Development] _crue_:
Power Event Manager updated.

- version 1.6

- added notification and status bar icon (notification with actions for fast open app, settings, sleep)

- added preferences to show/hide status bar icon and notification
[Nexus 7 Android Development] rebel1699:
Intercepter-NG indeed only requites root and busybox. I am not currently running any external hardware. It is just not finding the internal wifi interface. It is acting exactly the same as it would on a phone if the wifi were turned off and cellular data were active (throws warning and disables scanning "cannot find network interface, do not use on 3G") I'll logcat and see what it says.

Thanks for looking into it.