android-things

Android Things: ADB over USB on Raspberry Pi

北城以北 提交于 2019-12-17 16:53:37
问题 I'm playing with Raspberry Pi 3 Model B and Android Things . I was able to configure everything (connect Pi over Ethernet , then reconnect over Wi-Fi with Android.local ) and debug the app. However it's not convenient sometimes to debug over Wi-Fi when I travel and I have to change Wi-Fi networks or don't have Wi-Fi connection at all. I know there is serial debug console, but it seems to be for getting logs and shell commands, not for debugging. Any chance to have direct debugging over USB

Can't use Serial debug console on Raspberry pi 3B Android Things

被刻印的时光 ゝ 提交于 2019-12-13 10:24:02
问题 I am trying to connect my Raspberry pi 3B which has Android Things installed to my PC using the Serial debug cable. I connected it as instructed Here and followed the below steps using PUTTY on Windows 10. N.B: Same issue is with the Android Emteria version for Raspberry pi 3B. All I get is an empty console window, which I can't even type into. The device is not seen either in Android studio or using the ADB tool I am not sure about which Com to use, here's my device manager: Note I am able

Execute Script on Boot Android Things

本秂侑毒 提交于 2019-12-13 04:11:05
问题 I am developing with raspberry pi3 on Android Things. I am trying to execute a Script on boot, modifying init.rc file as so: sys.boot_completed = 1: on property: sys.boot_completed = 1 bootchart stop # WLD 201805031702 chmod +x /system/bin/myScript.sh //Added by me sh /system/bin/myScript.sh //Added by me I don't know why, but the Script doesn't get execute, i have tried to change "hostname anyName" instead of executing the Script on these lines of init.rc file, and it does pass throw these

Display camera preview on Raspberry Pi Android things

孤街醉人 提交于 2019-12-13 03:27:42
问题 I was working on an app that runs on a Raspberry Pi with Android Things and is supposed to show a Camera preview onto an external display and there's a push button attached to the demo which on being pressed, captures a picture from the camera and does some computation on that captured image. I've successfully completed the second part, but while trying to get a camera preview on the screen, the app crashes for me. I got my RPi yesterday and I tried running the Camera2 sample on Github (https

Android Things 5.1 - 9 bit UART

偶尔善良 提交于 2019-12-12 19:45:52
问题 I'm trying to support 9-bit UART using Android Things, When I try to set the data size to 9 I receive IO exception. The only configurations that works are 7 and 8 bits. I know that is possible to make 9-bit emulation using the parity error interrupt, but on android things, I don't receive any handler of it. I tried also to set it using the native library, same exception. Is there a chance to have this interrupt? I'm using Pico-Pi iMX7D. I don't understand why there is no high-level support of

Android Things bundle - UnsatisfiedLinkError

狂风中的少年 提交于 2019-12-12 08:57:19
问题 I use a native library in my Android Things project. While using Android Studio to build and install an app on RPi3 with Android Things Dev preview 0.4.1 everything works fine. Even if I manually assemble release apk and install it through an adb install - it works as usual. But if I create a new zip bundle and upload it to Android Things console, and then burn an SD card with newly created image, the UnsatisfiedLinkError is thrown on boot: java.lang.UnsatisfiedLinkError: dalvik.system

Android Things with bindservice and kotlin - onResume and onPause Or Coroutines Or RxJava

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 17:19:25
问题 In this project: https://github.com/neuberfran/SmartDrive5, file: ModoComFirebase.kt I have issue BCM18 is already in use by PID, Because this gpio was opened in DriverService.kt file before. My question is: The Application class ModoAutomatico.kt has no methods onPause and onResume. How to use foreground service in this case to solve my Issue ? 回答1: The Application class ModoAutomatico.kt has no methods onPause and onResume. This is because the Application class is a singleton. It starts

Google Assistant on RPI3 with Android Things

独自空忆成欢 提交于 2019-12-11 16:17:50
问题 I tried to follow the documentation and got stuck in the point Open a terminal and follow the instructions to configure a new Python virtual environment and install the `google-assistant-library. The link in this point redirects to a general page (Introduction to the Google Assistant Library) rather than the instructions. I think it misses the explanation what it means to open the terminal and exact steps to be followed. Is the link really correct? Maybe I need help in using the console

How to rotate HDMI display with Android Things

谁都会走 提交于 2019-12-11 16:05:22
问题 Is there any way to rotate the screen? I mean, I would like to rotate my monitor 90º, I already tried to add the screen-rotation on the manifest, lcd_rotation and display_rotation both on boot/config.txt but without success. Is that possible? Thanks in advance! 回答1: Try to change the orientation of your activity. In your manifest.xml, add the following line in the activity section: android:screenOrientation="portrait" 回答2: I was able to do a workaround for this issue while there's no

Android Things - pico i.mx7 unable to connect

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 14:55:42
问题 I've just unpacked my new Pico Pro Maker Kit and started flashing procedure. After creating a product in AndroidThings platform and downloading the build I've started flashing procedure. Command flash-all.sh failed on fastboot syntax, so I've build that manually and found that it was failing on part "set_active _a". I've skipped that and continued to flash device. Now device is rebooted, I can see on the screen androidThings logo and version + info about network status ("not connected"). I'm