资源简介
SignApk签名工具,适用于update签名!
1,解压文件
2,将需要签名的rom放置该文件夹,双击SignerScript.bat文件即可

代码片段和文件信息
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License Version 2.0 (the “License“);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.signapk;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FilterOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintStream;
import java.io.RandomAccessFile;
import java.security.DigestOutputStream;
import java.security.GeneralSecurityException;
import java.security.Key;
import java.security.KeyFactory;
import java.security.MessageDigest;
import java.security.PrivateKey;
import java.security.Signature;
import java.security.SignatureException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.KeySpec;
import java.security.spec.PKCS8EncodedKeySpec;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.jar.Attributes;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
import java.util.jar.JarOutputStream;
import java.util.jar.Manifest;
import java.util.regex.Pattern;
import javax.crypto.Cipher;
import javax.crypto.EncryptedPrivateKeyInfo;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEKeySpec;
import sun.misc.base64Encoder;
import sun.security.pkcs.ContentInfo;
import sun.security.pkcs.PKCS7;
import sun.security.pkcs.SignerInfo;
import sun.security.x509.AlgorithmId;
import sun.security.x509.X500Name;
/**
* Command line tool to sign JAR files (including APKs and OTA updates) in
* a way compatible with the mincrypt verifier using SHA1 and RSA keys.
*/
class SignApk {
private static final String CERT_SF_NAME = “meta-INF/CERT.SF“;
private static final String CERT_RSA_NAME = “meta-INF/CERT.RSA“;
private static boolean VerboseMode = false;
// Files matching this pattern are not copied to the output.
private static Pattern stripPattern =
Pattern.compile(“^meta-INF/(.*)[.](SF|RSA|DSA)$“);
private static X509Certificate readPublicKey(File file)
th
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 23860 2012-12-21 14:13 SignApkv2.java
文件 82 2013-07-09 21:11 Signersc
文件 1217 2008-11-05 15:17 testkey.pk8
文件 1675 2008-11-05 15:17 testkey.x509.pem
文件 9945 2012-12-21 14:21 SignApkv2.jar
- 上一篇:全功能全情况 吃货联盟订餐系统——By msy
- 下一篇:mac系统助手 破解版
相关资源
- AsyncTask文件控制暂停和继续,在状态
- 通力电梯手机调试维修软件.apk
- 汉印A300 CPCL协议 android 热敏打印app(
- SignApkV2 签名工具
- 自定义VIewGroup实现仿淘宝商品详情页
- Genymotion-ARM-Translation_v1.1
- 黑客大曝光:移动应用安全揭秘及防
- superCleanMaster仿360清理大师
- 简易手机通讯录
- 安卓期末项目--记账本app.zip
- 中兴盒子不开启adb情况下抓取日志和
- 手机通讯录
- usb扫描枪数据获取解析
-
两个Strings.xm
l的比较 - APK获取MD5工具
- 使用Intent拨打电话
- 登录亚马逊账户apk
- App inventor成语接龙单机游戏相关的.
- 安卓项目英汉词典
- 实现了基础的登录页面,支持记住密
- 移动应用开发课程设计
- ListView应用
- 移动点餐系统 新手学习。。。。
- 基于安卓开发的校园通移动应用.rar
- 基于移动平台的轻博客系统开发与设
- apk和odex的合并教程
- 使用canvas画线,位移,旋转,绘制五
- QXDM user guide
- 选择日期时间对话框,解决弹出键盘
- 基于安卓平台的校园通软件设计—毕
评论
共有 条评论