[ROM][AOSP][LolliRock][v.2.1]

Status
Not open for further replies.

defconoi

Senior Member
Oct 31, 2008
3,184
6,076
0
SCHUYLKILL HAVEN
www.android-unleashed.com
Full version of Android 5 Lollipop on Nexus Player.


What's inside ?

Kernel:
✔ NTFS, NFS/CIFS/F2FS Filesystem support
✔ USB Webcam support & USB Audio

Firmware:
✔ Full AOSP firmware with standard Android Launchers.
✔ Compatibility with many more apps from Google Play ( Also Google Plus work )
✔ MTP + ADB (transfer file from NP to PC via usb cable like your tablet/phone)
✔ Unlocked fixed Volume (now you can use any remote to UP/DOWN volume)
✔ UVC Webcam for now can work with apps like USB Camera Trial infinitegra.trial.usbcamera

What not working and i'm working on ?
✔ HAL for usb webcam (for apps like Hangout, Google Camera)
✔ External usb and bluetooth microphones. If you connect a bluetooth mic, you can lose the audio but a reboot solve.


Installation:
Download the firmware from this link: http://goo.gl/1pDBAJ

Put the device in bootloader mode:

1) fastboot flash boot boot.img
2) fastboot flash system system.img
3) fastboot -w

To root download this file http://download.chainfire.eu/631/CF-R and extract the file root.img
4) fastboot boot root.img

To restore the original firmware you can use the Factory Images "fugu" for Nexus Player https://developers.google.com/android/nexus/images


Note:
This video is just a visual example, the firmware is much faster, because i'm recording in real time with SCR app at high resolution, while using many apps.
The little hardware remote work, but for this firmware is preferable to use a mouse and keyboard.
Personally i use DroidMote because i can have mouse, keyboard, multi touch actions, soft gamepad and voice dictation all in one.
I love Android in TV and i use it from 3 years. I made this firmware for my personal use, because i like Android in my Tv with standard Android apps, that are more accessible and fast and with customizable launcher.
I have the Nexus Player just from 7 days, many more things will come in the near future.

I need your help especially to add HAL for usb uvc webcam and in the modification of the audio HAL to accept usb mic from usb webcam.
All works will be public and i'm open to share all that i have modified for now in the fugu device tree.


Sorry for my BAD English
Great work, I can't wait to see USB webcams work with hangouts and other apps, if we can get that working it will be badass, congrats on being the first ROM for the nexus player and excellent work! Happy holidays!
 

Hero_is_Over

Senior Member
Nov 5, 2012
98
134
0
Dude this is amazing. Thank you i am scared to install just because its a xmas gift and i want to see someone give the ok and i will dive in. I just want to know the best way to sideload apps/ have more apps on market maybe with a build fingerprint and some internal build.prop changes. Any help on that would be lovely
 

cdub50

Senior Member
Jul 21, 2007
467
204
0
Dude this is amazing. Thank you i am scared to install just because its a xmas gift and i want to see someone give the ok and i will dive in. I just want to know the best way to sideload apps/ have more apps on market maybe with a build fingerprint and some internal build.prop changes. Any help on that would be lovely
Chainfire has a side loading app you can use. I installed es file explorer and then opened it with the sideload app then from my phone I transfer apk's to the nexus player over WiFi.

Sent from my Nexus 6 using XDA Free mobile app
 
  • Like
Reactions: nitropwd

KalenXI

Senior Member
Aug 26, 2010
64
31
0
32
Baltimore
Is HDMI audio output one of the things not working yet or is it just my system?

Edit: Just my system apparently. Sound only works with the HDMI is plugged directly into my TV. It doesn't work when plugged into the HDMI on my audio receiver.
 
Last edited:

amberkalvin

Senior Member
Jul 19, 2010
72
21
0
Raeford, NC
Great work! I think it is strange that there is not that much activity on this ROM. I am looking forward to installing it either tonight, or tomorrow, but one quick question.

Is there anything inside the stock lollipop that isn't working? Like apps not working, or something like that? Casting I am not that concerned about, for now.

I will test soon enough and post my findings as well, but a heads up would be nice.
 
  • Like
