Hello Friends ,
Check Out these Post where you Find how to set path of Java in Windows ?
path is required to be set for using tools such as javac, java etc...
If you are saving the java source file inside the jdk/bin directory,path is not required to be set because all the tools will be availablein the current directory.
But If you want to run your java file outside the jdk/bin folder, it is necessary to set path of JDK.
Types Of Path in JAVA :
[*]Temporary[*]Permanent Here i will explain how to set JAVA path Permanently ...
Just Follow the steps :
Step 1:Go to MyComputer properties
Step 2:Advanced tab
Step 3:Environment variables
Step 4:Now edit the system variables Path
Step 5: Now go to the java bin folder ,and copy the path .
(For example: C:\Program Files\Java\jdk1.8.0\bin)
Step 6: write path of bin folder in variable value (if there many path then add ";" and then paste the path
(For example: ;C:\Program Files\Java\jdk1.8.0\bin))
Step 7: ok -> ok -> ok
Done You Successfully set path of java , Now you can Run java program from any folder
Related
So I'm reading through the guide "ADB For Noobs" and I'M STUCK. I can't figure out this one part... it says
Find the "Path" variable in the list of variables that it shows (you might need to scroll), and then double-click on that entry to edit it. Add the full path of the "tools" and "platform-tools" folders of the SDK to your path. e.g. if the SDK has been installed in "c:\Program Files\android-sdk-windows", then add to your Path "c:\Program Files\android-sdk-windows\tools;c:\Program Files\android-sdk-windows\platform-tools"
I'm confused what I'm supposed to add.... Can someone direct me please?
I'm using windows xp btw.
[GUIDE] How to decompile an apk <updated w/ guide><updated with compiling>
thought i would transfer this for you guys if you need it. here is original link
http://forum.xda-developers.com/showthread.php?t=1188389
How to decompile an .APK:
Step 1:
Download >>This<< this is a tool for decompiling an .apk (i take no credit for this tool i did not make it i cant remember where i got it but the credit goes to the maker)
Step 2:
Now go to your C:\ directory create a new folder (doesnt matter what you name it) now extract the apk_manager to the folder that you created.
Step 3:
Download: >>This<< and also >>This<<
(whatever you are using 7zip or winrar, go into settings and integration and check the .BZ2 file extension)
Step 4:
Extract both files to the other folder in apk_manager
Step 5:
Plug your phone into your computer and pull framework-res.apk and twframework-res.apk from your /system/framework/ directory and place both files in the other folder
Step 6:
open up command prompt and enter
cd/
cd (whatever you named the folder that you put apk_manager)
cd other
apktool if framework-res.apk
Step 7:
cd/
cd (whatever you named the folder that you put apk_manager)
cd other
apktool if twframework-res.apk
Step 8:
now grab the apk that you want to decompile and place it in the place-apk-here-for-modding folder
Step 9:
open script now enter 22 into command press enter, press corresponding number for your apk for ex. 1 then press enter, now press 9 then enter... APK should now be decompiling (decompiled apk should be in the projects folder)
[size=+2]Compiling[/size]
You do nearly the same thing for compiling an apk press 22 and enter to select what project you want to do, then 11; your apk should be compiled
Let me know if anyone has any problems with this
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!!
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.
This is a tutorial to Deodex stock Rom
{ Disclaimer : This tutorial is to help people deodex their stock rom , I am no way responsible for bricking your device }
Requirement :
1. A Android SmartPhone with root access (" Dah")
2. A Pc
Tools Required :
1. ADB in an working PC
2. Android Kitchen
3. Root Explorer in Mobile ( Preferably 'Solid Explorer ')
4 .Custom Recovery ( CWM preferred )
Tutorial :
Step 1:
Make an Nandroid Backup
( In case something goes wrong , you can always come back )
Step 2:
Connect your Android device to PC
Start ADB
type : " adb devices " to make sure the device is detected
type : " adb pull /system/app "
this pull's all the files inside the system/app directory to the current ADB directory
Move these files to a folder named "app"
type : " adb pull /system/framework "
this pull's all the files inside the system/framework directory to the current ADB directory
Move these files to a folder named "framework"
Now We got the necessary files
Step 3 :
Move the folders "app" and " folder " to the Android kitchen working folder
Place the folders inside " WORKING_deodex/system "
Open the Android kitchen " Google it "
Select option " 0 " -advanced option
Now select option " 11 " -De-odex files in your rom
Set the Correct API version by selecting the option " v "
Now select the option " b " to de-odex both folders
Zipalign the apks by selecting the option " 5 "
Now move the folders "app" and "framework" back to the adb folder
Step 4: [ Important Step ]
Go to the " sytem " folder of your device
And Select both " app " and " framework " folder
Now comes the tricky part "Delete both folders "
Don't worry if the devices " reboots " we will get to it
Step 5 :
Reboot into recovery
Mount the " /system " inside " mounts and storage " option
Now connect your device to pc
Wait for the Device to be detected
Now open ADB again in "cmd"
type : " adb shell "
type : " cd system "
type : " mkdir app "
type : " mkdir framework "
type : " exit "
Now we have created empty folders for the de-odexed filles
now type " adb push app /system/app "
Wait till all the files are pushed
now type " adb push framework /system/framework "
Again wait till the process is completed
now type " adb reboot "
Tadaaa " Your Stock rom is now deodexed "
First boot takes long time so " Please Wait "
Special Thanks To :
All the developers who created those tools:angel:
Yali developer said:
type : " adb pull /system/app "
this pull's all the files inside the system/app directory to the current ADB directory
Move these files to a folder named "app"
Click to expand...
Click to collapse
If the user following this guide has windows and has set ADB as a system variable the default path when performing this action is C:\Users\[Current Users Name]\. If they don't have it set as a variable they will either have to us the cd command to get to where they have the ADB tool saved or open a command prompt inn the folder they have the ADB tool in.
Yali developer said:
type : " adb pull /system/framework "
this pull's all the files inside the system/framework directory to the current ADB directory
Move these files to a folder named "framework"
Click to expand...
Click to collapse
Refer to the above comment.
Yali developer said:
Step 4: [ Important Step ]
Go to the " sytem " folder of your device
And Select both " app " and " framework " folder
Now comes the tricky part "Delete both folders "
Don't worry if the devices " reboots " we will get to it
Click to expand...
Click to collapse
This is a dangerous recommendation to give, especially if the user following this guide didn't pay attention that they need a recovery. And if you are going to tell the user to use a recovery then tell them how to create a flashable zip out of the files they have just created. This can be done with the kamome tool in the Sony cross-device development.
Side note, full flashable zip files for all the versions of android the Xperia M has received can be found in the Themes & Apps section.
Another side note, a guide on how to deodex the system partition has already been created. This too can be found in the Themes & Apps section.