[Guide]Setting Up Netbeans With Android[Guide] - Galaxy Note II, Galaxy S III Developer Discussion

Hi, guyz. Once again bringing you a small guide for setting up Android Dev Environment with Netbeans IDE. Personally I find Netbeans to be very easy and useful, but, it's a matter of personal preference. Many people would on the other hand prefer Eclipse IDE for the development.
If you have never used netbeans before, please
don't try to use this plug in. Wait until
you are familiar with the IDE first.
I. INSTALL AND SETUP ANDROID SDK
1. You need to download the Android SDK:
Android SDK Download
2. Install the Android SDK to C:\Android\android-sdk
3. Run Android SDK and install the recommended installations.
If you want to use your programs on your Android device, I suggest
installing the emulator for your device as well as the emulator for
the newest Android versions.
II. SETUP ANDROID VIRTUAL DEVICE(AVD)
4. In Android SDK, go to Tools> AVC Manager.
5. Create a new Android Virtual Device(Emulator). Name it whatever you want.
Set the target to the version of Android you want to emulate.
6. Set the size of the virtual SD card to whatever you want. For my first
Emulator i set it to 100 MB.
7. Set Snapshot enabled to true to speed up future loading time. This takes a
snapshot of the Emulator State on closing so that it does not go through
the startup animations.
8. Finally, click Create AVD at the bottom.
III. TEST YOUR ANDROID EMULATOR
9. Still in the AVD Manager, click Start.
10. You will see that Save to snapshot has been selected.
11. If you want it to load from that snapshot everytime, select
"LAUNCH FROM SNAPSHOT"
12. The emulator runs very slowly, especially the first time
with the startup animations. You will get used to it after awhile.
13. You should get to the menu screen.
14. After checking that everything is okay, you can test out
the emulator, or exit out.
15. Exiting saves a snapshot, which takes awhile. After taking the
first snapshot, it is okay to uncheck the "Save to snapshot". You really
don't need to do it after the first time, unless you want to save info
to the emulator for testing purposes, such as adding phone numbers, etc.
IV. INSTALLING THE PLUGIN ON NETBEANS
16. Start Netbeans. Go to Tools->Plugins->Settings
This is a list of all the places your plugin manager checks for updates.
17. Add a new update center: Android Plugin For Netbeans < 7.2
this is the home of the NetBeans Android project.
Android Plugin For Netbeans >= 7.2
18. After installing, go to Tools->Plugins->Available Plugins. There
should be a new plugin called Android. Install it. It is only about
700 kb.
NOTE: On previous versions, you had to add Android to the Tools->Java Platforms.
(I Think). You don't need to do this anymore.
19. Go to Tools->Options->Miscellaneous->Android
There is now an android tab in your options. Set the location
of your android SDK installation. Mine is C:\Android\android-sdk
20. You should now be able to create an Android Project. File->New->Android->Android Project
21. Name your Project.
22. The convention for naming an Android Package is different than for
normal Java Projects.
WRONG: "MyPackage" //ERROR!
RIGHT!: "My.Package" //GOOD!
This is what it means when it says "Package name must have at least two parts"
23. This is the source code for your main file:
package bl.ah;
import android.app.Activity;
import android.os.Bundle;
public class MainActivity extends Activity
{
/** Called when the activity is first created. */
@override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
24. add import "My.Package.R" where My.Package is the name of your package.
25. After Building, you can press Start to startup your android emulator.
YOU CAN ALSO INSTALL A PACKAGE MANUALLY
This is good practice anyway.
26. Use the explorer to go to your project folder. In the bin folder,
you should find a .apk file. This is the compressed version of your program.
It works sort of like a .jar file.
You can install it manually onto your emulator from the command line(start->search->cmd.exe if you haven't
used the command line before. It can also be found in c:\windows\System32 or SysWOW64
26. If you know how to set system variables, add C:\Android\android-sdk\platform tools; to your path
26.b. If you don't know how, use the commandline: cd C:\Android\android-sdk\platform tools
27. In this folder is adb.exe. This is the android debug bridge.
START YOUR ANDROID EMULATOR NOW
28. In the command prompt, type adb install C:\{path to project}\bin\{projectName}.apk
EX: adb install C:\Sean\aa1\bin\aa1-debug.apk
29. You should get 3 lines saying how large the installation file was,
where it was installed, and whether it was successful.
If it doesn't print this, either you typed in the instructions wrong, or you had an error.
Here is more information about android bridgehttp://developer.android.com/tools/help/adb.html
NOW, Run your android emulator.
There should be an app named MainActivity. It was named after the class
name. The icon is the green android.
-----------------------------
CONGRATS
-----------------------------​
Please Kindly Click Thanks For This Post
It Takes 5 Seconds To Say Thanks And Nearly A Couple of Hours To Days To Setup A Guide​

Related

Wheres ADT plugin for Eclipse located?

Hello,
I've installed the adt plugin for eclipse, im on configuring adt plugin.
Configuring the ADT Plugin
Once you've successfully downloaded ADT as described above, the next step is to modify your ADT preferences in Eclipse to point to the Android SDK directory:
1. Select Window > Preferences... to open the Preferences panel (Mac OS X: Eclipse > Preferences).
2. Select Android from the left panel.
Ive got this far android is in the left panel...now im trying to find the SDK location and can't any ideas?everything is default installed.
3. For the SDK Location in the main panel, click Browse... and locate your downloaded SDK directory.
4. Click Apply, then OK.
Actually i guess the better question is where's the default location of eclipse plugins? I've looked in /usr and can't find the downloaded plugin ... help is needed

[Q] Not able to install the SDK packages, coz SDK blinks for a sec and then closes.

So, I am sorry, if this is a stupid question, I am novice here. I am trying to run SDK manager on windows 7, 32-bit os. It's already installed. Whenever I try running SDK manager, It flashes for a sec and disappears. When I tried executing android.bat from tools, what I got was :
C:\Program Files\Android\tools>android
[INFO] Starting Android SDK and AVD Manager
'xcopy' is not recognized as an internal or external comman
operable program or batch file.
No command line parameters provided, launching UI.
See 'android --help' for operations from the command line.
Exception in thread "main" java.lang.NoClassDefFoundError:
ts/Display
at com.android.sdkmanager.Main.showMainWindow(Main.
at com.android.sdkmanager.Main.doAction(Main.java:2
at com.android.sdkmanager.Main.run(Main.java:99)
at com.android.sdkmanager.Main.main(Main.java:88)
I have java 6 up date 25 already installed and the path is already added to environ var. Also I am interested in developing for android, If anybody is interested in showing me how, I wud be very greatfull. Thanks in advance. Plzzzzzzz........ HELP.
Currently Using : HTC Desire Z.
And yes, I am having eclipse 3.2 already installed on my system. PLzz help................................., somebody......................, anybody.
General tip
If you double click some techie program on Windows and see it just appear and disappear like that, it usually means that this program is meant to be run in a command line window.
So go to All Programs -> Accessories -> Command Prompt and open that
Then go to wherever that program is installed and run it from there.
Oh, and note that Android development needs the JDK, not the JRE version of Java, The JDK contains all the extra parts needed for Java software development in general, including key parts needed by the Android SDK.
While the JRE can be downloaded from www java com , the JDK is only available from java.sun.com .
P.S.
Sorry for not making proper links, but I have not made enough posts to allow them yet.

Installing Tizen SDK for Wearables

Simple step by step tutorial for installing the Tizen SDK for Wearables
1) Go to http://developer.samsung.com/
2) Select Development Tools for Samsung Gear.
3) Under the SDK portion of the table, select Tizen SDK for Wearable.
4) Before downloading the files, choose a target location. This will make locating the files easier later on.
5) Under Tizen SDK for Wearable 1.0.0b2, in the Install Manager column, select and download the install bin or exe file for your development environment. This file is approximately 4 MB.
6) Under SDK Image, select and download the matching SDK Image. This file is approximately 560MB.
7) Double-click the Install Manager (the 4MB file). The Tizen Window for SDK appears, saying “Cannot start Tizen SDK for the Wearable Install Manager” and “Cannot find repository. Please check your repository (http://)”
8) Click on the Advanced button.
9) Select the SDK Image radio button (bottom half of the screen), and click on the open folder icon to the right.
10) Locate the SDK Image (~560MB), select it, and click Open. This is where having a predetermined download target can be very helpful. The file unzips and takes you back to the previous screen. Click OK.
11) This takes you back to the Tizen Window for SDK, except now you have no warning, and a Next button. Click the Next button.
12) The EULA appears, read and accept the EULA by clicking Next.
13) Install type is Typical. Click Next.
14) Accept the default install location or choose your own, and click Next.
15) The Intel Hardware Accelerated Execution Manager (HAXM) Setup Wizard appears. Click Next for the next three screens, and then click Finish.
16) Reboot if asked to.
Installation is now complete. Next is to start working with some of the Sample Projects, like Making a Custom Watch Face
.
.
error
Breach said:
Simple step by step tutorial for installing the Tizen SDK for Wearables
1) Go to http://developer.samsung.com/
2) Select Development Tools for Samsung Gear.
3) Under the SDK portion of the table, select Tizen SDK for Wearable.
4) Before downloading the files, choose a target location. This will make locating the files easier later on.
5) Under Tizen SDK for Wearable 1.0.0b2, in the Install Manager column, select and download the install bin or exe file for your development environment. This file is approximately 4 MB.
6) Under SDK Image, select and download the matching SDK Image. This file is approximately 560MB.
7) Double-click the Install Manager (the 4MB file). The Tizen Window for SDK appears, saying “Cannot start Tizen SDK for the Wearable Install Manager” and “Cannot find repository. Please check your repository (http://)”
8) Click on the Advanced button.
9) Select the SDK Image radio button (bottom half of the screen), and click on the open folder icon to the right.
10) Locate the SDK Image (~560MB), select it, and click Open. This is where having a predetermined download target can be very helpful. The file unzips and takes you back to the previous screen. Click OK.
11) This takes you back to the Tizen Window for SDK, except now you have no warning, and a Next button. Click the Next button.
12) The EULA appears, read and accept the EULA by clicking Next.
13) Install type is Typical. Click Next.
14) Accept the default install location or choose your own, and click Next.
15) The Intel Hardware Accelerated Execution Manager (HAXM) Setup Wizard appears. Click Next for the next three screens, and then click Finish.
16) Reboot if asked to.
Installation is now complete. Next is to start working with some of the Sample Projects, like Making a Custom Watch Face
.
.
Click to expand...
Click to collapse
I am getting a message "Cannot execute java even if it was installed. Check environment variables or java version (over 1.6) please" I updated my java to the current version but still keep getting that message. Do you know how to fix it?? Also thank you for your post.
TRook45 said:
I am getting a message "Cannot execute java even if it was installed. Check environment variables or java version (over 1.6) please" I updated my java to the current version but still keep getting that message. Do you know how to fix it?? Also thank you for your post.
Click to expand...
Click to collapse
Are you installing the Java JDK? Or just the Java SE?, You will need the Java JDK installed,
http://www.oracle.com/technetwork/java/javase/downloads/jdk-7-netbeans-download-432126.html
Once installed, you will probably want to put it into your Environmental Variables.. Just right click on the "This PC" icon on your desktop. Then click 'Properties' and then 'Advanced System Settings', then click the [Enviromental Variables] button. Scroll down until you find PATH. It should have a several paths, add the following to the beginning... C:\Program Files\Java\jdk1.7.0_51\bin; (Note that this path will depend on where you installed the Java JDK and the version)
You can save it. To test it.. Open a CMD Prompt and type javac and if you get an error, something didn't work.
Got most of the way through but when installing Intel HAEM it says not enabled. Reading up it says most likley not compatible but running I5 3.2 so should do, any thoughts
edit: ok seems like I have to switch on VT-x in Bios, strange why it is off seems should be on by default
jeffnz said:
Got most of the way through but when installing Intel HAEM it says not enabled. Reading up it says most likley not compatible but running I5 3.2 so should do, any thoughts
edit: ok seems like I have to switch on VT-x in Bios, strange why it is off seems should be on by default
Click to expand...
Click to collapse
Just saw your reply, glad you got it working.
Breach said:
Simple step by step tutorial for installing the Tizen SDK for Wearables
10) Locate the SDK Image (~560MB), select it, and click Open. This is where having a predetermined download target can be very helpful. The file unzips and takes you back to the previous screen. Click OK.
11) This takes you back to the Tizen Window for SDK, except now you have no warning, and a Next button. Click the Next button.
12) The EULA appears, read and accept the EULA by clicking Next.
13) Install type is Typical. Click Next.
14) Accept the default install location or choose your own, and click Next.
15) The Intel Hardware Accelerated Execution Manager (HAXM) Setup Wizard appears. Click Next for the next three screens, and then click Finish.
16) Reboot if asked to.
Installation is now complete. Next is to start working with some of the Sample Projects, like Making a Custom Watch Face
.
Click to expand...
Click to collapse
Sorry to bug you with a question:
When installing the TSDKW, I get through step 10 without problems. At 10 I get stuck in an install loop for the SDK. . .
After I select and let the install program parse the sdk.zip file I get the OK, button.
I press it, but am sent back to the Wearable Install Manager -- with radio button choice "Install the new Tizen SDK for Wearable version" (again).
My only option is to select "advanced" button on the right side of the dialogue box, and then I am put me back at the advanced config menu to select the SDK zip. . . running it again puts me back to the same advanced config box -no EUSA or anything. .
Sort of a do-loop. . .
Have you seen this before? is it common, or should I re-download and start over.
(I am using win64 version home premium)
thanks in advance!
markbc01 said:
Sorry to bug you with a question:
When installing the TSDKW, I get through step 10 without problems. At 10 I get stuck in an install loop for the SDK. . .
After I select and let the install program parse the sdk.zip file I get the OK, button.
I press it, but am sent back to the Wearable Install Manager -- with radio button choice "Install the new Tizen SDK for Wearable version" (again).
My only option is to select "advanced" button on the right side of the dialogue box, and then I am put me back at the advanced config menu to select the SDK zip. . . running it again puts me back to the same advanced config box -no EUSA or anything. .
Sort of a do-loop. . .
Have you seen this before? is it common, or should I re-download and start over.
(I am using win64 version home premium)
thanks in advance!
Click to expand...
Click to collapse
I'd verify the MD5 Checksum or download again.
.
Thanks, I'll do that, and also try to download the watch sdk on my Mac...
...from the xda premium app. who knows which Rom...
Can anyone help installing on linux mint 16? Thanks
Breach said:
Simple step by step tutorial for installing the Tizen SDK for Wearables
1) Go to http://developer.samsung.com/
2) Select Development Tools for Samsung Gear.
3) Under the SDK portion of the table, select Tizen SDK for Wearable.
4) Before downloading the files, choose a target location. This will make locating the files easier later on.
5) Under Tizen SDK for Wearable 1.0.0b2, in the Install Manager column, select and download the install bin or exe file for your development environment. This file is approximately 4 MB.
6) Under SDK Image, select and download the matching SDK Image. This file is approximately 560MB.
7) Double-click the Install Manager (the 4MB file). The Tizen Window for SDK appears, saying “Cannot start Tizen SDK for the Wearable Install Manager” and “Cannot find repository. Please check your repository (http://)”
8) Click on the Advanced button.
9) Select the SDK Image radio button (bottom half of the screen), and click on the open folder icon to the right.
10) Locate the SDK Image (~560MB), select it, and click Open. This is where having a predetermined download target can be very helpful. The file unzips and takes you back to the previous screen. Click OK.
11) This takes you back to the Tizen Window for SDK, except now you have no warning, and a Next button. Click the Next button.
12) The EULA appears, read and accept the EULA by clicking Next.
13) Install type is Typical. Click Next.
14) Accept the default install location or choose your own, and click Next.
15) The Intel Hardware Accelerated Execution Manager (HAXM) Setup Wizard appears. Click Next for the next three screens, and then click Finish.
16) Reboot if asked to.
Installation is now complete. Next is to start working with some of the Sample Projects, like Making a Custom Watch Face
.
.
Click to expand...
Click to collapse
I followed all your steps (I believe) and the sdk installed.
I also installed the usb drivers from:
>.2. Install Samsung Drivers
>a.*http://developer.samsung.com/android...er-for-Windows
but when I type in my cmd window "sdb devices" it does not list any....
what am I doing wrong?
nrseife said:
I followed all your steps (I believe) and the sdk installed.
I also installed the usb drivers from:
>.2. Install Samsung Drivers
>a.*http://developer.samsung.com/android...er-for-Windows
but when I type in my cmd window "sdb devices" it does not list any....
what am I doing wrong?
Click to expand...
Click to collapse
Is your watch dock snapped onto the watch and usb plugged into that?
Is USB Debugging enabled on your watch?
Yes I have turned on usb debugging on my gear2 (in Settings/Gear Info).
and I can see it in File Explorer...when connected to my laptop...
nrseife said:
Yes I have turned on usb debugging on my gear2 (in Settings/Gear Info).
and I can see it in File Explorer...when connected to my laptop...
Click to expand...
Click to collapse
Are there any errors in your Device Manager on your pc/laptop?
You can try trouble shooting using this link..
https://developer.tizen.org/blogs/s...me-your-new-tizen-sdp-drivers-and-certificate
.
I just can't seem to get this installed. It gets to the Intel HAXM installation and fails because I am running an AMD 1090T, which is clearly not supported. Does that mean I can't use the IDE at all on my machine? Would installing a virtual machine of linux and going that route work on the same hardware or is that going to still look for HAXM to be installed? Any help would be greatly appreciated... I finally got past the Java errors to end up getting stuck now. It fails with a fatal error that the certification generator failed or something along those lines.
I installed everything again, on a different machine (home PC). Another Intel cpu based machine.
Well, this time the installer failed to unpack a package shortly after my Anti Virus protection (Kaspersky) complained that ansicon.exe (which is installed by the sdk installer) cotains a Trojan pgr....anybody seen that?
Anyway, I now can (despite the installer not finishing properly) see the Gear2 via "sdb devices" and push wgt apps!
Success I guess....just a bit nervous about that warning by Kaspersky....
Sent from my GT-N5110 using xda premium
jwcurry83 said:
I just can't seem to get this installed. It gets to the Intel HAXM installation and fails because I am running an AMD 1090T, which is clearly not supported. Does that mean I can't use the IDE at all on my machine? Would installing a virtual machine of linux and going that route work on the same hardware or is that going to still look for HAXM to be installed? Any help would be greatly appreciated... I finally got past the Jjava errors to end up getting stuck now. It fails with a fatal error that the certification generator failed or something along those lines.
Click to expand...
Click to collapse
I'm in a similar situation except my Intel processor isn't HAXM compatible. :|
Sent from my SCH-I605 using Tapatalk
No devices shown
I seem to have the bases all covered:
I followed all the steps, the sdk for wearables is installed.
All devices picked up valid drivers (nothing wrong in device manager)
Computer sees the Gear 2 just fine (see it in My Computer)
Emulator working, I developed a watchface and saved the file to sideload.
Put the watch in Debug mode.
Everything seems to work fine, but when I use the command "sdb devices"
all I get is "List of devices attached", but no devices listed and NO errors.
All seems right, but why no devices (watch) showing?
Edit: Found solution. All looked good in Device Manager, all drivers looked good, but when I pressed "Update Driver Software" (online), a new driver was found, installed, and now the device is shown when using "sdb devices"
akwaman said:
I seem to have the bases all covered:
I followed all the steps, the sdk for wearables is installed.
All devices picked up valid drivers (nothing wrong in device manager)
Computer sees the Gear 2 just fine (see it in My Computer)
Emulator working, I developed a watchface and saved the file to sideload.
Put the watch in Debug mode.
Everything seems to work fine, but when I use the command "sdb devices"
all I get is "List of devices attached", but no devices listed and NO errors.
All seems right, but why no devices (watch) showing?
Edit: Found solution. All looked good in Device Manager, all drivers looked good, but when I pressed "Update Driver Software" (online), a new driver was found, installed, and now the device is shown when using "sdb devices"
Click to expand...
Click to collapse
Useful bit of information. Glad you got it working.
.
sdk of tizen wearable 2.2.150 wont install
Breach said:
Are you installing the Java JDK? Or just the Java SE?, You will need the Java JDK installed,
http://www.oracle.com/technetwork/java/javase/downloads/jdk-7-netbeans-download-432126.html
Once installed, you will probably want to put it into your Environmental Variables.. Just right click on the "This PC" icon on your desktop. Then click 'Properties' and then 'Advanced System Settings', then click the [Enviromental Variables] button. Scroll down until you find PATH. It should have a several paths, add the following to the beginning... C:\Program Files\Java\jdk1.7.0_51\bin; (Note that this path will depend on where you installed the Java JDK and the version)
You can save it. To test it.. Open a CMD Prompt and type javac and if you get an error, something didn't work.
Click to expand...
Click to collapse
i have done everything according the manual changed the path to java and when i type in the cmd javac it works , but i installed java jdk_8u5-nb-8-windows64.exe and still it gives me enviremental errors or at least java 1.6 must be installed , so i installed the latest version and still no result , what am i doing wrong ?? what did i miss ?
Have you installed Java JDK? Or just the Java SE?, You will need the Java JDK installed.

