yashsingh1/xdaforums huggingface dataset:
[Nexus 7 (2013) Android Development] elektro255:
The ROM is designed to be used as a fixed car dash installation.

Rom based on Resurection Remix nougat, ElementalX kernel with Timur's usb host mode.

Features in addition to Resurection Remix and ElementalX:

- USB Host Mode with External Power
- Fast Charging while in USB Host Mode
- FI-Mode - Auto-Suspend on Power-Loss
- Preferred Slot Auto-Mounting of up 4 USB Drives
- Firm Sleep + RTC Alarm Killer (barely uses battery when suspended)
- Easy App-Killer for reliable Suspend mode
- Power-Up On-Screen-Display
- HD/Hi-Res UVC Frame-Grabber support for Backup-Cam with MJPG encoding
- Set to permissive permanently (required by PowerEventMgr)
- Magisk SU

​

-INITIAL INSTALLATION INSTRUCTIONS-

- Download the latest build

- Download BeansGapps-Mini

- Full wipe and factory reset

- Flash ROM using TWRP 3.x Recovery

- Flash Gapps

- Reboot

- Enable SU for PowerEventMgr in Magisk

-Installation Files-

TWRP

Flo (WiFi) Builds

Deb (LTE) Builds

BeansGapps-Mini

-UVC Frame-Grabber support-

Driver modules for frame grabbers are in /system/lib/modules directory. You need to load the drivers in /data/local/userinit.sh using insmod.

Example for oryginal EasyCAP DC60:

insmod /system/lib/modules/saa7115.ko
insmod /system/lib/modules/stk1160.ko

Install VCam2.apk (available in Download section) app and enable detection mode in PowerEventManager.

-Battery-less instalation-

-FI-mode-

-Car installation hints-

To create good looking and easy to use desktop for car dash you can use psd files:

Car dash wallpaper images.

It can be used with following apps to create home screen with transparent widgets that will start apps:

Desktop VisualizeR

Nova Launcher

-External resources-

Timur's kernel

-Changelog-

v5.8.5-20171215
- Merged with latest RR repo v5.8.5 Android 7.1.2_r36
- USB audio drivers included in kernel
- Fixed settings bug
- Fixed SU problems and USB drive permission problems
- Clean install recommended

-Github Source-

-Common problems-

- USB audio is crackling: https://xdaforums.com/showpost.php?p=74920088&postcount=51

XDA:DevDB Information

USB Host, ROM for the Nexus 7 (2013)

Contributors

elektro255, apascual89, Timur

ROM OS Version: 7.x Nougat

ROM Kernel: Linux 3.4.x

Based On: LineageOS

Version Information

Status: Beta

Current Beta Version: v5.8.5-20171215

Beta Release Date: 2017-12-15

Created 2017-08-20

Last Updated 2018-01-06
[Nexus 7 (2013) Android Development] pacmanb:
For USB Audio I had to use the following userinit.sh

insmod /system/lib/modules/ssnd-hwdep.ko

insmod /system/lib/modules/snd-usbmidi-lib.ko

insmod /system/lib/modules/snd-usb-audio.ko
[Nexus 7 (2013) Android Development] elektro255:
Thanks for the info. I've updated instructions.
[Nexus 7 (2013) Android Development] ThanhNguyenn:
tks teamm..
[Nexus 7 (2013) Android Development] iWilder:
THANKS!!!

I'm building a tablet for my car right now, can't wait to try this!

If I already have timur's kernel loaded, do I need to reload?
[Nexus 7 (2013) Android Development] tobias.s:
Nice work! I got 2 questions:

Is it possible to add driver modules for the UTV007 Video Grabber that used to work with timur v3 kernel on android 5.1.1?

With android 6 and Nexus 7 2013 there was an issue with usb dacs that only had mono output instead of stereo. Is this issue corrected in Android 7?

Thanks for the info.
[Nexus 7 (2013) Android Development] uberNoobZA:
Thanks for this and nice work. I have a question though, and apologies if I am asking in wrong place... How do I configure Power Event Manager to put my tablet to deep sleep when incoming power is turned off? I tried to test it with a wall charger, but nothing happened when I disconnected it, and it did not turn off wifi / BT and activate flight mode. Does this only work when I have OTG devices plugged in?

