蓝雪 发表于 2015-1-23 22:22:49

通过Tizen SDK的蓝牙功能给Gear系列手表解锁

我使用Tizen Wearable SDK 成功解锁了Tizen手表的开机锁,这个特征本来被移除了,但我又重新把它启用。这个功能让你可以直接写入应用程序,Tizen Wearable SDK也可以和任何带有蓝牙功能的可穿戴设备通迅。

你必须要用Ubuntu 12.04作为 工程工具, 因为GBS和Gerritt只能在linux下才能工作。

Step 1 -下载包含Gerritt Build System (GBS) 和Gerritt 的Tizen开发工具。通过Tizen的官方主页注册GErritt . 并配置你的电脑创建rpm包。

Step 2 - 从framwork下的gerritt下载 wrt-plugins-tizen.git 包,然后在你的电脑完成编译

Step 3 - 让你的gear2被root过,以使它可以使用sdb工具,然后推送刚刚编译的wrt-plugins-tizen.rpm至你的Gear手表上。

Step 4 -使用 sdb, 登陆shell (比如: ./sdb shell)

下面的不译了,专业的都能看懂,不专业的解释也没用

Step 5 - CD to the folder with the new rpm wrt-plugins-tizen.rpm file is located.

Step 6 - Change the filesystem on the gear to read/write from read only. Ex: Sh$ mount -o remount,rw /

Step 7 - Install the wrt-plugins-tizen.rpm over the already installed version. Ex: Sh$ rpm -ivh wrt-plugins-tizen.rpm -nodeps --force

Step 8 - Restart your Gear 2 and you should be able to call the methods and functions for Bluetooth in the Tizen
(Ex: var adapter = tizen.bluetooth.getDefaultAdapter();
console.log(adapter.address);

Before this would result in a null listing on the console, but now you should have the bluetooth address in the console. I have verified discovery works and other Bluetooth functions.

Happy Building!!
页: [1]
查看完整版本: 通过Tizen SDK的蓝牙功能给Gear系列手表解锁