2995840376 0ce191c448 chore: 初始化 iotsaas 版本库基线
纳入范围:
- 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
2026-10-27 12:00:41 +08:00

2.2 KiB
Raw Permalink Blame History

Thing Security Guide

Full document link: https://developer.tuya.com/docs/app-development/

Getting Started

  1. Unzip the tar and get the xxx.aar file.

  2. Take the xxx.aar file into your project/app/libs folder.

  3. Make suer you have the following code in your project/app/build.gradle file.

    apply plugin: 'com.android.application'
    // xxx
    dependencies {
      implementation fileTree(include: ['*.aar'], dir: 'libs')
    }
    
  4. Make sure you don't have this file in any of your directories:t_s.bmp .

  5. Make sure your application 's package name is consistent with the Tuya's configuration.

  6. Make sure your AppKey and AppSecret are consistent with the Tuya's configuration.

  7. Make suer your keystore file's SHA256 is 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.