Understaing Update.zip Structure - G1 Android Development

I found this and this is what all of us need to understand.
http://docs.sun.com/source/816-6167-10/jar.htm
Everyone READ and UNDERSTAND... I won't sleep tonight
I'm very interested in this sentance:
"You can use the JAR archive format to package files even if you don't want to sign any of them. In this case, you won't have any signature instruction files or digital signature files."
Lets hope that Google doesn't force signed files.

quedijo said:
I found this and this is what all of us need to understand.
http://docs.sun.com/source/816-6167-10/jar.htm
Everyone READ and UNDERSTAND... I won't sleep tonight
Click to expand...
Click to collapse
Awesome information.... Just wondering about a couple things like how do you make the RSA?

neoobs said:
Awesome information.... Just wondering about a couple things like how do you make the RSA?
Click to expand...
Click to collapse
BEFORE ANTHING! UNDERSTAN HOW PKC (PUBLIC KEY CRYPTOGRAPHY)
Simple Terms (Look at the pictures):
http://java.sun.com/developer/technicalArticles/xml/dig_signatures/
In detail:
http://en.wikipedia.org/wiki/Public-key_cryptography
This is to create the keys:
http://articles.techrepublic.com.com/5100-10878_11-1045749.html
Creating Digital Signature:
http://docs.sun.com/source/816-6167-10/jar.htm#421821
Associating Digital Signature with files:
http://docs.sun.com/source/816-6167-10/jar.htm#421587

First link went over my head... I think it is too late for me to be thinking that much LOL
I think the wiki explained what I already know. You have a private key only you know. And you give the public away with the message. The private key encrypts a file that can only be decrytped with the public key and viceversa. I think that is the easiest way to say it. If I am wrong stop me now.
I kinda get how to create keys but I am so clueless to java... is there an idiots guide or program to make the pair?
The last two links still go over my head. I understand how it works but still not sure how to make the hash's. Even if I get the pair... how do you make a hash? And is there a program that will make it easier? You give it the Private RSA and the folder and it makes the manifest and the Cert files? HAHA I am asking for it to be way too easy.

neoobs said:
I think that is the easiest way to say it. If I am wrong stop me now.
[...]
HAHA I am asking for it to be way too easy.
Click to expand...
Click to collapse
You're right about PKC.
Actually IT IS way too easy. That first link is a description of what the structure is. As long as you have that understanding you could use packagers in java to do all the work.
Hashing is proabably the easiest part. There are numerous programs out there to make SHA1 hash keys. If you have the time listen to this podcast it describes Hashing in a understandable way.
http://media.GRC.com/sn/SN-035.mp3
But "some" work will be required
I'm still looking and will try to make some instructions. Beleave me, I've searched all over the place for hashing and other stuff.

quedijo said:
You're right about PKC.
Actually IT IS way too easy. That first link is a description of what the structure is. As long as you have that understanding you could use packagers in java to do all the work.
Hashing is proabably the easiest part. There are numerous programs out there to make SHA1 hash keys. If you have the time listen to this podcast it describes Hashing in a understandable way.
http://media.GRC.com/sn/SN-035.mp3
But "some" work will be required
I'm still looking and will try to make some instructions. Beleave me, I've searched all over the place for hashing and other stuff.
Click to expand...
Click to collapse
I have two programs. HashCalc and cyohash. I use MD5 hash all the time. I just wonder if we can make something that will hash all the files in a folder/subfolder and put them into a text file like the manifest. And then use our private key to put them in a cert file.

neoobs said:
I have two programs. HashCalc and cyohash. I use MD5 hash all the time. I just wonder if we can make something that will hash all the files in a folder/subfolder and put them into a text file like the manifest. And then use our private key to put them in a cert file.
Click to expand...
Click to collapse
Yes, that is what XML is for or even PHP.
Java has a million of them.

Related

EXTENDED ROM INDEXING SITE

there it is folks...after 2 days of hard work, my site is almost done
Im posting it now to get some feedback
dont mind the way it looks atm etc and downloads are disabled for now...
http://www.dmmh.nl/xda/files/
let me know what you think
btw, I still have to add around 450 files to the site, those arent indexed yet, but I wonder what people think about layout, way of sorting etc etc
there will also be a comments section for people who take the time to register and a simple rating system
looks like a great resource
Shouldn't 2002/2003/2003SE/2005 be an option?
nah, not many files for extended roms are operating system dependant, as far as I know
correct me, if I am terribly wrong
Nice job! Layout looks good with the filter system, although I think that some of the customisation cabs are dependent on OS, particularly for MMS. I may be wrong, but at least someone here can correct me!
Keep up the brilliant work!!
Fin
tbh, I aquired all of the files of the FTP, Im thinking about adding a upload form to the site where one can upload their extended rom and the file will land in a temporary folder which I access via ftp, verify and move to the real files directory.
Either this, or there has to be a better way of getting to know when a new extended rom is available for download. Maybe forums on the site will be usefull
file downloads working now...
file downloads are enabled
http://www.dmmh.nl/xda/
I am still working on the category sorting....its almost done...but returns wrong matches if more then one category is selected. All the other filter options are working.
TO DO LIST:
- member registration
- further extended comments section, leave comment for members
- develop 'suggest filter' (people who know the file may suggest the filters which apply) for members, gets aproved/ denied via admin control panel
- maybe forums
- rating system
sofar I have magician and blue angel files online, but a lot still needs the filtering applied
Good job bro, but my suggestion is to compress the cab files to rar, you'll gain more space
nice work....and a loooooot to do in the future,if u want to upload all the files :wink:
keep on man,i beleive ur site will become a gr8 station,where u can download everything concerning ext rom files
RAGO :lol:
ramram said:
Good job bro, but my suggestion is to compress the cab files to rar, you'll gain more space
Click to expand...
Click to collapse
there are already 1000 files on there...it would take a lot off time to compress them all manually or so
RAGOv said:
nice work....and a loooooot to do in the future,if u want to upload all the files :wink:
keep on man,i beleive ur site will become a gr8 station,where u can download everything concerning ext rom files
RAGO :lol:
Click to expand...
Click to collapse
thats the idea
dmmh said:
there are already 1000 files on there...it would take a lot off time to compress them all manually or so
Click to expand...
Click to collapse
When arching with WinRAR 3.42> use "Put each file in separate archive" option in Files (Archive) Tab
mmm, I could do that...but I would have to re-index all the files I've already done
Thanks for your c00l project!
I'm voting for adding "WM2002/2003/2003SE/2005/ALL/.NET" option there...
And one thingy, why not to allow file storing directly to Category?
Perhaps putting "trusted sender" OR "not trusted" variable will solve the problem. So when a new member sends file a file's comment will indicate that this file is from "UNTRUSTED SOURCE AND MAY HAVE VIRUSES AND STUF...". But when you review the file yourself you change variable of sender to trusted one and all files he sent become trusted... and adding "DELETE THIS FILE (-1)" option to rating system will save your time on deciding whether the sender is trusted or untrusted...
Cheers
uploading himalaya files now....****in loads of working, I had to use ER2003Edit to extract all files manually...better thank me on my knees!!!!!
any way to aquire Wallaby extended rom files? cant seem to extract them in a easy way.......
dmmh said:
any way to aquire Wallaby extended rom files? cant seem to extract them in a easy way.......
Click to expand...
Click to collapse
Wallaby doesn´t have a extended ROM. Only Adaption have been done via operator Config, which was included in the base rom. There are only a few CAB files in it.
If you get me a server i will upload complete set of operator config. If you don´t have one, i will take mine server and send you the link for downloading....
Stefan
mmm, ill see what I will do, thank you
I need more space
I have been offered webspace by one of the members here, which is awesome, but I like to keep using my host.
Due to the huge amount of files, it would cause to much delays to query for remote filenames and remote filesizes, causing very slow response times, rendering the site almost unusable
so, if anyone wants to see the Himalaya and Alpine files online...ever.....some donations would speed up the process
forum online
forum is online, but locked for the moment
registration for it is working, but you cant post anything/ view anything yet, as I am hacking the **** out of the CSS and .tpl files to make it all look like I want it to
tell me what you think
http://www.dmmh.nl/bb/
I like the layout for the forum.
SpeedN

cooking help plz!

ive started cooking around a week and a half ago on my new rom series and im not understanding how to set up the auto customization that happids on a fresh flash or hard-reset ive researched for 2 days now and found formats and all that but can someone please explain what "config_operator.txt", config_PT.txt", "config_AP.txt" and "config.txt" do as they seem to be connected to each other and how to set them up with their corrisponing folders thank you!
~xNitrous~
okies first off make sure before you edit the config.txt file you set the properties to NOT read-only then edit the file as you like. put the cabs or .xmls you want in the rom into it and make sure they are signed and set to read only. then go back and save your config.txt and change the properties back to read-only. flash and be done. also search the hermes forum for answears about this since cooking for the hermes and kaiser are the same and there is TONS of info about cooking for the hermes since its been around longer
cooking trouble
can you please tell me why they are in diffrent folders and labeled diffrently and linked tongether? or point me to a page that tell me. what is "operatorPKG", what is "OperatorPKG_PT" and why are these files in each one, does each represent something diffrent can you please explain it to me thank you
~xNitr0us~
xNitr0us said:
can you please tell me why they are in diffrent folders and labeled diffrently and linked tongether? or point me to a page that tell me. what is "operatorPKG", what is "OperatorPKG_PT" and why are these files in each one, does each represent something diffrent can you please explain it to me thank you
~xNitr0us~
Click to expand...
Click to collapse
i assume you are using kaiserkitchen, right?
xNitr0us said:
can you please tell me why they are in diffrent folders and labeled diffrently and linked tongether? or point me to a page that tell me. what is "operatorPKG", what is "OperatorPKG_PT" and why are these files in each one, does each represent something diffrent can you please explain it to me thank you
~xNitr0us~
Click to expand...
Click to collapse
operatorpkg is the operator package, which in our case is htc, so it should contain stuff like themes,startup animations,backgrounds etc. as obviously windows mobile doesn't ship with this when it goes to htc.
Make it easy on youreself in the start and focuse only on: C:\kaiserkitchen\OEM\OperatorPKG & config_operator.txt
You can setup config_operator.txt to skip right to config.txt (just make sure the files in middle are not used)
Just add youre cabs, xml and stuff in config_operator.txt. When you get used to provxml and how this work you can dig real into this. One stands a bit out wich you will use more the others and thats mxipupdate_oemoperators_105.provxml
Play whit this and slowly you understand the diffrence and needs of mxipcold, mxipupdate & mxip
I think its important not to bite over to much in the start, you just gonna get confused. Small steps and take time to understand youre prossess and what you are actually doing RIGHT NOW then slowly you will get the big picture of how this connects.
Do some digging on provxml. I attached a wery nifty tool for you if you are not a speedracer on writing youre own xml`s. Use this to convert .reg or .rgu to proxml/xml`s. And download XML Notepad 2007 here. Its free and all you ever need.
Hope this was any help to you

AOSP lockscreen in sprint builds... ideas

I dabble in some programming, taking it in college now, but have little experience with linux and the like, so I don't know where to go from here. I found the files, I think, to modify so that the AOSP lockscreen will work. Found keyguard xml files in \system\framework\framework-res.apk\res\layout. Pretty sure these are the right files, as the images for the sliders is in this apk as well. And I know from a logcat that keyguard is what it's opening for the lockscreen. Only problem is, can't seem to view or edit these xml's in a readable format... tried three different editors. About to reboot into linux and try it there, maybe I'll have better luck. But thought I would ask here where there are people FAR more knowledgeable than I.
danaff37 said:
I dabble in some programming, taking it in college now, but have little experience with linux and the like, so I don't know where to go from here. I found the files, I think, to modify so that the AOSP lockscreen will work. Found keyguard xml files in \system\framework\framework-res.apk\res\layout. Pretty sure these are the right files, as the images for the sliders is in this apk as well. And I know from a logcat that keyguard is what it's opening for the lockscreen. Only problem is, can't seem to view or edit these xml's in a readable format... tried three different editors. About to reboot into linux and try it there, maybe I'll have better luck. But thought I would ask here where there are people FAR more knowledgeable than I.
Click to expand...
Click to collapse
They are in a binary format. I opened them in dreamweaver, and it still wasn't fully readable/able to be edited. you can use this to decode them to readable format, but I have NO CLUE how to get them back.
http://forum.xda-developers.com/showthread.php?t=514412
regaw_leinad said:
They are in a binary format. I opened them in dreamweaver, and it still wasn't fully readable/able to be edited. you can use this to decode them to readable format, but I have NO CLUE how to get them back.
http://forum.xda-developers.com/showthread.php?t=514412
Click to expand...
Click to collapse
Use the AXMLPrinter2.jar to convert the XML files to a Text Readable format. Unfortunately, to modify the files, you need to use a Hex Editor to do any updates. I havn't seen any utilities that will read/write the binary XMLs, just read.
-Daryel
I haven't had the time to look into this yet, but... Since the lock screen works fine in Darch's AOSP build, could it just be a matter of switching out the xmls?
Just an idea.
thematrixkid17 said:
I haven't had the time to look into this yet, but... Since the lock screen works fine in Darch's AOSP build, could it just be a matter of switching out the xmls?
Just an idea.
Click to expand...
Click to collapse
WOW, if that's all it takes, someone should try it lol
I mean, it couldn't be thaat easy, could it?
Doesn't it work on the Eris leak?
let me see what's there under the eris builds
Well I'm headed to class now, and have to study for a big big test tomorrow later, but I might find time, if someone doesn't beat me to it. Now I'm not all that familiar with the framework, but its just a brainstorm. And if the one in the eris leak works, then that xml probably has an even better chance playing well with the sprint build, I assume.
hey... you can view and edit the xml on the phone with root explorer after you extract them. Then just copy to pc to rezip
also, when rezipping an apk, using 7zip, is there a particular setting? compression level, method, etc.

Can someone provide the contents of wpa_supplicant.conf?

Guys --
I was editing the wpa_supplicant.conf file and prior to editing I made a backup of the file. However, for some reason MIUI file explorer appears to have deleted the contents of the file and cloned the empty file.
Can someone copy / paste the contents of this file (/data/misc/wifi/wpa_supplicant.conf) from an AT&T Hox (please edit out your personal information)? Alternatively, if someone checks their own file and confirms that theirs is also empty (0 bytes), that would work too.
For reference I'm on 1.73.502.1.
Oh, and if it is against forum rules to post stock ROM files, please disregard
Why would I give you the file that has all my wifi networks and passwords?
_MetalHead_ said:
Why would I give you the file that has all my wifi networks and passwords?
Click to expand...
Click to collapse
Please hand over all your networkz and passwordz. Kthx.
Sent from my HTC One X using xda premium
Hah, okay, wasn't sure what the file contained since I didn't get a chance to open the file prior to copying.
So... better way of stating the request... can someone copy paste the "stock" contents of the file without your ssid's and passwords?
Here on xda you get a lot of smart ass responses before an answer.. hope this helps
ctrl_interface=wlan0
update_config=1
# Wi-Fi Protected Setup (WPS) parametersy
uuid=12345678-9abc-def0-1234-56789abcdef1
device_name=HTC_DEVICE
manufacturer=HTC
model_name=HTC_PHONE
model_number=1234
serial_number=123456
device_type=10-0050F204-4
os_version=0308
config_methods=label virtual_push_button keypad
network={
ssid="attwifi"
key_mgmt=NONE
priority=1
}
aimetti said:
Here on xda you get a lot of smart ass responses before an answer.. hope this helps
Click to expand...
Click to collapse
I wasn't trying to give a smart ass response. Originally he asked for the complete file, which is filled with a ton of private info. I look at that and then I look at his post count (this was his first post) and I responded accordingly. Forgive me for not trusting random strangers on the internet.
Also, if my smart ass post prevented one unsuspecting person from posting all their private info then I would say I did a good job.
aimetti said:
Here on xda you get a lot of smart ass responses before an answer.. hope this helps
ctrl_interface=wlan0
update_config=1
# Wi-Fi Protected Setup (WPS) parametersy
uuid=12345678-9abc-def0-1234-56789abcdef1
device_name=HTC_DEVICE
manufacturer=HTC
model_name=HTC_PHONE
model_number=1234
serial_number=123456
device_type=10-0050F204-4
os_version=0308
config_methods=label virtual_push_button keypad
network={
ssid="attwifi"
key_mgmt=NONE
priority=1
}
Click to expand...
Click to collapse
Thanks a bunch. Just curious, obviously the uuid, serial number, etc are not real numbers. Did you edit them out or were they "generic" to begin with?
Probably won't matter either way because it's not like I need to use WPS.
_MetalHead_ said:
I wasn't trying to give a smart ass response. Originally he asked for the complete file, which is filled with a ton of private info. I look at that and then I look at his post count (this was his first post) and I responded accordingly. Forgive me for not trusting random strangers on the internet.
Also, if my smart ass post prevented one unsuspecting person from posting all their private info then I would say I did a good job.
Click to expand...
Click to collapse
No worries. Again, I didn't know what the file contents were supposed to be, and your post was pretty much warranted given the circumstances. Of course, you could have made your post and then followed up with "but here is what the file contains without my personal info", but I admit I did have a laugh nonetheless. I actually do appreciate your post either way, though.
tekkneke said:
No worries. Again, I didn't know what the file contents were supposed to be, and your post was pretty much warranted given the circumstances. Of course, you could have made your post and then followed up with "but here is what the file contains without my personal info", but I admit I did have a laugh nonetheless. I actually do appreciate your post either way, though.
Click to expand...
Click to collapse
Glad you aren't taking offense, because I was in no way trying to be disrespectful. I completely understand now that you weren't asking for anyone to post their personal info, but better safe than sorry right? Cheers
Hmm, okay, so I copied wpa_supplicant.conf from the /system/etc/wifi folder (same exact contents as the file aimetti provided), and now my Wifi does not work. Currently the file permissions are rw-rw----.
Under system settings it displays "Wi-Fi" and then where it normally states what network it is connected to, it says "Error".
I am thinking it is possible that it expects the network ids in the file that were previously there. So, could I get someone to post the format that they see for a network (wpa/wpa2 please, using **** to cover your network key)?
Would really prefer to not have to revert back to stock
EDIT: Nevermind, issue is fixed ... the perms kept getting automatically set to rw-rw---- after boot, but the problem was that somewhere along the way the file's ownership got changed. Switched it to Owner - System, Group - Wifi and it works again.
****
What you need is a universal wpa_supplicant which has no specific info about the user and it is encrypted. I have attached the file you need below. "wpa_supplicant.txt" Download it, then change the name to plain "wpa_supplicant" then paste it in /system/bin/ if there is an existing one there, change its name to wpa_supplicant.bak then paste this one in the bin archive. after that change its permission to rwx-rwx-rwx... Imagining you have root access. Hopefully this will take care the issue. GOOD LUCK
This thread hasn't had a post since may 20th...
Sent from my HTC One XL using xda app-developers app
absolutelygrim said:
This thread hasn't had a post since may 20th...
Click to expand...
Click to collapse
And the OP hasn't logged in since August.