---------- Post added at 06:49 PM ---------- Previous post was at 06:35 PM ----------

Two bugs -

- When I open Display in settings, Settings crashed

- When I launch File Manager, it closes with a prompt that it was unable to get relevant priviledges. It looks like it displays a dialogue to ask to allow SU (I assume), but this prompt closes immediately before I can tap yes.
[Nexus 7 (2013) Android Development] tenerif88:
carry a problem, when you press the sitema display generates app error and closes. when trying to open file manager does not start properly something as described by friend sopra.in beyond this my personal opinion this rom seems to be studied by using the kernel for mounted car devices but take out drivers for devices and say turn on this in insmod, for unhelpful user it turns out to be a problem and abandon rom
[Nexus 7 (2013) Android Development] HellmetButter:
Great ROM, many thanks for this. I actually paid for Timurs kernel but the downloads are no longer available and it hasn't been updated in ages.

I cannot get usb audio to work. The device is recognised in powerevent manager and the devices LED lights up but audio plays through the tablets internal speakers.

I created a userinit.sh file in data/local/ and added:

#!/system/bin/sh

insmod /system/lib/modules/ssnd-hwdep.ko

insmod /system/lib/modules/snd-usbmidi-lib.ko

insmod /system/lib/modules/snd-usb-audio.ko

After restarting the device my issues are as described above. Can anyone point to where I'm going wrong or help troubleshoot? Thanks.

EDIT: I changed the line "insmod /system/lib/modules/ssnd-hwdep.ko" to "insmod /system/lib/modules/snd-hwdep.ko" (Removed an extra 's') and I am able to execute the script manually after boot and the audio works fine

---------- Post added at 07:12 PM ---------- Previous post was at 06:25 PM ----------

I'm using a Behringer 202 DAC and the mono issue does not seem to be present in this version. Full stereo here!

Another bug I've noticed that hasn't been mentioned. About 50% of the time when I reboot the tablet, it gets stuck on the Google logo. I have to hold power off + volume up to force reboot, where it normally boots fine.
[Nexus 7 (2013) Android Development] HellmetButter:
I have had to abandon this ROM as it is currently too unstable for daily use in the car. I'm sorry but I can't produce any logs as I've reverted to 5.1.1 as I have a fixed installation which is a major pain to remove any time I encounter a problem.

