[GUIDE] How To Shutdown Windows 8 with *.bat File. - Windows 8 Development and Hacking

Hey, There . We Are Suffer problem While Shutdown Windows 8 & 8.1 .Because there are no power off button. We Press Manual to shutdown. Either Alt+F4 or Going to settings.
So, I am Gonna to Show to How to shutdown Windows 8 & 8.1.[And You can also add to your Desktop.]
STEPS —
1.TO DO OPEN NOTEPAD and TYPE THE FOLLOWING
Code:
C:\Windows\system32\shutdown -s -f -t 000
2.And SAVE AS it
3.Select all files(*.*)" type the name of the file, you name file is anything but remember to add *.bat after the name of the file. Then its work.
DONE YOU MADE IT.

Related

unlocking samsung android based phones-method-

For safety reasons commands should be COPY & PASTED (without quotation marks).
Do this at your own risk.
1a. Make sure you have the USB drivers installed (they come with Kies).
1b. Make sure your phone is rooted. Use Universal Androot.
2. Create a new folder called EUROPA. Save this folder anywhere such as in My Documents or Desktop.
3. Download adb_usb_drivers: http://forum.xda-developers.com/atta...2&d=1306420890
4. Extract adb_usb_drivers into the EUROPA folder.
5. Open a Command Prompt Window (Windows Start button then search / run the term "cmd" to open Command Prompt)
6. Type "cd" (leave a space) then drag and drop the EUROPA folder onto cmd screen and press enter.
7. Connect phone to USB.
8. Type "adb shell"(enter)
9. "su"(enter)
10. "cd /"(enter)
11. "mount -o remount,rw -t rootfs rootfs /"(enter)
12. "mkdir /efs"(enter)
13. "mount -o nosuid,ro,nodev -t vfat /dev/block/stl5 /efs"(enter)
14. "cat /efs/mits/perso.txt"(enter)
You will see some numbers at start of file....
Then you will see your SP unlock code followed by some 000000000 codes and another code. Write the first one (and second just in case) down.
15. "umount /efs"(enter)
16. "reboot"(enter)
Shut the cmd window.
Shut down the phone and put it a "locked" sim. Start your phone, input the pin, and when asked for a unlock code give it the first code. Your phone is now unlocked.
_______________________________________________________________
i used this method to get the unlock codes for two samsung gravity smarts so it does work on samsung phones only i belive
i did all of this through Term

How to test roms with android sdk emulator?

