Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What's new in Android Things

What's new in Android Things

Google I/O Extended Bangkok 2018

More Decks by Kajornsak Peerapathananont

Other Decks in Technology

Transcript

  1. What’s new in Android Things 1.0 • Long-term support •

    Home Activity Support • Device Updates (OTA)
  2. <application android:label="@string/app_name"> <activity android:name=".HomeActivity"> <!-- Launch activity automatically on boot,

    and re-launch if the app terminates. --> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.HOME"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </activity> </application> Home Activity Support
  3. Device Updates <uses-permission android:name="com.google.android.things.permission.MANAGE_UPDATE_POLICY" /> <uses-permission android:name="com.google.android.things.permission.PERFORM_UPDATE_NOW" /> val manager

    = UpdateManager.getInstance() val policy = UpdatePolicy.Builder() .setPolicy(UpdatePolicy.POLICY_APPLY_ONLY) .setApplyDeadline(7L, TimeUnit.DAYS) .build() manager.setPolicy(policy) public static final int POLICY_APPLY_AND_REBOOT = 1; public static final int POLICY_APPLY_ONLY = 2; public static final int POLICY_CHECKS_ONLY = 3;
  4. Peripheral I/O • GPIO • PWM • I2C • SPI

    • UART • PIO CLI Tool $ pio gpio GPIO1_IO10 write 0 $ pio gpio GPIO2_IO07 read 1 $ pio pwm PWM1 enable 1 --duty=55.0 --freq=200
  5. How to start? • Build a proof of concept (POC)

    • Build a prototype • Make a production line
  6. Platform differences System UI Fingerprint NFC Telephony CalendarContrac t Settings

    MediaStore Telephony Runtime Permissions APIs Common Intents android:extractNativeLibs="false" Native Code