SlideShare a Scribd company logo
How to re-sign a Android .apk
file for testing
A signature is needed to identify the author of the Android application. A
signature mostly contains information like:
First name
Last name
Name of the organization
City
State
Country Code
For more information please have a look at the Android SDK developer guide
http://developer.android.com/guide/publishing/app-signing.html
If you want to test an apk file e.g. with Robotium the android app apk and
your test project apk file MUST have the same signature!
There are two possible cases how to sign the apk file. The first one is really
simple,
if you build the Android app you want to test on your own within eclipse you
don’t need to resign the apk file. The signatures should be the same.
The second case is more complex.
If you get the apk file you have to test e.g. from your developers, from jenkins
or from the market you have to resign the app.
Do the following steps to resign it with your keystore:
1. Rename the apk file into a zip file, e.g. yourapp_name.apk = Name.zip
2. Unpack/ Unzip the zip file
3. Delete the META-INF folder
4. Repack/ Rezip the folder again to a zip file
5. Rename the zip file again to an apk file
6. Open a terminal window / Command prompt and enter (the jarsigner tool is
located in the bin folder of your installed java sdk
jarsigner -keystore ~/.android/debug.keystore -storepass android –keypass
android urAppName.apk androiddebugkey
You’re Done!! Now you can should be able to test against an apk file!

More Related Content

PPT
Android Applications Introduction
Anjali Rao
 
PPTX
Step by step guide to build ionic hybrid app using cordova android
swagat parida
 
PPTX
Extracting source code of apk file
Deepanshu Gajbhiye
 
PDF
Extract source code from an Android apk file
Biwin John
 
PPTX
Android Package tool
yarden hanan
 
DOCX
Android FakeID Vulnerability
Mark Laubender
 
PPTX
Flutter Android / iOS Build Preparation
9 series
 
PPTX
Creating the first app with android studio
Parinita03
 
Android Applications Introduction
Anjali Rao
 
Step by step guide to build ionic hybrid app using cordova android
swagat parida
 
Extracting source code of apk file
Deepanshu Gajbhiye
 
Extract source code from an Android apk file
Biwin John
 
Android Package tool
yarden hanan
 
Android FakeID Vulnerability
Mark Laubender
 
Flutter Android / iOS Build Preparation
9 series
 
Creating the first app with android studio
Parinita03
 

Similar to How to re sign a android apk file for app testing (20)

PDF
Android app development guide for freshers by ace web academy
Ace Web Academy -Career Development Center
 
PDF
How To Build and Deploy Android App Bundles.pdf
RipenApps Technologies Pvt. Ltd.
 
PDF
Modifying Android Apps Without Source Code with Microsoft Visual Studio Code
Ronillo Ang
 
PPTX
Publishing your android app on google play store .pptx
KanwalShahzadi17
 
PDF
Android app development.pdf
Abanti Aazmin
 
PDF
Securing android applications
Jose Manuel Ortega Candel
 
PDF
Bird.pdf
RebaMaheen
 
PPTX
Andriod apps
shakil2604
 
PDF
Learning android with AOSP
Jorge Barroso
 
DOCX
Hospital app project (how to upload app)
MAHFUZ RAIHAN
 
PPTX
WP7 HUB_Marketplace
MICTT Palma
 
PDF
Developing Mobile Application using Phonegap
Fahim Abdullah
 
PPTX
Android development session
Esraa Ibrahim
 
PDF
Practice of Android Reverse Engineering
National Cheng Kung University
 
PDF
Final NEWS.pdf
RebaMaheen
 
PDF
Final NewsApp.pdf
RebaMaheen
 
PPTX
Hello android example.
Rahul Rana
 
PPTX
Android deep dive
AnuSahniNCI
 
PDF
Android Application Development For Dummies Michael Burton Donn Felker
abrhcgdb638
 
PDF
Understanding Android Build Variants
donnfelker
 
Android app development guide for freshers by ace web academy
Ace Web Academy -Career Development Center
 
How To Build and Deploy Android App Bundles.pdf
RipenApps Technologies Pvt. Ltd.
 
Modifying Android Apps Without Source Code with Microsoft Visual Studio Code
Ronillo Ang
 
Publishing your android app on google play store .pptx
KanwalShahzadi17
 
Android app development.pdf
Abanti Aazmin
 
Securing android applications
Jose Manuel Ortega Candel
 
Bird.pdf
RebaMaheen
 
Andriod apps
shakil2604
 
Learning android with AOSP
Jorge Barroso
 
Hospital app project (how to upload app)
MAHFUZ RAIHAN
 
WP7 HUB_Marketplace
MICTT Palma
 
Developing Mobile Application using Phonegap
Fahim Abdullah
 
Android development session
Esraa Ibrahim
 
Practice of Android Reverse Engineering
National Cheng Kung University
 
Final NEWS.pdf
RebaMaheen
 
Final NewsApp.pdf
RebaMaheen
 
Hello android example.
Rahul Rana
 
Android deep dive
AnuSahniNCI
 
Android Application Development For Dummies Michael Burton Donn Felker
abrhcgdb638
 
Understanding Android Build Variants
donnfelker
 
Ad

Recently uploaded (20)

PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Software Development Company | KodekX
KodekX
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PPTX
Coupa-Overview _Assumptions presentation
annapureddyn
 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PDF
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Software Development Methodologies in 2025
KodekX
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Software Development Company | KodekX
KodekX
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Coupa-Overview _Assumptions presentation
annapureddyn
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
Ad

How to re sign a android apk file for app testing

  • 1. How to re-sign a Android .apk file for testing
  • 2. A signature is needed to identify the author of the Android application. A signature mostly contains information like: First name Last name Name of the organization City State Country Code For more information please have a look at the Android SDK developer guide http://developer.android.com/guide/publishing/app-signing.html
  • 3. If you want to test an apk file e.g. with Robotium the android app apk and your test project apk file MUST have the same signature! There are two possible cases how to sign the apk file. The first one is really simple, if you build the Android app you want to test on your own within eclipse you don’t need to resign the apk file. The signatures should be the same. The second case is more complex. If you get the apk file you have to test e.g. from your developers, from jenkins or from the market you have to resign the app.
  • 4. Do the following steps to resign it with your keystore: 1. Rename the apk file into a zip file, e.g. yourapp_name.apk = Name.zip 2. Unpack/ Unzip the zip file 3. Delete the META-INF folder 4. Repack/ Rezip the folder again to a zip file 5. Rename the zip file again to an apk file 6. Open a terminal window / Command prompt and enter (the jarsigner tool is located in the bin folder of your installed java sdk
  • 5. jarsigner -keystore ~/.android/debug.keystore -storepass android –keypass android urAppName.apk androiddebugkey You’re Done!! Now you can should be able to test against an apk file!