This application demonstrates accessing the
BluetoothGattServer Android API
from within an Android Things application. The sample application advertises
the Current Time Service,
and implements the server role of the GATT
You can set the system clock date/time manually on your Android Things board
date shell command over ADB.
By default, the command accepts a new date in the
# Reboot ADB into root mode $ adb root # Set the date to 2017/12/31 12:00:00 $ adb shell date 123112002017.00
You can set the system time zone manually by updating the
system property over ADB.
# Reboot ADB into root mode $ adb root # Set the time zone to US Mountain Time $ adb shell setprop persist.sys.timezone "America/Denver"
Copyright 2017 The Android Open Source Project, Inc.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.