[GUIDE][WINDOWS] Easy MD5 and SHA1 calculation via command prompt - Android Q&A, Help & Troubleshooting

Original Webpage
This needs you to download a small file which lets you calculate the sha1 and md5 right from the command prompt!
Tested on Windows 8.1, but should work on any windows, XP and above.
Step 1: Download this file from Microsoft's site.
Step 2: Open the downloaded file and select "Yes" then extract to any desired folder. ( I extracted it to C:/Windows/SysWoW64/ )
Step 3: Open command prompt and type set path=%path%;XXXX , where "XXXX" is the actual folder path where you placed the fciv.exe file while extracting. Then hit Enter.
Step 4: Now type fciv and hit enter to check if everything is working, it should display a large wall of text.
How to check/ generate the sha1 or md5sums for any file
Step 1: Open command prompt.
Step 2: Type "fvic -sha1 'filenamewithpath' ", where filenamewithpath means exactly that.
PROTIP: To make it easier just press and hold shift and right click anywhere in the file residing folder and right-click. Then select open command window here. Now you can just type the filename without the path.
Sometimes it may appear like it has frozen but it hasn't, it'll just take a while depending on the size of the file.
Enjoy!

Related

[HOW TO]Sign Your Apk For Google Play

Hey Guys,
I found it very hard to find this method on the net. I looked for around 12 hours (over a period of 2 days). But here it is!
This method is very helpful if you need to increase the length of your signature on your apk. As Google Play has a minimum length of validity for signatures.
This tutorial contains some knowledge from other websites and some from my own self. Please feel free to use my hard work below. But try to reference me if you can. Thanks!
First of all,
jarsigner and keytool are .exe files that help create your "signed" application for release to the market to prevent fraud.
1.
Make a folder somewhere called "keytools" and make a folder in that called "key"
2. Now move your apk file to the folder keytools.
(Not inside any other folders)
3. Check
"C:\Program Files\Java\jdk1.7.0_11\bin" for jarsigner and keytools..
... or whatever jdk version you have
If you DONT have it install the following: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
4. open cmd.exe,
5. cd your way to where you have your keytools folder...
I had to do.. cd desktop, and to keytools to get to C:\Users\Matt\Desktop\keytools\
In this directory is you apk file which we will manipulate.
Now add the directory C:\"Program Files"\Java\jdk1.7.0_11\bin\ or something like that to PATH in Environment Variables.
Directions on how to do this can be found here: http://www.computerhope.com/issues/ch000549.htm
type the following now (or something similar to my example)
keytool -genkey -alias xda.keystore -keyalg RSA -validity 20000 -keystore keys/xda.keystore
Then you will have be presented with:
Enter keystore password: (type in a password you will use)
Re-enter new password: (type in same password here)
What is your first and last name? Matt <LAST NAME HERE>
What is the name of your Organization unit? (You dont NEED to type anything)
What is the name of your city or locality? <What it says>
What is the name of your state or providence? <What it says>
what is the two-letter country code for this unit? AU
is CN=Matt C=AU.....etc. correct?
[no]: yes (type yes there)
Enter key password for <xda.keystore>
<RETURN if same as keystore password>: (push enter)
6.
To add the directory of jarsigner to the PATH variable just do the steps from here: http://www.computerhope.com/issues/ch000549.htm but with the path of jarsigner. Which should be something like this: echo "PATH=/cygdrive/c/Program\ Files/Java/jdk1.7.0.11/bin:\${PATH}" >> .bash_profile
Now, type the following now (or something similar to my example) NOTE: This is all in cmd.
jarsigner -verbose -keystore key/donate.keystore -signedjar Donate_signed.apk xda.apk xda.keystore
Enter Passphase for keystore: (your password you made earlier)
DO NOT TYPE --> adding: META-INF/MINFEST.MF ....
.......
.....
...Signing: classes.dex <--DO NOT TYPE
and you're all set! you signed your apk file or whatever you wanted to create!
Congratulations.
NOW STOP BEING FRUSTRATED LIKE I WAS FOR HOURS!
Or, if your using Eclipse just right-click your project and choose Android Tools > Export Signed Application Package.. and follow the export wizard.
@M4ttz
Thanks a lot mate!!!!!!!!!
mytheme_signed.apk is created! Let's go to Google Play
EDIT
Google told me that I need to zipalign my apk file.... If I zipalign Google says that my file isn't signed!!!!

[GUIDE] Recover Notification from Nandroid

