Support for VidOn XBMC

Allwinner SDK Configuration - A20 A31 A31s

1. 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" />


2. Permission:

Change the permission in this file "ueventd.sun6i.rc"

/dev/cedar_dev                  0777   media      media

/dev/snd/pcmC0D0c         0777   media      media

/dev/snd/pcmC0D0p         0777   media      media

/dev/sunxi_mem                 0777   media      media

/dev/sr0                                 0777   system     system

 

3. Change

   frameworks/base/services/java/com/android/server/wm/WindowStateAnimator.java   (About line 684)

Step 1. Add Code Below
 

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


  Step 2.

  if (!PixelFormat.formatHasAlpha(attrs.format))  --> if (!PixelFormat.formatHasAlpha(attrs.format) && isNeedOpaque)

Please see the picture