[BPI-M64] New image: Android 6.0 (Version:V2)

Android 6.0 2017-01-04 for BPI-M64


HDMI-Version

Google Drive:

Baidu Cloud:

https://pan.baidu.com/s/1jI7GeTC

MD5: 7149885efd591985315d5c309f870fdc

LCD-Version

Google Drive:

Baidu Cloud:

https://pan.baidu.com/s/1kVkD0r1

MD5: e2b3b25a4439d32ef0a52ab32d138733


Release Note:

  1. Android 6.0 optimized
  2. Installed Google Service

#BPI-M64 Android 6.0.1 source code

https://drive.google.com/open?id=0B_YnvHgh2rwjaVVMSi1xU1ZOY2c

thank taili share this code.

1 Like

I don’t know what the problem is, but on my bpi-m64 it doesn’t work. Only red led shining. I’m using HDMI version and using HDMI cable. Rasbian images from official site are working, but very poor, Android 6.0 V2 HDMI - doesn’t even starts.

Well done on the image. How do you gain root access?

It seems you need to burn it differently?

thank you, i already did it. I was using Windows 10 Pro + Oracle Virtual Box + Ubuntu.

#BPI-M64 Android 6.0.1 source code

google driver link:

https://drive.google.com/open?id=0B_YnvHgh2rwjaVVMSi1xU1ZOY2c

thank taili share this code.

How do I setup root access for this image?

No root access. How to fix root Access ???

Run this adb commnad. Try again.

setenforce 0

This does not work. Is there another method to gain root or am I doing something wrong?

in what level of adb should we apply this command?

is it something like this:

adb root adb remount adb shell setenforce 0

I’ve tried

adb remount adb root adb shell su 0 setenforce 0 adb getenforce shows permissive

Not sure what the issue is, but I’m starting to think it’s permissions and maybe missing some su binary files. I’ll try pushing supersu binary files manually and changing permissions to see if I can gain root access… for a development board I was really hoping the provided images would have all this taken care of.

it’s opensource, it depands on community to develop it. push in the su binary itself is not enough, you have to load it as service from the init.rc, and easier way to modify init file is tru the android source which is available for download now.

built-in supersu will open up security risks, there will be more complaint later than the complaint of not having it.

Thanks! I’ll extract the boot and modify init.rc.

I have installed both Version 1 and 2 of this Android HDMI operating system and still having the issue with the noise in the background when playing video or music on Youtube, Kodi or Spotify.

Some of the users suggested to use Soundabout and force android to use the output as HDMI for audio, but that didnt help either!! :frowning:

Any other thoughts that you might have regarding this issue??

I have extract the init.rc in DragonFace. What shall I need to modify to receive root ?

File “init.rc

import init.common.rc
import init.sun50iw1p1.usb.rc
import init.${ro.zygote}.rc

on early-init
    mount debugfs debugfs /sys/kernel/debug/ mode=755

on init
    # Set permissions for persist partition
    mkdir /persist 0771 system system
    mkdir /firmware 0771 system system

    # Support legacy paths
    symlink /sdcard /mnt/sdcard
    symlink /sdcard /storage/sdcard0

    mkdir /oem 0550 system system
on early-fs
    insmod nand.ko
    mount_all /fstab.sun50iw1p1
    swapon_all /fstab.sun50iw1p1
    restorecon_recursive /persist

    wait /dev/block/by-name/media_data
    mount vfat /dev/block/by-name/media_data /oem ro nosuid nodev utf8,context=u:object_r:oemfs:s0

