找回密码
 立即注册
查看: 2452|回复: 0

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

[复制链接]
发表于 2015-1-23 22:22:49 | 显示全部楼层 |阅读模式
我使用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!!
欢迎来到泰泽网:http://www.tizennet.com/ 泰泽论坛:http://bbs.tizennet.com/ 好没有内涵哦,快到设置中更改这个无聊的签名吧!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|泰泽应用|泰泽论坛|泰泽网|小黑屋|Archiver|手机版|泰泽邮箱|泰泽网 ( 蜀ICP备13024062号-1 )

GMT+8, 2024-4-25 22:45 , Processed in 0.106212 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表