Reactions: trophyguy

KalenXI

Senior Member
Aug 26, 2010
64
31
0
32
Baltimore
Great work! I think it is strange that there is not that much activity on this ROM. I am looking forward to installing it either tonight, or tomorrow, but one quick question.

Is there anything inside the stock lollipop that isn't working? Like apps not working, or something like that? Casting I am not that concerned about, for now.

I will test soon enough and post my findings as well, but a heads up would be nice.
So far the only ones I've found that don't work at all are Netflix and Hulu. Both crash immediately upon opening.
 

zulu99

Senior Member
Jan 6, 2009
2,348
1,482
0
Next step done. Audio from usb webcam. I'll do some more tests and then i'll add the work in the next firmware.
Voice calls in Hangout
Voice search
Sound recording
are working.

Tested with Logitech C525 webcam

It was very hard modify the audio HAL.
In the aosp code of nexus player and in the original android tv firmware, the audio hal have many restrictions and point also on some closed parts for the little remote control audio functionality. In the original version of the HAL you can't up/down the internal volume of the nexus player but you can modify only the master volume of TV with the standard remote of the TV, in addition, you can use as external audio input for voice dictation only the little remote, and you can't use programs like hangout or record sound with external microphones. The audio HAL, in other words, is very limited and block voluntary many things. I modified this part to have volume modifiable with any hardware and software remote, unlocked the volume keys and i added the ability to accept others external microphones for voice dictation and the ability to also record sound and use, in app like hangout, the external mic of others sound devices.
 
Last edited:
  • Like
Reactions: Shaffer678

zulu99

Senior Member
Jan 6, 2009
2,348
1,482
0
So far the only ones I've found that don't work at all are Netflix and Hulu. Both crash immediately upon opening.
I not have Netflix account to test, have you tested the x86 version or the arm ?

I'm working on other things, but all that works on the original firmware, will also work on LolliRock. You can try also with the original build.prop

the only thing that you must add to the original build.prop are the fields:

ro.sf.lcd_density=220
qemu.hw.mainkeys=0
 

KalenXI

Senior Member
Aug 26, 2010
64
31
0
32
Baltimore
I not have Netflix account to test, have you tested the x86 version or the arm ?

I'm working on other things, but all that works on the original firmware, will also work on LolliRock. You can try also with the original build.prop

the only thing that you must add to the original build.prop are the fields:

ro.sf.lcd_density=220
qemu.hw.mainkeys=0
At first I was trying the version installed directly from the play store. Both of which were apparently the ARM versions.

This is the crash log:

Code:
--------- beginning of crash
E/AndroidRuntime(29137): FATAL EXCEPTION: main
E/AndroidRuntime(29137): Process: com.netflix.mediaclient, PID: 29137
E/AndroidRuntime(29137): java.lang.RuntimeException: Unable to create application com.netflix.mediaclient.NetflixApplication: java.lang.IllegalStateException: Native libraries are missing!
E/AndroidRuntime(29137): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4521)
E/AndroidRuntime(29137): 	at android.app.ActivityThread.access$1500(ActivityThread.java:144)
E/AndroidRuntime(29137): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)
E/AndroidRuntime(29137): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(29137): 	at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(29137): 	at android.app.ActivityThread.main(ActivityThread.java:5221)
E/AndroidRuntime(29137): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(29137): 	at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(29137): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
E/AndroidRuntime(29137): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
E/AndroidRuntime(29137): Caused by: java.lang.IllegalStateException: Native libraries are missing!
E/AndroidRuntime(29137): 	at com.netflix.mediaclient.NetflixApplication.loadAndVerifyNativeLibraries(NetflixApplication.java:193)
E/AndroidRuntime(29137): 	at com.netflix.mediaclient.NetflixApplication.onCreate(NetflixApplication.java:172)
E/AndroidRuntime(29137): 	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1011)
E/AndroidRuntime(29137): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4518)
E/AndroidRuntime(29137): 	... 9 more
Then I tried installing the Player-specific APKs from this thread: http://forum.xda-developers.com/nexus-player/general/ref-collection-nexus-player-apks-t2976537