on fs
    insmod /system/vendor/modules/disp.ko
	insmod /system/vendor/modules/sunxi_tr.ko
    insmod /system/vendor/modules/hdmi.ko

	#secure storage
    insmod /system/vendor/modules/te_sec_storage.ko

	# gpu
    insmod /system/vendor/modules/mali.ko

	# sw-keystore
    mkdir /cache/HWML 0770 root system
    insmod /system/vendor/modules/sunxi_schw.ko
    chmod 0660 /dev/scdev
    chown keystore keystore /dev/scdev

	# sw-keyboard
    insmod /system/vendor/modules/sunxi-keyboard.ko

    #Justin Porting Start
    #init_dev_detect

    insmod /system/vendor/modules/gpio-sunxi.ko
    insmod /system/vendor/modules/ft5x_ts.ko  
    
     # BPI-M664-GPIO 
        chmod 777 /sys/class/gpio_sw/PH3/data
	chmod 777 /sys/class/gpio_sw/PH2/data
	chmod 777 /sys/class/gpio_sw/PH6/data
	chmod 777 /sys/class/gpio_sw/PH7/data
	chmod 777 /sys/class/gpio_sw/PH10/data
	chmod 777 /sys/class/gpio_sw/PH11/data
	chmod 777 /sys/class/gpio_sw/PD2/data
	chmod 777 /sys/class/gpio_sw/PD3/data
	chmod 777 /sys/class/gpio_sw/PD1/data
	chmod 777 /sys/class/gpio_sw/PC4/data
	chmod 777 /sys/class/gpio_sw/PC7/data
	chmod 777 /sys/class/gpio_sw/PB5/data
	chmod 777 /sys/class/gpio_sw/PB4/data
	chmod 777 /sys/class/gpio_sw/PB6/data
	chmod 777 /sys/class/gpio_sw/PL12/data
	chmod 777 /sys/class/gpio_sw/PB0/data
	chmod 777 /sys/class/gpio_sw/PB1/data
	chmod 777 /sys/class/gpio_sw/PB3/data
	chmod 777 /sys/class/gpio_sw/PB2/data
	chmod 777 /sys/class/gpio_sw/PD4/data
	chmod 777 /sys/class/gpio_sw/PC0/data
	chmod 777 /sys/class/gpio_sw/PD0/data
	chmod 777 /sys/class/gpio_sw/PC2/data
	chmod 777 /sys/class/gpio_sw/PC3/data
	chmod 777 /sys/class/gpio_sw/PB7/data
	chmod 777 /sys/class/gpio_sw/PL9/data
	chmod 777 /sys/class/gpio_sw/PL7/data
	chmod 777 /sys/class/gpio_sw/PL8/data
        chmod 777 /sys/class/gpio_sw/PE14/data
        chmod 777 /sys/class/gpio_sw/PE15/data


	# csi module
    insmod /system/vendor/modules/videobuf2-core.ko
    insmod /system/vendor/modules/videobuf2-memops.ko
    insmod /system/vendor/modules/videobuf2-dma-contig.ko
    insmod /system/vendor/modules/vfe_io.ko
    insmod /system/vendor/modules/actuator.ko
    insmod /system/vendor/modules/dw9714_act.ko
    insmod /system/vendor/modules/ov5640.ko
    insmod /system/vendor/modules/vfe_v4l2.ko

    #Justin Porting End
#Justin Porting End

	# network
    #insmod /system/vendor/modules/usbnet.ko
    #insmod /system/vendor/modules/asix.ko
    #insmod /system/vendor/modules/qf9700.ko
    #insmod /system/vendor/modules/mcs7830.ko
    #insmod /system/vendor/modules/rtl8150.ko
    #insmod /system/vendor/modules/cdc_ether.ko
    #insmod /system/vendor/modules/smsc75xx.ko
    #insmod /system/vendor/modules/smsc95xx.ko
    
     #Justin Porting Start
    insmod /system/vendor/modules/bcmdhd.ko
    insmod /system/vendor/modules/bcm_btlpm.ko
    
     #Justin Porting End 

	#bluesleep
    #insmod /system/vendor/modules/rtl_btlpm.ko

	# bluetooth
    # UART device
    chmod 0660 /dev/ttyS1
    chown bluetooth net_bt_stack /dev/ttyS1

	# power up/down interface
    chmod 0660 /sys/class/rfkill/rfkill0/state
    chmod 0660 /sys/class/rfkill/rfkill0/type
    chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
    chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type

    
     #Justin Porting Start
        # bluetooth MAC address programming
    chown bluetooth net_bt_stack ro.bt.bdaddr_path
    chown bluetooth net_bt_stack /system/etc/bluetooth
    chown bluetooth net_bt_stack /data/misc/bluetooth
    setprop ro.bt.bdaddr_path "/data/misc/bluetooth/bdaddr"
     #Justin Porting End

    # bluetooth LPM
    chmod 0220 /proc/bluetooth/sleep/lpm
    chmod 0220 /proc/bluetooth/sleep/btwrite
    chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
    chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrite
    #write /proc/bluetooth/sleep/lpm 1

	# to observe dnsmasq.leases file for dhcp information of soft ap.
    chown dhcp system /data/misc/dhcp

