纳入范围: - backend/ Spring Boot 多模块后端(iot-common/device/rule/data/alarm/auth) - frontend/admin/ Vue3 + Element Plus 管理后台 - Android/ 涂鸦原生 APP (com.xhai.iot) - backend/sql/ Flyway 风格迁移脚本(V2~V21) - docs/ 对接文档与设计文档 排除范围: - 构建产物: node_modules/ target/ build/ dist/ .gradle/ - 签名密钥: *.jks *.keystore (严禁入库) - 本机配置: Android/local.properties - 运行日志: logs/ *.log - AI 协作本地数据 .codebuddy/ 与第三方 demo tuya-demo/ .gitattributes 统一以 LF 存储, Windows 批处理保留 CRLF
2.2 KiB
Thing Security Guide
Full document link: https://developer.tuya.com/docs/app-development/
Getting Started
-
Unzip the tar and get the
xxx.aarfile. -
Take the
xxx.aarfile into yourproject/app/libsfolder. -
Make suer you have the following code in your
project/app/build.gradlefile.apply plugin: 'com.android.application' // xxx dependencies { implementation fileTree(include: ['*.aar'], dir: 'libs') } -
Make sure you don't have this file in any of your directories:
t_s.bmp. -
Make sure your application 's
package nameis consistent with the Tuya's configuration. -
Make sure your
AppKeyandAppSecretare consistent with the Tuya's configuration. -
Make suer your
keystore file's SHA256is configured in the Tuya's configuration. (How to get the keystore's SHA256 and How to add the keystore's SHA256 in Tuya's platform)
Note for TRIAL_VERSION
- If you are using the trial version, you may encounter a permission prompt of "applying for location" when the application starts, this is to prevent the trial version from being misused and put it on the application market.
- If you are using the trial version, there will be a Toast prompt when the application starts.
QA
-
Permission verification failed
The high probability is caused by incorrect algorithm-xxx.aar
-
illegal client
It is necessary to check whether the AppKey, AppSecret, package name, keystore‘s sha256, algorithm-xxx.aar file are consistent with the Tuya platform configuration. the full issue doc.