The Hulu from that thread works perfectly, but the Netflix apk, in addition to only appearing on the Leanback Launcher, still crashes upon launching with this error:

Code:
E/art     (  896): dlopen("/data/app/com.netflix.ninja-1/lib/arm/libnetflix.so", RTLD_LAZY) failed: dlopen failed: "/data/app/com.netflix.ninja-1/lib/arm/libnetflix.so" has unexpected e_machine: 40
E/art     (  896): No implementation found for void com.netflix.ninja.NetflixService.nativeGibbonPrepare() (tried Java_com_netflix_ninja_NetflixService_nativeGibbonPrepare and Java_com_netflix_ninja_NetflixService_nativeGibbonPrepare__)
D/AndroidRuntime(  896): Shutting down VM
E/AndroidRuntime(  896): FATAL EXCEPTION: main
E/AndroidRuntime(  896): Process: com.netflix.ninja, PID: 896
E/AndroidRuntime(  896): java.lang.UnsatisfiedLinkError: No implementation found for void com.netflix.ninja.NetflixService.nativeGibbonPrepare() (tried Java_com_netflix_ninja_NetflixService_nativeGibbonPrepare and Java_com_netflix_ninja_NetflixService_nativeGibbonPrepare__)
E/AndroidRuntime(  896): 	at com.netflix.ninja.NetflixService.nativeGibbonPrepare(Native Method)
E/AndroidRuntime(  896): 	at com.netflix.ninja.NetflixService.initNrdLib(NetflixService.java:200)
E/AndroidRuntime(  896): 	at com.netflix.ninja.NetflixService.onCreate(NetflixService.java:182)
E/AndroidRuntime(  896): 	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2731)
E/AndroidRuntime(  896): 	at android.app.ActivityThread.access$1800(ActivityThread.java:144)
E/AndroidRuntime(  896): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1361)
E/AndroidRuntime(  896): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(  896): 	at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(  896): 	at android.app.ActivityThread.main(ActivityThread.java:5221)
E/AndroidRuntime(  896): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(  896): 	at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(  896): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
E/AndroidRuntime(  896): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
W/ActivityManager(  475):   Force finishing activity com.netflix.ninja/.MainActivity
I'm still trying to find a copy of the original build.prop for the Nexus Player so I can try that.
 
  • Like
Reactions: zulu99

zulu99

Senior Member
Jan 6, 2009
2,348
1,482
0
At first I was trying the version installed directly from the play store. Both of which were apparently the ARM versions.

This is the crash log:

Code:
--------- beginning of crash
E/AndroidRuntime(29137): FATAL EXCEPTION: main
E/AndroidRuntime(29137): Process: com.netflix.mediaclient, PID: 29137
E/AndroidRuntime(29137): java.lang.RuntimeException: Unable to create application com.netflix.mediaclient.NetflixApplication: java.lang.IllegalStateException: Native libraries are missing!
E/AndroidRuntime(29137): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4521)
E/AndroidRuntime(29137): 	at android.app.ActivityThread.access$1500(ActivityThread.java:144)
E/AndroidRuntime(29137): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)
E/AndroidRuntime(29137): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(29137): 	at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(29137): 	at android.app.ActivityThread.main(ActivityThread.java:5221)
E/AndroidRuntime(29137): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(29137): 	at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(29137): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
E/AndroidRuntime(29137): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
E/AndroidRuntime(29137): Caused by: java.lang.IllegalStateException: Native libraries are missing!
E/AndroidRuntime(29137): 	at com.netflix.mediaclient.NetflixApplication.loadAndVerifyNativeLibraries(NetflixApplication.java:193)
E/AndroidRuntime(29137): 	at com.netflix.mediaclient.NetflixApplication.onCreate(NetflixApplication.java:172)
E/AndroidRuntime(29137): 	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1011)
E/AndroidRuntime(29137): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4518)
E/AndroidRuntime(29137): 	... 9 more
Then I tried installing the Player-specific APKs from this thread: http://forum.xda-developers.com/nexus-player/general/ref-collection-nexus-player-apks-t2976537

