当前位置:网站首页>用命令行 给 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
边栏推荐
- Class initialization and instantiation
- 启动solr报错The stack size specified is too small,Specify at least 328k
- The 14th five year plan of China's environmental protection industry and the report on the long-term goals for 2035 Ⓖ 2022 ~ 2028
- 1553B environment construction
- Router. use() requires a middleware function but got a Object
- Introduction to reverse debugging PE structure input table output table 05/07
- 终端识别技术和管理技术
- Google Earth Engine(GEE)——全球人类居住区网格数据 1975-1990-2000-2014 (P2016)
- PG基础篇--逻辑结构管理(触发器)
- Project deployment is not difficult at all!
猜你喜欢

mysql统计账单信息(下):数据导入及查询

Google Earth Engine(GEE)——全球人类居住区网格数据 1975-1990-2000-2014 (P2016)

A Fletter version of Notepad

北斗通信模块 北斗gps模块 北斗通信终端DTU
![[Niu Ke's questions -sql big factory interview real questions] no2 User growth scenario (a certain degree of information flow)](/img/a0/e9e7506c9c34986dc73562539c8410.png)
[Niu Ke's questions -sql big factory interview real questions] no2 User growth scenario (a certain degree of information flow)
Example code of second kill based on MySQL optimistic lock
基于mysql乐观锁实现秒杀的示例代码

内容审计技术

Hardware development notes (9): basic process of hardware development, making a USB to RS232 module (8): create asm1117-3.3v package library and associate principle graphic devices

Computer network interview knowledge points
随机推荐
Professor Li Zexiang, Hong Kong University of science and technology: I'm wrong. Why is engineering consciousness more important than the best university?
Yarn restart applications record recovery
8 popular recommended style layout
Shell script imports stored procedures into the database
SSO and JWT good article sorting
Introduction to reverse debugging PE structure input table output table 05/07
Apache-atlas-2.2.0 independent compilation and deployment
学历、长相、家境普通的人,未来的发展方向是什么?00后的职业规划都已经整得明明白白......
Flutter SQLite使用
Google Earth Engine(GEE)——全球人类居住区网格数据 1975-1990-2000-2014 (P2016)
A Fletter version of Notepad
Operator-1 first acquaintance with operator
Hardware development notes (9): basic process of hardware development, making a USB to RS232 module (8): create asm1117-3.3v package library and associate principle graphic devices
nexus搭建npm依赖私库
VM虚拟机配置动态ip和静态ip访问
Camp division of common PLC programming software
Redis exploration: cache breakdown, cache avalanche, cache penetration
What is the future development direction of people with ordinary education, appearance and family background? The career planning after 00 has been made clear
6. Wiper part
【牛客刷题-SQL大厂面试真题】NO2.用户增长场景(某度信息流)