Related
With the help of red_menace over at the apple support forum, I present Mac users with an application that will sign their .apk and .zip files.
It is a droplet application, meaning you just have to drag the file you want signed onto the application itself. A new file will be created with -signed at the end of the file name.
For this to work you need to have testsign.jar in your root directory. The root directory is the first place you come to when you click on the mac hard drive.
If anyone wants to use or edit the script that's fine with me, I really didn't do much, just asked the right people for help.
Android-sign.zip Download
Android-sign.zip has both the testsign.jar and android-sign application.
EDIT: Sorry about the mixup. Testsign.jar is now linked above.
thank you sir! will try tonight
Exception in thread "main"
java.lang.NoClassDefFoundError: testsign
I cant find the testsign.jar its not in the tool directory of my SDK that I downloaded from Androids website
Where can I get this testsign.jar?
*EDIT*
I found the testsign.jar in the forums. You can get it here: http://forum.xda-developers.com/showthread.php?t=538020
But I still get the same error I've placed the program and the testsign.jar file in the same directory.
I have some cool skins in the making! I just need to know how to sign these files! I'm on a mac.
Why am I getting the error?
wow i need this bad...now lets c if i know how to get it 2 work....
MurderDeathKill said:
But I still get the same error I've placed the program and the testsign.jar file in the same directory.
I have some cool skins in the making! I just need to know how to sign these files! I'm on a mac.
Why am I getting the error?
Click to expand...
Click to collapse
are you putting the testsign.jar in your ROOT dir? aka where adb is
same error
Okay, so I'm getting the same error. And yes, my testsign.jar/Android-sign.app are both in my sdk/tools dir.
Not sure what the problem is.
Hope I can get this to work
jaaronmoody said:
are you putting the testsign.jar in your ROOT dir? aka where adb is
Click to expand...
Click to collapse
What file is the adb? I understand what adb means and what it does, but I don't know how to identify it.
Ok so since im new to this can someone can make a really dumb guide for me from dowloading the app to putting the test.jar file please.
im getting the same error, this is a huge step though when u figure out whats going on with the rest of our Auto-sign, repost thanks nd thumbs up
nice...thx for sharing this. will come in handy
oops, still getting used to all this. haha
ffff00 said:
Okay, so I'm getting the same error. And yes, my testsign.jar/Android-sign.app are both in my sdk/tools dir.
Not sure what the problem is.
Hope I can get this to work
Click to expand...
Click to collapse
the testsign.jar needs to be in the root directory of your computer. The app can be placed anywhere you would like. Where ever you put the app, the new signed file will be also.
guys so lets say i put meltus audio hack in cyanogen 4.9999 and i want to sign the whole build back up how would i do that.
thank you
jessetbenton said:
the testsign.jar needs to be in the root directory of your computer. The app can be placed anywhere you would like. Where ever you put the app, the new signed file will be also.
Click to expand...
Click to collapse
Oh okay, thanks.
You said to put it in the same folder as adb is why I was confused.
I'll try this out in a few.
ffff00 said:
Oh okay, thanks.
You said to put it in the same folder as adb is why I was confused.
I'll try this out in a few.
Click to expand...
Click to collapse
no i said that, and it is where adb is.... at least for me... in the root dir, if you move the adb file there you don't have to enter the path every time you enter adb commands in the terminal
ffff00 said:
Oh okay, thanks.
You said to put it in the same folder as adb is why I was confused.
I'll try this out in a few.
Click to expand...
Click to collapse
i think what jaaronmoody was talking about is just putting your adb file into the root directory instead of adding to the bin. but im pretty new to the whole terminal and coding stuff, so i just know what i've picked up since having my g1.
guys does anybody know about signing folders again to make them flashable?
G1_Lucky said:
guys so lets say i put meltus audio hack in cyanogen 4.9999 and i want to sign the whole build back up how would i do that.
thank you
Click to expand...
Click to collapse
well if the file is good. you just have to drag the cm 4.9999.zip file onto the app and it will spit out the new signed version.
What I think is more complicated is actually modifying those files. I use virtualbox to run windows and do everything with 7zip.
Anyone know of a zip program similar to 7zip to edit the apk and zip files?
Dude! Thanks! Alright guys get ready now that I have everything in place ADB, and signing my .zip files expect Luck's turn at android development lol. Im hecka grateful for everybody but now im ready haha thanks guys
Thanks for the help.
Works like a charm.
Awesome droplet.
I would like to change the gTask widget skin on Nexus.
Can anybody tell me where the file ( i suppose its .png) is located?
Assuming you're talking about the gTasks Beta by SSI, they're in com.ssi.gtasksbeta.apk\res\drawable
These 5 .png's
widget_border_bg_normal.png
widget_frame_complete.png
widget_frame_complete2.png
widget_frame_land.png
widget_frame_land2.png
thanx a lot, i will search for it..think that´s all I need
Edit: i´m searching for that with AndExplorer, but cannot find those files...
Am I using the wrong thing to search for it?..or is there are way to access those files via PC?
rori1 said:
thanx a lot, i will search for it..think that´s all I need
Edit: i´m searching for that with AndExplorer, but cannot find those files...
Am I using the wrong thing to search for it?..or is there are way to access those files via PC?
Click to expand...
Click to collapse
Install gTasks on your phone. Plug your phone into your pc. Hopefully you have adb set up correctly. If not, there's plenty of threads on how to do so.
Code:
cd desktop
adb remount
adb pull /data/app/com.ssi.gtasksbeta.apk com.ssi.gtasksbeta.zip
Extract com.ssi.gtasksbeta.zip to own folder. Change your files. Zip back up to com.ssi.gtasksbeta.zip. Rename to com.ssi.gtasksbeta.apk. Resign with Stericsson's auto-sign tool. Uninstall previous version from your phone. Place your new version somewhere in /sdcard. Install via Astro or other FM. Your new app will not update from the market. You'll have to do this to every version you want to use.
Thank you veeeery much!!
This is the perfect way!
I love this ADB stuff, it works so easy, when you know how (am doing screenshots, to not forget )
Unzipped gtasksbeta on my PC..
Now I have to read about the auto signing thing, found lots of threads about that!
Thanks again!
Hello everyone. Although n00bs aren't allowed here, I do want to ask you a question that might be very n00bish. And maybe a little inappropriate. Or asked in the wrong section of this forum.
But here it goes: I want to try and edit a savegame for a game on my HTC Hero (baseball superstar 2010). So, first I tried to locate where all the files for this game could be installed on my phone. I did not succeed.
But with help from this forum, I found out that I might find the files by using Astro File Manager. I can use this app to click on the .apk from the game, that I have on my sdcard, and then choose the option 'browse file'. There, I find a lot of files! So, the first problem is solved.
The second problem is, that I cannot edit any of the files I then find. And I cannot find a file that has the datestamp of today, or yesterday, when I last played the game. Shouldn't there be a very recent file with the saved game data in it somewhere?
For me, it would be a lot easier if I could browse the apk on my desktop with a simple explorer. But if I hook up my sd-card to my pc, I cannot open the .apk. How can I accomplish this?
I hope I gave a decent description of my problems, and hopefully anyone can help me with A) finding out which file to edit B) how to open or edit this file and C) what to edit!
Thank you all in advance for your time and patience.
Use 7zip to open/extract the .apk file. You can use winrar too, but I like 7zip better. I'll try to find a link in a minute, or you can always google it if I don't post back quick enough for you.
Your questions are reeallly noobish ;-P
Apk files store libraries and other static files of your applications - there you could find images, texts, code, etc., but not runtime data like savegames. Look into /data/{package-name}/ - you could find package name in many places, I think it's in Settings -> Manage applications, but I'm not sure.
Very noobish yes
I have done something in the meanwhile, and that is: buy the real deal from the market. I no longer seem to have the .apk, but that should be no problem. Now the real game is officially installed onto my phone.
But ... where? I have tried looking in /data with my file managers, but they say that the folder is empty! So... where are my apps installed then? They must be on my phone somewhere. Do I have to root my phone in order to see anything in the /data/folder?
dekraan said:
Do I have to root my phone in order to see anything in the /data/folder?
Click to expand...
Click to collapse
I'm not sure, but I think so. This directory is read-protected, so apps can't steal data of other apps. And I've mistaken: it's /data/app/{package-name}.
Hmmm. Do you know a good way to do that? I have a HTC Hero with the 2.1-update1 firmware (so my phone tells me!).
dekraan said:
Do I have to root my phone in order to see anything in the /data/folder?
Click to expand...
Click to collapse
I think I'm correct in saying yes. I use RootExplorer and can see my apks in data/app, but if I use AndExplorer I can't.
XperiaX10iUser said:
I think I'm correct in saying yes. I use RootExplorer and can see my apks in data/app, but if I use AndExplorer I can't.
Click to expand...
Click to collapse
Hi There,
I've opened another thread to stop the clutter, but: I have installed Root Explorer and used (I thought) Universal Androot to root my mobile phone. It did install Superuser, but when I open Root Explorer, I don't get a prompt to put it on the superuser list... so nothing seems to work. Do you know what I should do, and how I can do that?
dekraan said:
Hi There,
I've opened another thread to stop the clutter
Click to expand...
Click to collapse
But thought you'd clutter the forum instead.
dekraan said:
but: I have installed Root Explorer and used (I thought) Universal Androot to root my mobile phone.
Click to expand...
Click to collapse
You might be best searching your phones forum for a solution unless someone can offer you help here.
Iirc, savedata and settings would be in /data/data/com.gamevil.bs2010/
probably in a folder named "files".
start by looking in there.
other apps would be in /data/data/[packagename]
Hi:
I've recently started to develop my own comic reader. The problem I've come up with is cbr files, which are esentially rar files. Now I know there are comic readers out there (all of them, I think) that support cbr files. So there is a way of doing this, I just can't find how.
In the rarlabs official page (search google rar addons and it's the first page) there are several options. I would like to know if I download the commandline arm unrar how I could install it on Android (I have a motorola Xoom, it would be for Honeycomb), assuming that is correct.
If this is not an option is there a command line unrar application that I could call from my own? and How would the code be (to call an external application, that is)?
If the above is not possible, what is the way to get to unrar something in android?
The only real option I've seen would be to use junrar (hosted on github)
But it seems complicated and I'm not sure it works very well as I've seen a lot of conflicting reports.
Thanks for any help!
Try http://www.all-freeware.com/results/rar/for/android to unpack rar on Android.
Success,
Senax
Hi:
I'm not exactly sure what you wanted me to try. There is nothing in that page that would allow me to uncompress a rar file on android. Only a bunch of unrar utitilities and some android things but they are not related, that is, there is nothing that says unrar that also works on android.
thanks anyway.
Unrar
great app available here: androidzoom (dot) com/android_applications/tools/unrar_dhpu.html
Cheers,
Romuloxiii
Hi:
It's seems that I didn't make myself clear.
I want to develop an android application that needs to unrar files. Is there a way to call the unrar application from my own code?
If so, can you tell me how?
Otherwise, I appreciate the effort, but I can't use that.
Thank you very much!
You can bring the unrar binary along in the /asset of your app,
on first launch copy it to your apps /file directory, chmod +x it, and use exec("sh") to unrar the files from shell.
oh, I see. I think I get the the idea but I don't understand all the instructions.
What did you mean by importing thebinary on my asset?
If I do the step above why do I need to copy the binary on first launch?
Don't I need root privileges too chmod it? And how do I do it from my source code?
And finally where can I find the command line use of the application? Or is it the same as the Linux version?
I know there are a lot of questions, but please keep in mind that I'm very new at doing this.
Thanks for all the help!
You need to put it as asset to bring it along.
You need to copy it because asset files are not directly accessable.
You don't need root to chmod the file in your own directory.
You do it by using a shell from your code i.e. Process.exec("sh")
And finally you want to program the app not me,
so don't be lazy and invest some time.
Google google google google...
If there are still questions left after that, you may ask again .
Ok, I'll try it and get back to you!
Thanks!
Sorry for my lazyness, but I've been Googling for a good half hour without finding a simple 'unrar' binary executable compiled to run from terminal on rooted ARMx32 device. I don't want bloated GUI APK's or libraries for development implementation, but just the plain command line interface executable. Anyone, please? It's a pity they haven't baked it into Busybox as an applet, IMO.
I was looking for a similar topic but I did not find one. Refers to problems with running applications added to "system.img".
I bought UMIDIG S for my father-in-law. It is based on a mediatec chipset. Unfortunately, soft is tragic, and there is no full translation, so I decided to bury it a bit in "system.img".
I can easily install the file in Linux and make changes in it. I can delete applications, I can make changes in configuration files and "buikd.prop".
Unfortunately, all APK files were uploaded to "system.img" even though I set permissions 755 for directories, and 644 for directories. Although the files are root: root, after uploading such "system.img" none of these applications works for the phone. The system sees them and tries to load. Unfortunately, applications hang because of errors. The system informs that the application hangs, and does not load its window. The icons of these applications and the names do not appear either (applications have green robocik as icon, and domain name, e.g. com.android.clock ....)
I am asking for advice. How to add APK files to the unzipped "system.img" so that after packing and uploading to the phone there were no errors ???
Do you have found how add app in system.img?
It's all around, but you can replace apps with others. In the linux system, unpack the img, and mount them. Then you can freely rename files as well as move files within the .img mount point
I chose the applications or other files I did not need, and moved them to the directories (which I named my applications). If the application needed libraries, you also had to get files in a similar way, and place them in arm or arm64 directories.
Then prepared files "stuffed" with data, using the command DD. That is, dd if = (source file) of = (the recipient file at the system.img mount point).
Thanks for reply, so this only on Linux? For Windows there is something?
Markosv76 said:
Thanks for reply, so this only on Linux? For Windows there is something?
Click to expand...
Click to collapse
I do not know, I do not use Windows. Certainly you can in a similar way from BSD systems, probably from Android and MacOS. I read something that Microsoft can somehow support linux shell, but I do not know the details. You can always use some distribution that works with a pendrive.
Thanks, I will try again
Markosv76 said:
Thanks, I will try again
Click to expand...
Click to collapse
You can use Virtual Box to run a Linux distro inside Windows or you can try using Cygwin.
Sent from my LGL84VL using Tapatalk
jaroslawstrauchmann said:
I was looking for a similar topic but I did not find one. Refers to problems with running applications added to "system.img".
I bought UMIDIG S for my father-in-law. It is based on a mediatec chipset. Unfortunately, soft is tragic, and there is no full translation, so I decided to bury it a bit in "system.img".
I can easily install the file in Linux and make changes in it. I can delete applications, I can make changes in configuration files and "buikd.prop".
Unfortunately, all APK files were uploaded to "system.img" even though I set permissions 755 for directories, and 644 for directories. Although the files are root: root, after uploading such "system.img" none of these applications works for the phone. The system sees them and tries to load. Unfortunately, applications hang because of errors. The system informs that the application hangs, and does not load its window. The icons of these applications and the names do not appear either (applications have green robocik as icon, and domain name, e.g. com.android.clock ....)
I am asking for advice. How to add APK files to the unzipped "system.img" so that after packing and uploading to the phone there were no errors ???
Click to expand...
Click to collapse
did you find a solution to this? please reply if yes, I am having the same problem