android-things

How to upload a custom build configuration to Android Things with just a main.apk

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 11:06:33
问题 I'm currently working with a Raspberry Pi 3 and Android Things (with the official RPi touch screen), and I'm trying to understand the process of flashing a custom build. I have already gone through the process of creating a starter build, and now I'm having issues with getting my main.apk booting up when I flash the image. I have already viewed this question and it doesn't seem to illuminate why mine isn't working. The AndroidManifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns

Android ROM and Raspberry PI 3 plus NFC

我的梦境 提交于 2019-12-11 09:26:05
问题 We are working with Android Things on Raspberry pi 3, everything works great, recently we got an NXP board called OM5578/PN7150, basically to use NFC efficiently. Through NXP guide (AN11690 NXPNCI Android Porting Guidelines) I need: Add the drive in the Kernel Customize the AOSP (Android Open Source Project) I would like to know: Which version of the kernel is best for recompiling by adding the drive with Raspberry pi 3 support Which version of AOSP is recommended for Raspberry pi 3 in kiosk

Using the i2c smartdrive sensor with a Pio Cli commands to run motors

戏子无情 提交于 2019-12-11 07:21:47
问题 This is my i2c sensor: http://www.mindsensors.com/rpi/76-smartdrive-high-current-motor-controller look in pdf in Documents sessions please Based on this google guide https://developer.android.com/things/sdk/pio/pio-cli.html What I need to put in XX ZZ YY UU to run motors in determined speed, direction, duration, etc... e.g.: pio i2c I2C1 0x1B write-reg-buffer 0xXX 0xYY 0xUU 0xZZ As (in this case) I will use writeRegBuffer() on my android things app to run one, two or both motors in determined

Android Things 0.5.1 boot failed on Raspberry Pi 3

只谈情不闲聊 提交于 2019-12-11 07:14:19
问题 I've tested Android Things 0.4.1 image which I've downloaded before builds moving into console on RPI3 successfully but every image I've build with Android Things Console with empty bundle failed to boot even image 0.4.1 I've build with Android Things console failed to boot, Here is serial console error: U-Boot 2017.07-03124-gc35995ad17 (Aug 18 2017 - 02:52:42 +0000) DRAM: 944 MiB RPI 3 Model B (0xa22082) MMC: mmc@7e300000: 0 reading uboot.env In: serial Out: serial Err: serial Net: No

Android Nearby not working on Android Things

∥☆過路亽.° 提交于 2019-12-11 07:02:49
问题 I have have the following code: OnFailureListener onFailureListener = new OnFailureListener() { @Override public void onFailure(@NonNull Exception e) { Log.e(TAG, "bum", e); } }; connectionsClient.startAdvertising("Device A", getPackageName(), myCallback, new AdvertisingOptions(STRATEGY)) .addOnFailureListener(onFailureListener); If I run in on my phone it works as expected, but when I run it on my Android Things device I get the following error com.google.android.gms.common.api.ApiException:

Unable to connect Rainbow Hat/Raspberry pi3 with Android Things using adb

青春壹個敷衍的年華 提交于 2019-12-11 06:33:26
问题 I'm using Pimoroni Rainbow-Hat Raspberry pi3 kit. I have loaded android things image on sdcard. I have power cable and ethernet cable connected. I can see Android things boot screen on display but i don't see the IP. When i try to connect with adb connect Android.local it's not working(getting unknow host). I tried the ethernet cable from pi3 ethernet port to laptop , i can see the lan ip when i do ipconfig /all but when i try adb connect <-ip-:5555, still connection gets refused. but am able

Android Things UART not receiving data (RPi3)

旧街凉风 提交于 2019-12-11 04:58:42
问题 I have a Raspberry Pi 3 with Android Things running on it, and I'm trying to write an application that makes use of UART serial. I used the sample code in Android Things documentation for sending data, and it worked perfectly, but the code supposed to receive data returns empty bytes. while ((count = uart.read(buffer, buffer.length)) > 0) { Log.d(TAG, "Read " + count + " bytes from peripheral"); } There's an interrupt for when the UART buffer gets some data in, and that gets triggered calling

Internet for Raspberry Pi 3 running on Android Things via a GSM modem

自作多情 提交于 2019-12-11 04:42:02
问题 Has anyone figured a way of installing PPPD or something similar in order to have an active internet connection via a GSM modem on a Raspberry Pi 3 running on Android Things DP5? Thank you! 回答1: Seems DP5 of Android Things still didn't support Internet connections via USB modem dongles (and it's impossible to add support manually, because as in this answer of Blundell described: the source code is not available for Developer Preview). But You can use UART and AT commands like AT+SAPBR . 来源:

Android Things - Creating a Camera Preview Session Fails, and no Preview is shown

跟風遠走 提交于 2019-12-10 23:42:27
问题 I am trying to deploy the Android TensorFlow-Lite Example, specifically, the Detector Activity. I have had success in deploying it in a Tablet. The app works great, it is able to detect objects, put a bounding rectangle around it, with a label as well as a confidence level. I then set up my Raspberry Pi 3 Model B Board, installed Android Things in it, connected via ADB, and then deployed the same program from Android Studio. However, the screen I was using for my Rπ board was blank. Upon

Reboot programmatically Android Things

眉间皱痕 提交于 2019-12-10 23:17:56
问题 I want to use this code in order to reboot my RPI3 running Android Things : public static void Reboot() { try { Process proc = Runtime.getRuntime().exec(new String[]{"su", "-c", "reboot"}); proc.waitFor(); } catch (Exception ex) { ex.printStackTrace(); } } I get the following error: java.io.IOException: Cannot run program "su": error=13, Permission denied I add to the manifest all the permission <uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name=