yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Fnorder:
Since I tend to modify roms before flashing them to my phone, and sometimes want to do so away from a computer, I ended up writing this. It's an ash script that uses the openssl binary found on most custom roms, and infozip. The sdk test/platform/media/etc keys are included. Usage:

Usage: signapk (options) [command] (files)

commands:

sign FILE sign a .zip or .apk

sign FILE1 FILE2 create a signed copy of FILE1 as FILE2

cert FILE(s) print cert info on FILE's signer

certinfo FILE print detailed cert info on FILE's signer

cmp FILE compare signer of FILE with default/selected cert

cmp FILE1 FILE2 compare signer of FILE1 to signer of FILE2

options:

-k, --key FILE key to sign with

-c, --cert FILE cert to sign with

if -c or -k are not files then they are considered

aliases to builtins (ie -k testkey or -c platform)

-f, --force sign even if cert differs from original

-t, --tmp DIR use DIR for tempdir instead of '/cache'

-d, --debug output debugging

-V, --version print 'signapk v0.3.1'

exit codes:

1: read error (file 1) 2: read error (file 2)

3: write error 4: ssl error

5: zip write error 9: key error

8: sign: cert mismatch 10: cmp: cert mismatch

128: script error 255: user error

Installation:

unpack somewhere. If needed, edit the variables at the top of the script. By default it uses /cache/ for 4 small temporary files.

Faq:

* Why did you include a busybox and openssl? * Some roms don't include the openssl utility. Busybox's unzip refuses to deal with zipaligned apks on alot of roms, because it wasn't compiled with ENABLE_DESKTOP. Busybox's ash is missing things that the script needs, on some roms. The script will use whatever the rom provides, if these binaries are not present. Good luck.

* How do I change the cert? * see signapk --help for cert/key selection flags

* Can I use this in my MarketAppThingy? * Sure, and please let me know. If it's a paid MarketAppThingy, consider sending me a free copy.

Changelog:

release 3: cmp function, key selection, documented exit codes that make sense, and paranoia. Includes trimmed down busybox and openssl binaries. If these are present, script will reload itself to run in it's busybox ash interpreter to avoid broken busybox compiles, and can run without using anything provided by the rom. In theory this means no compatibility issues, but is limited to ARM devices.

release 2: Apparently it's valid to have ANYNAME.SF/ANYNAME.RSA or ANYNAME.DSA. signapk cert and certinfo now handles this. The sign function will blindly write to CERT.SF and CERT.RSA as this is the behavior of the standard SignApk.java. This may be fixed later.

If you don't wanna signup to download attachment, snag this from http://code.google.com/p/signapk/downloads/list
[G1 Android Development] xjjjay:
very, very useful. I'm testing this now :) Signing stuff was always way too complicated.
[G1 Android Development] Daneshm90:
Cool. Can't wait for someone to make a market app that creates a simple ui to edit update.zips before flashing. Hint hint ;)
[G1 Android Development] britoso:
I put the files in /system/signapk (new folder)

When i run the script I get the error below. The test file is an unsigned apk exported from eclipse.

# ./signapk sign /sdcard/unsigned.apk
./signapk sign /sdcard/unsigned.apk
Checksumming /mnt/sdcard/unsigned.apk:
res/layout/main.xml AndroidManifest.xml
resources.arsc res/drawable-hdpi/icon.png res/drawable-ldpi/icon.png res/drawable-mdpi/icon.png classes.dex
[COLOR="Red"]unable to write 'random state'
./signapk: line 132: ./signapk.zip: not found[/COLOR]
#

Any idea what needs changing to fix this?

update: When I used the full path it worked.

# /system/signapk/signapk sign /sdcard/unsigned.apk
/system/signapk/signapk sign /sdcard/unsigned.apk
Checksumming /mnt/sdcard/unsigned.apk:
res/layout/main.xml AndroidManifest.xml
resources.arsc res/drawable-hdpi/icon.png res/drawable-ldpi/icon.png res/drawable-mdpi/icon.png classes.dex
unable to write 'random state'
adding: META-INF/MANIFEST.MF (deflated 49%)
adding: META-INF/CERT.SF (deflated 48%)
adding: META-INF/CERT.RSA (deflated 33%)

# /system/signapk/signapk cert /sdcard/unsigned.apk
/system/signapk/signapk cert /sdcard/unsigned.apk
/sdcard/unsigned.apk 936EACBE07F201DF SDK Test Key
[G1 Android Development] britoso:
Was playing around with app inventor and came up with this:

edit: AppInventor does not generate java code and it cannot be worked on further in anything else (i.e eclipse) :(

I was really hoping I would atleast get the activity xml
[G1 Android Development] Fnorder:
Heya, the latest is at http://code.google.com/p/signapk/downloads/list and should fix the zip error. signapk-bb, signapk-zip, and signapk-openssl are static, trimmed down versions of utilities required by the script, and should be extracted to the same directory as the script. If they are not present it will try to use stuff in $PATH
[G1 Android Development] britoso:
Just throwing it (the obvious) out there that this could enable a new generation of morphs for /data apps

Copy apk,uninstall,morph, install

:)
[G1 Android Development] Stericson:
Hmmmm.... :)
[G1 Android Development] Bradl79:
How can i get this to work with a morph and to edit the updater-script?
[G1 Android Development] HemanthJabalpuri:
Someone explain the commands with example...

Another noob question is .. it is for android or pc...

Edit:- Made my own mod here https://xdaforums.com/t/app-android-no-pc-sign-apk-zip-within-android.3835975/post-81324327

below code works with latest(1.32.0) busybox

#!/system/bin/sh

# depends unzip printf zip openssl

# put zip openssl busybox in PATH

# Usage:-
# Sign.sh key.pk8 key.x509.pem in.zip out.zip

ordie() {
if [ $? -ne 0 ]; then
IFS=" "
$BB printf "$1\n"
exit $2
fi
}

PKEY="$1"
CERT="$2"
ORIG="$3"
TARGET="$4"

BB=busybox

cat "$ORIG" > "$TARGET"; ordie "Cannot write to $TARGET" 3

$BB printf "Checksumming $ORIG:\n"

TMP=$HOME
TMPDIR="$TMP/sign-$$"
TMPPKEY="$TMPDIR/tmp.pkey"
mkdir -p "$TMPDIR/META-INF"; ordie "" 3

$BB printf "Manifest-Version: 1.0\r\nCreated-By: 1.0 (Android SignApk)\r\n\r\n" > "$TMPDIR/META-INF/MANIFEST.MF"

ZIPls=$($BB unzip -qql "$ORIG"); ordie "$ORIG: unzip error" 1
OLDIFS=$IFS
IFS=${IFS:2:2}
for i in $ZIPls; do
IFS=$OLDIFS
set -- $i
if [ "$#" -ge 3 ] && [ "$1" != "0" ]; then
file="${i:30}"
case "$file" in META-INF/MANIFEST.MF|META-INF/CERT.SF|META-INF/CERT.RSA) continue;; esac
$BB printf "$file "

hash=$($BB unzip -p "$ORIG" "$file" | openssl sha1 -binary | openssl base64); ordie "$ORIG: unzip error" 1
ret="Name: $file\r\nSHA1-Digest: $hash\r\n\r\n"
$BB printf "$ret" >> "$TMPDIR/META-INF/MANIFEST.MF"

hash=$($BB printf "$ret" | openssl sha1 -binary | openssl base64)
$BB printf "Name: $file\r\nSHA1-Digest: $hash\r\n\r\n" >> "$TMPDIR/META-INF/CERT.SF.temp"
fi
done

$BB printf "\n"

mfhash=$(cat "$TMPDIR/META-INF/MANIFEST.MF" | openssl sha1 -binary | openssl base64)
$BB printf "Signature-Version: 1.0\r\nCreated-By: 1.0 (Android SignApk)\r\nSHA1-Digest-Manifest: $mfhash\r\n\r\n" > "$TMPDIR/META-INF/CERT.SF"
cat "$TMPDIR/META-INF/CERT.SF.temp" >> "$TMPDIR/META-INF/CERT.SF"

openssl pkcs8 -inform DER -nocrypt -in "$PKEY" > "$TMPPKEY"; ordie "" 4
cat "$TMPDIR/META-INF/CERT.SF" | openssl smime -sign -inkey "$TMPPKEY" -signer "$CERT" -binary -outform DER -noattr > "$TMPDIR/META-INF/CERT.RSA"; ordie "" 4

cd "$TMPDIR"
zip "$TARGET" META-INF/MANIFEST.MF META-INF/CERT.SF META-INF/CERT.RSA; ordie "" 5
cd - > /dev/null
rm -r "$TMPDIR"
[Windows Mobile Development and Hacking General] oliveira73:
i need help in this i cant do the downgrade of wm6.1 to 6.0 who can help me?

I dont understand very mutch about hacking on smartphones so i need a tutorial very easy
[Windows Mobile Development and Hacking General] indagroove:
What device is this for?
[Vibrant Themes and Apps] speoples20:
I'm using the standard Facebook app and so far its great. The new update makes it better but there is still an annoying issue that hasn't changed. When I go in to check my notifications I select one and it takes me to the mobile version instead of staying in the app. I've looked through the Derrick gs and haven't been able to find a way to change that. I emailed the devs but haven't heard back yet. Is there a way to change it so it doesn't open notifications in the browser?
[Vibrant Themes and Apps] PolishDude:
i think that is what it is meant to do unfortunately
[HD Mini Themes and Apps] helftheo:
...for HTC HD Mini :D
[HD2 Windows Mobile 6.5 Themes and Apps] m0bmentality:
I was running Energys new Dinik/GTX rom and wanted and all black and white dinik set so i could have the Gtx feel but retain the clean glassy look of Anastasia..

So here it is.. Working on a .cab now.. but its super simple to import with CFC_GUI

I just stripped the sense out of the energy/gtx/dinik rom and ran them through a photoshop action script to make them all full res black and whites.. so...

id like to make sure to say thanks to everyone whos stuff i used to make these..

Energy Himself

http://xdaforums.com/showthread.php?t=591784

Mr Dinik

http://xdaforums.com/showthread.php?t=591248

Senior Member Kurt Willems

http://xdaforums.com/member.php?u=1493440

Heres the raw images... me or kurt will be posting the cab tonight or in the morning.

http://hotfile.com/dl/60305549/c845e73/ManilaBW.rar.html
[HD2 Windows Mobile 6.5 Themes and Apps] m0bmentality:
As promised here is the cab version , for one click installation and easy uninstall, Me built this for me and tweaked it a lil bit so it should work clean on most if not all roms.

Installation instructions.

You will see I have ad two different cab versions.

Anastasia Black & White.cab (The traditional way) => these will work always (10.95 MB)

and the

Anastasia Black & White Compress.cab (A Compress version) => can not work on some device, but I must be honest; I don't see way, It works always fore me! (2.11 MB)

Just download the cab version of your choice, install it on Internal Memory; followed by a soft reset.

These are cab versions; If you don't like the concept, you can easily removed it and came back on previous theme.
[HD2 Windows Mobile 6.5 Themes and Apps] pablo34:
looks nice man, kinda like a gtx anastasia hybrid
[HD2 Windows Mobile 6.5 Themes and Apps] m0bmentality:
Thanks.

im very minimalistic.. i keep icons off my desktop and laptop ect.. but i wanted the anastasia icons cause i like Diniks glass so this is where it landed me!
[HD2 Windows Mobile 6.5 Themes and Apps] qcefer:
i have a folder with 343 dinik icons , could you make them B/W for me?

and when can we expect the cab?

thank you.
[HD2 Windows Mobile 6.5 Themes and Apps] m0bmentality:
Let me make sure i understand how to make a cab before i promise to make MORE black and white icons too.. im gonna do it tonight.. working on it now.
[HD2 Windows Mobile 6.5 Themes and Apps] m0bmentality:
Any body wanna be a test dummy for the cab? My wifes phone was dead so i have hers and she has mine so i cant test it.
[HD2 Windows Mobile 6.5 Themes and Apps] aseth:
very nice!
[HD2 Windows Mobile 6.5 Themes and Apps] kurt-willems:
EDIT: everything is ok now.
[HD2 Windows Mobile 6.5 Themes and Apps] J-r0en:
Its kinda 'Dinik', instead of 'Dinnik'

And, Dinik & Djcedric dont have a project together. They dont really like each other as far as i know.

But i get your point.
[HD2 Windows Mobile 6.5 Themes and Apps] kurt-willems:
No sir; before the discussion between Dinik and Djcedric there was a Dinik & DJC theme sir; It was the beginning of the Anastasia Theme.
[HD2 Windows Mobile 6.5 Themes and Apps] dharvey4651:
I was contacted by kurt-willems not too long ago telling me that all issues for which this thread was closed have since been worked out by users involved.

For this reason the thread has been re-opened.

-DH
[HD2 Windows Mobile 6.5 Themes and Apps] m0bmentality:
Since all the disturbances are still here id like to clear up that i didnt realize kurt was part of the build i modified to scrub the dinik files into the gtx look.. def never ment to cut anyone out.. just didnt look into it enough to find out who alls fingers were in the pot so to speak.. .

Kurts building yall a cab for this now.. should be up later.. thanks bro
[HD2 Windows Mobile 6.5 Themes and Apps] kurt-willems:
No problem sir, I don't like being the person who create problems! Ever sometimes I create it. But generally I'm a fair player, and collaborate to solve a problem. And like I say earlier when the problems are fixed I'm glad to help you. thats way within some few minutes I will update the cab version. ;)

I'm glad to see we have solved us issue, I'ts not only fore us the best way but also fore a hole group of members. ;)
[HD2 Windows Mobile 6.5 Themes and Apps] kurt-willems:
Here we go!

Okay guys, I have make a cab version of the "Black and White Version of the Anastasia style"; (Its more easier fore install and uninstall.)

First of all this is not my creation; its the creation of m0bmentality based on the work of Dinik and Me. I just collaborated fore making a cab version. :D

Secondly, the different between the zip file and the cab file is only the fact I add some missing files. Normally it will work correctly.

(Fore the moment I have ad the traditional Anastasia Slider selector; if m0bmentality decide to make a other version in the future we will let you know it.
[HD2 Windows Mobile 6.5 Themes and Apps] J-r0en:
Looks nice, im flashing the new Energy rom as we speak, will try the B&W right after ^^
[HD2 Windows Mobile 6.5 Themes and Apps] m0bmentality:
word cant wait to see it!
[HD2 Windows Mobile 6.5 Themes and Apps] kurt-willems:
Let us now your opinion sir.

But most important have fun with it.
[EVO 4G Q&A, Help & Troubleshooting] Slappy_G:
Has anyone seen this? I'm old-school here - been running fresh 0.3 for a long time and just had this start happening a few days ago:

When switching the USB connection to a PC from Charge Only to Disk Drive, it works fine, and the drive appears on the PC. So far, so good.

But, changing the mode back to Charge Only freezes the Evo and it does a full reset. Comes back up and works fine. It appears to freeze when validating/remounting the SD card.

Any suggestions on how to troubleshoot? I have removed recent apps I installed to no effect. Short of data wipe, can someone provide troubleshooting/diagnostic ideas?

Thanks!
[Hero, G2 Touch Q&A, Help & Troubleshooting] TheSh4wn:
Hi,

I've got some strange behaviour recently with my HTC Hero. When an apps tries to use the GPS signal, my internet connection immediatly drops. I can activate the GPS sensors without problems, but as soon as an app tries to communicate with it, boom: internet gone. This is highly annoying when using Google Maps, as the map won't be loaded. Internet connection will only return after a reboot.

Running: VanillaEclair 4.0

Radio: 63.18.55.06OU_6.35.15.01 (But the same happens with 63.18.55.06PU_6.35.15.14)

Any idea what could cause this? And especially: how I could fix this?

Thanks in advance,
[Vibrant General] larryccf:
curious if anyone has flashed any of the asian ROMs and found the FM radio chip in our VIbrant?
[Vibrant General] speoples20:
IIRC its not a software issue, the vibrant doesn't have the hardware. Though it wouldn't be the first time an FM radio was hidden in a phone.
[Vibrant General] larryccf:
was hoping it had been found to still be there
[Vibrant General] lqaddict:
I thought the same chip by Broadcom was used in all Galaxy S variants that integrates BT, GPS and FM radio

http://www.intomobile.com/2010/02/1...-with-media-playback-and-recording-functions/
[Vibrant General] Spiffywerks:
I really have no idea about the hardware, but maybe that's why there is problems with the GPS, they didn't use the chip that has the BT/GPS/FM in it and used something else that took out the FM part and screwed up the GPS. Just a wild off the wall speculation.
[Vibrant General] larryccf:
there was an initial post by TravUK identifying the chipset as the Broadcom BCM 20751 and that is a 3 way chip (BT/GPS/FM)

but later he corrected that as a mistake - others found in the UK version of the i9000 and the US Tmobile delivered Vibrant (T959) and i believe in the AT&T Captivate, that the chip was a Broadcom 4751, which is a singular function chip, GPS only

so the FM chip must reside by itself or with the BT chip
[Vibrant General] lqaddict:
I guess without doing the full autopsy we won't know what chipset they used unless someone who knows inner land of Samsung can leak it - bummer, I wish there was dmesg or similar output that you can parse to get the idea of the hardware used.
[Vibrant General] teronzhul:
As said the BCM 4751 is the gps chip, not the aforementioned 20751. However, the phone still needs a wifi/bluetooth chip, and from one of the captivate threads I believed it was identified as the BCM4325, which also has fm capability. I think it is the only broadcom chip with bluetooth 3.0 and wifi b/g/n. So fm has to be on the chip. Whether or not everything is still connected on the pcb is still a question, but there doesn't seem to be any reason for samsung to have changed anything if they're still using the same chips.
[Vibrant General] KerryG:
Even if the chip supported FM, there is a lot more to it in terms of powering those circuits, integrating them into the audio circuitry, and providing leads for an antenna. Even if you could "activate" the chip you may not be able to pick up anything or hear anything.
[Droid Incredible Q&A, Help & Troubleshooting] oturn:
It seems like all of the available ROMs have either Sense, or ADW launcher. Why no pure vanilla Froyo 2.2, with the stock launcher?...or am I just missing it? I'm talking Nexus One pure, with no additions or changes whatsoever, besides root.
[Droid Incredible Q&A, Help & Troubleshooting] luniz7:
Cm6 test 8 on rom manager
[Droid Incredible Q&A, Help & Troubleshooting] jdkoreclipse:
check out my cm6 patch. it is cm6 with the stock launcher, and everything that was blue is now green. thats the best your gonna get for vanilla froyo
[Droid Incredible Q&A, Help & Troubleshooting] magneticzero:
I think I did find the Stock ROM....vanilla as you would call it...I havent had a chance to mess with it...but peeking at the guts looks like everything thing is there except the one thing I was looking for....CityID.apk hahaha I should find a uploading service...

/edit it is the latest stock sense ROM without being hijacked
[Droid Incredible Q&A, Help & Troubleshooting] Samiam303:
Stock and Vanilla in this case don't mean the same thing -- stock roms are Sense based, and Vanilla refers to android without any sense -- as you would have on the nexus one, or compiling from Android Open Source Project code.
[Droid Incredible Q&A, Help & Troubleshooting] magneticzero:
vanilla as in, not be slashed and hacked by a developer...untouched in a sense, that is vanilla to me :P
[Droid Incredible Q&A, Help & Troubleshooting] tcberg2010:
I'm working on porting the stock FRF91 from the N1 as we speak. I have never done this before and am therefore using only the basic kitchen. If it works and I can verify little or no bugs I will post it in android development. I can't make any promises though.
[Droid Incredible Q&A, Help & Troubleshooting] jdkoreclipse:
hey tc, i tried to port frf92 as well, but my question is, why are folders missing after the port.

hope your port goes well. i made a patched cm6 to hold myself over until there was a vanilla port, but as the time goes by, i just feel more and more like the real vanilla. good luck.

-jd
[Droid Incredible Q&A, Help & Troubleshooting] tcberg2010:
I wasn't able to get it to boot. Don't really have time to look into it at the moment jdk otherwise I would tell u if anything is missing.. I'll try and take a look at it this weekend though.
[Droid Incredible Q&A, Help & Troubleshooting] jdkoreclipse:
i hear that it is hard to port from the basic kitchen. whoever o talk to says that it wont boot.

check the /system folder. im sure some subfolders are missing. i tried to port EVOlution from the evo not too long ago, but when i realized folders werent there, i just decided to forget it.

quick question- what rom did you use as the one "from your phone" as the kitchen would put it???

-jd
[Droid Incredible Q&A, Help & Troubleshooting] tcberg2010:
Skyraider 1.0, all it was looking for was the kernel I think. Might compile the kernel myself and use the zimage I generate. When I have time that is. I would love the stock nexus froyo.
[Droid Incredible Q&A, Help & Troubleshooting] jdkoreclipse:
maybe try cm6 or just stock 2.1 when you get a chance.

-jd
[Droid Incredible Q&A, Help & Troubleshooting] oturn:
After trying both CM6 and SkyRaider Vanilla, I'm still looking for a true vanilla rom!!

CM 6.0.1 is vanilla, but it's still HEAVILY modified. Plus, it freezes with a blank screen, or Exchange stops updating, or force closes pop up every once in a while, etc.

SkyRaider has a "vanilla" version, but again it's heavily modified.

I'm not asking for just a vanilla UI, I'd like a vanilla UI AND OS. Give me a vanilla OS that hasn't been screwed with...please? A clean, stock, VANILLA UI and OS that's as near to Google's code as possible (like the Nexus One for example), that hasn't been tinkered with, and that just works on the Incredible.

Is this possible????
[Droid Incredible Q&A, Help & Troubleshooting] VCURamEngineer:
Check out the Ruby rom in the development section.
[Touch Pro, Fuze General] snake2001vn:
I can't play music through headset but I can make a call, play, next, previous........... what problem with me? (I'm using bluetooth stereo) :confused:
[Touch Pro, Fuze General] AthenaLod:
i am not really sure i understand your problem. but, give btaudio a shot.
[Touch Pro, Fuze General] snake2001vn:
when i connect bluetooth headset with my phone, I can make a call, use play,pause,next function but I can't listen to music (always out by loudspeaker
[Android Q&A, Help & Troubleshooting] devoice:
ciao a tutti !!!!

