Does anyone know if it is possible at all to check a MD5 hash on android systems? Is it possible to develop an app to do this like you can on the PC?
so im guessing its not possible?
I just tried searching around for one. Eventually coming back here to search and ask. It's looking grim maybe we should start a bounty so some one will try for it.
Nevermimd I found it.
market://search?q=pname:net.droidcore.mand5
It's ironic how google has an outstanding track record for search engines, but the one on the marketplace sucks!
you can do it through terminal....
md5sum
I've just published an application on the market that can help to calculate the MD5 checksum of a file. This is Hash Droid.
You can try it.
ASTRO does it, long press the file and pick details.
crypTo.
crypTo. can do more than just MD5 Checksums for FREE
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
https://market.android.com/details?id=burrows.apps.crypto
I developed an app to easily compare the md5 checksum between a file and another one (or a value entered in a textField).If you only need the checksum, it is calculating it after loading the file and is displaying it on a field where you can easily copy-paste it. Give it a try, it's free
Look for : MD5 Checker
package name : com.fab.md5
PS: sorry can't post a link due to XDA policy with new users
md5sum is available if you just install a busybox onto your android...
MD5 Hash is a pretty simple algorithm and Java is capable of processing files easily.
In fact there is the MessageDigest class specifically for this.
As for command line, there is the md5sum command you can probably pipe files to it or something to get a OS level hash.
So, is it possible, it's very possible, and very easy to get a md5 hash in java or android command line.
Busybox has MD5sum built into it. Install BusyBox, and terminal emulator. Then in terminal emulator type the following if the file is in the sdcard directory-
$ su <===Click the return button on keyboard
# cd sdcard <==Click the return button on keyboard
# md5sum *****.*** <====Asterisk represents file name and extension. Click on return
**************************<==== Again asterisk represents md5sum
#
What file i need to have to do the md5 sum?
polac said:
What file i need to have to do the md5 sum?
Click to expand...
Click to collapse
Reread the post above yours, it's mentioned twice.
CanĀ“t find it!
Please help!
The MD5 checksum is a sanity check for a files integrity. If you downloaded a file, you can run your own MD5 checksum on the file and compare the results with the known value for the file (usually posted with the file). If the results are the same, then your files is good, if the results are different then there's a chance your file is corrupt...
You can generate the MD5 with a number of applications, including ManD5, Astro file manager, eStrongs file manager, etc. Compare the results with the number posted from your download source, et voila!
The situation is that i made a backup of my vodafone 858 original rom but there is no md5sum file which is necessary to restore the backup!
There should be a file called nandroid.md5 with the images that contains the MD5 hashes. If not, then you can recreated it with 'md5sum > nandroid.md5'
If any of the images are corrupt, it will flash them anyway though.
Related
Hi to all, i made a python program that help user to install/update the system.
With this program you can stop using the android boot menu, you can put all in the script.
What you can do with Boot Script Generator:
- install system
- update system
- backup system, data (with old and new method)
- apply updates
- clean data and system
- install apps located in /sdcard/andboot/apps
UPDATE 22 / 08 / 2010
New interface
Add new backup options
Add image size options
No more press d-pad or volume up
No more install procedure
cross platform and only python is needed
you can choose where install
NAND - SD - IMAGE both for system and nand
and what you want to do before boot
Little how-to
flash modded nbh or put initrd.gz in andboot for haret users
open python script in a terminal:
Code:
python bootscriptgenerator.py
then choose what you want to do, (i.e first install)
put install-seq.sh in your sd in andboot folder (with other files)
turn on the phone.
you don't need to touch any button just wait
As you can see you can change many things.
Update initrd and nbh on 4/7/10
If you are an "haret" user use this initrd.gz
Boot Script Generator (right click on link -> save as file)
Simple how-to run android from windows - Simple guide to flash android on Nand
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It could be very useful if you want to speed up your system update
Reserved
Exciting, now you just need to make a android app as well to do this, that way you can set the options and hit reboot
Good job
I'm just working on it.
i think that next dzo nbh will include this changes
Any feedback?
Strange...
I download the latest version of python (2.7).
When I select any options in your tool, and want to create the .sh, impossible to find it !! I think he's not created...
I use it in a windows PC (Windows XP pro SP3).
I try with all options and it's the same thing. Sorry for that.
I hope you can find the problem.
Cheers.
l1q1d said:
Any feedback?
Click to expand...
Click to collapse
I make a simple modification, try with updated version
Source code...
I will try but when I want to download the link in first page, I've the source code...
Could you upload your tool ?
Cheers.
l1q1d said:
I make a simple modification, try with updated version
Click to expand...
Click to collapse
Re update link (extract with win rar/7-zip or other)
Hi l1q1d,
I've download this new version but same result : no product file...
I try to find it in my PC but no file...
I don't know how to help you
Thank you for your release of your tool key mapping
I'm on holiday now : go to Spain...
Cheers.
l1q1d said:
Re update link (extract with win rar/7-zip or other)
Click to expand...
Click to collapse
Hi,
I try to install Android on a Polaris and created an install script with your bootscript creator, but it always stops with the error:
'd: invalid number '512
where 512 is the size of the data image I have set in the creator gui.
Am I doing something wrong?
Thanks in advance
Abomb
Could you please submit a screen shot of your settings and the output file? Thanks
Here they are.
I forgot to mention that I commented out the data.img remove part, because that part gives me the error that the script file did end although a "then" was expected or something like this. But seeing as I do a fresh install and have no old data.img I thought it should not be a problem.
Any other error before?
Could you please test with 256?
Thank you
I tried two things, first with 265 MB and the disk.img remove code left in, the second time with the code commented out.
The first time I got a bootlog.txt that I attached here, the second time I got the error again
'd: invalid number '256
but sadly no bootlog.txt. Oh and no error before the invalid number one.
I update a new version of bootscriptgenerator
Try now
I tried with the new version, but exactly the same thing, tried first with disk.img delete code left in, second time commented that out.
Error messages were the same, first time bootlog was created, second time not.
I also double checked if I was using the new version of the creator.
Could you please make a test with this.
Please don't edit it (it could be a windows endline problem)
With the file from your last post it works!
Did I do something wrong then?
I didn't edit the .sh file for the first try, only when that didn't work I edited it.
The problem is the windows end line.
It isn't your fault is WINDOWS :-(
i update a new version, now i need someone to test it
Hi, Can someone please dump/backup the system.img from baltic P500 or have a offical update for baltics. Thanks
Just do a backup and upload it. Thanks
No one here from Baltic States?
Hey, just show me how to do it, and I will give you.
hi, please use this guide: http://forum.xda-developers.com/showpost.php?p=8917870&postcount=12
or if you have Thunderg installed, then just do a backup and upload these files.
thanks
Hmm, could you be more specific? I just bought this Optimus One like two days ago, and I'm feeling very newb (it's my first Android).
What do I have to do, to give you that system.img and what is that system.img file?
Hi, the system.img a backup from Android /system partition is a main part of the android. But this guide we just dump that /system partition, it's the easiest way.
I'll try to help you do that:
1. Is your phone rooted?
If you haven't done that, then use Z4Root(super easy app ) and you can get it from here: http://www.upload.ee/files/997919/z4root.1.3.0.apk.html
Download that file and copy to sd card and install.
Open that installed app and root your phone
If you need help with that, then there is little how to here: http://www.worldofnubcraft.com/285/rooting-a-lg-optimus-one-android-phone
2. OK, rooting done, now we need terminal app: You'll find that from Market. Just search "Android Terminal Emulator" it's from Jack Palevich and install that.
3. Now open the Terminal Emulator and enter these commands without "" and hit enter after command, these 3 command should be it:
"su" it asks for a root privileges and you allow that
"cd /system"
"tar zcvf /sdcard/system-dump.tar.gz *" and wait when it finishes. it takes some time. It's done when you see #, it takes couple of minutes max.
4. That file is now on your phone SD card and upload that system-dump.tar.gz file to somewhere and let me know
Are you sure about that?
I'm sorry, but it's not working. It gives me an error "tar not found". Any ideas?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
By the way, what you can do with that file? What it contains? I'm just a newb, and I want to know everything about Android.
EDIT:
Is it possible to do that dump with Thunderg?
Go to market and install app called "BusyBox" and download / install BusyBox with this tool. After that it will work.
yes, i forgot busybox install that and give a new try
Ok guys, I got it. Before putting it live, I would like to know one thing. Does it contains any personal data, if so, what exactly? Sorry, for being so paranoid.
hi, it won't contain any of your personal data. Personal data is stored mostly on /Data partition and we didn't dump that. Thanks
Ok, so here you have it.
Optimus_One_Baltic_ROM_dump.zip - 89.2 Mb
And it's only contains branded ROM with no changes? That's great. What program do I need to restore my ROM to the branded one, if I'm going later to change it?
i think you should look to Thunderg... it's best way to make a full backup and restore after
when i try to make WORKING ROM folder of SWKTM.tar.md5 after changing it to .TAR using dsixda
i get this error
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
that means that your tar file doens't have the kernel in it (boot.img) you have to put the boot.img file inside of working folder also
Don't try to use the .tar.md5 file directly. Do this:
- Extract the .tar.md5 file to a folder, lets say "/home/yourname/Stock". You'll get these files:
Code:
amss arm11boot boot.img mibib oemsbl qcsbl recovery.img system.rfs
We'll need to mount the "system.rfs" one. Now, do the following:
- Under your home folder (/home/yourname/) create an folder and name it "mntandroid". Create another folder named "system";
- Open a terminal window, navigate to the folder where you extracted the .tar.md5 file and get root user rights (sudo su/your pass);
- Type the following commands:
Code:
mount -o loop system.rfs /home/yourname/mntandroid
(remember to change "yourname" to your username);
- A new window shold open, it is the "system.rfs" contents. Select everything and copy to the "system" folder you've previously created;
- On the file manager, unmount the "mntandroid" drive;
- Compress the "system" folder - not its contents - to a zip file. The name don't matter;
- copy this .zip file to the "original_update" folder;
- try again now, it should work;
You can make it even better if you download any kernel (like Battery Extender) and place it in the .zip you've compressed before. This way, your zip should look something like this:
Yes, without any "META-INF" dir. Leave it like this.
Also, don't use the kitchen install script, I've read somewhere that it doesn't works. Use the Stocklite or some other stock-based ROM script.
Tell me if it worked for you. At least, this is what I did
Oh, by the way, this thread is where I got the mount rfs thing. I've just simplified it for you.
Hi everyone:
I'm trying to install the 3.09.661.1 System update (Stock) on my phone.
Every time I try to install it, it fails (red exclamation mark) when verifying my Hosts file. I had modified the hosts file a long time ago to attempt to block ads and it isn't liking the fact that the file is modified, I'm gathering.
Here's the exact error:
Code:
Warning: No file_contextsVerifying current system...
assert failed: apply_patch_check("/system/etc/hosts". "e4a6ce6d4ee32b7de4dfe23e6e82d9ea1c122b20
", "d234177b0b9de5309f78ff539e5eafea00e069df")
Installation aborted.
To combat this, I re-rooted the phone and modified the hosts file to restore it to the original... I think. I used ROM Toolbox Pro and told it to turn off ad blocking and now my Hosts file looks like this:
Code:
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
0.0.0.0 local
Before the "restore" there was mention of IPv6 though, so I'm not sure this is actually the default.
I have old CWM recovery backups of previous clean installs, but I'm not sure if the Hosts file would be included anywhere in there.
If anyone could give me some insight on a way I could install this OTA update without having to lose my information and wipe, I'd very much appreciate it!
Perhaps someone could post their unmodified Hosts file for me to try?
Also, it seems like 3.09.661.1 is one of the newer versions, would anyone like me to post the OTA update file? (Note: I only have it in the original .zip.21363.enc format, not knowing how to convert it to a "normal" ZIP file.)
EDIT (08/26/2013):
How I was able to update:
I was able to pull the original Hosts file from an old CWM backup file--it is stored in the system.ext4.tar file. I use Root Explorer to change the read/write settings on my Hosts file (on the device) then pushed the old Hosts file using ADB. When I tried to do the OTA update again, it worked, and now my device is running:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Not sure what that's all about (could be test software), but it's at least 4.2 since I have the quick toggles in the notification drop-down now.
Downside to the update: It deleted all of the contents of my "SD," so all of my photos and music, etc. was lost... Rather annoying and not normal OTA behaviour, in my previous experience. Going to see if there's a way to recover them, but I don't hold out much hope.
Greetings. Guys help, two days and two nights trying to find a straightforward solution, but without success. I downloaded two files, rom and kernel and moved them to the internal memory of the device, and now I try flash rom from TWRP 2.7.1.1 recovery-and get the error "md5 file not found", I took the md5 checker (a couple of them) and check the file , and the file is fine.
I made a md5 file via MD5 checker and then I get error.
E: MD5 checksum does not match
E: Aborting a zip instal
Error flashing zip.
Can someone please tel me how to solve this problem, I'm getting desperate, I can not go through this process at all.
Errornt said:
Greetings. Guys help, two days and two nights trying to find a straightforward solution, but without success. I downloaded two files, rom and kernel and moved them to the internal memory of the device, and now I try flash rom from TWRP 2.7.1.1 recovery-and get the error "md5 file not found", I took the md5 checker (a couple of them) and check the file , and the file is fine.
I made a md5 file via MD5 checker and then I get error.
E: MD5 checksum does not match
E: Aborting a zip instal
Error flashing zip.
Can someone please tel me how to solve this problem, I'm getting desperate, I can not go through this process at all.
Click to expand...
Click to collapse
first, update your recovery. It's quite old. http://techerrata.com/browse/twrp2/m7
I think there is a setting in TWRP that elets your disable Zip file signature verification. I think that should work.
I update a recovery to 2.8.0.1 and when i check zip file signature verification again i got error. You can see it on the image.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Errornt said:
Click to expand...
Click to collapse
Turn off zip file signature verification and you'll get past that point haha
Same as before. I tryed that. When i remove the md5 file that i created with md5 checker from folder where is rom.zip it says md5 file not found.
Please lock theard, phone was smashed. I lost nerves!