Have you ever installed a new rom, but completely forgot which notification sound you were using? I have a nandroid backup of the old rom, but really don't want to completely restore the rom just to figure out which sound I was using. Android stores this in a database, and I'll show you how to access that database. In hindsight, it may just be easier to restore the nandroid backup. But, this is how to do it using a nandroid backup.
I'll be using Ubuntu 12.04 to do this. I believe it can be done with Windows as well, though the commands and programs will differ. Again, this assumes that you don't remember what the filename was. If you do, you can just skip to step 7.
1. Copy your nandroid backup files to your computer. Specifically, the "data.ext4.tar" and any "data.ext4.tar.a", "data.ext4.tar.b", etc. files.
2. The files need to be combined together. Use the command "cat data.ext4.tar data.ext4.tar.a data.ext4.tar.b > data-combined.tar" or similar for your filenames. It combines all of your data.ext4.tar files into one new file, data-combined.tar. This should give you a working tar file. I got this step from http://forum.xda-developers.com/showthread.php?t=2194171.
3. Extract the data-combined tar file. If you're a super-cool linux hacker, you probably know some terminal command to do this, like tar -randomLettersHere (xzvf?). I just right clicked the tar file and selected "Extract Here".
4. Navigate to "./data/com.android.providers.settings/databases/settings.db" and open the file. I didn't have any program to read SQL databases, so I let Ubuntu installed the recommended one for me, called "Sqliteman".
5. Using the list on the left, go under Tables-System. You should see the contents of that table, which look like an excel spreadsheet. The row (or tuple) we're looking for has the field "name" equal to "ringtone" or "notification_sound", depending on which file you're trying to locate. You can scroll through the rows and look for those rows, or you can enter an SQL command in the top box and hit the green arrow to run it and filter just the ones we want. Try this-
Code:
select *
from system
where name='notification_sound' or name='ringtone';
This pulls up all the rows where "name" is exactly equal to either of those strings. You can also search for anything that contains those strings by using this syntax-
Code:
select *
from system
where name like '%notification%';
If you're looking for your ringtone, try a query that just contains "ringtone", like this-
Code:
select *
from system
where name like '%ringtone%';
(That pulled up the actual file for me under the name "ringtone_CONSTANT_PATH")
If you're using a different rom than that I was (or a different device), you might need to tweak what you look for. Try changing the strings you search for. What we're looking for is for the entry where "value" equals something like "content://media/internal/audio/media/238". It might have the word 'internal' instead of 'external'. Note that number at the end, which is some kind of media ID number.
6. Now, open the SQL file "./data/data/com.android.providers.media/databases/external.db" or "./data/data/com.android.providers.media/databases/internal.db" depending on whether the value in step 5 had the word internal or external. Find the row where "_id" equals the number at the end of your "value" string in step 5. You can scroll through the "files" table, or enter a query like this-
Code:
select *
from files
where _id='238';
The field "_data" should show the path for your file. For me, it was "/system/media/audio/notifications/S_Dew_drops.ogg". Oh, how I love you, Touchwiz...
7. Now you know where the file is. If your new rom doesn't have that ringtone/notification sound any more, you can probably retrieve it from two places. First, check the rom installation zip file (probably the easiest way) if it was an included sound. Open the installation zip file, and look in the path you found in step 6. The second way is to go through your Nandroid backup. Follow steps 1-3, but copy, combine, and extract your system.ext4.tar file(s). Again, just look in the same path from step 6, and it should be there. These paths are typically "/system/media/audio/notifications/" and "/system/media/audio/ringtones".
Enjoy your old, familiar sound again!

[GUIDE]Open system.img.ext4 files in windows!!

Open system.img.ext4 in windows easily with 2 tools!
First download this 2 tools in description
1. linux reader
2.jar file
DOne 50 %
Step 1)
Download Diskinternals Linux reader and open it up.
Step 2)
Download sgs2ext4.jar and open it up.
Step 3)
Take you system.img and move it into the sgs2ext4.jar application and wait until it is done.
Step 4)
Now you should get a system.img.ext4 file or something like that just make sure ext4/ext is in the name
Step 5)
Now in Diskinternals click on Drives –> mount image, now a window will pop-up, leave the box on RAW disk image and click next, now search for the system.img ext4 file and choose it.
Step 6)
Now you see a new drive which looks like this: Linux EXT Volume 1 (Number can be different) Open the drive and click on commands and then select all.
Step 7)
Now do Ctrl+S to save the files where you want them, i suggest you to make a folder on you desktop called system and save it there.
Good Luck !
hit thanks if helped

