Jump to content



Photo

Allwinner SDK Configuration - A20 A31 A31s

Official

  • Please log in to reply
2 replies to this topic

#1 Wolly Xu

Wolly Xu

    Administrator

  • Administrators
  • 1792 posts

  • Devices:VidOn Box
  • VidOn XBMC:v 15.2.2, v 14.2.1
  • VMC:v 0.0.1.9
  • SDK:v 1.4

Posted 09 January 2015 - 10:32 AM

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.

  Change 

if (!PixelFormat.formatHasAlpha(attrs.format))  

to

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

Please see the picture
Attached File  A66366CF-B24C-46CF-93E1-638C0599491E.png   25.77KB   1 downloads


  • nghiadhd likes this

#2 Wolly Xu

Wolly Xu

    Administrator

  • Administrators
  • 1792 posts

  • Devices:VidOn Box
  • VidOn XBMC:v 15.2.2, v 14.2.1
  • VMC:v 0.0.1.9
  • SDK:v 1.4

Posted 31 March 2015 - 11:06 AM

Updated!

If any manufacturer wants to run the VidOn XBMC on their Allwinner Android Box, please modify the SDK first. It's free.

You can modify it by yourself if you are able to do it.

if you don't have the source code of SDK, you can also ask your solution provider to change the code, then build a new .img file for burning on the box.

 

If you still have problems after updating the SDK, please feel free to contact us.



#3 trojanbarbosa

trojanbarbosa

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 08 July 2016 - 12:12 AM

Hello! I have a "BOX TV cs918s Allwinner A31", as I do this change? What programs use to edit the lines? The ROM will modify have .img extension







Also tagged with one or more of these keywords: Official

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users