[Tool] WhatsApp Key/DB Extractor | CRYPT6-12 | NON-ROOT | UPDATED OCTOBER 2016

** Version 4.7 Updated October 2016 - Supports Android 4.0-7.0 **
SUMMARY:
Allows WhatsApp users to extract their cipher key and databases on non-rooted Android devices.
UPDATE: This tool was last updated on October 12th 2016. and confirmed working on Android 4.0-7.0 using WhatsApp version v2.16.304 (latest available).
IMPORTANT: If you wish to extract media files or WhatsApp databases from Google Drive backups then you need: WhatsApp Google Drive Extractor instead.
TUTORIAL:
BRANCH UPDATES:
v4.0 - Fixed issues with Android API 14-17 (4.0-4.2 Jelly Bean).
v4.1 - Added support for Android API 23 (6.0-6.0.1 Marshmallow).
v4.2 - Added support for specifying adb backup passwords.
v4.3 - Added PowerShell version as optional alternative to bat version.
v4.4 - Changed primary mirror for legacy apk.
v4.5 - Fixed issue pushing cipher key to emulated storage.
v4.6 - Updated primary mirror for legacy apk (again).
v4.7 - Added new sanity checks and support for Android API 24 (7.0 Nougat).
PREREQUISITES:
O/S: Windows Vista, Windows 7, Windows 8, Windows 10, Mac OS X or Linux
Java - If not installed: Download Java
ADB (Android Debug Bridge) Drivers
USB Debugging* must be enabled on the target device. Settings -> Developer Options -> (Debugging) USB debugging
Android device with Android 4.0 or higher. I.E. Ice Cream Sandwich, Jelly Bean, KitKat, Lollipop, Marshmallow or Nougat.
*= If you cannot find Developer Options then please go to: Settings -> About phone/device and tap the Build number multiple times.
INSTRUCTIONS:
Extract WhatsApp-Key-DB-Extractor-master.zip maintaining the directory structure.
Click on WhatsAppKeyDBExtract.bat (Windows) or WhatsAppKeyDBExtract.sh (Mac OS X / Linux).
Connect your device via USB, unlock your screen and wait for Full backup to appear.
Enter your backup password or leave blank (if none set) and tap on Back up my data.
Confirm backup password in your command console and then check the "extracted" folder.
TROUBLESHOOTING:
If you have never used USB Debugging before, you may also need to verify the fingerprint.
If you have set a default backup password in your Android settings, then this MUST be the
backup password that you provide when prompted to backup your data. Else it WILL fail!
Linux and Mac OS X users may need to set the script permissions as executable. Depending on the
adb permissions, you may also need to sudo ./WhatsAppKeyDBExtract.sh from your command console.
If you're having issues with WhatsAppKeyDBExtract.bat then right click WhatsAppKeyDBExtract.ps1
and select Run with PowerShell. You may have to enter "y" at first run for script execution policy.
If you get an error saying "AES encryption not allowed" then you need to update your Oracle Java
Cryptography Extension (JCE) to Unlimited Strength Jurisdiction Policy Files.
DOWNLOAD: WhatsApp-Key-DB-Extractor-master.zip
AUTHOR: TripCode
THANKS: dragomerlin for Android Backup Extractor and Abinash Bishoyi for being cool.
alternatives
Yes, this is a normal backup method. There are automatic tools that do the same without using PC, just on device side.
Apart from normal ADB method, you could use ECLIPSE for that, using the memory module, you could transfer files from and in.
If you have physical access to the device, there are many solutions.
regards.
droopyar said:
Yes, this is a normal backup method. There are automatic tools that do the same without using PC, just on device side.
Apart from normal ADB method, you could use ECLIPSE for that, using the memory module, you could transfer files from and in.
If you have physical access to the device, there are many solutions.
regards.
Click to expand...
Click to collapse
The only way to access private application files (such as a WhatsApp's cipher key) without root is the ADB method. You can backup some files on the device without a PC (APK's etc...), but there is currently no way to access private files and folders. All the "My Big Fat Backup" style apps and tools will either require root or ADB. Eclipse also utilizes ADB. Basically, device side backups of application data require root. There are no other alternatives to this. If there was, then Android would be too infeasible and insecure as a viable operating system. Physical access translates into only two solutions. 1.) The ability to root and 2.) The ability to utilize ADB (Eclipse, Bats, Exe's doing nothing more than calling a simple command line). Of course if you are aware of a 3rd method (disregarding the user interface) and is not based on root or ADB then please feel free to share.
Thanks for this tool!
I've just tried to use it, but it installs the java constantly (while java is properly installed on computer as other applications uses it without any problem )
By any chance, do you have any idea how to pass that?
Thanks!!
Mia
PS I got JDK installed and still not working
MiaNet said:
I've just tried to use it, but it installs the java constantly (while java is properly installed on computer as other applications uses it without any problem )
By any chance, do you have any idea how to pass that?
Click to expand...
Click to collapse
The bat file automatically checks for the presence of java.exe on your system. If it's not found then it starts the install. It would appear that for some reason it's not finding Java and hence why you're stuck in this loop. Please find attached a bat file without the Java check. Just put it in the same folder as the original and run this one instead. Let me know how you get on. Java also needs to be callable from the command line. To check this is working you should click on Run... within Windows, type cmd, click OK and type "java -version" (without quotes) and press Enter. This will confirm java is in the command path and print out your JRE build number. I have also updated the release in the OP and removed the Java check, as I have had a couple of similar reports of the loop issue.
Thanks again.
still showing this message attached
TripCode said:
The bat file automatically checks for the presence of java.exe on your system. If it's not found then it starts the install. It would appear that for some reason it's not finding Java and hence why you're stuck in this loop. Please find attached a bat file without the Java check. Just put it in the same folder as the original and run this one instead. Let me know how you get on. Java also needs to be callable from the command line. To check this is working you should click on Run... within Windows, type cmd, click OK and type "java -version" (without quotes) and press Enter. This will confirm java is in the command path and print out your JRE build number. I have also updated the release in the OP and removed the Java check, as I have had a couple of similar reports of the loop issue.
Thanks again.
Click to expand...
Click to collapse
Still showing the attached message
mesho_alaa said:
Still showing the attached message
Click to expand...
Click to collapse
This sounds to me like you need to update your PATH Environment variable with the directory in which java is installed.
Open up a DOS window and type: "where java" (without quotes) to determine possible locations.
If it's located in: "C:\Windows\System32" then the following code should suffice:
Code:
set PATH=%PATH%;C:\Windows\System32
If it's located in: "C:\Program Files\Java\jre7\bin" then:
Code:
set PATH=%PATH%;C:\Program Files\Java\jre7\bin
The above needs to be added to the bat script BEFORE Java is called. You can edit the bat script by opening it with Notepad.
Alternatively, you could permanently update the PATH Environment (probably a better method).
To do this you would: Right click on "Computer" or "My Computer", within Windows Explorer, choose "Properties", click on the "Advanced system settings" and/or the "Advanced" tab, then click on the "Environment Variables" button. Select the "PATH" line, click the "Edit" button, and add the relevant directory to the end of any text that exists for PATH, prefixing the java path with a ";" (semicolon) if this line already contains other string paths. If PATH does not exist then you will need to add it. Sorry this paragraph is a little double-dutch (trying to cater for multiple versions of Windows).
Many thanks! I'll test when home and let you know.
Just to let know, the path command do not fix the prior version with Java check as I first thought this might be the problem.
Thanks!
Mia
Could even be use with ADB from phone to phone? without using the pc? Or I must install the app on the phone and do it offline?
I have find my way! Re-installed Java, manually clicked on java.exe stored in Java folder in Program files (or Program files (x86) ) I've clicked on Javacpl as well and enabled all options, not sure if this is necessary though.
I've then rerun the program without Java check (the Java check one is bugging now) and was able to do the back up.
Thanks!!
Best regards,
Melanie
Cannot tap button
Hi! i've done all the previous steps, but when i unlock the phone, to confirm the backup, i cant tap on "back up my data", it doesnt even grey at hover, just like the button wasn't there...
I can choose not to backup, that button works perfectly, and write the password too, i've tried all the screen, but nothing happends, so i can't backup the phone...
Does anyone think how to solve that? Thanks!
Permission denied
Hi, I followed all instructions and I generated this error.
I would appreciate your help.
Error
mesho_alaa said:
Still showing the attached message
Click to expand...
Click to collapse
I, too am showing the same error.
Curwens said:
Hi! i've done all the previous steps, but when i unlock the phone, to confirm the backup, i cant tap on "back up my data", it doesnt even grey at hover, just like the button wasn't there...
I can choose not to backup, that button works perfectly, and write the password too, i've tried all the screen, but nothing happends, so i can't backup the phone...
Does anyone think how to solve that? Thanks!
Click to expand...
Click to collapse
Try rebooting the device and trying again. If it is still greyed out, the backup feature maybe disabled on the device. Some manufacturers / service providers have specifically disabled usb backups.
kharloz_jc said:
Hi, I followed all instructions and I generated this error.
I would appreciate your help.
Click to expand...
Click to collapse
cardinalaa said:
I, too am showing the same error.
Click to expand...
Click to collapse
It would appear that the key was extracted, but the "copy" wasn't pushed to the sdcard. KitKat? You don't need a copy of the key on your sdcard unless you want to use a supported app. As the key was extracted successfully, you could attempt to copy it by other means.
TripCode said:
This sounds to me like you need to update your PATH Environment variable with the directory in which java is installed.
Open up a DOS window and type: "where java" (without quotes) to determine possible locations.
If it's located in: "C:\Windows\System32" then the following code should suffice:
Code:
set PATH=%PATH%;C:\Windows\System32
If it's located in: "C:\Program Files\Java\jre7\bin" then:
Code:
set PATH=%PATH%;C:\Program Files\Java\jre7\bin
The above needs to be added to the bat script BEFORE Java is called. You can edit the bat script by opening it with Notepad.
Alternatively, you could permanently update the PATH Environment (probably a better method).
To do this you would: Right click on "Computer" or "My Computer", within Windows Explorer, choose "Properties", click on the "Advanced system settings" and/or the "Advanced" tab, then click on the "Environment Variables" button. Select the "PATH" line, click the "Edit" button, and add the relevant directory to the end of any text that exists for PATH, prefixing the java path with a ";" (semicolon) if this line already contains other string paths. If PATH does not exist then you will need to add it. Sorry this paragraph is a little double-dutch (trying to cater for multiple versions of Windows).
Click to expand...
Click to collapse
Hi, I am receiving the "Cannot find the path specified" error. I have tried both changing the script and also the other method, in environment variables. I am curious if this has anything to do with the fact that its an ATT phone (since no one can even root it yet)? No other apps can access my phone, either. I have USB debugging enabled and all prerequisite programs installed. Tried on 2 computers, win7 and win 8.1
I wonder if i it is an error on my part..?
TripCode said:
Try rebooting the device and trying again. If it is still greyed out, the backup feature maybe disabled on the device. Some manufacturers / service providers have specifically disabled usb backups.
It would appear that the key was extracted, but the "copy" wasn't pushed to the sdcard. KitKat? You don't need a copy of the key on your sdcard unless you want to use a supported app. As the key was extracted successfully, you could attempt to copy it by other means.
Click to expand...
Click to collapse
I have reviewed the "Extract" folder and there was the key. I have managed to decrypt it.
Thanks for the help and the tool!
PD: sorry for my bad English, I use translator is haha.
Nothing happens
Hi, first, thanks for this iniciative. A lot of people would apreciate this
I think I did everything as u said, but when I open the WhatsAppKeyExtract,bat and then conect my phone in debuggin mode to PC, nothing happens. Ive waited for 10 minutes and.. nothing happens. Keep showing the initial message: "Please connect your Android device..." and in my phone nothing happens too. Just show a messagem at the upper tab saying: "USB debbugin conected".
Theres any kind of setting to do futher in the debbug options?
Thanks
Update: I had do install de universal adb driver for my phone, and now it starts the download, but now im having problem with java... the messagem says "'java' isnt a recognizable command". I tried all solutions in this post and nothing.. I need heeeelp!
Solution to path problem
Is working perfect. For someone else that can happen the same thing as me. I have to fix something (i am spanish) about:
java is not recognized as an internal or external command, operable program or batch file
Here is the solution:
java .com/en/download/help/path.xml
Or here:
1. Right-Click My Computer and select Properties
2. Then Click The Advanced Tab
3. Then Click Environment Variables
4. Select Path In The Bottom Box and Click Edit
5. Find Where You installed Java (E.g "C:\Program Files\Java\bin)
Its different on each computer
6. Make Sure to add a semicolon after the word bin in the path to seperate it from the other important paths
7. If this doesnt work then you may have to reinstall Java and Try Again
Setting Path on Windows
For Windows XP:
1. Start -> Control Panel -> System -> Advanced
2. Click on Environment Variables, under System Variables, find PATH, and click on it.
3. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
4. Close the window.
5. Reopen Command prompt window, and run your java code.
https://www.dropbox.com/s/nm1goi6m0oob15u/Screenshot 2014-06-15 22.25.27.png
I am getting this error.
using java run time 7 update 60
any ideas?
Thanks!
tzuyang said:
https://www.dropbox.com/s/nm1goi6m0oob15u/Screenshot 2014-06-15 22.25.27.png
I am getting this error.
using java run time 7 update 60
any ideas?
Thanks!
Click to expand...
Click to collapse
Have seen this error before (not related to bat file). You may need to revert to an earlier Java version.

Question Questions about unlocking bootloader on a brand new phone.

I plan to root this phone at some point. When I first get the phone, can I bypass the setup and just get to the settings so I can unlock the bootloader? Also I got some old stripped down adb/fastboot installed from way back. Will installing new Android tools cause any problems? Any other suggestions would be appreciated. Thanks!
Old fastboot and adb probably won't work properly anymore. People have also had some issue with a recent version 34 of the platform tools. I would reccomend updating updating to platform tools 33.0.3 for now in Android Studio.
I think there is an option to skip the initial Android Setup, but I don't remember.
You can skip most parts of setup, though it will still make you agree to terms and arbitration (if applicable). This will let you get to the home screen, the settings, and developer options. As for the old adb package, I would go ahead and remove it and manually install. Grab 33.0.3 from either Android Studio (as mentioned above) or through a download package. Once you have the tools, drop them in a folder somewhere easily remembered (I just use C:\adb). Add the folder as an environment variable, reboot, and you are golden. If you ever need to update your platform-tools, you can typically just kill the ADB server if it is running (adb kill-server), drop in the replacement files, and be back up and running.
Alternatively, if the minimal package you have already has a folder and environment variables set up, find that folder, clean it out, and replace the files with the 33.0.3 platform-tools. Should be set after that.
stompysan said:
You can skip most parts of setup, though it will still make you agree to terms and arbitration (if applicable). This will let you get to the home screen, the settings, and developer options. As for the old adb package, I would go ahead and remove it and manually install. Grab 33.0.3 from either Android Studio (as mentioned above) or through a download package. Once you have the tools, drop them in a folder somewhere easily remembered (I just use C:\adb). Add the folder as an environment variable, reboot, and you are golden. If you ever need to update your platform-tools, you can typically just kill the ADB server if it is running (adb kill-server), drop in the replacement files, and be back up and running.
Alternatively, if the minimal package you have already has a folder and environment variables set up, find that folder, clean it out, and replace the files with the 33.0.3 platform-tools. Should be set after that.
Click to expand...
Click to collapse
Thanks for the replies. I think someone had created a stripped down android development package that only included necessary stuff for the phones. I really can't remember because it's been so long. I think the old package does have the environment variables because I don't have to type the path to adb. I have C:\adb which has four files in it (adb.exe, AdbWinApi.dll, AdbWinUsbApi.dll, and fastboot.exe). I also use this to connect to my firesticks.
I don't really suggest using the minimal adb and fastboot -- especially for unlocking the bootloader and flashing -- and I suggest using the platform tools from the official source from Google which can be found here: https://developer.android.com/studio/releases/platform-tools
Also, this way, you don't have to download the whole SDK or Studio package just for the platform tools/adb;fastboot.
BUT THE CURRENT RELEASE HAS BEEN KNOWN TO CAUSES ISSUES so until it's confirmed that r34.0.1 doesn't (as no one has tried with .1 nor has it been used for the March images yet), I suggest downloading from THIS POST (version r33.0.3) using the last known version that had the least amount of issues...

Categories

Resources