[GUIDE]Open system.img.ext4 files in windows!!

Open system.img.ext4 in windows easily with 2 tools!
First download this 2 tools in description
1. linux reader
2.jar file
DOne 50 %
Step 1)
Download Diskinternals Linux reader and open it up.
Step 2)
Download sgs2ext4.jar and open it up.
Step 3)
Take you system.img and move it into the sgs2ext4.jar application and wait until it is done.
Step 4)
Now you should get a system.img.ext4 file or something like that just make sure ext4/ext is in the name
Step 5)
Now in Diskinternals click on Drives –> mount image, now a window will pop-up, leave the box on RAW disk image and click next, now search for the system.img ext4 file and choose it.
Step 6)
Now you see a new drive which looks like this: Linux EXT Volume 1 (Number can be different) Open the drive and click on commands and then select all.
Step 7)
Now do Ctrl+S to save the files where you want them, i suggest you to make a folder on you desktop called system and save it there.
Good Luck !
hit thanks if helped
sparky vicky said:
Open system.img.ext4 in windows easily with 2 tools!
First download this 2 tools in description
1. linux reader
2.jar file
DOne 50 %
Step 1)
Download Diskinternals Linux reader and open it up.
Step 2)
Download sgs2ext4.jar and open it up.
Step 3)
Take you system.img and move it into the sgs2ext4.jar application and wait until it is done.
Step 4)
Now you should get a system.img.ext4 file or something like that just make sure ext4/ext is in the name
Step 5)
Now in Diskinternals click on Drives –> mount image, now a window will pop-up, leave the box on RAW disk image and click next, now search for the system.img ext4 file and choose it.
Step 6)
Now you see a new drive which looks like this: Linux EXT Volume 1 (Number can be different) Open the drive and click on commands and then select all.
Step 7)
Now do Ctrl+S to save the files where you want them, i suggest you to make a folder on you desktop called system and save it there.
Good Luck !
hit thanks if helped
Click to expand...
Click to collapse
Hi thanks for this. But how to do step 3. Please don't laugh. If i click and drag rhe system.img to linux reader it shows not alowed after opening the jar in linux reader. Please help
Attie2 said:
Hi thanks for this. But how to do step 3. Please don't laugh. If i click and drag rhe system.img to linux reader it shows not alowed after opening the jar in linux reader. Please help
Click to expand...
Click to collapse
1 - you need to open sgs2toext.jar with Java (Rightclick,openwith,JAVA (TM) PLatform SE Binary)
2 - Drag the system.img.ext4 into sgs2ext4.jar(The Java Windows) application and wait until it is done.
3 - in my case i was able to open the file with 7-Zip i'ts
a lot easyer than using Linux reader

[GUIDE] How To Fix "Windows cannot find 'X:\X\UninstallRemixOS.exe"

How To Fix "Windows cannot find 'X:\X\UninstallRemixOS.exe"​
So, you faced an error in Remix OS. Then, you formatted your drive to remove Remix OS, so you can re-install it. Then, you realised that you should've used the built-in uninstaller , because when you try to re-install, you faced this error message: "Windows cannot find 'X:\X\UninstallRemixOS.exe'. Make sure you typed the name correctly, and then try again." :silly: (X means it can be different from your error message). And now, you want to know how to fix it .
YOU CAME TO THE RIGHT PLACE ​
First step!
1. Run Command Prompt with administrator privilege.
2. Type bcdedit and press Enter.
3. Look for the section that has Remix OS listed (most likely under Real-mode Boot Sector).
4. Copy the Identifier for the Remix OS listing including the brackets.
Tips: To easily copy the identifier, turn on the quick edit mode in cmd! Quick edit also alows you to paste using Ctrl+V.
5. Type bcdedit /delete, paste the Identifier and press Enter.
6. (Optional) To do a doublecheck, type bcdedit again to confirm that it's gone.
7. Reboot your PC.
After rebooting, now the final step! :laugh:
1. Run regedit. (Win+R, then type regedit, or search for regedit in the windows search bar).
2. Navigate to this directory in regedit.
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\RemixOS
3. Then, right click on the RemixOS folder and click Delete.
DONE! You are ready to re-install it! :victory:
Thanks to ZiQn3zZ and Rishatik92 for their guide!
Don't forget to hit the thanks button!​

Categories

Resources