Trying to Root Nexus 7 (2013), SDK issue - Nexus 7 (2013) Q&A

I'm trying to Root the new Nexus 7. I can't even install the SDK.
I Accept the license to install, but the install button is greyed out and I get:
"Package "Google APIs, Android API 18, revision 1 depends on missing SDK Platform Android, API 18"
...In the SDK manager
HELP!!!

I didn't have to install anything. Per the instructions here, all I needed was adb.exe and fastboot.exe. So I just extracted the sdk\platform-tools folder from the SDK zip and it worked fine.

Related

Installed Android SDK, wont work!

Can anyone help? Ive installed the SDK, ive installed the Java stuff, but when I try to open the SDK Manager it opens and closes instantly. I try running through command line and nothing happens.
Am I missing something? On 32 bit windows XP
Assuming you have admin rights on the machine...
Have you tried installing to a different location - like the root of C:
When you d/l the files, did you click properties, and in the bottom of the pane, did it indicate the files were blocked and did you unblock them?
Have you tried uninstalling the current, d/l them again and reinstalling?
Not sure how much this will help, but when I tried running SDK I ended up finding out after doing lots of research, getting some help and everything that it wasn't working properly because I downloaded the wrong version for my PC. Be sure you downloaded the correct SDK for your PC because that will play a big role in the program running correctly.
Re: Installed Android SDK, wont work!
If you used the exe then you need to run your advanced commands from "platform-tools" not the normal "tools" folder. You will see adb files in the currect folder.
/programfiles/android-adk-windows/platform-tools
It will me something like that
I'm not at the point where I can run advanced commands, I can't get the application to open AT ALL so I can't even download any versions of the Android OS etc.
DroidHam said:
but when I try to open the SDK Manager it opens and closes instantly.
Click to expand...
Click to collapse
...be more specific.
when you try to open the SDK manager, I assume you mean in Eclipse?
are you following these directions?
http://developer.android.com/sdk/installing.html
Im not using Eclipse, I just want to open the Android Emulator. I had done this before in windows without much hassle but now I cant get it to open
DroidHam said:
Im not using Eclipse, I just want to open the Android Emulator. I had done this before in windows without much hassle but now I cant get it to open
Click to expand...
Click to collapse
well you have to use eclipse to create an AVD (android virtual device).
Just follow the directions On the link I gave you. once you got eclipse all set up.
[[ this is the eclipse i'm running 3.6.1 classic: http://www.eclipse.org/downloads/do....6.1-201009090800/eclipse-SDK-3.6.1-win32.zip ]]
Click on WINDOW->Android SDK and AVD Manager.
Create a New AVD. Give it a name (something simple, short, all lowercase is best. I named the latest one gingerbread) and select the target (api version)
set an SD card, resolution, etc...etc....
once its created, you have to launch emulator from a command prompt and the AVD switch to specify an android virtual device.
in dos, navigate to the SDK\tools directory, and run
emulator -avd gingerbread
or whatever you named your avd. got it?
ill give it a shot, thanks

ADB.exe

Sorry for the noob question but when I download the latests SDK there is no ADB.exe file in the tools directory anymore.
How do I start ADB with the latest SDK release?
hav0c said:
Sorry for the noob question but when I download the latests SDK there is no ADB.exe file in the tools directory anymore.
How do I start ADB with the latest SDK release?
Click to expand...
Click to collapse
What are your folders once extracted? It will be in one of them!
do you mean it was there an now its gone??
also have you hooked up phone(charge only) to usb, opened command prompt and type adb devices to see if adb starts? cause it may just be placed in different folder in sdk. think it does in new sdk but can't remember which folder doh .
This is the content of my tools folder:
Code:
cat ls.txt
android
ant
apkbuilder
ddms
dmtracedump
draw9patch
emulator
etc1tool
hierarchyviewer
hprof-conv
layoutopt
lib
ls.txt
mksdcard
monkeyrunner
NOTICE.txt
proguard
source.properties
sqlite3
traceview
zipalign
(Same content in my SDK folder in Windows. No ADB.exe..)
have you try to run adb in cmd.exe ?
have a look in platform-tools folder it were im finding adb but im on linux mint right now but should be same
I don't have that folder.
If I download the SDK (zip) from http://developer.android.com/sdk/index.html adb.exe is not in it..
Is that the same for you guys?
hav0c said:
I don't have that folder.
If I download the SDK (zip) from http://developer.android.com/sdk/index.html adb.exe is not in it..
Is that the same for you guys?
Click to expand...
Click to collapse
no thats were i downloaded from, both windows and linux hold on il go into windows an have a look but have you try running adb you can only start it in command prompt (cmd.exe) if your using windows xp. just right click in any windows from menu choose command prompt,plug phone to usb,make sure you have usb debugging on in phone(setting>application >development) and then type adb devices and see itf adb starts for you.
try doing this.
yeah its in platform-tools folder and you can find this in the main folder of the android-sdk-windows folder
check it out it there
Platform-tools doesn't come with the sdk by default if I recall correctly. You need to run the sdk manager and select it as an optional component to download. I'm a long way from my computer right now so I can't double check for you sorry.
Sent from my performance enhanced Desire HD.
dr.m0x said:
Platform-tools doesn't come with the sdk by default if I recall correctly. You need to run the sdk manager and select it as an optional component to download. I'm a long way from my computer right now so I can't double check for you sorry.
Sent from my performance enhanced Desire HD.
Click to expand...
Click to collapse
I do believe your correct.
Sent from my Desire HD using XDA App
dr.m0x said:
Platform-tools doesn't come with the sdk by default if I recall correctly. You need to run the sdk manager and select it as an optional component to download. I'm a long way from my computer right now so I can't double check for you sorry.
Sent from my performance enhanced Desire HD.
Click to expand...
Click to collapse
lol prob why can't find it
It's not there (even after update all)
Thanks anyway..
Looks like it's all change since the version I downloaded when I got my Hero last year.
Taken from the SDK Readme in the latest SDK download, confirming what has been said above:
Welcome to the Android SDK!
The Android SDK archive now only contains the tools. It no longer comes
populated with a specific Android platform or Google add-on. Instead you
use the SDK Manager to install or update SDK components such as platforms,
tools, add-ons, and documentation.
In order to start developing applications, you must install at least one
version of the Android platform using the SDK Manager.
This requires an Internet connection, so if you plan to use the SDK
offline, please make sure to download the necessary components while online.
To start the SDK Manager, please execute the program "SDK Setup.exe".
From the command-line you can also directly trigger an update by
executing:
tools\android.bat update sdk
For more information, please consult the Android web site at
http://developer.android.com
Click to expand...
Click to collapse
hav0c said:
Sorry for the noob question but when I download the latests SDK there is no ADB.exe file in the tools directory anymore.
How do I start ADB with the latest SDK release?
Click to expand...
Click to collapse
there is a adb_blabla.txt file with tells you how you can find adb.exe
aivilon said:
there is a adb_blabla.txt file with tells you how you can find adb.exe
Click to expand...
Click to collapse
I reckon he's probably worked that out in the last nine months
//sent from my Desire HD using Tapatalk; all errors entirely intentional.
Is someone going to just solve the mystery?
Lots of talk
So bottom line, will someone just solve the mystery.
1) If it is installed with SDK where is it and why does search not find it.
2) If it is NOT installed where do we get it.
Thanks
paulckruger said:
Lots of talk
So bottom line, will someone just solve the mystery.
1) If it is installed with SDK where is it and why does search not find it.
2) If it is NOT installed where do we get it.
Thanks
Click to expand...
Click to collapse
You have to install platform tools from "sdk manager.exe".....adb will be under the platform-tools folder after that
Sent from my HTC Inspire 4G using Tapatalk
paulckruger said:
Lots of talk
So bottom line, will someone just solve the mystery.
1) If it is installed with SDK where is it and why does search not find it.
2) If it is NOT installed where do we get it.
Thanks
Click to expand...
Click to collapse
Don't search for it. Go to the directory and look for it. Windows search is a joke
zelendel said:
Don't search for it. Go to the directory and look for it. Windows search is a joke
Click to expand...
Click to collapse
I have done that as well and find to trace of that file? I use a third party search which is better than windows search...does not exist c:/android/***** which is the install directory for the SDK.
Again...if it is not there where do I get it?
paulckruger said:
I have done that as well and find to trace of that file? I use a third party search which is better than windows search...does not exist c:/android/***** which is the install directory for the SDK.
Again...if it is not there where do I get it?
Click to expand...
Click to collapse
As already stated, it is not installed with the SDK by default. In the tools folder there's a text file called "adb_has_moved.txt" which tells you that you need to launch the SDK and install "Android SDK Platform-tools" to get it. Like chrisz5z said.

[Q] Struggling to install Android SDK Tools :? [adb error]

hey y'all
I'm currently having issues installing Android SDK to my laptop (running Windows 7 32-bit)
I've downloaded Android SDK program but I try to install it says "Java SE Development Kit (JDK) not found", prompting me to download the kit from java.oracle.com
So off to Java, I download the kit under link ' jdk-6u25-windows-i586.exe'
Install the kit successfully and try to install Android SDK again...but same error message
Android SDK Tools: installer_r11-windows.exe
Java JDK: jdk-6u25-windows-i586.exe
I've even uninstalled and re-installed HTC Sync, copied the HTC_Driver_32 & extract in C:drive...
I've been following the instructions from these links:
How to install adb windows 7 32 and 64 and should work on XP
Workaround for HTC Hero Sync Problem in Windows 7
How To: Set Up ADB/USB Drivers for Android Devices
HELP!
herb1 said:
hey y'all
I'm currently having issues installing Android SDK to my laptop (running Windows 7 32-bit)
I've downloaded Android SDK program but I try to install it says "Java SE Development Kit (JDK) not found", prompting me to download the kit from java.oracle.com
So off to Java, I download the kit under link ' jdk-6u25-windows-i586.exe'
Install the kit successfully and try to install Android SDK again...but same error message
Android SDK Tools: installer_r11-windows.exe
Java JDK: jdk-6u25-windows-i586.exe
I've even uninstalled and re-installed HTC Sync, copied the HTC_Driver_32 & extract in C:drive...
I've been following the instructions from these links:
How to install adb windows 7 32 and 64 and should work on XP
Workaround for HTC Hero Sync Problem in Windows 7
How To: Set Up ADB/USB Drivers for Android Devices
HELP!
Click to expand...
Click to collapse
It's a known issue. If you have JDK when you install SDK and get that error juck click back and then forward.
'adb' is not recognized...
new problem...managed to follow laie's method to install adb up till the step where I must type adb devices
I get this error (attached):
'adb' is not recognized as an internal or external command, operable program or batch file.
MORE HELP?!
herb1 said:
new problem...managed to follow laie's method to install adb up till the step where I must type adb devices
I get this error (attached):
'adb' is not recognized as an internal or external command, operable program or batch file.
MORE HELP?!
Click to expand...
Click to collapse
Check the ../platform-tools in stead of ../tools directory.
In my tools directory, I noticed a txt file (adb_has_moved)
Open it and it says:
'The adb tool has moved to platform-tools/
If you don't see this directory in your SDK, launch the SDK and AVD Manager (execute the android tool) and install "Android SDK Platform-tools"
Please also update your PATH environment variable to include the platform-tools/ directory, so you can execute adb from any location.'
So I open Android SDK and AVD Manager, it immediately starts to look for updates and gives me this error message:
'Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason: Connection timed out: connect'
What now?
Even tried open Manager from cmd (using android.bat from tools directory), didn't immediately look for updates but eventually it did & gave same error!
HELP?
herb1 said:
In my tools directory, I noticed a txt file (adb_has_moved)
Open it and it says:
'The adb tool has moved to platform-tools/
If you don't see this directory in your SDK, launch the SDK and AVD Manager (execute the android tool) and install "Android SDK Platform-tools"
Please also update your PATH environment variable to include the platform-tools/ directory, so you can execute adb from any location.'
So I open Android SDK and AVD Manager, it immediately starts to look for updates and gives me this error message:
'Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason: Connection timed out: connect'
What now?
Even tried open Manager from cmd (using android.bat from tools directory), didn't immediately look for updates but eventually it did & gave same error!
HELP?
Click to expand...
Click to collapse
It should update. Don't you have some firewall that precludes it to download updates ?
Edit: If you are using windows don't install Android SDK into the Program Files directory. You need special permissions to modify that folder so that's why you might have problems in the future. What you have reported first is a connection problem which has to be firewall related.
paul.c said:
It should update. Don't you have some firewall that precludes it to download updates ?
Click to expand...
Click to collapse
I think so (using work's PC)...any other way, maybe using my HTC?
herb1 said:
I think so (using work's PC)...any other way, maybe using my HTC?
Click to expand...
Click to collapse
Disable the firewall.
paul.c said:
Disable the firewall.
Click to expand...
Click to collapse
managed to download it via wireless on my HTC...thanks pal

[Q] SDK Not working (Can't find Java?)

Well I'm obviously doing well because I can't even get the SDK to work...
This is what I've done:
Went to the website, downloaded the executable version of the SDK.
Went to install it, was told I needed the Java JDK.
Installed Java JDK.
Installed the SDK and a command prompt opens for all of two seconds, closes and leaves me going... whatttt!??!
So I did a search, and have tried to do the following (in no particular order):
Step #1: Open up a command prompt.
Step #2: Use the cd command to move to wherever you installed your Android SDK.
Step #3: Run tools\android.
I get the following message:
'SearchForJava' is not recognized as an internal or external command, operable program or batch file.
WARNING: Java not found. In order to properly use the Android Developer Tools, you need a suitable version of Java JDK installed on your system.
We recommend that you install the JDK version of Java SE, available here:
http://www. oracle.com/techwork/java.javase/downloads
You can find the complete Android SDK requirements here:
http://developer.android.com/sdk/requirements.html.
So I don't really understand why it says it can't find it if I obviously have it installed and it wouldn't have let me install the SDK without verifying I did indeed have the JDK.
I did more searching and then decided to do this:
edit \tools\android.bat
find "%jar_path%;%swt_path%\swt.jar"
modify to "%tools_dir%\%jar_path%;%tools_dir%\%swt_path%\swt.jar"
save, and run SDK Manager.exe again
Again, nothing.
I then tried resetting the path.
Select Computer from the Start menu
Choose System Properties from the context menu
Click Advanced system settings > Advanced tab
Click on Environment Variables, under System Variables, find PATH, and click on it.
In the Edit windows, modify PATH
I deleted everything that was there and put the path to the java files(?) C:\program files\java\jdk1.7.0_02\bin
I tried running the SDK again and got nothing.
I then downloaded the zip version of the SDK tried all of the above and didn't work.
I then read somewhere that if you just make a new user account and install the SDK exe file that it would work, but it didn't.
So anyone have any idea about what I can do? I'm so lost and frustrated! Would it help if I installed Eclipse? (is it a way to bypass Java? it's driving me nuts)
Thank you so much!
So
Well... now I have a different error haha. Here's what I did:
I uninstalled everything, the java jdk and jre and all of that. I uninstalled the Android SDK.
I reinstalled the Java programs, reinstalled Android SDK, that didn't work
I then went and modified the path again, deleted all of the other stuff and put C:\program files\java\jdk1.7.0_02\bin
That didn't work.
I then went and edited the android.bat (as above) that didn't work, I then did a cd in the command prompt, typed: tools/android and got this error message:
Error: Unable to access jarfile lib\achrquery.jar
'xcopy' is not recognized as an internal or externam command, operable program or batch file.
Error: SWT folder ' ' does not exist.
Please set Android_SWT to point to the folder containing swt.jar for your platform
So now what?
Er
Did you put a ; before and after the java path?
I did that now, but still the same error
I then went and modified the path again, deleted all of the other stuff and put C:\program files\java\jdk1.7.0_02\bin
Click to expand...
Click to collapse
This is bad, now your comp does not find basic programs like xcopy so it sure won't work, get back your PATH variable as it was, then at the add a";" and the path to your jdk/bin folder, it should work. if not post again and we'll try to help.
I went to my other computer, copied what I had in the path, put it on this computer and this is the error message:
Error: Unable to access jarfile lib\archquery.jar
Invalid number of parameters
ERROR: SWT folder ';C:\Program Files\Android\tools\lib\x86_64;' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.
I've also downloaded a new swt.jar in case the one I had was corrupt or something
Well, I managed to get the SDK to work.. I installed it on another computer 0_o hahaha
I'll try and figure out what went wrong if anyone's interested but yeah.. that was a pain!

Question Solved: Can not access fastboot device driver not found and I can not locate any either

So I have the drivers
usb_driver_r13-windows: from google they do not work and as far as I can see they are the latest
They are from 7/23/2020 but they are the latest Google provides.
I have installed OP9P_Default_Drivers, do not help at all either
I also downloaded: https://oneplusdriver.com/download-oneplus-driver, again no help in fastboot
Now they are in C:\Program Files (x86)\OnePlus USB Drivers
however trying to point here to use this driver fails "The hash for the file is not porsent ..." and it refuses to use this driver.
tool_amd64, can not install thr driver either as it also fails to install, the lost is clean:
Code:
OnePlus USB Drivers install...
Get system info ...
CPU architecture: AMD64
Operater System: Windows 8
Install drivers command:
tool_amd64.exe /PATH . /LM /SW
mtp & rndis drivers not need install.
set adb environment...
find ANDROID HOME = C:\Android
ANDROID HOME already exist!
adb path already exist in path!
check system environment...
system32 is not in USER path
system32 path already exist in path!
install drivers success!
I also tried: L2 drivers which should not and do not work.
Simply put I'm unable to locate any driver that supports "USB\VID_18D1&PID_D00D"
I'm un sure how anyone is doing anything in fastboot, if there is not a driver that supports this ID, but based on multiple Google searching I'm not locating any others that I'd even trust to try, or that would make any sense to try.
So at this point I'm completely blocked, from unlocking the phone (step 0 for me), as there is no driver that is supported for fastboot and the One Plus 9 Pro and Windows 10 20H2 with the latest patches from 05/2021, as something seems very wrong with the one plus driver.
Very unhappy right now with One Plus!
ERIC
Win 10 right...I had fastboot issues and found a thread eventually that walked me through booting win 10 in a way that gave me the option to disable security checks on driver's, and then I was able to install the OP driver I needed and voila fastboot could see my device.
sbcdave said:
Win 10 right...I had fastboot issues and found a thread eventually that walked me through booting win 10 in a way that gave me the option to disable security checks on driver's, and then I was able to install the OP driver I needed and voila fastboot could see my device.
Click to expand...
Click to collapse
That is not a safe thing to do, it is on One Plus to provide a valid signed driver, right now I'm using a Linux VM as fastboot and linux = however oneplus needs a valid WIndows 10 driver that is signed
egandt said:
So I have the drivers
usb_driver_r13-windows: from google they do not work and as far as I can see they are the latest
They are from 7/23/2020 but they are the latest Google provides.
I have installed OP9P_Default_Drivers, do not help at all either
I also downloaded: https://oneplusdriver.com/download-oneplus-driver, again no help in fastboot
Now they are in C:\Program Files (x86)\OnePlus USB Drivers
however trying to point here to use this driver fails "The hash for the file is not porsent ..." and it refuses to use this driver.
tool_amd64, can not install thr driver either as it also fails to install, the lost is clean:
Code:
OnePlus USB Drivers install...
Get system info ...
CPU architecture: AMD64
Operater System: Windows 8
Install drivers command:
tool_amd64.exe /PATH . /LM /SW
mtp & rndis drivers not need install.
set adb environment...
find ANDROID HOME = C:\Android
ANDROID HOME already exist!
adb path already exist in path!
check system environment...
system32 is not in USER path
system32 path already exist in path!
install drivers success!
I also tried: L2 drivers which should not and do not work.
Simply put I'm unable to locate any driver that supports "USB\VID_18D1&PID_D00D"
I'm un sure how anyone is doing anything in fastboot, if there is not a driver that supports this ID, but based on multiple Google searching I'm not locating any others that I'd even trust to try, or that would make any sense to try.
So at this point I'm completely blocked, from unlocking the phone (step 0 for me), as there is no driver that is supported for fastboot and the One Plus 9 Pro and Windows 10 20H2 with the latest patches from 05/2021, as something seems very wrong with the one plus driver.
Very unhappy right now with One Plus!
ERIC
Click to expand...
Click to collapse
Check your windows updates section, I was having the same issue. Was available through there for me, no problems after that.
egandt said:
That is not a safe thing to do, it is on One Plus to provide a valid signed driver, right now I'm using a Linux VM as fastboot and linux = however oneplus needs a valid WIndows 10 driver that is signed
Click to expand...
Click to collapse
I'm not sure this is valid. Would Windows 10 accept the driver if it was signed with LetsEncrypt certs... I doubt it.
Go to Windows Update -> Optional Updates.
You'll find the fastboot and adb drivers there.
If you're using a USB dock, try putting the USB cable directly into your PC instead, I've seen that fix problems where the phone isn't being seen
Reli4nth said:
Go to Windows Update -> Optional Updates.
Click to expand...
Click to collapse
worked so much easier than messing with external questionable drivers.
We have to disable the signature checks on windows. Run CMD as Administrator and paste the below codes and Hit Enter. Reboot your PC after doing this.
bcdedit.exe -set loadoptions DISABLE_INTEGRITY_CHECKS
bcdedit.exe -set TESTSIGNING ON
Now try to install the one plus drivers again, and it should be done in 5 mins. After this windows will identify your device in fastboot mode.
Reli4nth said:
Go to Windows Update -> Optional Updates.
You'll find the fastboot and adb drivers there.
Click to expand...
Click to collapse
hey, where did you find the fastboot and adb drivers? When i enter "optional updates" in the search bar i can only see a very limited number of updates.
thx
EDIT: found out my problem was the missing driver. The Driver CD showed no files so i installed a driver from here: https://www.technobuzz.net/oneplus-6-usb-drivers/
Deavtivated the signature with the help of this
bcdedit.exe -set loadoptions DISABLE_INTEGRITY_CHECKS
bcdedit.exe -set TESTSIGNING ON
Now i can find my phone in fastboot.
My only hope is that the installed driver was legit. Couldnt find an official version.. :S
Yikes....forgot there was a time I didn't know this.
Direct from Google (no "questionable about 'em, they are Google's own tools/drivers) -
ADB and Fastboot:
SDK Tools release notes | Android Studio | Android Developers
Learn about the Android SDK Tools component for the Android SDK.
developer.android.com
(Set PATH in Envorinment Variables to whatever folder you extract these to in order to have access to adb/fastboot in any folder using command-prompt.)
USB-Drivers (ADB fastboot):
Get the Google USB Driver | Android Studio | Android Developers
The Google USB Driver is required to perform adb debugging on Windows with Google devices.
developer.android.com
(extract, right-click on android_winusb.inf file and select "install", go to Device Manager, right click "Android" device and update driver - choose "pick from list", Android, Bootloader - for fastboot/bootloader, obviously)
Download the SDK tools and update the ADB/Fasboot folder with every release of Android to try and keep it up to date. The USB drivers have worked for every device I have had to use them on.

Categories

Resources