(I'm not even sure if this ROM is in development or has been abandoned)

Issues I've faced:

Screen sometimes won't turn on. Touches are registered but the only way to turn the screen on is a hard reset (In a fixed install this is a big problem). This appears to happen randomly.

USB audio produces a lot of crackling. After researching, this appears to be a nougat issue but in a car install this isn't acceptable.
[Nexus 7 (2013) Android Development] elektro255:
It only works with OTG in FI-Mode.

Have you tried adding SU permission in Magisk ?

The modules were made loadable (removed from kernel and added using insmod to fix problem with installations that are using Bluetooth audio and easycap (that was setting volume to max when USB audio driver is present).

thanks, I've removed typo

What build are you using I've never experienced that with flo build, I don't have access to test deb. Are there any steps to reproduce, will you be able to get output of `cat /proc/last_kmsg ` after restarting stuck tablet or get ADB log when boot gets stuck.
[Nexus 7 (2013) Android Development] chuckcheeze:
deb gets stuck at Google boot screen

i feel like such a noob. i have flashed many rom before, but i cant get the deb rom to work.

using twrp 3.1.1

wiped everything cache, data, system, internal storage, etc

installed deb rom

installed gapps

reboot

it just gets stuck on the Google boot screen with the unlock.

manually powered off and power on

manually reboot in bootloader

just gets stuck in Google boot screen :confused:

any help would be appreciated!
[Nexus 7 (2013) Android Development] HellmetButter:
I'm using the flo build. I can't post any logs at the moment as I've reverted back to lollipop, if I have time later I'll make a backup and try again. It happened at pretty much any normal reboot. although it always booted from system to recovery and from recovery to system without problems.

Is everyone else getting crackling when using USB audio?
[Nexus 7 (2013) Android Development] elektro255:
It is possible that deb build is not working as I don't have deb device to test I'll take a look on weekend to see we this build is different.
[Nexus 7 (2013) Android Development] chuckcheeze:
i greatly appreciate it. i am currently running stock 6.0.1 with timur and i want a custom rom!

let me know if i can help by providing logs thru twrp :good:

i even tried tapping the back (seen on youtube) to reset the sensor (theory) :silly:
[Nexus 7 (2013) Android Development] pbiggane:
First off, thanks for the great work guys/gals.

I tested the rom while driving from Boston to Miami over the last few days and can confirm the same usb audo crackling and hanging upon reboot. I had also purchased timur's kernal during his initial development and ended up going to EXKM and tasker once newer versions of android were available. I had the car in storage over the past two years, so I'm just now getting back into it. I initially ran RR but just couldn't get the power situation working (although usb dac audio worked fine w/7.1.2).

Anyway, I had added the userinit amendments and usb audio started working with this rom after reboot, but unfortunately I had the crackling audio as well. I confirmed it was an issue with this rom/kernal based on the fact that I could plug in my nexus 6 to the same fixed setup and had no crackling. After some reading this evening (this is after tearing apart my wiring thinking I had a ground issue), now I'm wondering if it's a sampling issue. I've changed audiopolicy.conf from "dynamic" to 41000 and will test tomorrow morning and report back. This usb dac crackling is a popular topic if you google it. I haven't used logcat in a couple years, if I can remember how to use it, I'll post the log.

Also of note, I get the same "google" boot hang that the previous user mentioned which is only resolved by holding the power button until reboot occurs. I still got this after doing a factory reset as well as formatting user data. I don't tihnk this will be an issue since I won't be rebooting once I get functional usb audio. I wish I had more time to actually learn how to edit a kernel... Maybe after residency...
[Nexus 7 (2013) Android Development] FrenchSparda:
Also using Timur's and stock MOB30X without any kind of trouble. But 6.0.1 is becoming old and security patches are outdated, so thats why i would like to have a much more recents ROM working with Timurs
[Nexus 7 (2013) Android Development] FrenchSparda:
Installed your ROM yesterday, and i had my first travel today using it (home --work...work---home) so far no trouble with it, except "settings/display" is force closing, i'll post some logs tonight. Probably some issues with Automate and Carlauncher. Othetwise..such a great work you did porting timurs on Nougat.
[Nexus 7 (2013) Android Development] FrenchSparda:
Same issue with Settings/Display crashing after clean install. Hope we'll get answer from developper soon :D
[Nexus 7 (2013) Android Development] elektro255:
I found the bug in Settings/Display will be fixed with next release (I've tried to add infinite display timeout and forgot to remove it after failed testing), I'll also include USB drivers and merge with latest changes in RR ROM maybe it will help with cranking. I should be able to fix USB disk default permission as well.

Unfortunately, my table is currently installed into my car dashboard so most likely there will be no new build for next 2 weeks.
[Nexus 7 (2013) Android Development] uberNoobZA:
That's great news, as I really liked the rom. Looking forward to new release :)
[Nexus 7 (2013) Android Development] akasirro:
Battery drain

Thanks for this room, it checks a lot of boxes for me. However, the battery drain is crazy... Im using an other cable and seeing fast charge but when there is no power, it appears that there are Gremlins in the background. Tested again with fresh install and no added apps. Anyone else having issues?

Going to try Greenify shortly. But need help in the meantime. Thx!
[Nexus 7 (2013) Android Development] FrenchSparda:
2 cents question.....Timur alwaus said that D2TW was incompatible deep sleep (DT2W prevent the device from deepsleep). How did you manage to add it ?
[Nexus 7 (2013) Android Development] Kev1000000:
I am also experiencing this :(
[Nexus 7 (2013) Android Development] JagXK8:
I also bought Timur's kernel and i love having that functionality in a (newer) custom rom. Had issues trying to get Poweramp to see my flash drive. Went ahead and removed Magisk and use an old supersu that worked with timur's kernel. Flashed that and it's working fine. I do miss the media buttons at the bottom but no biggie. They were designed for MM and can probably be ported to Nougat.
[Nexus 7 (2013) Android Development] Kev1000000:
Any updates for DEB not booting OP?
[Nexus 7 (2013) Android Development] AMGSoUL:
Hello!

Can someone explain, how add usb sound.

I create "userinit.sh" in /data/local/ add this lines, but nothing happening.

I try use this command in terminal, sound from tablet disappeared, but sound from usb dac didnt work.

Sorry for my english
[Nexus 7 (2013) Android Development] Priit Pavelson:
DEB version won't boot, but it works with latest lineageOS. Will wait next update.
[Nexus 7 (2013) Android Development] Deeco7:
Project still alive?
[Nexus 7 (2013) Android Development] JagXK8:
I hope so
[Nexus 7 (2013) Android Development] aggro600:
Try this

https://xdaforums.com/showpost.php?p=53639140&postcount=605

Don't forget chmod 755 on the Script
[Nexus 7 (2013) Android Development] aggro600:
Does it work with deb? I get only the Google Logo on start.
[Nexus 7 (2013) Android Development] Deeco7:
Seems dead to me...;(
[Nexus 7 (2013) Android Development] JagXK8:
Noooo. I liked the fact of a newer rom with timur
[Nexus 7 (2013) Android Development] lyushiK:
Look here:

timur-m

https://www.reddit.com/user/timur-m

Reddit

https://www.reddit.com/r/timurskernel/

Timur's Kernel v4.0 for Android 6.0.1 MOB30X

https://www.reddit.com/r/timurskernel/comments/51lhgf/v40_for_android_601/

timur-kernel

https://www.reddit.com/r/timurskernel/comments/5x96uo/new_download_locations/
[Nexus 7 (2013) Android Development] fr4nk1yn:
Timur's on A6 seems to be a mess. I'd love to go back to LL but don't have my files anymore.

Was holding out hope for this
[Nexus 7 (2013) Android Development] FrenchSparda:
Not a mess like you said. Just stereo/mono issue with some DACs. And if you're not happy, why you not compiling your own ROM ? Timur sources are available, so why not giving it a try ?

ElementalX does exist with Timur's features, i was the one who gave access to Timu'rs sources more than 1 year ago (april 2016)..when Timur's still didnt wanted to share his work with others (only with those who paid)

You can give it a try with SlimLP 5.1 and ElementalX hack by solidsnake (i must have those files on my GDrive)
[Nexus 7 (2013) Android Development] fr4nk1yn:
I'm not blaming Timur's. The, my, N7 flo with LL was almost perfect. Deb with MM had GPS drift, loses the 4G sporadically, loses the 4G if I use apps to reboot (I have to use the hard button), The mono bug was the only thing I was prepared for.
[Nexus 7 (2013) Android Development] elektro255:
New release: https://sourceforge.net/projects/usbhostnougatos/files/flo/RR-N-v5.8.5-20171215-flo-UsbHost.zip

Changes:

v5.8.5-20171215
- Merged with latest RR repo v5.8.5 Android 7.1.2_r36
- USB audio drivers included in kernel (hopefully will solve crackling)
- Fixed settings bug
- Fixed SU problems and USB drive permission problems
- Clean install recommended
[Nexus 7 (2013) Android Development] JagXK8:
Thanks! Now i can get off Marshmallow and try this again
[Nexus 7 (2013) Android Development] JagXK8:
I'm using flo build with a behringer uca202 and it has the USB audio crackling. Going to switch back to using the headphone jack.
[Nexus 7 (2013) Android Development] Priit Pavelson:
DEB version won't boot correctly, it will only stay on custom animation. There is room left for only OpenGapps Pico (or any other small alternative). I tried also without installing Gapps, same thing. Works fine with latest LineageOS.
[Nexus 7 (2013) Android Development] FrenchSparda:
Thanks for new release. I'm going to flash it tomorrow. Can you consider to share your sources ?
[Nexus 7 (2013) Android Development] elektro255:
You will find sources on my github https://github.com/elektro255/local_manifests/blob/master/roomservice.xml

You can follow ResurectionRemix build instructions. I'm using https://github.com/akhilnarang/scripts scripts with command:

./build-rom.sh rr flo user clean rmccache -j 8

There is a handy script to setup ubuntu:

ubuntu1604linuxmint18.sh
[Nexus 7 (2013) Android Development] elektro255:
Can you try to get logs using guide https://xdaforums.com/general/xda-university/universal-test-rom-build-didnt-boot-t3258818 that would help me find what is causing the bootloop
[Nexus 7 (2013) Android Development] Priit Pavelson:
I pulled kernellog from device.

TWRP Terminal:

cp /proc/last_kmsg /sdcard/kernellog.txt

On computer:

adb pull /sdcard/kernellog.txt kernellog.txt
[Nexus 7 (2013) Android Development] elektro255:
Thank you, unfortunately, it looks like it isn't related to the kernel, have you tried flashing LogcatFlasher-0.1.zip and using adb logcat ?
[Nexus 7 (2013) Android Development] hugo_bjk:
Great job. But i have a problem about sound. When i attach a regular usb cable to power the tablet everything is ok. But when i attach a usb otg y cable the sound crackles both in aux and bluetooth. I need to use otg y cable for reverse cam and rtl sdr dongle. What should i do?
[Nexus 7 (2013) Android Development] elektro255:
can you post logcat output https://xdaforums.com/showthread.php?t=1726238 ?
[Nexus 7 (2013) Android Development] tobias.s:
Concerning audio crackling over USB DACs: The cause is qualcomms hard CPU throttling. When you disable mpdecision with a kernel tool (ex. Kernel Auditor), the crackling will go away and one get perfect sound quality.

May be elektro255 can add it by default in next releases.
[Nexus 7 (2013) Android Development] hugo_bjk:
i attached the log files.
[Nexus 7 (2013) Android Development] JagXK8:
Tried it this morning and voila! Thanks for the tip! Back to USB audio.
[Nexus 7 (2013) Android Development] FrenchSparda:
Great find for audio crackling. Many thanks. I would like to know if thats possible to build the same ROM, but with PureNexus base
[Nexus 7 (2013) Android Development] aggro600:
Pls make it work for LTE Version I only get a bootloop

---------- Post added at 08:50 PM ---------- Previous post was at 08:45 PM ----------

Is it possible to make OTA Updates for your Rom. So I can try the Beta and are able to update the Nexus while it is installed in my car without a Laptop?
[Nexus 7 (2013) Android Development] Nato154:
Hey could you just go into detail on how to disable mpdecision?
[Nexus 7 (2013) Android Development] sermas83:
hello, please show me the right zip for nexus 7 deb 2013 ?? the one in the post hangs in bootloop
[Nexus 7 (2013) Android Development] JagXK8:
Install kernel auditor, go to CPU Hotplug. You can disable it there.
[Nexus 7 (2013) Android Development] Buratei:
Thanks, I will try this on my flo one of these days... hopefully today after I get off work today :)

Would you mind sharing the psd file for the background? I have one for my miata with red texture, but the blue will probably go better with my ambient lighting... All it would take is a simple replacement of that background layer I am sure. -> nvm, I missed the link in the op on my first read, found it just now :D

Tobias, thanks for the pm earlier with the tip! for some reason though my grouper didn't have the cpu hotplug page in kernel adiutor. Is that rom-dependent, that is the rom itself needs to have some sort of setting provision built-in to have that show up? Just guessing.

I will be upgrading from timur's 6.0 based usbrom. Does the user partition need to be wiped also?
[Nexus 7 (2013) Android Development] Kaar3l:
I have tried numerous times and I cannot get the FI mode working. Installed even Supersu, still nothing. With 6.0.1 Timur it works. Tried with older version, but that does not boot on flo.
[Nexus 7 (2013) Android Development] JagXK8:
I've never gotten this build to work with magisk. I always completely remove magisk and install SuperSU (not the newest version but the version recommended by Timur)
[Nexus 7 (2013) Android Development] Kaar3l:
Still cannot get it to work.

What I have done:

Flash: RR-N-v5.8.5-20171215-flo-UsbHost.zip

Flash: Magisk-uninstaller-20180101.zip

Flash: SuperSU (Timur recommended version)

I still have USB Host mode: Off - FI-mode disabled

EDIT

Got it working, I had some lousy charger, that wasn't good for the job. Tested another charger and it is working like charm. :)
[Nexus 7 (2013) Android Development] Buratei:
pem worked fine for me right off the bat.

dobule tap to wake the screen toggle doesnt seem to work (stays on regardless). still, wont matter if battery usage is good enough - we will see how that goes.

some severe audio crackling as noted earler, but thankfully mpdecision off via kernel adiutor got that sorted out real quick. kinda wish same could be done to my los 14.1 grouper (no cpu hotplug menu on that guy).

I am new to RR and found there are a ton of UI customization options; most of them are irrelevant to me but still. I am hoping the included wakelock killer would complement pem's rtc killer (or maybe redundant?). for one, i saw some gms related entries in the former and disabled them for a good measure.

everything worked out ok so far except granting root to gmd auto hide soft keys. I ended up getting another paid alternate from gmd, only to learn there is a workaround. either way, thep problem isnt with the rom, it has to do with compatibility between AHSK and magisk. I will apply the work around later today and try to report back.
[Nexus 7 (2013) Android Development] Kaar3l:
I used some bad charger to test PEM. Changed charger and it worked like charm. Sorry for that. I did many flashes. :)
[Nexus 7 (2013) Android Development] Buratei:
Yeah I saw that too, didn't mean to beat the dead horse :p

Happy for you it worked out! A car install entails more failure points and it could get real frustrating at times with elusive power/otg malfunction :eek:
[Nexus 7 (2013) Android Development] AMGSoUL:
Don't work usb audio

Hello everyone! I install this ROM, but usb audio didn't work. My connected is usbcard>usbhub>otgcabel>nexus7(wifi).

In powereventmanage i see next devices.

[IMG="My usb devices"]https://lh3.googleusercontent.com/zQsXSct7CgrcN23arGd7yBRiZedOLtT73mOdnI1ZeBPAl3B6zA0KnNrq8yuHCV3d0swFD9teXDryE4Hv2RiE-3UCGR6R4uqfrZHjob0PSZrtN76Ni5PPO9RDsu7iBpXdGdIV8bCJZITDHskt1V1TVE_5B2TbKs0-a2kpp_edaE-wLixvas8Q4CShBCWFi4vRqudUCDF-HvSsAleHxMZ_pzPYatu4pL3bjUAvIYAXosbYoNtmQr4gzvDXmYCOAMKva5HzvVByigDmEMM7QcjsGNp2FPOLyNdMuZcR7t4ty_aDWKdUNQbLrO7xuAU_nltJRdWeQ3KqGHEw9aAhHUWs9Yk5WSEH0kE3KyL3BjyPkpXxvy0ua6oqrAm4wmrxOE6YgfSUNqcpIvrDrAS2BWEGzqU7EDje6nN0cFZX0V4dgqhZwZO8SaHQml8IlFVMyNftpSd-Szw2pFGgnhELoAGY-Zn0PJwq0YvPQUhB5nO33x1YI5quCn3jJC2GP8p9KsvNpv-S0UeTwGxYrjNgP2y9T8bk8uLLr6pDdQoh7aN5k4ZNta3I9x_lXPnOlsXfcOMW33VRh2OUM2z6TVFXYs4VBJLHRdctv3xQoI4jsaO6=w1668-h943-no[/IMG]

Last device is my usbaudio

Can anyone help me?
[Nexus 7 (2013) Android Development] Buratei:
do you get audio thru tablet's internal speakers or no sound at all? if former, there is a PEM option to turn usb device off AFAIK. should be off by default but double check just in case.

if there is no sound coming thru the internal spekers, then routing is likely done correctly. make sure volume isn't muted by itself (some roms i've used in the past were bugged like that). also try another set of speakers/earphones to see if thre car speaker wiring is intact.
[Nexus 7 (2013) Android Development] AMGSoUL:
Thanks for answering. I get sound thru tablet's speakers, but cant thru usb audio card. Where option to turn usb device off AFAIK? This is off second usb audio?