Creating Android Things bundle and pushing it over OTA

0 votes

Anyone succeeded creating Android Things Bundle and pushing it over OTA?

On the Android Things' Console, there's a page to Create a Bundle for the OTA.

I'm trying to figure out how to do that. I've adding just a single APK file main.apk to a ZIP file. Then I've tried to push it to a RPi which is sitting nearby. But the main.apk would not be launched on the device.

Things I've tried/done:

  • Download Empty bundle with Things Build ID=NIH40K
  • Creating a Bundle and pushing it to devices through OTA UPDATES
  • Creating a new FACTORY IMAGE with that newly created bundle
  • Still my app would not be started
  • I've checked, my app's MainActivity has action=MAIN and category=IOT_CATEGORY
  • Tried running app from my laptop via adb connect Andorid.local and it works as designed

But I couldn't make an OTA update. Anyone succeeded doing so? Thanks

Jul 6, 2018 in IoT (Internet of Things) by Matt
• 2,270 points
763 views

1 answer to this question.

0 votes

Here are all the steps necessary to make OTA update possible after creating a new product in your android things console :

1 - Create your first build configuration, either from the empty bundle in the console or from a personnal bundle you added.

2 - Download build of this build configuration. You will get an Android Things image. Flash it to your RPi as you did when you flashed the Android Things regular image. https://developer.android.com/things/hardware/raspberrypi.html#flashing_the_image

From now on, your RPi will check if a different version of your product has been pushed from the console. The check happens every 5 or 6 hours so you might have to be patient. Also your RPi needs to have internet access.

3 - Upload another bundle to your console, create a build configuration for it and then push it to your devices via the OTA updates panel of your console.

4 - You will need to manually reboot the RPi to apply the update.

answered Jul 6, 2018 by anonymous2
• 4,240 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

Connect Android Things based Raspberry Pi 3 to wifi network for the first time!

Hey, I think its alright!  Your Raspberry Pi ...READ MORE

answered Jul 19, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,158 views
0 votes
1 answer
0 votes
1 answer

Sending more than 8 byte through UART on Raspberry Pi using Android Things!

So, you can send 234212441325454543595674859764 in ASCII, ...READ MORE

answered Aug 25, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,304 views
0 votes
1 answer

Android M - Sending request over WiFi (without connection) when Mobile data is ON (with connection)

Binding the network using ConnectivityManager.setProcessDefaultNetwork() will help ...READ MORE

answered Oct 11, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
2,264 views
0 votes
1 answer

Java No Class Def Found error

I solved this issue by updating my ...READ MORE

answered Oct 8, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
1,496 views
0 votes
1 answer

Problem while disconnecting BLE device!

I think that's because of the way ...READ MORE

answered Jul 18, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
3,710 views
0 votes
1 answer
0 votes
1 answer

Android Ble GATT_ERROR 133 getting often with samsung devices

I tried the following code #!/usr/bin/python import ibmiotf.device from time ...READ MORE

answered Jul 18, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
2,456 views
0 votes
1 answer

Downloading source code of Android Things

No because AndroidThings is still in preview ...READ MORE

answered Jul 5, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
1,880 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP