yashsingh1/xdaforums huggingface dataset:
[Android Software Development] mattmanwrx:
Hi, I have created a simple .bat script to sign + zipalign a .apk with the .keystore created for market release.

The Reason...

I made this as I'm lazy, and wanted one script to sign + zipalign my .apk with my .keystore key.

What It Does...

This opens, copies, signs, zipaligns, renames and chucks out a signed and zipaligned app for market release, while trying to keep the computer neat and tidy.

Requirements...

Java Development Kit, .Keystore certificate, script run with administrative rights, and an app that needs signing.

The Script...

Firstly, there are two scripts within this package, zz_SIGN+ZIPALIGN.bat & zz_SIGN+ZIPALIGN_FOR_APP.bat.

The zz_SIGN+ZIPALIGN.bat will ask for the Java path, app name, unsigned App name, .keystore name & alias_name (used when making the certificate). It is all straight forward with on screen instructions.

The zz_SIGN+ZIPALIGN_FOR_APP.bat can be edited so that the script is run, and all you need to type in is the .keystore password. The bits that need to be edited are in capital letters with underscores (_) joining the words. If the CAPITAL_LETTERS string is in "" (quotes) leave it in there, they are needed!

To make it easier....

WRITE_PATH_TO_JARSIGNER - Lines 12, 14 & 16

KEYSTORE_NAME - Lines 12, 19 & 26

ALIAS_NAME (used with keystore certificate) - Line 19

UNSIGNED_APP_NAME - Lines 14, 19, 20, 32, 53 & twince on 54.

APP_NAME - Lines 32, twice on 35, 38, 39, 41, 43, twice on 48, 51, 56 & 57.

To make it even easier, you could just replace (ctrl+h in notepad++) and replace (for instance) UNSIGNED_APP_NAME to unsingedBluFrost or APP_NAME to BluFrost

I will try to help people with this as much as possible, however, it is my first script I made, and I'm not too clued up on it...

Instructions...

Once downloaded, just extract the contents of the .rar anywhere. Copy your key.keystore and unsigned_app.apk into the folder then run the script, with administrative rights. All should go to plan, if not, please let me know! :)

Download...

Attached, plus mirror here

Hopefully people will find this useful. I use it for signing my theme chooser app, BluFrost. If developing in Eclipse this is pretty useless, so I guess only theme chooser developers will use this, or poeple who want to make small changes to apps.

If you have any problems at all, please post here and I will try to help you! :)

THANKS TO;
jsmccabe78
[Android Software Development] mattmanwrx:
reserved, just in case ;)
[Android Software Development] jsmccabe78:
this is such an awesome tool.

the "zz_SIGN+ZIPALIGN_FOR_APP.bat" makes signing/zipaligning a one click step process with your own keystore. honestly, i have wanted to make this for some time...but had no clue how to. thanks for making it happen!

simply put: fantastic job!
[Android Software Development] mattmanwrx:
Thank you very much, not only for the kind words, but the encouragement to release this... :)

Hopefully others will post here to let me know how they are getting on with it!
[Android Software Development] jsmccabe78:
matt,

running into a problem - using the files from the first post (not the original ones you sent me) -

when i use zz_SIGN+ZIPALIGN.bat i am unable to install the apk it makes. it just gives me an error (if i use apkmanager it signs and installs just fine). additionally, when i go to the "OLD" folder, only the signed apk is in there after running it (as opposed to having the unsigned and signed apk).

when i use "zz_SIGN+ZIPALIGN_FOR_APP.bat" all is good (and signed/unsigned end up in the OLD folder.)

thanks.

j

tested it with other files...something is a foot with that apk...not your bat...sorry for any confusion!
[Android Software Development] mattmanwrx:
I was gonna say all is working fine for me... ;)

My app wouldnt install but all looked fine when i upgraded to JDK1.7... the app looked like it got signed but it didnt... I just reverted back to 1.6.0_26 and all was working fine again... just a little tip incase its that.. :)

Hope you get it sorted! :)
[Android Software Development] jsmccabe78:
thanks. strangest thing sometimes. trying to skin GO Keyboard. If i decompile/compile a GO keyboard theme without changing anything it works. If i do that and change images, it works. But when i change the package name in the manifest, it no longer works. kinda stuck (and off topic, i realize.) but tis/was me problem. oh well, not sure if i like the keyboard that much anyways! have a good day.
[Android Software Development] jsmccabe78:
so...hope you don't mind, but some more questions...

would like to streamline the process even more.

1- would like to get rid of option to delete key (the answer is always no for me). possible?

2- anyway to get rid of "hit any key" options and just have it keep going?

i know i know...not big issues but would be awesome!

thanks!
[Android Software Development] mattmanwrx:
No problems at all...

1) - delete the lines which say...

echo Do You Want To Delete .Keystore Key From Java Path [y/n]

set /p INPUT=

IF %INPUT%==y DEL %keystore% (or your .keystore if changed)

IF %INPUT%==n goto:rename

:rename

2) delete anything which says pause... Pause is literally a pause and asks you to hit any key to enter...

Anything else let me know ;)
[Android Software Development] MrDSL:
First thank you for this tool..I am trying to get this to work and normally I can figure this stuff out but I am having a problem I hope someone can help me..

Whenever I try to run the script I get jarsigner is not a valid command blah blah blah..

Normally that means I dont have java in my PATH..So I went there and looked and I do have c:\Program Files\Java\jdk1.6.023 in the PATH under enviroment variables and it still wont work..

If I do java -version at the CMD prompt it gives me back version 1.6.026 and whats weird is that is not the version I have under c:\Program Files\Java\

I actually have version 1.6.023 and 1.6.025 but no folder for 1.6.026..

I need help..Anyone on windows 7 could you give me your PATH line under environment variables so I can match it to mine? Or if anyone else has any ideas?

thanks
[Android Software Development] mattmanwrx:
Just to confirm, jarsigner is in the java/jdk1.x.x/bin folder... is the script pointing to there?

I dont think you will need to play around with the path as it copies the app and key.keystore into the java/jdk1.x.x/bin folder, which is where java is located anyway... however, in my path I do have - C:\Program Files\Java\jre6\bin & C:\Program Files\Java\jdk1.6.0_23\bin - The first being java run time and second being the java development kit.
[Android Software Development] MrDSL:
Yes jarsigner is under bin and it copies both my keystore and apk there fine it just errors out when going to jarsigner command..

Now I do have the jre6 folder under Java but that line isnt in my PATH..Can you paste your entire PATH line just so I can make sure my commas and stuff are right?

thanks
[Android Software Development] mattmanwrx:
my entire path...

%CommonProgramFiles%\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\Common Files\Microsoft Shared\Windows Live;.;C:\android-sdk-windows\tools;.;.;.;C:\Windows\system32;.;C:\android-sdk-windows\tools;.;C:\Program Files\Android\android-sdk-windows\tools;.;C:\android-sdk-windows\tools;C:\Program Files\Java\jre6\bin;C:\Program Files\Java\jdk1.6.0_23\bin;C:/users/webmaster/desktop/apktool;

i'm starting a project at work with m,y boss, so will not be able to reply untill later on, sorry about this!
[Android Software Development] MrDSL:
This helps thanks..I won't be able to change it till I get home from work anyway so thank you..I'll let you know tonight if this fixes it cause I definitely dont have that line of code in there..

I also know my line starts with a ; and I don't believe it should because yours does not..I got my fingers crossed..
[Android Software Development] mattmanwrx:
Here is my laptop's PATH - it has a lot installed... including Java JDK 1.6.0_26...

i built the script on this laptop, and as you can see, the Java path is not even in the PATH... apktool & apk manager works perfectly too!! Dont know how that happened lol!!
[Android Software Development] MrDSL:
Yeah I'm noticing that also and I use both apktool and apkmanager and they both work fine but as soon as i try the script it fails at jarsinger that it doesnt exsist and I see the file right there..All my searches have pointed to this info being in the PATH..

This is so fustrating haha
[Android Software Development] mattmanwrx:
hmmm strange... have you modified the script at all? if so, could you post it here so i could check it over?

Thanks, Matt
[Android Software Development] MrDSL:
No I havent modified it at all...I have tried both scripts and manually entering my info and the auto one where I edit and put my info in there..Both end up with the exact same error..
[Android Software Development] mattmanwrx:
hmmm, that makes me think that it isnt the script at all...

Could you try signing the app normally - as documented here - http://developer.android.com/guide/publishing/app-signing.html#signapp as it seems it is the jarsigner exe not working... maybe reinstall the jdk - i know i had problems when i installed jdk1.7, and had to reinstall 1.6.0_26 to get it to work again...!
[Android Software Development] MrDSL:
I can do that in windows? I tell you I struggle with this stuff haha

I know I have version 1.6.0_26 also cause thats what comes up when I version it..

The link you gave me talks about Eclipse ADT..I didnt think I can do that with windows and my theme isnt compiled through eclipse either..I'm beginning to think I may be way over my head..It took me a couple hours to keystore the thing but once I got the commands it was pretty easy.
[Android Software Development] mattmanwrx:
from step three it takes you through steps to sign using jarsigner in windows, without eclipes..

Just another confirmation, you are running the script as administrator?

p.s. you can use eclipes in windows... it makes building apps from scratch a lot easier, but you need to know java, i believe...
[Android Software Development] MrDSL:
Yeah I am right clicking and chose run as admin..I actually thought that was my problem in the beginning but I am never that lucky..

Okay looks simple enough

$ jarsigner -verbose -keystore mixer.keystore Mixer_unsigned.apk MYALIAS

I hope this works..
[Android Software Development] mattmanwrx:
Yea try it that way... as that is the unlazy way... if that doesn't work then it is the jdk u are using... maybe delete that one and redownload... worth a shot....
[Android Software Development] MrDSL:
Okay will do..thanks a lot for all your help..
[Android Software Development] MrDSL:
Well doing it manually worked just fine..I was able to use your script to zipalign it though. Not sure why it won't work all the way but its installed and appears to work fine.
[Android Software Development] mattmanwrx:
well that is very strange...

As I cannot see what you're doing, would it be possible to copy the whole output of the script, and paste it here... I think there may be a small problem with what you're typing (no offence meant), however, if it isnt i will need to change it..

Saying that, there has been over 100 downloads now (and only a few people with problems)..
[Android Software Development] MrDSL:
No offense taken..I actually had to get rid of the $ for the command to work. I'm at work but ill give you the info tonight when I get home.
[Android Software Development] mmapcpro:
I absolutely love your script. It simply works.. .

Do you have, or can you make, or guide me in the right direction for, a script that I can use in linux?
[Android Software Development] mattmanwrx:
Wow, this is a bit old... :) last past is just about over a year old... how did u find this thread? Lol...

Anyway, I'm not too clued up in Linux, but will look at converting it for you... will start looking into it today...

Thanks, Matt

Edit: looks quite difficult... might need to bring someone in on this...
[HTC Sensation] stanny2k:
Anyone know if this is possible?

I wouldn't mind trying this Mango ROM out... if possible..
[HTC Sensation] EddyOS:
As in WP7? Not gonna happen I dn't think
[HTC Sensation] Divine flaw:
not gonna happen....... as the sensations hardware drivers need to be written for it to work. thats how it is i would love to see this too but sadley =(
[HTC Sensation] stanny2k:
Ahhh. Shame man. Thanks for your responses both.
[HTC Sensation] Sdobron:
No, never.
[HTC Sensation] foldingspaces:
[WP7 is a closed OS]+[WP7 coded for some VERY specific hardware configurations]= WP7 to Sensation will never happen
[HTC Sensation] DJW6927:
The good ole HD2's gonna take some beating hey guys?

Android, WM6.5, WP7, dual boot etc... must say even all the versions of Android for my new Sensation are all much the same in comparison to what was done for that phone... Think we expect too much now.

(Not wishing demean all the chefs efforts here in any way)
[HTC Sensation] Mr_Boob_Burglar:
Im definatly keeping the sensation for sure i love my phone so far but I think I may have to pick up and HD2 to play with lol
[Android Q&A, Help & Troubleshooting] glodos:
Hey guys, maybe the title is little confusing so let's make it clear.

Many of you know the Go Dev Team and the Go Launcher. The Go Launcher has the feature, that allows to scroll the list, while dragging the icon over the boundaries. I need to implement something like this in my app, but I've encountered some problems, maybe my approach is incorrect.

The main problem is, that it is hard to scroll the list while the screen is being touched already.

1. Dispatching touch events to the ListView while touching the screen equals kaboom.

2. Methods like smoothScrollBy are great, but they behave in different way while touching the screen. They will scroll the list only by height of the screen, no matter how many times this method is invoked. After that the ACTION_CANCEL event is generated and I'm loosing control over dragging object, so I can't scroll further.

3. The scrollBy method in View. When using it on ListView it creates empty space while scrolling. I think I am scrolling whole container then, so I don't see any chances here.

And here goes the question. Has anybody tried something like this and can tell more about it?
[Atrix 4G Q&A, Help & Troubleshooting] -JFK-:
Hi All,

From long time, I have data connexion problem : It work well during 30 sec and stop for 30 sec then restart... It's very annoying.

I have an AT&T phone that I use in France (Orange).

Radio : N_01.100.00R

I'm now under CM7 but yesterday I have flash the clean stock ROM (Fruitcake) then re-install CM7 to be clean.

Before each install, I do :

boot to recovery

Wipe Dalvik

wipe cache

factory reset/data

boot into fastboot

fastboot erase boot

fastboot erase system

fastboot erase userdata

fastboot erase cache

fastboot erase webtop

fastboot erase preinstall

fastboot reboot

flash ROM in recovery

wipe Dalvik

wipe cache

reboot

Now, I'm with the standard APN from CM7 :

One APN is : "orange" and the second is : "orange.fr" all other settings are the same.

With the first APN, I have a good data speed (D:8Mbps; U:1.5Mbps) the it loss the data every 30 sec (as I explain above).

With the second APN, I have a very slow data speed in download (D:0.3Mbps) but very good Upload (U:3Mbps).

Did someone know I can solve my problem ?

Thank you in advance.
[HTC ChaCha] 33poison:
HTC ChaChaCha|A810e -CWM recovery V5.0.2.3 (from xda.cn), for flash usage.

version: 5.0.2.3

language: English

Editor: Qiu Long (from xda.cn)

Preparation:

1. Chachacha

2. must s-off

3. download PH06IMG.zip and save in root directory of your sd card

Start recovery:

1. Shut off the phone, then push volume low and power enter into Hboot

2. Get into Hboot, will show a message if need update or not. choose yes or no.

3. Push volume up start flash

4. According to instruction reboot then finish recovery.

5. Rename or delete PH06IMG.zip file, turn off your phone. Then push volume low and power the same time enter into HBoot.

6. Use volume buttom to choose recovery and power to confirm, then get in to recovery

Instruction originally from: http://bbs.xda.cn/thread-9948035-1-1.html
[HTC ChaCha] qbert456:
If I have cwm already is there any benefit in changing to this version please?
[HTC ChaCha] fofwisdom:
Thanks for your patience!

But, What difference?
[HTC ChaCha] schölli:
i really like to know this too....the original cwm port for chacha works as expected...

something new here?
[HTC ChaCha] Alex C.:
Yep, the background.
[HTC ChaCha] schölli:
and it isn't a beautiful one :P
[HTC ChaCha] mayabelle:
For me, the (albeit unpleasant and unnecessary) background was not the only difference in the new release. The older version kept crashing on my HTC Status, and I wasn't able to root my phone due to being unable to select the proper zip file in CWM. But this version fixed the problem and root finally worked. :)
[HTC ChaCha] Diomorgan:
On chacha the graphic is all messed up, velvet and monochromatic *_*

---------- Post added at 05:55 PM ---------- Previous post was at 05:44 PM ----------

And crash on SD partitioning too... X-§
[HTC ChaCha] Alex C.:
If the graphics are messed up than it's probably the same problem as the port made by Mikevhl; it's related to display drivers. It probably won't be fixed. You can also check the thread inside Dev section and read up the comments.
[HTC ChaCha] lecongdon:
It's better than 4.0.1.0? Why it don't popular and replace 4.0?
[HTC ChaCha] Diomorgan:
But screenshoots are fine.... X-/
[Windows Phone 7 General] tomasino.blaha:
After update to 7.1.7720 i left my jailbreak...Pls Which stock Rom i need?

I have Htc Trophy -ge vodafone.

Thanks
[GT540 Optimus Android Development] mikegapinski:
Hi!

This is clean v20b(but has 3g fix in kernel) rom with my custom kernel with BFS, Simple I/O, minmax ... All the stuff you know from my AOSP :) But there is one thing that I love :) It's even smoother than my 2.3 and all works on it :) It is 100% stock - it doesn't have JIT and even it is not rooted... It is just fast and very stable rom for guys using phone just for dialing... I will add DSP and requested by u guys features over the weekend

Screens:

Download for new recovery:

MOD EDIT: Links removed

PS: on this kernel you won't get sd card removed error !
[GT540 Optimus Android Development] androidboss7:
IS this like a new ROM????

Does it speed up the phone??
[GT540 Optimus Android Development] mikegapinski:
Read first post carefully man ... :D Yes, kernel tweaks are mainking it smoother but game performarce is the same as on LG rom ... And it is running on batt for 5 days without problem
[GT540 Optimus Android Development] androidboss7:
Sorry!!! :)

I will be trying this out soon!!

Cause i'm going back to 2.1 just in case!! :):)

Keep up the WORk!!!
[GT540 Optimus Android Development] mikegapinski:
http://adf.ly/2wDMQ get it there
[GT540 Optimus Android Development] androidboss7:
How do you install it??
[GT540 Optimus Android Development] nutterbg:
So basically the only difference is the kernel with BFS, sio, etc.? In that case why not just release an update zip with the kernel and all that other sweet stuff, like Quarx did with his 0.3.1 instead of a whole rom?
[GT540 Optimus Android Development] mikegapinski:
I will do it that way ... Someone flashed it ? I get various reports that iy doesn't boot... I will update new package within a few hours
[GT540 Optimus Android Development] mikegapinski:
http://www19.zippyshare.com/v/53422081/file.html here is the kernel with fix for wifi... Replace the boot.img and wireless.ko with the new one in the zip package

Sent from iPad
[GT540 Optimus Android Development] pcfighter:
Also you can use this boot and module to whatever 2.1 you want.
[GT540 Optimus Android Development] nutterbg:
Hey, to save you the trouble, I tried to be useful, so i *tried* to make this into an update.zip to make it easy for people. However, I leave testing it up to you, because my battery's low atm, so it's not a great time for flashing(also I'm on SwiftDroid :D). Please try the file, and see if it works, and maybe then I'll be able to say I've done something useful. :D Download.

P.S. I'm not really sure about permissions for the wireless.ko file, so I skipped that bit. If something screws up, perhaps it will be this?
[GT540 Optimus Android Development] androidboss7:
Is this an update or a full rom???
[GT540 Optimus Android Development] pcfighter:
Chmod for module is 644.
[GT540 Optimus Android Development] nutterbg:
I have to leave the house now, so I'll try to take care of it in the afternoon. Would you mind testing it anyway? Also, in the updater-script of the zip I used as an example I see lines like:

set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");

I see the 644 you mentioned, but what about the other numbers? If you can fix the zip, do it yourself, otherwire I'll have a look this afternoon. :)
[GT540 Optimus Android Development] MrAndroid12:
What exactly is "3g" fix?
[GT540 Optimus Android Development] daggerxXxsin:
can i request tun.ko for this rom? i rely heavily on vpn and have been looking for a 2.1 with tun support. anyways great work :)
[GT540 Optimus Android Development] PavanR:
Unable to boot...rebooting by it self what to do???...tried the new boot
[GT540 Optimus Android Development] pcfighter:
Do wipe. I recommend flash boot through fastboot and replace wireless.ko through adb on working ROM.
[GT540 Optimus Android Development] PavanR:
I have Wiped it Completly many times and Did the Recovery but of no use...

I will try again...

Can u tell me the Command to replace with adb....
[GT540 Optimus Android Development] mikegapinski:
Adb push wireless.ko system/lib/modules
[GT540 Optimus Android Development] PavanR:
i am able to see the lg logo and next and anthoer animation then my rom is continously rebooting to the same...what to do...how to fix.

i have first wiped the data

installed through recovery

and went into fastboot and flashed the new boot but not this wireless.ko..

what to do what went wrong..

i have downloaded the file given below your post in the main page

---------- Post added at 03:39 PM ---------- Previous post was at 03:37 PM ----------

how to goto adb mode..when i entered those commands in fastboot i got no device found error
[GT540 Optimus Android Development] :
Install rom and do changes.
[GT540 Optimus Android Development] PavanR:
i have intimated the process i have done.... above...

i have installed the rom and done the changes...

then to same continuous booting problem...

Tell me the process to do and the files to use?????:confused:
[GT540 Optimus Android Development] PavanR:
Saying ERROR DEVICE NOT FOUND in fastboot...