Learn More About Linux with Linux Man Pages

Linux is quite a powerful and very configurable operating system. Thanks to some user-friendly … more

Detect, Avoid IMSI-Catcher Attacks with Android IMSI-Catcher Detector

Privacy is always an important topic, as well as a delicate one to … more

Materialized LeanDroid Fights Your Poor Battery Life

Battery life has always been one of the biggest problems facing most Android devices. … more

Bump! Workaround for the LG G3 Locked Bootloader – XDA TV

The LG G3 is a power house device. It’s been a favorite of many people. … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Signing of an apk

OP TheStrix

18th May 2014, 11:21 PM   |  #1  
TheStrix's Avatar
OP Senior Member
Flag ⓂⓊⓂⒷⒶⒾ
Thanks Meter: 254
 
435 posts
Join Date:Joined: May 2014
Donate to Me
More
Hey friends, can you tell me how to sign an apk in linux??

I hav downloaded signapk files from source code(https://code.google.com/p/signapk/do...r.bz2&can=2&q=)..
Made a folde named 'signapk' on desktop...
Then i ran the following command...
Code:
java -jar signapk.jar certificate.pem key.pk8 ~/Desktop/SystemUI.apk

But i got this error!! plz help...
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2014-05-19 02:49:06.png
Views:	8
Size:	22.0 KB
ID:	2751102  
19th May 2014, 01:52 AM   |  #2  
Account currently disabled
Flag Dallas
Thanks Meter: 108
 
485 posts
Join Date:Joined: Oct 2012
Donate to Me
More
Quote:
Originally Posted by TheStrix

Hey friends, can you tell me how to sign an apk in linux??

I hav downloaded signapk files from source code(https://code.google.com/p/signapk/do...r.bz2&can=2&q=)..
Made a folde named 'signapk' on desktop...
Then i ran the following command...

Code:
java -jar signapk.jar certificate.pem key.pk8 ~/Desktop/SystemUI.apk

But i got this error!! plz help...

try not to use the .jar extension.
just type signapk instead of signapk.jar
same crap that java does with .class
19th May 2014, 10:54 AM   |  #3  
TheStrix's Avatar
OP Senior Member
Flag ⓂⓊⓂⒷⒶⒾ
Thanks Meter: 254
 
435 posts
Join Date:Joined: May 2014
Donate to Me
More
Quote:
Originally Posted by Lgrootnoob

try not to use the .jar extension.
just type signapk instead of signapk.jar
same crap that java does with .class

Still error..
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2014-05-19 14:23:03.png
Views:	6
Size:	20.6 KB
ID:	2751799  
19th May 2014, 06:14 PM   |  #4  
Account currently disabled
Flag Dallas
Thanks Meter: 108
 
485 posts
Join Date:Joined: Oct 2012
Donate to Me
More
Quote:
Originally Posted by TheStrix

Still error..

is the signapk jar actually in your directory?

Post the output of these commands:
Code:
ls
ls Desktop
ls Desktop/signapk
19th May 2014, 07:40 PM   |  #5  
TheStrix's Avatar
OP Senior Member
Flag ⓂⓊⓂⒷⒶⒾ
Thanks Meter: 254
 
435 posts
Join Date:Joined: May 2014
Donate to Me
More
Quote:
Originally Posted by Lgrootnoob

is the signapk jar actually in your directory?

Post the output of these commands:

Code:
ls
ls Desktop
ls Desktop/signapk

Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2014-05-19 23:08:41.png
Views:	6
Size:	75.0 KB
ID:	2752520  
21st May 2014, 06:26 PM   |  #6  
Account currently disabled
Flag Dallas
Thanks Meter: 108
 
485 posts
Join Date:Joined: Oct 2012
Donate to Me
More
Quote:
Originally Posted by TheStrix

Your trying to access signapk but it is not in the current directory. So youhave to cd to Desktop/signapk before executing your command.

as follows
Code:
cd Desktop/signapk
java -jar signapk.jar certificate.pem key.pk8 ../SystemUI.apk
java -jar signapk certificate.pem key.pk8 ../SystemUI.apk
The Following User Says Thank You to Lgrootnoob For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes