当前位置:网站首页>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
边栏推荐
- 中国超高分子量聚乙烯产业调研与投资前景报告(2022版)
- 網上股票開戶安全嗎?是否可靠?
- RadHat搭建内网YUM源服务器
- Wechat applet blind box - docking wechat payment
- 中国氮化硅陶瓷基板行业研究与投资前景报告(2022版)
- 2022 Heilongjiang latest fire protection facility operator simulation test question bank and answers
- Is it reasonable and safe to open a securities account for 10000 shares free of charge? How to say
- China biodegradable plastics market forecast and investment strategy report (2022 Edition)
- ACM mm 2022 video understanding challenge video classification track champion autox team technology sharing
- JDBC:深入理解PreparedStatement和Statement[通俗易懂]
猜你喜欢

transform. Forward and vector3 Differences in the use of forward

ACM mm 2022 video understanding challenge video classification track champion autox team technology sharing

Length of learning and changing

PETRv2:一个多摄像头图像3D感知的统一框架
![[splishsplash] about how to receive / display user parameters, MVC mode and genparam on GUI and JSON](/img/83/9bd9ce7608ebfe7207ac008b9e8ab1.png)
[splishsplash] about how to receive / display user parameters, MVC mode and genparam on GUI and JSON

The new server is packaged with the source code of H5 mall with an operation level value of several thousand

People help ant help task platform repair source code

Kernel stray cat stray dog pet adoption platform H5 source code

New 95 community system whole station source code

In aks, use secret in CSI driver mount key vault
随机推荐
【Try to Hack】vulnhub DC4
Replace UUID, nanoid is faster and safer!
Vulnhub range hacker_ Kid-v1.0.1
Integer array merge [JS]
Radhat builds intranet Yum source server
中国乙腈市场预测与战略咨询研究报告(2022版)
Htt [ripro network disk link detection plug-in] currently supports four common network disks
Intelligent operation and maintenance practice: banking business process and single transaction tracking
Setting up a time server requires the client to automatically synchronize the time of the server at 9 a.m. every day
线上开通ETF基金账户安全吗?有哪些步骤?
PIP version problems: PIP problems still occur when installing akshare and using Tsinghua source and Douban source
官宣!香港科技大学(广州)获批!
提交review时ReviewBoard出现500错误解决方法
Penetration practice vulnhub range Tornado
Code example of libcurl download file
期货先锋这个软件正规吗安全吗?选择哪家期货公司更安全?
[Verilog quick start of Niuke network question brushing series] ~ priority encoder circuit ①
In aks, use secret in CSI driver mount key vault
An example of data analysis of an old swatch and an old hard disk disassembly and assembly combined with the sensor of an electromagnetic press
SQL injection vulnerability (MySQL and MSSQL features)