you have problem PDA X7500 ATHENA, firmware fail, MODEL ID ERROR !!!!!
[Android Q&A, Help & Troubleshooting] Spiaatie:
Welcome to XDA!

Please use a search before posting a new thread.

Every hTC device have it's own forum and it's the first place to look for ongoing discussion about device.

Did you HARD-SPL your device?

Take a look [here] and if you can't find answer to your question post it in Advantage X7500 General section [here].

You may have better response there.

:)
[Galaxy S I9000 General] Aqua1ung:
Alright, I saw it on the box, so I can confirm with certainty: Bell's Vibrant is tri-band HSDPA 850/1900/2100. :D I think I'm gonna get me one right away. (Might it be smarter to wait for deals from FS?)

Before seeing it on the box, noone could confirm that: I had called Bell tech support (highest tier), Samsung Canada tech. support, noone! I just can't believe how incompetent these guys (and gals) can be! Samsung tech support didn't even know what HSDPA is! Go figure! Who pays these guys? :mad:
[Galaxy S I9000 General] AllGamer:
yes 3 band data as mentioned above

and quad band voice 850/900/1800/1900

who cares about the voice, the 850/1900/2100 range is what we wanted anyways :D

now i can go to Brazil visit my >beeep< or go to europe and still have good data reception :D (using local sim cards of course)
[Galaxy S I9000 General] felipehcampos:
Is the bell's vibrant different from t-mobile's???
[Galaxy S I9000 General] Croak:
Yes, it's a full-on I9000 complete with FFC and physical Home button.