Windows Shell Ext. For Apk's?

Looking for a simple small windows program that will simply show correct icons for .apk's on my PC
I set a default .ico for all my apk's but something showing the correct .ico for apk's would be great.
Is there one available?
Thanks to anyone replying.
There's got to be something??? anyone?
I remember when I played around with a Nintendo DS I found some type of shell extension that would show .nds games icons...
Was really hoping this was out there for .apk's
Really....no one can answer me on this subject....ugh
Either its a dumbass question and the asnwer is so simple anyone reading it just pass's it up, or noone is understanding my subject...OR theres nothing out for pc to do this...maybe i should make something?
Anything guys...**** give me an answer....even a "hey ceaser shut the **** up" would be somthing
Im talking to myself in this thread
ceaserone said:
Really....no one can answer me on this subject....ugh
Either its a dumbass question and the asnwer is so simple anyone reading it just pass's it up, or noone is understanding my subject...OR theres nothing out for pc to do this...maybe i should make something?
Anything guys...**** give me an answer....even a "hey ceaser shut the **** up" would be somthing
Im talking to myself in this thread
Click to expand...
Click to collapse
Not anymore, i might have a solution for you
first get the image you want to use as an icon and resize it to be EXACTLY 256x256 and in .ico format
then click run in start menu and type regedit
allow UAC if needed
make backup of registry
if you want to just change the icon to know what it is, go to HKEY_CLASSES_ROOT\.apk
if it isnt there, right click on the folder and create new key called .apk
check if the (default) entry is blank, if so, then create a new key in the same place as .apk and call it something.Assoc.APK (not tested)
in the new key, create a key called DefaultIcon, and in that create a REG_EXPAND_SZ and put the full path in quotes of the .ico file
tell me if it doesnt work and include screenshots
Thanks for the reply...whats I actually ended up doing is making an .ico of a droid and basically setting the file extension within windows to use that ico with any apk...thanks for the info above though
ceaserone said:
Thanks for the reply...whats I actually ended up doing is making an .ico of a droid and basically setting the file extension within windows to use that ico with any apk...thanks for the info above though
Click to expand...
Click to collapse
What i said was the proper method, for someone searching for this thread could you tell how you did it
i guess my help was not appreciated

Categories

Resources