当前位置:网站首页>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
边栏推荐
- Smart factory digital management system software platform
- 官宣!香港科技大学(广州)获批!
- Good looking UI mall source code has been scanned, no back door, no encryption
- PHP实现敏感词过滤系统「建议收藏」
- 为什么你要考虑使用Prisma
- 开发那些事儿:EasyCVR平台添加播放地址鉴权
- Data warehouse (3) star model and dimension modeling of data warehouse modeling
- vulnhub靶场-hacksudo - Thor
- How to use JMeter function and mockjs function in metersphere interface test
- JDBC: deep understanding of Preparedstatement and statement[easy to understand]
猜你喜欢

Euler function: find the number of numbers less than or equal to N and coprime with n

官宣!香港科技大学(广州)获批!

Intelligent operation and maintenance practice: banking business process and single transaction tracking

(十七)DAC转换实验

transform. Forward and vector3 Differences in the use of forward

Kia recalls some K3 new energy with potential safety hazards

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

SQL injection vulnerability (MySQL and MSSQL features)

(27) Open operation, close operation, morphological gradient, top hat, black hat

Heavy disclosure! Hundreds of important information systems have been invaded, and the host has become a key attack target
随机推荐
The difference and relationship between iteratible objects, iterators and generators
Code example of libcurl download file
Is the software of futures pioneer formal and safe? Which futures company is safer to choose?
【牛客网刷题系列 之 Verilog快速入门】~ 优先编码器电路①
Penetration practice vulnhub range Tornado
Research Report on China's enzyme Market Forecast and investment strategy (2022 Edition)
Product service, operation characteristics
Good looking UI mall source code has been scanned, no back door, no encryption
[beauty detection artifact] come on, please show your unique skill (is this beauty worthy of the audience?)
APK签名流程介绍[通俗易懂]
Vulnhub range hacker_ Kid-v1.0.1
Is it safe to open a stock account by mobile phone? What do you need to bring with you to open an account?
Gameframework eating guide
传感器尺寸、像素、DPI分辨率、英寸、毫米的关系
SPIE Western optoelectronics exhibition returned offline and successfully held a science and engineering event
Apache iceberg source code analysis: schema evolution
DNS
In depth Research Report on China's disposable sanitary products production equipment industry (2022 Edition)
Software construction scheme of smart factory collaborative management and control application system
(十六)ADC转换实验