The Hulu from that thread works perfectly, but the Netflix apk, in addition to only appearing on the Leanback Launcher, still crashes upon launching with this error:

Code:
E/art     (  896): dlopen("/data/app/com.netflix.ninja-1/lib/arm/libnetflix.so", RTLD_LAZY) failed: dlopen failed: "/data/app/com.netflix.ninja-1/lib/arm/libnetflix.so" has unexpected e_machine: 40
E/art     (  896): No implementation found for void com.netflix.ninja.NetflixService.nativeGibbonPrepare() (tried Java_com_netflix_ninja_NetflixService_nativeGibbonPrepare and Java_com_netflix_ninja_NetflixService_nativeGibbonPrepare__)
D/AndroidRuntime(  896): Shutting down VM
E/AndroidRuntime(  896): FATAL EXCEPTION: main
E/AndroidRuntime(  896): Process: com.netflix.ninja, PID: 896
E/AndroidRuntime(  896): java.lang.UnsatisfiedLinkError: No implementation found for void com.netflix.ninja.NetflixService.nativeGibbonPrepare() (tried Java_com_netflix_ninja_NetflixService_nativeGibbonPrepare and Java_com_netflix_ninja_NetflixService_nativeGibbonPrepare__)
E/AndroidRuntime(  896): 	at com.netflix.ninja.NetflixService.nativeGibbonPrepare(Native Method)
E/AndroidRuntime(  896): 	at com.netflix.ninja.NetflixService.initNrdLib(NetflixService.java:200)
E/AndroidRuntime(  896): 	at com.netflix.ninja.NetflixService.onCreate(NetflixService.java:182)
E/AndroidRuntime(  896): 	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2731)
E/AndroidRuntime(  896): 	at android.app.ActivityThread.access$1800(ActivityThread.java:144)
E/AndroidRuntime(  896): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1361)
E/AndroidRuntime(  896): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(  896): 	at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(  896): 	at android.app.ActivityThread.main(ActivityThread.java:5221)
E/AndroidRuntime(  896): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(  896): 	at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(  896): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
E/AndroidRuntime(  896): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
W/ActivityManager(  475):   Force finishing activity com.netflix.ninja/.MainActivity
I'm still trying to find a copy of the original build.prop for the Nexus Player so I can try that.
You can get the original build.prop and all that you want from the original firmware.
Downlod the stock firmware, extract the system.img , convert it to standard ext4 img with the linux tool simg2img. When you have the ext4 system img, you can mount it where you want, also in windows, and in this way you can help to test many things.

Instead, when you need updated exlusive apk for the original firmware, you can reinstall the stock firmware, extract all apk that you need and share with friends. The apk name is base.apk and is inside the /data/app/your-app folder. For the leanback launcher apk in the third post, I did it this way.

I think that for netflix, you need the x86 version, you can get it from your android tv firmware. From your log, i see that you installed the arm version because the log point to an arm folder. should be x86. Maybe you have installed the ADT-1 version.
I not understand why netflix is so restrictive and monopilstic with users who have regular subscriptions. This behavior only leads to failure even if ..... http://arstechnica.com/information-...ing-fast-lanes-at-the-expense-of-competitors/

Update:
The new boot.img solve arm traslations problems. You can find the new boot.img in the first post.
 
Last edited:
  • Like
Reactions: Skyrocket2Paradise

Turbo4V

Senior Member
Jun 17, 2009
156
9
0
Really like this rom, smooth, stable and easy to install. Just wish netflix worked, i can't really use it without that.

keep up the great work, thank you!!!
 

zulu99

Senior Member
Jan 6, 2009
2,348
1,482
0
Really like this rom, smooth, stable and easy to install. Just wish netflix worked, i can't really use it without that.

keep up the great work, thank you!!!
For now, for restrictive services like Netflix, on all Android TV box, you can install Splashtop 2 Remote Desktop, connect to your PC in lan and do what you want.
If you use the Splashtop 2 Remote Desktop on the Nexus Player, i suggest to go in settings of the app and check compatibility mode.

Update:
solved with the new boot.img
 
Last edited:
Status
Not open for further replies.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone