Code Monkey home page Code Monkey logo

device_brcm_rpi3's Introduction

Read it first : https://github.com/android-rpi/local_manifests/tree/android10

# Build Kernel
 $ sudo apt install gcc-arm-linux-gnueabihf libssl-dev
 $ cd kernel/rpi
 $ ARCH=arm scripts/kconfig/merge_config.sh arch/arm/configs/bcm2709_defconfig kernel/configs/android-base.config kernel/configs/android-recommended.config
 $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage
 $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make dtbs

# Install python mako module
 $ sudo apt install python-mako

# Build Android source
 Continue build with http://source.android.com/source/building.html
 $ source build/envsetup.sh
 $ lunch rpi3-eng
 $ make ramdisk systemimage vendorimage

# Prepare sd card
 Partitions of the card should be set-up like followings.
  p1 256MB for BOOT : Do fdisk : W95 FAT32(LBA) & Bootable, mkfs.vfat
  p2 640MB for /system : Do fdisk, new primary partition
  p3 128MB for /vendor : Do fdisk, new primary partition
  p4 remainings for /data : Do fdisk, mkfs.ext4
 Set volume label for /data partition as userdata
  : use -L option of mkfs.ext4, e2label command, or -n option of mkfs.vfat
 
# Write system & vendor partition
  $ cd out/target/product/rpi3
  $ sudo dd if=system.img of=/dev/<p2> bs=1M
  $ sudo dd if=vendor.img of=/dev/<p3> bs=1M
  
