---
title: "how to sign a modded an apk on a mac with apktool"  
description: "how to sign a modded an apk on a mac with apktool"  
author: "Barbara Jones"  
published: 2014-11-17  
updated: 2014-11-17  
canonical: https://www.mindstick.com/forum/12605/how-to-sign-a-modded-an-apk-on-a-mac-with-apktool  
category: "android"  
tags: ["android sdk"]  
reading_time: 1 minute  

---

# how to sign a modded an apk on a mac with apktool

I have created a modded [apk](https://www.mindstick.com/interview/22878/what-is-apk-extension) using [api](https://www.mindstick.com/articles/12641/instagram-api-upgraded-to-facebook-graph) [tool](https://www.mindstick.com/articles/12857/customization-software-a-perfect-tool-for-e-store-owners-to-make-big-bucks) but when i try to [install](https://www.mindstick.com/articles/12876/the-top-5-reasons-to-buy-and-install-a-tonneau-cover) it , it doesn't install. When I rechecked and compared it with old api I found out my apt wasn't signed. I searched a lot but couldn't find out a [method](https://www.mindstick.com/forum/166/webservice-method) to sign apk on [mac OS](https://www.mindstick.com/forum/33483/using-python-find-active-window-name-in-mac-os-x) X.

## Replies

### Reply by Anonymous User

Got my solution- I use keytool, Jarsigner and zipalign from JDK by using following commands in terminal

**To generate keystore**

keytool -genkey -v -keystore my-keystore.keystore -alias name_alias -keyalg RSA -validity 10000

To sign an apk

jarsigner -verbose -keystore <path of my-keystore.keystore> <path of apk> alias_name

To zip align an apk

zipalign -f -v 4 <your.apk > <your_aligned.apk>


---

Original Source: https://www.mindstick.com/forum/12605/how-to-sign-a-modded-an-apk-on-a-mac-with-apktool

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
