当前位置:网站首页>用命令行 给 apk 签名
用命令行 给 apk 签名
2022-07-01 13:13:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
一、需求
在腾讯开放平台把apk 加固了,然后呢就让我重新签名
二、签名
2.1建议将待签名的apk 和 签名(keystore 或者 jks) 放到同一目录下,这样更方便
2.2 命令行cd 到该目录后运行以下命令 (注意,这里是针对同一目录下的情况,并且要保证cd 到当前目录下哦),将伪命令 替换掉即可 jarsigner -verbose -keystore 你的签名文件 -storepass 签名文件密码 -signedjar 签名后的apk名称 -digestalg SHA1 -sigalg MD5withRSA 待签名的apk 签名文件别名
2.3 举个栗子(大家最喜欢的环节)
2.3.1 放到同一个文件夹下面
2.3.2 输入下面命令,这里我是以 系统自带的默认 keystore 来举栗子的。大家对比一下两句,自己填充自己的名称以及签名
jarsigner -verbose -keystore debug.keystore -storepass android -signedjar test_signed.apk -digestalg SHA1 -sigalg MD5withRSA test.apk androiddebugkey
jarsigner -verbose -keystore 你的签名文件 -storepass 签名文件密码 -signedjar 签名后的apk名称 -digestalg SHA1 -sigalg MD5withRSA 待签名的apk 签名文件别名
2.3.3 回车后会出现下面样子,你就成功了。
2.3.4 查看生成签名的apk
2.3 说明
-jarsigner 是Java的签名工具 -verbose 参数表示:显示出签名详细信息 -keystore 表示使用当前目录中的debug.keystore签名证书文件 -storepass android 表示Keystore密码:“android” -signedjar test_signed.apk 表示签名后生成的APK名称 test.apk 表示未签名的APK 文件 -digestalg SHA1 -sigalg MD5withRSA:必须要填的,没有为什么 -androiddebugkey 表示Key别名
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/131439.html原文链接:https://javaforall.cn
边栏推荐
- Who should I know when opening a stock account? Is it actually safe to open an account online?
- Fiori 应用通过 Adaptation Project 的增强方式分享
- 机器学习—性能度量
- ZABBIX 6.0 source code installation and ha configuration
- Flutter SQLite使用
- Apache-Atlas-2.2.0 独立编译部署
- Jenkins+webhooks-多分支参数化构建-
- 图灵奖得主Judea Pearl:最近值得一读的19篇因果推断论文
- 启动solr报错The stack size specified is too small,Specify at least 328k
- CV顶会最佳论文得主分享:好论文是怎么炼成的?
猜你喜欢

流量管理技术

Vs code setting Click to open a new file window without overwriting the previous window

Different test techniques

CS5268优势替代AG9321MCQ Typec多合一扩展坞方案

Application of 5g industrial gateway in scientific and technological overload control; off-site joint law enforcement for over limit, overweight and overspeed

【牛客刷题-SQL大厂面试真题】NO2.用户增长场景(某度信息流)

Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
![Idea of [developing killer]](/img/74/f4a18afd2b86373996e4ca62b50f88.png)
Idea of [developing killer]

啟動solr報錯The stack size specified is too small,Specify at least 328k

Fiori applications are shared through the enhancement of adaptation project
随机推荐
软件测试中功能测试流程
Global and Chinese n-butanol acetic acid market development trend and prospect forecast report Ⓧ 2022 ~ 2028
Analysis report on the development prospect and investment strategy of the global and Chinese laser chip industry Ⓑ 2022 ~ 2027
机器学习—性能度量
Analysis report on the development pattern of China's smart emergency industry and the 14th five year plan Ⓠ 2022 ~ 2028
逆向调试入门-PE结构-输入表输出表05/07
Simple two ball loading
leetcode 322. Coin Change 零钱兑换(中等)
5. Use of ly tab plug-in of header component
波浪动画彩色五角星loader加载js特效
Detailed explanation of OSPF LSA of routing Foundation
word2vec训练中文词向量
China NdYAG crystal market research conclusion and development strategy proposal report Ⓥ 2022 ~ 2028
Camp division of common PLC programming software
VM virtual machine configuration dynamic IP and static IP access
Function test process in software testing
When Sqlalchemy deletes records with foreign key constraints, the foreign key constraints do not work. What is the solution?
Machine learning - performance metrics
Mysql间隙锁
Development trend and market demand analysis report of China's high purity copper industry Ⓕ 2022 ~ 2028