当前位置:网站首页>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.keystore
The 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 keyAlias
Let'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
边栏推荐
- Euler function: find the number of numbers less than or equal to N and coprime with n
- February 16, 2022 Daily: graph neural network self training method under distribution and migration
- 中国PBAT树脂市场预测及战略研究报告(2022版)
- Mysql database - Advanced SQL statement (2)
- 中国乙腈市场预测与战略咨询研究报告(2022版)
- JDBC:深入理解PreparedStatement和Statement[通俗易懂]
- 两数之和c语言实现[通俗易懂]
- (十六)ADC转换实验
- ACM mm 2022 video understanding challenge video classification track champion autox team technology sharing
- SQL injection vulnerability (MySQL and MSSQL features)
猜你喜欢
Replace UUID, nanoid is faster and safer!
Countdownlatch blocking wait for multithreading concurrency
(17) DAC conversion experiment
The difference and relationship between iteratible objects, iterators and generators
Kia recalls some K3 new energy with potential safety hazards
Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)
vulnhub靶场-Hacker_Kid-v1.0.1
Intelligent operation and maintenance practice: banking business process and single transaction tracking
(16) ADC conversion experiment
Gold, silver and four job hopping, interview questions are prepared, and Ali becomes the champion
随机推荐
vulnhub靶场-Hacker_Kid-v1.0.1
People help ant help task platform repair source code
Maizeer: the two batches of products reported by the media have been taken off the shelves and sealed, and consumer appeals are accepted
股票万1免5证券开户是合理安全的吗,怎么讲
How to use JMeter function and mockjs function in metersphere interface test
How to write good code - Defensive Programming Guide
Openlayers 自定义气泡框以及定位到气泡框
[splishsplash] about how to receive / display user parameters, MVC mode and genparam on GUI and JSON
Development cost of smart factory management system software platform
中国生物降解塑料市场预测与投资战略报告(2022版)
Is it safe to open a stock account by mobile phone? What do you need to bring with you to open an account?
Software construction scheme of smart factory collaborative management and control application system
Object. fromEntries()
徽商期货是正规期货平台吗?在徽商期货开户安全吗?
中国PBAT树脂市场预测及战略研究报告(2022版)
Nielseniq found that 60% of the re launched products had poor returns
JDBC: deep understanding of Preparedstatement and statement[easy to understand]
Sword finger offer II 105 Maximum area of the island
China metallocene polyethylene (MPE) Industry Research Report (2022 Edition)
【Try to Hack】vulnhub DC4