Forum Xamarin.Android

To Unsign the app developed using Xamarin

Hi Team,
I followed the steps below to unsign the app and sign in with my android debug key.

Rename the apk file into a zip file. Eg app1.apk into
Unpack/Unzip the zip file into a folder
Delete the META-INF folder
Re-zip the contents inside the folder again to a zip file
Rename the zip file again to an apk file
Open a terminal window and enter
Command 1:
jarsigner -keystore C:\Users\\debug.keystore -storepass android -keypass android "Step5APK.apk" androiddebugkey -digestalg SHA1 -sigalg MD5withRSA

Command 2:
zipalign 4 "Step5APK.apk" FinalAPK.apk

On installing the FinalAPK.apk I am not able to open the app in the device/emulator. But while I installed I was able to install and launch the app.

I tried with some other apks which was developed (native apps), I was able to unsign and sign it with android debugKey.

It would be great if there is a way to unsign and sign in with my local key. So that I can use that for my testing purpose.

Purpose : I need to automate the app using Robotium. for that the signature should match the Test project Signature. So I thought whatever apk I get, if I am able to unsign and sign it again with my android debug key , that it would be a nice way.

Please help me on this, Is there anything special done for apps developed using Xamarin.?


Sign In or Register to comment.