# Copy kernel & ramdisk to BOOT partition
  device/brcm/rpi3/boot/* to p1:/
  kernel/rpi/arch/arm/boot/zImage to p1:/
  kernel/rpi/arch/arm/boot/dts/bcm2710-rpi-3-b.dtb to p1:/
  kernel/rpi/arch/arm/boot/dts/overlays/vc4-kms-v3d.dtbo to p1:/overlays/vc4-kms-v3d.dtbo
  out/target/product/rpi3/ramdisk.img to p1:/

# HDMI_MODE : If DVI monitor does not work, try followings for p1:/config.txt
  hdmi_group=2
  hdmi_mode=85

device_brcm_rpi3's People

Contributors

i5han2 avatar ikalkov avatar kconger avatar konstat avatar marcinbis avatar peyo-hd avatar ric96 avatar secuflag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

device_brcm_rpi3's Issues

Issue with Mouse in games

Android Nougat works fine on my Raspberry Pi 3 and is fairly smooth except for one problem...
The mouse doesn't work properly in games like Flappy Bird.
(I'm not using the touchscreen, rather my TV)

When the game is in portrait mode but is stuck in Landscape, it is refitted on the screen.
(It does not fill the whole screen)
However, when this is the case, the game (doesn't matter which) only detects touches on the other half of the screen and not on the other half.
Using the debug pointer options, Android does detect them but the games do not, strangely enough.
This pretty much makes it impossible to play most mobile games.

At one point, i was able to force the game to run in rotated mode (i don't know how i did that, i would like to know) and the mouse worked fine.

Playing video is suck and screen resolution is only 720p

Hi
I flashed your ROM and spent a night to test it.

  • 720p video is good
  • 1080p is very lag.
  • Displaying colors of videos are very very bad, It looks totally different with sources.
    And beside screen resolution is only 720p on my full HD TV.
    If you don't have time to develop this ROM, guide me! I'm amateur but I want to help :D
    Email me: [email protected]

Wiki Update to help build on devices with 8GB RAM [Solution Provided]

On devices that have 8GB RAM the build fails due to GC crashing as less ram is allocated by jack.
the proper work around is by adding the following lines to buildconfig.mk

ANDROID_JACK_VM_ARGS := -Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m

the reason i am not creating a pull request is that this option sets a hard limit on memory allocation at 4096MB this means that if a device has more than 8GB ram say, 16 GB. It might suffer a slowdown as less ram is allocated.
So its better in wiki where people can modify if they have just 8GB of RAM.

interrupter.o: file is empty on incremental builds

I am getting error: out/host/linux-x86/obj/SHARED_LIBRARIES/interrupter_intermediates/interrupter.o: file is empty.

My first build ran fine, all the others fail with this error.
I do not run ccache but I respected the other mandatory instructions from this project and android.com

What I tried so far:

  • Remove all my changes using repo forall -vc "git reset --hard"
  • make clean
  • make clobber
  • deleting the content of the out directory
  • deleting all directories excepting .repo and running repo sync
  • source build/envsetup.sh and lunch rpi3-eng
  • restarted the os (ubuntu)

How can I fix my build ?

build error

in rpi3 build, getting the below error

build/core/base_rules.mk:181: *** system/tools/aidl: MODULE.linux.EXECUTABLES.aidl already defined by frameworks/base/tools/aidl.

Any help on this.

recipe for target 'silentoldconfig' failed

Hi,

I just try to compile kernel/rpi but I got a compile error.

$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage
scripts/kconfig/conf --silentoldconfig Kconfig

*** Error during update of the configuration.

scripts/kconfig/Makefile:37: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
Makefile:542: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'.

No wallpaper

Hi,

do you actually have a wallpaper working? On my device it stays black even after choosing it with the wallpaper manager (long click on the desktop). Nothing happens there and I see no errors in the Logcat. Any ideas?

Best regards,
Igor

Mesa 12.0 adaptation

Currently mesa 11.2 branch is being used for libGLES_mesa.so.
To use recent release of mesa, tried mesa 12.0 branch.
Logcat does not show significant errors, but it's not showing graphics output.

Following 3 changes are applied for this trial.
(1) external_mesa3d : https://github.com/peyo-hd/external_mesa3d/tree/dmabuf
(2) external_drm_gralloc : https://github.com/peyo-hd/external_drm_gralloc/tree/dmabuf
(3) external_libdrm : 0001-Add-new-drmGetNodeTypeFromFd-function.patch.zip

There are some commits by Rob Herring & Emil Velikov - regarding dmabuf usage,
and currently no clear plan for adapting those upon rpi3 build.
The commits could be seen on this link : https://github.com/peyo-hd/external_mesa3d/commits/dmabuf/src/egl/drivers/dri2

Boot process stuck at android animation logo

Hi,

The boot process hangs at android logo. I waited for a long time but the home screen never comes up.
What could be possible going wrong? Need your suggestions.

I need ethernet working. Hence I am not able to use standard build at https://github.com/Android-RPi3/android_releases_rpi3/releases as it does not include ethernet support.

I have partitioned as follows

device Name type flags size:
/dev/sdf1 BOOT FAT32(LBA) boot 512M
/dev/sdf2 system ext4 512M
/dev/sdf3 cache ext4 512M
/dev/sdf4 data f2fs 28G

Please let me know if you any issues with above partition table.

Thanks in advance.

Best Regards,
Sandeep

Boot with no display

The drm_gralloc project expects the HDMI connector to provide at least one mode for correct initialization. This prevents RPi3 from booting if the cable is not connected. I can image such setups to be interesting for automation or other tasks, where user application is implemented to start after boot and do some useful stuff.

Its seems to be fixable with just a couple lines of code. I'll test it tomorrow and create a pull request in the drm_gralloc project if you don't see any possible issues with it.

merge various raspi configs [request for comments]

i see more and more an issue regarding different raspi configs. thanks to @peyo-hd (!!!), we can get things going on various raspi3 platforms already.

right now, we have a nougat and a nougat-tablet branch here. @dJos1991 has created a nougat-rpi3touch branch within his repo. but some things in nougat-tablet (and nougat-rpi3touch) are outdated already (audio stuff) and i find it quite hard to merge. imagine we have 10 different raspi3 variations (i am sure there is more), do we really want to merge all branches every time nougat gets an update?

i suggest somehow to keep everything in one branch (nougat) and create different variations in AndroidProducts.mk. IMHO it should be something like:

PRODUCT_MAKEFILES := \
       $(LOCAL_DIR)/brcm_rpi3.mk
       $(LOCAL_DIR)/brcm_rpi3tablet.mk
       $(LOCAL_DIR)/brcm_rpi3rpitouch7.mk

maybe a bit more specific names.

Kernel Compile flag not support by the Ubuntu 14.04 default arm-linux-gnueabihf-gcc

As the Readme.md said, when trying to compile the kernel, errors:

 Makefile:660: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
arm-linux-gnueabihf-gcc: error: unrecognized command line option โ€˜-fstack-protector-strongโ€™
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/dtc/flattree.o

The Cross Compile toolchain information:

Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/arm-linux-gnueabihf/include/c++/4.8.4 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-armhf-cross/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-armhf-cross --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-armhf-cross --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libgcj --enable-objc-gc --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-linux-gnueabihf --program-prefix=arm-linux-gnueabihf- --includedir=/usr/arm-linux-gnueabihf/include
Thread model: posix
gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1) 

Wifi direct is not working

The driver of bcm43430 support this feature
but android rpi doesn't enable this feature in device tree
I suggested you can enable wifi direct on this
sorry for my bad english

SDTV Mode

Plz add to sdtv mode configurations on boot setting

build error1

*Getting the following errors *

including ./system/weaved/Android.mk ...
including ./system/webservd/Android.mk ...
including ./tools/external/fat32lib/Android.mk ...
make: *** [out/build-aosp_arm.ninja] Killed
make: *** Deleting file `out/build-aosp_arm.ninja'

Any reference or guidance to build sucessfully.

Display problem during Android TV 7.1 installation on Raspberry Pi 3

Hello @peyo-hd and everyone !
I have a Raspberry pi 3, it works great with Recalbox, but when I want to install Android Tv, I have black screen.
I installed the image of Android TV 7.1 on the SD card and I also tried with an image of an older version of Android and I always the same result ... The multicolored square is displayed In 720p then the display changes format (unidentified). Then I have the Android logo white one second, the display format changes again and then nothing (black screen).
The orange LED on the Raspberry flashes, so I think it happens stuff, but no way to have the image ...
The manipulations on the Config.txt file do not change anything (10 combinations of different settings tried).
HELP ME PLEASE!

Setting app would stop working when click an item

After enter the settings context, click a random item would result in "Settings has stopped".
I use the newest branch as the guide, and patched the framework as the guide instruction.

Below is the relative logs:
01-01 00:13:27.489 146 146 E GRALLOC-KMS: failed to perform page flip for primary (Device or resource busy) (crtc 43 fb 53)) 01-01 00:13:27.490 146 146 E FramebufferSurface: error posting framebuffer: -16 01-01 00:13:29.564 433 763 I ActivityManager: START u0 {flg=0x8000 cmp=com.android.settings/.Settings$BluetoothSettingsActivity (has extras)} from uid 1000 on display 0 01-01 00:13:29.941 1318 1318 D AndroidRuntime: Shutting down VM 01-01 00:13:29.943 1318 1318 E AndroidRuntime: FATAL EXCEPTION: main 01-01 00:13:29.943 1318 1318 E AndroidRuntime: Process: com.android.settings, PID: 1318 01-01 00:13:29.943 1318 1318 E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.Settings$BluetoothSettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.setHomeAsUpIndicator(int)' on a null object reference 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3403) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3443) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2716) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1461) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6088) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.setHomeAsUpIndicator(int)' on a null object reference 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at com.android.settingslib.drawer.SettingsDrawerActivity.showMenuIcon(SettingsDrawerActivity.java:228) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at com.android.settingslib.drawer.SettingsDrawerActivity.onResume(SettingsDrawerActivity.java:142) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1269) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at android.app.Activity.performResume(Activity.java:6783) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3380) 01-01 00:13:29.943 1318 1318 E AndroidRuntime: ... 10 more 01-01 00:13:29.963 433 460 W ActivityManager: Force finishing activity com.android.settings/.Settings$BluetoothSettingsActivity 01-01 00:13:30.050 433 460 W ActivityManager: Force finishing activity com.android.settings/.Settings 01-01 00:13:30.208 433 1201 I OpenGLRenderer: Initialized EGL, version 1.4 01-01 00:13:30.209 433 1201 D OpenGLRenderer: Swap behavior 1 01-01 00:13:30.209 433 1201 W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... 01-01 00:13:30.209 433 1201 D OpenGLRenderer: Swap behavior 0 01-01 00:13:30.551 433 463 W ActivityManager: Activity pause timeout for ActivityRecord{6b0efbd u0 com.android.settings/.Settings$BluetoothSettingsActivity t8 f} 01-01 00:13:30.722 1142 1165 I OpenGLRenderer: Initialized EGL, version 1.4 01-01 00:13:30.722 1142 1165 D OpenGLRenderer: Swap behavior 1 01-01 00:13:30.723 1142 1165 W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... 01-01 00:13:30.723 1142 1165 D OpenGLRenderer: Swap behavior 0 01-01 00:13:31.596 433 464 D ViewRootImpl[settings]: updatePointerIcon called with position out of bounds 01-01 00:13:31.617 433 464 D ViewRootImpl[settings]: updatePointerIcon called with position out of bounds 01-01 00:13:31.701 433 464 D ViewRootImpl[settings]: updatePointerIcon called with position out of bounds 01-01 00:13:31.717 433 464 D ViewRootImpl[settings]: updatePointerIcon called with position out of bounds 01-01 00:13:31.734 433 464 D ViewRootImpl[settings]: updatePointerIcon called with position out of bounds 01-01 00:13:31.934 433 464 D ViewRootImpl[settings]: updatePointerIcon called with position out of bounds 01-01 00:13:32.001 433 464 D ViewRootImpl[settings]: updatePointerIcon called with position out of bounds 01-01 00:13:32.844 433 717 D ConnectivityService: NetworkAgentInfo [Ethernet () - 100] validation failed 01-01 00:13:41.534 433 463 W ActivityManager: Activity destroy timeout for ActivityRecord{6b0efbd u0 com.android.settings/.Settings$BluetoothSettingsActivity t8 f} 01-01 00:13:41.534 433 463 W ActivityManager: Activity destroy timeout for ActivityRecord{e6b9a54 u0 com.android.settings/.Settings t8 f} 01-01 00:13:41.535 433 463 I WindowManager: Destroying surface Surface(name=com.android.settings/com.android.settings.Settings) called by com.android.server.wm.WindowStateAnimator.destroySurface:2033 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:884 com.android.server.wm.WindowState.removeLocked:1471 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2487 com.android.server.wm.WindowManagerService.removeWindowLocked:2445 com.android.server.wm.WindowManagerService.removeWindowLocked:2314 com.android.server.wm.AppWindowToken.removeAllWindows:601 com.android.server.wm.AppWindowToken.removeAppFromTaskLocked:329

As the log hint, maybe the framework patch guide should be updated now, which is not suitable for building the last code?

pull requests

@peyo-hd, may you have a look at my PRs? maybe more will follow, if that's the preferred method for you to receive updates. (otherwise, just let me/us know).

currently i see a lot of forks, but merges could be more frequent, IMHO.

Successfully Compiled But I Cannot Install Any App.

Just Settings and WebView Browser Tester is inside. Try to install 3rd party apk but no success ? Any suggestions?

Also tried adb via tcp and usb. TCP is finding device but not installing anything. Usb debugging is not working.

build error with external/mesa3d

Hi, as I follow the steps in README with VirtualBox, ubuntu 16.06 and latest AOSP(android-7.1.0_r4). When I make it it encounter fails. I used make -wd and got the following debug info:

including ./external/mesa3d/Android.mk ...
build/core/binary.mk:345: *** external/mesa3d/src/loader/Android.mk: libmesa_loader: LOCAL_CLANG is set to false.
Reaping losing child 0x250dfd0 PID 10092
build/core/ninja.mk:168: recipe for target 'out/build-rpi3.ninja' failed
make: *** [out/build-rpi3.ninja] Error 1
Removing child 0x250dfd0 PID 10092 from chain.

I deleted the line 91 in external/mesa3d/Android.mk, then similar problem occurred on gallium, so I deleted line 101 again and it met errors when compiling (after including). So I had to undo the above deletion and deleted the line 28 in external/mesa3d/Android.common.mk:

LOCAL_CLANG := false

This deletion works well so far and completes the including .mk part. I am still working on other compiling errors for my first image yet, so I'm not sure whether this deletion is proper.

lunch rpi3-eng command fails

able to run rpi2-eng.. but rpi3-eng fails as below
baytech@lab-HP:~/piandroid$ lunch rpi3-eng
build/core/product_config.mk:222: *** Can not locate config makefile for product "rpi3". Stop.

** Don't have a product spec for: 'rpi3'
** Do you have the right repo manifest?
where do I miss?

build error

getting error in rpi3-eng build

including ./tools/external/fat32lib/Android.mk ...
build/core/base_rules.mk:305: warning: overriding commands for target out/host/linux-x86/bin/aidl' build/core/base_rules.mk:305: warning: ignoring old commands for targetout/host/linux-x86/bin/aidl'
build/core/notice_files.mk:71: warning: overriding commands for target out/host/linux-x86/obj/NOTICE_FILES/src//bin/aidl.txt' build/core/notice_files.mk:71: warning: ignoring old commands for targetout/host/linux-x86/obj/NOTICE_FILES/src//bin/aidl.txt'
build/core/binary.mk:1147: warning: overriding commands for target out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/import_includes' build/core/binary.mk:1147: warning: ignoring old commands for targetout/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/import_includes'
build/core/binary.mk:1406: warning: overriding commands for target out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/export_includes' build/core/binary.mk:1406: warning: ignoring old commands for targetout/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/export_includes'
build/core/host_executable_internal.mk:33: warning: overriding commands for target out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl' build/core/host_executable_internal.mk:33: warning: ignoring old commands for targetout/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'libcore/libcore/ojluni/src/main/java/java/awt/font/NumericShaper.java', needed by 'out/target/common/docs/api-stubs-timestamp', missing and no known rule to make it
make: *** [ninja_wrapper] Error 1

Dialog is distorted

Hi guys

The dialog from the system is distorted on my device.

But the dialog from my application is not distorted.

I want to fix the distortion of the dialog from the system.

Is there anything you know about this problem?

build error wpa.te

line 1 "device/brcm/rpi3/sepolicy/wpa.te"

    allow wpa self:netlink_generic_socket { create { ioctl read getattr
    write setattr lock append bind connect getopt setopt shutdown } };role
    r;

just do : #allow wpa self:netlink_generic_socket create_socket_perms;

SchedPolicy: add_tid_to_group permission denied.

I see this happening a lot in logcat during many of the operations (attempting to pair a remote, etc)

Below is the logcat:
06-24 20:20:44.496 431 1845 W SchedPolicy: add_tid_to_cgroup failed to write '2543' (Permission denied); fd=25 06-24 20:20:44.497 431 1845 W ActivityManager: Failed setting process group of 2543 to 0 06-24 20:20:44.497 431 1845 W System.err: java.lang.IllegalArgumentException 06-24 20:20:44.498 431 1845 W System.err: at android.os.Process.setProcessGroup(Native Method) 06-24 20:20:44.498 431 1845 W System.err: at com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:18762) 06-24 20:20:44.498 431 1845 W System.err: at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:19246) 06-24 20:20:44.499 431 1845 W System.err: at com.android.server.am.BroadcastQueue.processCurBroadcastLocked(BroadcastQueue.java:262) 06-24 20:20:44.499 431 1845 W System.err: at com.android.server.am.BroadcastQueue.sendPendingBroadcastsLocked(BroadcastQueue.java:297) 06-24 20:20:44.499 431 1845 W System.err: at com.android.server.am.ActivityManagerService.sendPendingBroadcastsLocked(ActivityManagerService.java:16259) 06-24 20:20:44.500 431 1845 W System.err: at com.android.server.am.ActivityManagerService.attachApplicationLocked(ActivityManagerService.java:6205) 06-24 20:20:44.500 431 1845 W System.err: at com.android.server.am.ActivityManagerService.attachApplication(ActivityManagerService.java:6246) 06-24 20:20:44.500 431 1845 W System.err: at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:507) 06-24 20:20:44.501 431 1845 W System.err: at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2493) 06-24 20:20:44.501 431 1845 W System.err: at android.os.Binder.execTransact(Binder.java:453)

AtvRemoteService missing lib/ directory

This is more of an enhancement request:

The AndroidTV Remote Service will work, but it's missing the uinputbridge library from it's priv-app folder, I pulled it from the system image of the molly (ADT-1) and placed it in the AtvRemoteService folder and now the ATV Remote App works.

hostapd setup in rpi3

Hi All,

Hope somebody can help me!!!

I need to setup AP in rpi3. I am using android 6.0.1 n preview aosp source. when aosp is building i am not seeing hostapd build and also hoastapd intermediates. Later i found a line in hostapd Android.mk
ifneq($(BOARD_HOSTAPD_DRIVER),) is getting failed. So I am not able to build hostapd.

please help me to solve this issue.

Thanks in advance :-)

No apps found except settings and adb not working

I installed android 6.0.1( n preview branch) on rpi3 successfully. But here after installation i didnt find any inbuilt app. Adb is also not working so not able to install any apk file..
Pls help me.

App com.stac.ppastar not working

09-17 19:02:46.375 1147 1173 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc in tid 1173 (GLThread 115)
09-17 19:02:46.376 113 113 W : debuggerd: handling request: pid=1147 uid=10052 gid=10052 tid=1173
09-17 19:02:46.417 1395 1395 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-17 19:02:46.418 1395 1395 F DEBUG : Build fingerprint: 'Android/rpi3/rpi3:7.0/NRD90M/ric08251704:eng/test-keys'
09-17 19:02:46.418 1395 1395 F DEBUG : Revision: '0'
09-17 19:02:46.418 1395 1395 F DEBUG : ABI: 'arm'
09-17 19:02:46.418 1395 1395 F DEBUG : pid: 1147, tid: 1173, name: GLThread 115 >>> com.stac.ppastar <<<
09-17 19:02:46.418 1395 1395 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xc
09-17 19:02:46.418 1395 1395 F DEBUG : r0 8e969014 r1 8a425334 r2 00000000 r3 8a425c34
09-17 19:02:46.418 1395 1395 F DEBUG : r4 8e969014 r5 89beb954 r6 00000000 r7 00000000
09-17 19:02:46.418 1395 1395 F DEBUG : r8 8e969380 r9 8d0accf8 sl 8e9692e4 fp 8a475c14
09-17 19:02:46.418 1395 1395 F DEBUG : ip 8e96a1ec sp 903fe6d8 lr 8ce19ebd pc 8ce19f7e cpsr 80010030
09-17 19:02:46.483 1395 1395 F DEBUG :
09-17 19:02:46.483 1395 1395 F DEBUG : backtrace:
09-17 19:02:46.483 1395 1395 F DEBUG : #00 pc 0002ef7e /system/lib/dri/gallium_dri.so
09-17 19:02:46.483 1395 1395 F DEBUG : #1 pc 00020cd1 /system/lib/dri/gallium_dri.so
09-17 19:02:46.483 1395 1395 F DEBUG : #2 pc 001d2573 /system/lib/dri/gallium_dri.so
09-17 19:02:46.483 1395 1395 F DEBUG : #3 pc 001245e1 /system/lib/dri/gallium_dri.so
09-17 19:02:46.483 1395 1395 F DEBUG : #4 pc 001075c9 /system/lib/dri/gallium_dri.so
09-17 19:02:46.483 1395 1395 F DEBUG : #5 pc 0010790d /system/lib/dri/gallium_dri.so
09-17 19:02:46.483 1395 1395 F DEBUG : #6 pc 014af6ff /data/app/com.stac.ppastar-1/lib/arm/libgame.so (_ZN7cocos2d8Renderer20drawBatchedTrianglesEv+302)
09-17 19:02:46.483 1395 1395 F DEBUG : #7 pc 014af9cd /data/app/com.stac.ppastar-1/lib/arm/libgame.so (_ZN7cocos2d8Renderer14flushTrianglesEv+12)
09-17 19:02:46.483 1395 1395 F DEBUG : #8 pc 014af9e7 /data/app/com.stac.ppastar-1/lib/arm/libgame.so (_ZN7cocos2d8Renderer7flush2DEv+10)
09-17 19:02:46.483 1395 1395 F DEBUG : #9 pc 014af9f1 /data/app/com.stac.ppastar-1/lib/arm/libgame.so (_ZN7cocos2d8Renderer5flushEv+4)
09-17 19:02:46.483 1395 1395 F DEBUG : #10 pc 014afbfd /data/app/com.stac.ppastar-1/lib/arm/libgame.so (_ZN7cocos2d8Renderer20processRenderCommandEPNS_13RenderCommandE+512)
09-17 19:02:46.483 1395 1395 F DEBUG : #11 pc 014afdc1 /data/app/com.stac.ppastar-1/lib/arm/libgame.so (_ZN7cocos2d8Renderer16visitRenderQueueERNS_11RenderQueueE+336)
09-17 19:02:46.483 1395 1395 F DEBUG : #12 pc 014b0c27 /data/app/com.stac.ppastar-1/lib/arm/libgame.so (_ZN7cocos2d8Renderer6renderEv+42)
09-17 19:02:46.483 1395 1395 F DEBUG : #13 pc 0146c547 /data/app/com.stac.ppastar-1/lib/arm/libgame.so (_ZN7cocos2d5Scene6renderEPNS_8RendererE+258)
09-17 19:02:46.484 1395 1395 F DEBUG : #14 pc 01494007 /data/app/com.stac.ppastar-1/lib/arm/libgame.so (_ZN7cocos2d8Director9drawSceneEv+222)
09-17 19:02:46.484 1395 1395 F DEBUG : #15 pc 01494105 /data/app/com.stac.ppastar-1/lib/arm/libgame.so (_ZN7cocos2d19DisplayLinkDirector8mainLoopEv+44)
09-17 19:02:46.484 1395 1395 F DEBUG : #16 pc 012762fb /data/app/com.stac.ppastar-1/lib/arm/libgame.so (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeRender+10)
09-17 19:02:46.484 1395 1395 F DEBUG : #17 pc 00d3d895 /data/app/com.stac.ppastar-1/oat/arm/base.odex (offset 0xd1f000)

wifi channels: 12,13 not work

Wifi don't see channels above 11.
Tested a changed build.prop not work:

ro.wifi.channels=14
ro.product.locale.region=EU
wifi_country_code=EU

Any solution?

Compile error arm-linux-gnueabihf-gcc not found

Hi,

I just try to compile the project but I have a compile error like a file is missing.

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage

make: arm-linux-gnueabihf-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: arm-linux-gnueabihf-gcc: Command not found
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: 1: arm-linux-gnueabihf-gcc: not found
Kbuild:44: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 127
Makefile:992: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2

I followed exactly the steps described in README files but no success, any idea ?

H.264 Hardware Acceleration?

Hey, I was thinking of doing Moonlight game streaming with this, but it seems their is no H.264 hardware acceleration in the ROM. Is there any plans to add this?

libEGL.so GL API call to libGLES_mesa.so returns invalid value

Nowadays, trying to apply AOSP android-n-preview-3 branch on rpi3 build.
Build OK, but during boot-up Surfacefligner fails to initialize by libEGL.so got null on calling glGetString(GL_EXTENSIONS) to libGLES_mesa.so.

On the bottom, clipped logcat differences between Failed & OK cases.
And libEGL.so source where glGetString(GL_EXTENSIONS) returns null is here :
https://android.googlesource.com/platform/frameworks/native/+/android-n-preview-3/opengl/libs/EGL/egl_object.cpp#112

For comparison, tried using libGLES_mesa.so and accompanying binaries from npv3 build upon npv2 system image. And it's working fine.
But copying npv2 libGLES_mesa binaries into npv3 system image - shows same failure.
Then it seems the problem resides on libEGL side - it might fail to correctly calling GL API implementation in libGLES_mesa.

Suspected CLang update between AOSP npv2 & npv3, but reverting back CLang version on npv3 showed same problem.
Need further investigation from libEGL failure point.

Following link is difference between npv2 & npv3.
http://www.androidpolice.com/android_aosp_changelogs/android-n-preview-3-to-android-n-preview-4-AOSP-changelog.html

------------- Failure logcat on n-preview-3 --------------
SurfaceFlinger: Using composer version 1.0
SurfaceFlinger: EGL information:
SurfaceFlinger: vendor : Android
SurfaceFlinger: version : 1.4 Android META-EGL
SurfaceFlinger: extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_swap_buffers_with_damage EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_KHR_create_context EGL_KHR_surfaceless_context EGL_ANDROID_image_native_buffer EGL_KHR_wait_sync EGL_ANDROID_recordable
SurfaceFlinger: Client API: OpenGL_ES
SurfaceFlinger: EGLSurface: 8-8-8-8, config=0xb5a92f00
libEGL : call to OpenGL ES API with no current context (logged once per thread)
libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 209 (surfaceflinger)

DEBUG : #3 pc 000112c7 /system/lib/libEGL.so (android::egl_context_t::onMakeCurrent(void_, void_)+66)
DEBUG : #4 pc 00010ddb /system/lib/libEGL.so (android::egl_display_t::makeCurrent(android::egl_context_t_, android::egl_context_t_, void_, void_, void_, void_, void_, void_)+218)
DEBUG : #5 pc 00013845 /system/lib/libEGL.so (eglMakeCurrent+292)
DEBUG : #6 pc 00026d1d /system/lib/libsurfaceflinger.so (android::RenderEngine::create(void*, int)+244)
DEBUG : #7 pc 00018641 /system/lib/libsurfaceflinger.so (android::SurfaceFlinger::init()+316)
DEBUG : #8 pc 00000ee5 /system/bin/surfaceflinger (main+116)

------------- OK logcat on n-preview-2 --------------

SurfaceFlinger: Using composer version 1.0
SurfaceFlinger: EGL information:
SurfaceFlinger: vendor : Android
SurfaceFlinger: version : 1.4 Android META-EGL
SurfaceFlinger: extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_swap_buffers_with_damage EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_KHR_create_context EGL_KHR_surfaceless_context EGL_ANDROID_image_native_buffer EGL_KHR_wait_sync EGL_ANDROID_recordable
SurfaceFlinger: Client API: OpenGL_ES
SurfaceFlinger: EGLSurface: 8-8-8-8, config=0xb5a92f00
SurfaceFlinger: OpenGL ES informations:
SurfaceFlinger: vendor : Broadcom
SurfaceFlinger: renderer : Gallium 0.4 on VC4
SurfaceFlinger: version : OpenGL ES 2.0 Mesa 11.2.2 (git-095ca32)
SurfaceFlinger: extensions: GL_EXT_debug_marker GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_npot GL_OES_EGL_image GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_OES_surfaceless_context GL_EXT_separate_shader_objects GL_EXT_draw_elements_base_vertex GL_KHR_context_flush_control GL_OES_draw_elements_base_vertex
SurfaceFlinger: GL_MAX_TEXTURE_SIZE = 2048
SurfaceFlinger: GL_MAX_VIEWPORT_DIMS = 2048

SSL handshake issue

Hi Peter,

I got in contact with Sahaj in terms of an issue with ATV on rpi3, he suggested to open up an issue here with you.

I recently bought an rPi3 device, I installed an Android TV on it, it works perfectly, it runs smooth and I can sideload apps. Although when I installed Horizon Go app (my local TV provider's web app for online TV streaming), I get a nasty SSL error:

06-05 16:04:16.554 3090 3095 I art : Do partial code cache collection, code=55KB, data=62KB
06-05 16:04:16.556 3090 3095 I art : After code cache collection, code=55KB, data=62KB
06-05 16:04:16.556 3090 3095 I art : Increasing code cache capacity to 256KB
06-05 16:04:16.615 1990 2022 D AudioFlinger: mixer(0xb4183740) throttle end: throttle time(40)
06-05 16:04:16.653 3090 3090 W System.err: javax.net.ssl.SSLHandshakeException: Handshake failed
06-05 16:04:16.654 3090 3090 W System.err: at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:429)
06-05 16:04:16.654 3090 3090 W System.err: at android.net.SSLCertificateSocketFactory.verifyHostname(SSLCertificateSocketFactory.java:198)
06-05 16:04:16.654 3090 3090 W System.err: at android.net.SSLCertificateSocketFactory.createSocket(SSLCertificateSocketFactory.java:443)
06-05 16:04:16.655 3090 3090 W System.err: at org.apache.http.conn.ssl.SSLSocketFactory.createSocket(SSLSocketFactory.java:394)
06-05 16:04:16.656 3090 3090 W System.err: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:170)
06-05 16:04:16.656 3090 3090 W System.err: at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169)
06-05 16:04:16.656 3090 3090 W System.err: at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124)
06-05 16:04:16.657 3090 3090 W System.err: at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:366)
06-05 16:04:16.657 3090 3090 W System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:560)
06-05 16:04:16.657 3090 3090 W System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:492)
06-05 16:04:16.657 3090 3090 W System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:470)
06-05 16:04:16.658 3090 3090 W System.err: at android.net.http.AndroidHttpClient.execute(AndroidHttpClient.java:250)
06-05 16:04:16.658 3090 3090 W System.err: at by.istin.android.xcore.source.impl.http.HttpAndroidDataSource.getInputSteam(SourceFile:258)
06-05 16:04:16.658 3090 3090 W System.err: at by.istin.android.xcore.source.impl.http.HttpAndroidDataSource.getSource(SourceFile:302)
06-05 16:04:16.658 3090 3090 W System.err: at by.istin.android.xcore.source.impl.http.HttpAndroidDataSource.getSource(SourceFile:54)
06-05 16:04:16.659 3090 3090 W System.err: at by.istin.android.xcore.service.manager.AbstractRequestManager.execute(SourceFile:152)
06-05 16:04:16.659 3090 3090 W System.err: at by.istin.android.xcore.service.manager.DefaultRequestManager.run(SourceFile:30)
06-05 16:04:16.659 3090 3090 W System.err: at adz.run(SourceFile:67)
06-05 16:04:16.659 3090 3090 W System.err: at adp.run(SourceFile:165)
06-05 16:04:16.660 3090 3090 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
06-05 16:04:16.660 3090 3090 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
06-05 16:04:16.660 3090 3090 W System.err: at java.lang.Thread.run(Thread.java:761)
06-05 16:04:16.661 3090 3090 W System.err: Caused by: javax.net.ssl.SSLProtocolException: SSL handshake terminated: ssl=0x9cdcd7c0: Failure in SSL library, usually a protocol error
06-05 16:04:16.661 3090 3090 W System.err: error:10000410:SSL routines:OPENSSL_internal:SSLV3_ALERT_HANDSHAKE_FAILURE (external/boringssl/src/ssl/s3_pkt.c:610 0xadb27660:0x00000001)
06-05 16:04:16.661 3090 3090 W System.err: error:1000009a:SSL routines:OPENSSL_internal:HANDSHAKE_FAILURE_ON_CLIENT_HELLO (external/boringssl/src/ssl/s3_clnt.c:764 0xaa0eb736:0x00000000)
06-05 16:04:16.661 3090 3090 W System.err: at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
06-05 16:04:16.662 3090 3090 W System.err: at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:357)
06-05 16:04:16.662 3090 3090 W System.err: ... 21 more
06-05 16:04:16.837 3090 3121 W EGL-DRI2: Native format mismatch: 0x1 != 0x5

I tried to fix it myself, but to be honest I have no clue where to start, https in general looks good in the build, if I install a Chrome, I am able to open up SSL based pages. The same build from Horizon Go works on many other devices in my house, so I believe the app is OK, just something maybe is missing from this Android build. I also tried another Android branch (RaspAnd) on my device, there the Horizon Go app works, but there are many issues with that Android build I would like to use your code on my device.

Please advise! Thank you!

Chris

rpi3 with lollipop

Hi,

I need a lollipop version for rpi3. Is there a way to have device_brcm_rpi3 build with the lollipop branch on local_manifest?
I was looking at your site and recalled you have a 160315 lollipop build that runs on rpi3 as well.
Can you give me some pointers?

Currently I'm trying to use libGLES_android in rpi3 and I am getting SurfaceFlinger error during start-up

E/SurfaceFlinger( 119): hwcomposer module not found
W/SurfaceFlinger( 119): no suitable EGLConfig found, trying a simpler query
F/SurfaceFlinger( 119): no suitable EGLConfig found, giving up
--------- beginning of crash
F/libc ( 121): Fatal signal 6 (SIGABRT), code -6 in tid 121 (surfaceflinger)

Thanks in advance.

Enoch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.