当前位置:网站首页>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
边栏推荐
- PHP实现敏感词过滤系统「建议收藏」
- SQL injection vulnerability (MySQL and MSSQL features)
- Penetration practice vulnhub range Keyring
- PIP version problems: PIP problems still occur when installing akshare and using Tsinghua source and Douban source
- (十七)DAC转换实验
- Yyds dry inventory MySQL RC transaction isolation level implementation
- Data warehouse (3) star model and dimension modeling of data warehouse modeling
- China PBAT resin Market Forecast and Strategic Research Report (2022 Edition)
- Nielseniq found that 60% of the re launched products had poor returns
- Glidefast consulting was selected as the elite partner of servicenow in 2022
猜你喜欢
![[C supplement] [string] display the schedule of a month by date](/img/9c/5fcc6bfc8fe0f433c0d1eba92b5c3e.jpg)
[C supplement] [string] display the schedule of a month by date

Apache iceberg source code analysis: schema evolution

为什么你要考虑使用Prisma

How to write good code - Defensive Programming Guide

Wechat applet blind box - docking wechat payment

(十七)DAC转换实验

Official announcement! Hong Kong University of science and Technology (Guangzhou) approved!

Kia recalls some K3 new energy with potential safety hazards

Data warehouse (3) star model and dimension modeling of data warehouse modeling

多线程使用不当导致的 OOM
随机推荐
(16) ADC conversion experiment
整形数组合并【JS】
What are the six steps of the software development process? How to draw software development flow chart?
Equipment simulation and deduction training system software
There is a new breakthrough in quantum field: the duration of quantum state can exceed 5 seconds
Sword finger offer 20 String representing numeric value
Oom caused by improper use of multithreading
PHP实现敏感词过滤系统「建议收藏」
The new server is packaged with the source code of H5 mall with an operation level value of several thousand
Setting up a time server requires the client to automatically synchronize the time of the server at 9 a.m. every day
Glidefast consulting was selected as the elite partner of servicenow in 2022
(27) Open operation, close operation, morphological gradient, top hat, black hat
Petrv2: a unified framework for 3D perception of multi camera images
中国酶制剂市场预测与投资战略研究报告(2022版)
官宣!香港科技大学(广州)获批!
Htt [ripro network disk link detection plug-in] currently supports four common network disks
PHP implements sensitive word filtering system "suggestions collection"
L'ouverture d'un compte d'actions en ligne est - elle sécurisée? Fiable?
中国PBAT树脂市场预测及战略研究报告(2022版)
Kernel stray cat stray dog pet adoption platform H5 source code