当前位置:网站首页>Apk signature process introduction [easy to understand]
Apk signature process introduction [easy to understand]
2022-07-01 17:49:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
actually , Now? Android Development IDE With signature function , But sometimes we may encounter our own signatures apk The scene of , For example, you have an unsigned apk, But you have to adb install To device On , At this time we are adb install You have to deal with this before apk Only after signature processing can install success , This article simply introduces apk Signature process .
1、 Generate signing certificate
Signing requires signing certificate , There are actually many types of signing certificates , Such as jks、keystore etc. , Here to generate keystore As an example to generate a yjing.keystore Sign certificate file .
This paper makes use of JDK Under the keytool Tools to generate keystore file , I believe the configuration is good Android Children's shoes in the development environment should not be encountered keytool The problem that the tool cannot find , The command is directly used here
keytool -genkey -alias keyAlias -keyalg RSA -validity 20000 -keystore yjing.keystoreThe meanings of the above command parameters are as follows :
-genkey Generate the file
-alias Alias
-keyalg encryption algorithm
-validity The period of validity ( God )
-keystore file name
That's it , We created a yjing.keystore The signature of , In fact, you need to fill in some basic information during the signing process , Just fill in this casually , Then after the signature is successful, you will find the following prompt
You can see keytool The tool is now recommended JKS The signing certificate of , It doesn't matter , Anyway, we have got yjing.keystore 了 ( I made yjing.keystore The file in C://users/ Under the corresponding user name ).
2、 Yes apk To sign
Yes apk Sign or use JDK Under the jarsigner Tools to carry out , We sign by the following command
jarsigner -verbose -keystore yjing.keystore -signedjar signed.apk unsigned.apk keyAliasLet's talk about parameters here -verbose Output signature details
-keystore Keystore location Followed by the signature certificate file path
-signedjar Indicates signing
signed.apk Generated signature file ( When it is not the current path , You need to add a path )
unsigned.apk Indicates an unsigned file
yjing.keystore Sign certificate file
keyAlias Alias when generating signature
The signature can also be successfully generated through the above command apk file signed.apk 了
reference
1、 handy , Teach you how to use the command line to apk Signature 2、 Generate signing certificate keystore
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/130888.html Link to the original text :https://javaforall.cn
边栏推荐
- [C supplement] [string] display the schedule of a month by date
- Openlayers 自定义气泡框以及定位到气泡框
- ArrayList扩容详解
- vulnhub靶场-Hacker_Kid-v1.0.1
- Alibaba cloud Li Feifei: China's cloud database has taken the lead in many mainstream technological innovations abroad
- Sword finger offer II 105 Maximum area of the island
- How to use JMeter function and mockjs function in metersphere interface test
- New 95 community system whole station source code
- 手机开户股票开户安全吗?那么开户需要带些什么?
- 开发那些事儿:EasyCVR平台添加播放地址鉴权
猜你喜欢

vulnhub靶场-Hacker_Kid-v1.0.1

DNS

From comedians to NBA Zhan Huang, check the encrypted advertisements during this super bowl
![[PHP foundation] realize the connection between PHP and SQL database](/img/eb/c8953eddfe3b19b0adb5529957d275.jpg)
[PHP foundation] realize the connection between PHP and SQL database

Mysql database - Advanced SQL statement (2)

多线程使用不当导致的 OOM
Roewe rx5's "a little more" product strategy

New 95 community system whole station source code

Length of learning and changing

Cassette helicopter and alternating electric field magnetic manometer DPC
随机推荐
(1) CNN network structure
Yyds dry inventory MySQL RC transaction isolation level implementation
(16) ADC conversion experiment
Roewe rx5's "a little more" product strategy
期货先锋这个软件正规吗安全吗?选择哪家期货公司更安全?
多线程使用不当导致的 OOM
Development cost of smart factory management system software platform
People help ant help task platform repair source code
Product service, operation characteristics
Openlayers 自定义气泡框以及定位到气泡框
RadHat搭建内网YUM源服务器
Common design parameters of solid rocket motor
中国酶制剂市场预测与投资战略研究报告(2022版)
MES production equipment manufacturing execution system software
Research Report on development monitoring and investment prospects of China's smart environmental protection industry (2022 Edition)
There is a new breakthrough in quantum field: the duration of quantum state can exceed 5 seconds
提交review时ReviewBoard出现500错误解决方法
Can hero sports go public against the wind?
From comedians to NBA Zhan Huang, check the encrypted advertisements during this super bowl
Kernel stray cat stray dog pet adoption platform H5 source code