Support for VidOn XBMC

Amlogic SDK Configuration - S802 S805 S812

1. Permission:

Please change the permissions in the two files below.

device/amlogic/common/init/mbx/init.amlogic.rc

 

device/amlogic/common/init/mbx/ueventd.amlogic.rc
 

         chmod 666 /dev/amvideo

         chmod 666 /dev/amstream*

         chmod 666 /sys/class/video/axis

         chmod 666 /sys/class/video/screen_mode

         chmod 666 /sys/class/video/disable_video

         chmod 666 /sys/class/tsync/pts_pcrscr

         chmod 666 /sys/class/audiodsp/digital_raw

         chmod 666 /sys/class/ppmgr/ppmgr_3d_mode

         chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

         chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

         chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

         chmod 666 /sys/class/video/blackout_policy

         chmod 666 /dev/snd/controlC0

         chmod 666 /dev/snd/pcmC0D0c

         chmod 666 /dev/snd/pcmC0D0p

         chmod 666 /dev/snd/pcmC0D1c

         chmod 666 /dev/snd/pcmC0D1p

         chmod 666 /dev/snd/timer

         chmod 666 /sys/class/audiodsp/digital_codec

         chmod 666 /sys/devices/platform/spdif-dit.0/spdif_mute

         chmod 666 /sys/class/amhdmitx/amhdmitx0/config

         chmod  666 /sys/class/display/mode

        

 

2. Change:

   frameworks/base/services/java/com/android/server/wm/WindowStateAnimator.java

Change this piece of code 

   boolean isNeedOpaque = attrs.getTitle().toString().contains("xbmc.Main") ? false : true;

to

 boolean isNeedOpaque = true;

                String attrsTitle = attrs.getTitle().toString();
                if (attrsTitle.contains("xbmc.Main") || attrsTitle.contains("xbmc.kodi") || attrsTitle.contains("org.vidonme"))
                    isNeedOpaque = false;

3. Change:

Change the "android:protectionLevel" to "normal" in the file below.
frameworks/base/core/res/AndroidManifest.xml

android:label="@string/permlab_accessSurfaceFlinger"
android:description="@string/permdesc_accessSurfaceFlinger"
android:protectionLevel="normal" />