Hey so if anyone knows how to test roms on android sdk emulator with your pc please help me!
I found a really old guide from modaco and the problem I first enountered was that it wouldn't give me some ID number or something on cmd.
So a step-by-step guide would be great!
I have the same problem too...
what can we do?
Old topic but my answer would help for people using search button or google
1. Download the Android SDK (which includes the emulator) from here.
2. Extract the downloaded zip.
3. Run a command prompt, and change to the 'tools' directory of the SDK (or add the tools directory to your path).
4. Type 'android list target'
5. Note the 'id' number of the '1.5' target (in my case it's '2')
6. Type 'android create avd -n enhanced -t 2' (substitute 2 with the target number determined above if required)
7. You will be prompted to create a hardware profile. This is optional, but I selected 'yes' and accepted the defaults for everything except RAM, where I gave it 256MB. wink.gif
8. Download and unzip THIS image file.(in this step you can just use your own rom)
9. Copy the above file to the location of the enhanced.avd directory ('C:\Documents and Settings\<user>\.android\enhanced.avd' on Windows XP, and 'C:\Users\<user>\.android\enhanced.avd' on Windows Vista).
10. You're ready! Type 'emulator -avd enhanced' to run! Note: inital boot may take a few minutes!
If you get Java errors, you need to download the JDK for your system from here!
Mac OSX
1. Download the Android SDK (which includes the emulator) from here.
2. Extract the downloaded zip.
3. Run Terminal, and change to the 'tools' directory of the SDK (or add the tools directory to the path settings in ~/.profile).
4. Type './android list target'
5. Note the 'id' number of the '1.5' target (in my case it's '2')
6. Type './android create avd -n enhanced -t 2' (substitute 2 with the target number determined above if required)
7. You will be prompted to create a hardware profile. This is optional, but I selected 'yes' and accepted the defaults for everything except RAM, where I gave it 256MB. wink.gif
8. Download and unzip this image file.(again, here is where you can use your custom rom)
9. Copy the above file to ~/.android/avd/enhanced.avd/system.img (e.g. if you saved it to and unzipped it to downloads enter 'cp ~/Downloads/system.img ~/.android/avd/enhanced.avd/system.img')
10. You're ready! Type './emulator -avd enhanced' to run! Note: inital boot may take a few minutes!
If you get Java errors, you need to download the JDK for your system from here!
Help me please........
I've downloaded the android studio & sdk tool separately (both from official website)
Now my question is : can I use them together??......if yes.....then tell me the process
Why do u people just copy and paste the stuff from other websites?
Pls. Do specify in ur own way or pls make a video on this!!

[Guide]Deodexing Stock Rom including Email.apk/Email.odex

For those who want to deodex the Stock Rom of Samsung Galaxy Y and having a problem deodexing the Email.apk/Email.odex of Galaxy Y here is a tutorial on how to deodex it successfully. I already tried this process on my own device and it worked perfectly.
What you will need is:
1. baksmali.jar (not my work so credit's not mine)
2. smali.jar (not my work also)
3. java.awt.jar (not mine either)
4. xUltimate-v2.3.3.zip (definitely not my work)
5. Busybox Installer (must be the latest version. this is downloadable for free from the android market)
6. files from \system\app and \system\framework of you phone (most importantly)
Instruction:
1. Download all the attached files at the bottom of this post. Wait until the download finishes.
2. Extract xUltimate-v2.3.3.zip by right-clicking it and selecting "Extract to xUltimate-v2.3.3.zip\"
3. Connect your phone to your computer (just make sure that "USB debugging" option of your phone is checked. To see if it's checked go to Menu -> Settings -> Applications -> Development and there you will see "USB debugging" option, it must be checked)
4. Go to xUltimate-v2.3.3 folder (this is what you extracted in step #2). Run "Main.exe" and wait until the options shows.
5. When options are already shown, type "1" in your keyboard then press enter. Wait until it finishes then press enter to continue.
6. This type type "2" in your keyboard and wait until it finishes then press again enter to continue.
7. Before proceeding to the next step we will remove first the "Email.odex" in the "orig_app" folder to avoid error in the process of deodexing the other odex files. To do this, go to "orig_app" folder then find the file "Email.odex" then move it into your desktop by right-clicking the file and selecting "cut" then right-click on desktop and select "paste"
8. Go back to xUltimate program and select now the option #3 by typing "3" on your keyboard and press enter. Wait until it finishes and press enter to continue.
9. Type "4" in your keyboard and press. Wait again until it finishes and close the xUltimate program when it's finished.
10. In this step we will manually deodex Email.apk/Email.odex so that we can include it in pushing the deodexed files in your phone. Go to your drive C: and make there a folder named "missingchord". After creating a folder go to "xUltimate" folder then "jar" folder then find this files there baksmali.jar, smali.jar, and java.awt.jar copy the following files then paste those three files in the "missingchord" folder.
11. Go to "orig_framework" folder and find this files bouncycastle.odex, core.odex, ext.odex, framework.odex, android.policy.odex, services.odex, core-junit.odex, twframework.jar, and twframework.odex then copy those files and paste it in the "missingchord" folder.
12. Find the "Email.odex" file that to move into your dekstop then copy it then paste it in "missingchord" folder.
13. Open command prompt. To do this go to start -> run then type cmd then press enter. Command prompt should be open by this time
14. Type this in the command prompt
Code:
cd c:\missingchord
then this (choose from the two codes below if which of it will work for you)
Code:
java -jar baksmali.jar -c :java.awt.jar:twframework.jar -x Email.odex
or
Code:
java -jar baksmali.jar -c :java.awt.jar:twframework.jar -a 10 -x Email.odex
15. Wait until it finishes without error. Then type this again in command prompt
Code:
java -jar smali.jar out
16. Wait until step #15 finishes without error. Find for the file "out.dex" inside "missingchord" folder then rename it to "classes.dex"
17. Go to "orig_app" and find for "Email.apk" then add "classes.dex" (from the "missingchord" folder) inside the "Email.apk". To open "Email.apk" you can use WinRar or any other similar software. Save the "Email.apk" after you successfully added the "classes.dex" inside the "Email.apk" file.
18. Copy "Email.apk" and paste it in the "done_app" inside "xUltimate" folder
19. Copy the "done_app" and "done_framework" into your sdcard
19. In xUltimate folder look for "jar" folder then right-click it and select "Open command prompt here". If you don't know how to "open command prompt here" then try to search it in the web.
20. At this point, i'm assuming that you already installed the latest version of busybox on your phone and your phone is still connected in your computer. When the command prompt is open type this following code one at a time.
Code:
adb shell
su
stop
mount -o rw,remount /system/ /system/
cp /sdcard/done_app/* /system/app/
rm /system/app/*.odex
cp /sdcard/done_frame/* /system/framework/
rm /system/framework/*.odex
mount -o ro,remount /system/ /system/
reboot
21. Your phone will automatically reboot. Wait for it until it finish rebooting. Then check all you applications if there are missing application.
22. You have now deodexed rom. Enjoy!
Note: If you got an error in step #20 in cp /sdcard/done_app/* /system/app/ command then you must restart you computer and try again step #20 after restarting you computer.
For those who have tried this guide and got a problem, please allow me to know it so that i can help you resolve your problem.
Please press "Thanks" if you find this thread useful
PS: Those attached files are not my work so no credit goes to me.
missingchord said:
For those who want to deodex the Stock Rom of Samsung Galaxy Y and having a problem deodexing the Email.apk/Email.odex of Galaxy Y here is a tutorial on how to deodex it successfully. I already tried this process on my own device and it worked perfectly.
What you will need is:
1. baksmali.jar (not my work so credit's not mine)
2. smali.jar (not my work also)
3. java.awt.jar (not mine either)
4. xUltimate-v2.3.3.zip (definitely not my work)
5. Busybox Installer (must be the latest version. this is downloadable for free from the android market)
6. files from \system\app and \system\framework of you phone (most importantly)
Instruction:
1. Download all the attached files at the bottom of this post. Wait until the download finishes.
2. Extract xUltimate-v2.3.3.zip by right-clicking it and selecting "Extract to xUltimate-v2.3.3.zip"
3. Connect your phone to your computer (just make sure that "USB debugging" option of your phone is checked. To see if it's checked go to Menu -> Settings -> Applications -> Development and there you will see "USB debugging" option, it must be checked)
4. Go to xUltimate-v2.3.3 folder (this is what you extracted in step #2). Run "Main.exe" and wait until the options shows.
5. When options are already shown, type "1" in your keyboard then press enter. Wait until it finishes then press enter to continue.
6. This type type "2" in your keyboard and wait until it finishes then press again enter to continue.
7. Before proceeding to the next step we will remove first the "Email.odex" in the "orig_app" folder to avoid error in the process of deodexing the other odex files. To do this, go to "orig_app" folder then find the file "Email.odex" then move it into your desktop by right-clicking the file and selecting "cut" then right-click on desktop and select "paste"
8. Go back to xUltimate program and select now the option #3 by typing "3" on your keyboard and press enter. Wait until it finishes and press enter to continue.
9. Type "4" in your keyboard and press. Wait again until it finishes and close the xUltimate program when it's finished.
10. In this step we will manually deodex Email.apk/Email.odex so that we can include it in pushing the deodexed files in your phone. Go to your drive C: and make there a folder named "missingchord". After creating a folder go to "xUltimate" folder then "jar" folder then find this files there baksmali.jar, smali.jar, and java.awt.jar copy the following files then paste those three files in the "missingchord" folder.
11. Go to "orig_framework" folder and find this files bouncycastle.odex, core.odex, ext.odex, framework.odex, android.policy.odex, services.odex, core-junit.odex, twframework.jar, and twframework.odex then copy those files and paste it in the "missingchord" folder.
12. Find the "Email.odex" file that to move into your dekstop then copy it then paste it in "missingchord" folder.
13. Open command prompt. To do this go to start -> run then type cmd then press enter. Command prompt should be open by this time
14. Type this in the command prompt
Code:
cd c:\missingchord
then this (choose from the two codes below if which of it will work for you)
Code:
java -jar baksmali.jar -c :java.awt.jar:twframework.jar -x Email.odex
or
Code:
java -jar baksmali.jar -c :java.awt.jar:twframework.jar -a 10 -x Email.odex
15. Wait until it finishes without error. Then type this again in command prompt
Code:
java -jar smali.jar out
16. Wait until step #15 finishes without error. Find for the file "out.dex" inside "missingchord" folder then rename it to "classes.dex"
17. Go to "orig_app" and find for "Email.apk" then add "classes.dex" (from the "missingchord" folder) inside the "Email.apk". To open "Email.apk" you can use WinRar or any other similar software. Save the "Email.apk" after you successfully added the "classes.dex" inside the "Email.apk" file.
18. Copy "Email.apk" and paste it in the "done_app" inside "xUltimate" folder
19. Copy the "done_app" and "done_framework" into your sdcard
19. In xUltimate folder look for "jar" folder then right-click it and select "Open command prompt here". If you don't know how to "open command prompt here" then try to search it in the web.
20. At this point, i'm assuming that you already installed the latest version of busybox on your phone and your phone is still connected in your computer. When the command prompt is open type this following code one at a time.
Code:
adb shell
su
stop
mount -o rw,remount /system/ /system/
cp /sdcard/done_app/* /system/app/
rm /system/app/*.odex
cp /sdcard/done_frame/* /system/framework/
rm /system/framework/*.odex
mount -o ro,remount /system/ /system/
reboot
21. Your phone will automatically reboot. Wait for it until it finish rebooting. Then check all you applications if there are missing application.
22. You have now deodexed rom. Enjoy!
Note: If you got an error in step #20 in cp /sdcard/done_app/* /system/app/ command then you must restart you computer and try again step #20 after restarting you computer.
For those who have tried this guide and got a problem, please allow me to know it so that i can help you resolve your problem.
Please press "Thanks" if you find this thread useful
PS: Those attached files are not my work so no credit goes to me.
Click to expand...
Click to collapse
Can I use this if maps and phonesky has a error?
Jay_SEAN said:
Can I use this if maps and phonesky has a error?
Click to expand...
Click to collapse
Well, I tested from my side with the Play Store and it worked. Make a backup with CWM and try it.

[TIP] Fixing Java problems Windows 8

Hi,
i had problems with some Modder Tools using windows 8. And after i didn't find solutions i decidet to post my one here.
So i had problems with some signing tools and the ddms from adb to take screenshots.
When starting i get some errors like install java but i still installed it. To solve try this:
edit the bat causing the error. I take for example ddms.bat.
search for Java and you'll find this part:
rem Check we have a valid Java.exe in the path.
set java_exe=
call lib\find_java.bat | < here you see that the bat is searching with find_java.bat in the lib folder for java. So we will edit this file.
if not defined java_exe goto :EOF
So if you now looking in this folder and search for java you'll find this part:
set java_exe=
for /D %%a in ( "%ProgramW6432%\Java\*" ) do call :TestJavaDir "%%a"
if defined java_exe goto :EOF
rem Check for the "default" 32-bit version
:Check32
echo Checking if it's installed in %ProgramFiles%\Java instead.
set java_exe=
for /D %%a in ( "%ProgramFiles%\Java\*" ) do call :TestJavaDir "%%a"
if defined java_exe goto :EOF
So here is the problem the folders where it looks for Java doesn't exist for Windows 8.
For me java is installed in Program Files (x86).
So add this part:
set java_exe=
for /D %%a in ( "C:\Program Files (x86)\Java\*" ) do call :TestJavaDir "%%a"
if defined java_exe goto :EOF
and save. You can now open cmd, browse to adb folder and type in "ddms.bat" you'll now get the same error, but you can ignore it. Additionaly you'll get an other error. to fix this open System control, System, System, advanced system settings,
enviroment Variable.
At the User Variables select new and type for name java and value C:\Program Files (x86)\Java\jre7\bin\java.exe.
Please notice that the value can change if you have a newer Version. The cmd should get you the right value. Save it and repeat the command "ddms.bat" it will give you the same errors but after a while the ddms will open and you can use it. I haven't try it for the signing tool but i'm sure this will work for these, too.
I'm sorry for bad english, maybe someone can "translate" this in better english.

Data Recovery - Internal for Sprint Note II

Hello here is a guide to Recover Deleted files from the internal memory for your Note II
You Need
1.Rooted Android phone ( In my case i used Note 2 SPH-L900 )
2.Install busybox ( Note : my busybox is installed at system/xbin )
3.Drivers Installed on your computer
4.Download Cygwin [ http://www.cygwin.com/install.html ] install to C:\cygwin - make sure you install with pv and util-linux - Make sure to open Cygwin once to make sure that the /bin folder is created. Also create a folder called "NoteII" under C:\cygwin...this will come in use later for the export of the .RAW file
5. Download Recuva [ http://www.piriform.com/recuva/download ]. This is the Software going to recover your file , or you can use your favourite Data recovery software . But i suggest Recuva
6. Install android SDK tool kit so you have access to ADB - I installed mine inside the root of Cygwin - C:\cygwin\android-SDK
Steps :
1. Take your rooted phone . Go to Setting->Developer Options -> Tick on Stay awake and USB debugging
2.Connect your Phone to the Computer , Let the driver Install .
3.Click Start -> Run ,
Type " CMD " Press Enter
5.Dos Window will open up Now Type " cd c:\cygwin\android-SDK\platform-tools " Press Enter (note the path is where you installed SDK on C:\)
6. Type " adb devices " Press Enter
** Make sure it returning out Some numbers (IMEI) under list of devices
7.Type " adb Shell mount " Press Enter
Now this is something important , After the command adb shell mount it will give a long List you need to fine "dev/block/mmcblkop"xx" /data(or user data "
Note : The xx can be any number
In SPH-L900 its " mmcblk0p17 " = userdata Partition .
The last two number (xx) will change from mobile to mobile . Just note the partition name . In our case its " mmcblk0p17 "
You can also download Partition Table apk from the market and it will give you a layout of what each partition is.
8.Close the CMD window . Go to My Computer->C:/->cygwin->Open Cygwin Terminal - this is where you installed the Cygwin terminal and click on the Cygwin.bat to launch terminal
9.Type " export PATH=/cygdrive/c/cygwin/android-SDK/platform-tools:$PATH " Press Enter
10.Type " adb forward tcp:5555 tcp:5555 " Press Enter
11.Type " adb shell " Press Enter
12.Type " su " Press Enter
13.Grant Superuser Right on your Phone
14.Type " /system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0p17 " Press Enter
15.Minimize the window , Open another cygwin Terminal i.e. My Computer->C:/->cygwin->Open Cygwin Terminal
16.Type " export PATH=/cygdrive/c/cygwin/android-SDK/platform-tools:$PATH " Press Enter
17.Type " adb forward tcp:5555 tcp:5555 " Press Enter
18.Type " cd /NoteII " Press Enter
19.Type " nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p17.raw " Press Enter
20. Now let it Run this will take long time for me it took me One hour to complete
21.After it Compltes Click start->Run Type " cmd " Press Enter
22. Type " cd c:\cygwin\NoteII\ " Press Enter
23.Type " VhdTool.exe /convert mmcblk0p17.raw " Press Enter
24.Now Close Everything .. Right Click My Comuter->Manage
25.Now Select Storage-->Disk Management.
26.In the menu select Action-->Attach VHD.
27.For Location enter " c:\cygwin\NoteII\mmcblk0p17.raw " and select the OK button.
28.Right-click on the name (e.g. "Disk 1") to the left of the Unallocated space and select Initialize Disk.
29.Select the GPT (GUID Partition Table) radio button and select the OK button.
30.Right-click on the Unallocated space and select New Simple Volume...
31.In the Wizard select Next>, leave the default for the volume size, select Next>, select a drive letter (e.g. K), select Next>, MAKE SURE to select
the 'Do not format this volume' radio button, select Next>, select Finish.
32.A box will pop up asking you to format the drive. You DO NOT want to format the drive at this time.
33.Right-click on the RAW space and select Format... MAKE SURE to change the File system to FAT32. Set the Allocation unit size dropdown to 'Default.' MAKE SURE that the Perform a quick format checkbox is CHECKED. You do not want to overwrite the entire new drive with all zeroes (0's) and destroy your data. Quick Format means that it will only attempt to destroy the index for the drive by establishing a new index. Without this box checked the Windows operating system will write zeroes (0's) across the entire volume, potentially destroying your data. Select the OK button.
34.A box will pop up saying that Formatting this volume will erase all data on it. That would be doubly true if you actually didn't check the 'Perform a quick format' checkbox. Double check that you actually did check the box and select the OK button.
35.Open the Piriform Recuva application. In the wizard select the 'Next >' button. Select the 'Other' radio button and select Next >. Select the 'In a specific location' radio button and enter: k:\ (assuming K is the drive letter you chose...) Select the Next > button. Select the Enable Deep Scan checkbox.
36.The application may take about an hour to do the 'Deep Scan.'
37.Once the application has returned its results you can choose which files to recover using the checkboxes. Select the 'Recover...' button and choose the location to which you wish to output your files.
This is not my work , i just gathered information and used some Copy/Paste. Have a nice day - followed instructions from this thread and modified some steps for our phone - http://forum.xda-developers.com/showthread.php?t=2140410
Note : Im not Responsible if you brick your phone . I did this and it worked for me . So im Sharing with you guys. Hit the thanks button if it helped at all!

Categories

Resources