Files
zhini_im/获取应用SHA1.bat
rw0067680 c01808ac21 first commit
Change-Id: Ib7c2ab10a2562044fcaf9879388a6cbc1db6ac61
2025-12-23 10:00:49 +08:00

54 lines
1.8 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
chcp 65001 >nul
echo ========================================
echo 获取当前应用SHA1签名
echo ========================================
echo.
echo [1] 检查Release版本SHA1使用keystore2...
echo ----------------------------------------
if exist keystore2 (
echo 正在读取 keystore2...
keytool -list -v -keystore keystore2 -storepass yuchen.com -alias yuchen | findstr /i "SHA1"
echo.
echo 完整证书信息:
keytool -list -v -keystore keystore2 -storepass yuchen.com -alias yuchen
echo.
) else (
echo ❌ 未找到keystore2文件
echo 当前目录: %CD%
echo.
)
echo [2] 检查Debug版本SHA1系统默认debug.keystore...
echo ----------------------------------------
if exist "%USERPROFILE%\.android\debug.keystore" (
echo 正在读取系统默认debug.keystore...
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -storepass android -alias androiddebugkey | findstr /i "SHA1"
echo.
) else (
echo ⚠️ 未找到Debug keystore可能尚未生成
echo 路径: %USERPROFILE%\.android\debug.keystore
echo.
)
echo ========================================
echo SHA1使用说明
echo ========================================
echo.
echo 1. 复制上面显示的SHA1值去掉冒号和空格
echo 2. 登录高德开放平台: https://lbs.amap.com/
echo 3. 进入"应用管理" → 找到对应的应用
echo 4. 添加或修改SHA1配置
echo - Debug版本开发测试时使用
echo - Release版本正式发布时使用
echo 5. 确保以下配置正确:
echo - ✅ 包名: com.xunpaisoft.social
echo - ✅ SHA1: 必须与上面的SHA1值一致
echo - ✅ 平台: Android平台不能是Web服务
echo - ✅ 服务权限: 必须开启"定位服务""搜索服务"
echo.
pause