on property:sys.boot_completed=1
    chown system system /sys/devices/soc.0/1c2ac00.twi/i2c-0/0-0040/runtime_suspend
    chmod 0660 /sys/devices/soc.0/1c2ac00.twi/i2c-0/0-0040/runtime_suspend
    #start engsetmacaddr
    #start engsetbtmacaddr


   #Justin 20160817 Porting for BPI-M64-Root Start
     setenforce 0
   #Justin 20160817 Porting for BPI-M64-Root End


on post-fs-data
    mkdir /data/media 0770 media_rw media_rw
    # bluetooth MAC address programming
    chown bluetooth net_bt_stack ro.bt.bdaddr_path
    chown bluetooth net_bt_stack /system/etc/bluetooth
    chown bluetooth net_bt_stack /data/misc/bluetooth
    setprop ro.bt.bdaddr_path "/data/misc/bluetooth/bdaddr"
    # Set indication (checked by vold) that we have finished this action
    setprop vold.post_fs_data_done 1
    # to force to start sdcard
    #class_start late_start

    # This module write data to /data should insmod in post-fs-data
    # due to encryption

on boot
    chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

    chown system system /sys/kernel/debug/tracing
    chmod 0755 /sys/kernel/debug/tracing
    
    chown system system /sys/kernel/autohotplug/enable
    chmod 0660 /sys/kernel/autohotplug/enable

    chown system system /sys/devices/system/cpu/cpu0/cpufreq/boot_lock
    chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/boot_lock

    chown system system /sys/devices/soc.0/cpu_budget_cool.17/roomage
    chmod 0660 /sys/devices/soc.0/cpu_budget_cool.17/roomage

    chown system system /sys/class/devfreq/dramfreq/adaptive/pause
    chmod 0660 /sys/class/devfreq/dramfreq/adaptive/pause

on charger
    insmod nand.ko
    mount_all /fstab.sun50iw1p1
    insmod /system/vendor/modules/disp.ko

    class_start charger
    write /sys/module/printk/parameters/console_suspend N
    write /proc/sys/kernel/printk 0

ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL), 1)
service optee /system/bin/tee_supplicant
    class core
    user root
    group root
endif


# broadcom wifi service
# 1 broadcom wifi sta service
service wpa_supplicant /system/bin/wpa_supplicant \
   -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
   -I/system/etc/wifi/wpa_supplicant_overlay.conf \
   -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
    class main
    socket wpa_wlan0 dgram 660 wifi wifi
    disabled
    oneshot


# 2 broadcom wifi sta p2p concurrent service
service p2p_supplicant /system/bin/wpa_supplicant \
   -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
   -I/system/etc/wifi/p2p_supplicant_overlay.conf \
   -puse_p2p_group_interface=1p2p_device=1use_multi_chan_concurrent=1 \
   -m/data/misc/wifi/p2p_supplicant.conf \
   -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
   class main
   socket wpa_wlan0 dgram 660 wifi wifi
   disabled
   oneshot

I download the image, but stuck on the boot screen (green line). Same on V1 and V2 After a few second, the board is shut down. I have a 2.0A powersupply

try to burn image on emmc

What version of dragonface?