[GUIDE][HOW TO]ADB & Fastboot From Anywhere in Command Prompt - Xperia Z General

Hello, this a quick guide on how to get adb and fastboot working from anywhere in command promt. You might ask why this is useful? Well if you set your system up like this, you can use adb and fastboot from practically anywhere. This is very convenient and saves you having to navigate to your SDK every time you want to do something with your phone. So let's get started!
Prerequisites:
Windows 7 or Windows 8
Java JDK downloaded and installed.
Android SDK, preferred location:
Code:
C:\AndroidSDK
See note
First, right click My Computer and select Properties. From there, select Advanced system settings.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Then, select Environment Variables
You will now get a box that looks like this. Select edit, here is the important part.
Do NOT delete any of the text in the field, simply add:
Code:
C:\AndroidSDK\platform-tools;C:\AndroidSDK\tools
to the end of the text field, like this
Note: This assumes that your Android SDK, tools and platform-tools folders are setup in the same directory as mine, if not please modify the path accordingly
After you've edited the text field, press okay, then okay again and voila. Finished!
From now on, whenever you need to use adb or fastboot simply open command prompt and type away
If you have any comments or suggestions, please feel free to leave a reply below

Related

[Q] [How to] How to translate Android application on You'r language

Hi all.
Immediately I apologize for my English, writing for the first time in 7 years)
If the moderators correcting mistakes, I'm not offended.
Maybe what I'll write to you is not new, but maybe useful to someone.
This is user manual for translation Android software into Your's native language.
Heare original of this instruction on russian
Download and install
Check My computer->Properties->additional->environment variables->Path
Is way to java\bin heare? If no, add it.
this and this download and unpack to c:\windows
run console
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
in command line
apktool d <way to *.apk> <way to dir>
download
http://artfulbits.com/Android/Localizer.aspx
open whith it <way to dir>
press + and add 2 letter code for you language
Translate all files from right spoiler
Delete not used files
When done in command line
apktool b <way to dir>
it create folders dist and build we need *.apk file in next steps in dist folder
in first time you need a key
to generate it in command line
keytool -genkey -alias <YourAliasName> -keyalg RSA -validity <NumberDays> -keystore <YourKeystoreFilename>
And finaly in command line
jarsigner <way to *.apk from dist filder> <YourAliasName>
Enter you password on keystore. And be happy.

[GUIDE]Change APK icon in Windows

I was bored of .apk files either having Winrar icons or simply being a blank slate. This quick little guide changes said icons to anything of your choice.
1) Download FiletypesMan - 32bit, 64bit.
2) Extract this download to another folder and launch FileTypesMan:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3) Download your preferred icon (.ico files only) which will represent all .apk files. I personally use the following:
.ico version download
4) Note: A majority of the images you will find will be .png, I used the following website to convert it quickly: http://www.convertico.com/
5) While in FileTypesMan go to Edit - New File Extension or press CTRL + T:
6) Enter the following, making sure to choose your required icon and press OK:
7) Verify apk entry, the quickest way being CTRL + F and typing apk:
8) The effect should be immediate and can be tested by viewing any apk file:
Enjoy!
Awesome post, thanks a lot!
Alternatively:
(on XP)
Open an explorer window
go to menu: tools
menu: folder options
tab: file types
look for the .apk file type
click: advanced button
click: change icon button
...et voila!
Thanx
very useful. Thank you

[Q] How to do?

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
how to Modify the menu key,the home key????I want to Modify the icon
That depends on what you want to do. If you want to make something up yourself, you need to install adb (google how to install adb on whatever OS you are on). Then, once you have adb going, type in the following commands in command prompt (after your phone is hooked up to your computer)
adb.exe
adb pull /system/framework/framework-res c:\users\[your computer's name]\desktop
that will copy your framework onto your desktop.
from there, open it with winrar, or (preferably) 7zip and go to the res/assets folder.
copy the 4 icons to your desktop, modify, and then drag them back into 7zip. it'll ask you if you want to overwrite (or something like that). Yes.
Then, in command prompt type in
adb push c:\users\[your computer name]\desktop\framework-res /system/framework
after it pushes, type in
adb reboot
before you do any of this, make a nandroid backup.
The other option is to find Trailblazer's themer, make your icons and put them in the appropriate folder in that themer, make a copy of your framework-res in your sd card, mount your sd card to your computer and copy it over, then run it through the themer. You still have to have adb installed, and I'd still make a nandroid, before you do anything.
http://forum.xda-developers.com/showthread.php?t=1250684
[12/12/11][Universal!][Windows] Trailblazer101's Custom Framework Maker v4.2
-Sent From Your Mother's Bedroom

Guide | ADB and Fastboot | Latest

ADB and Fastboot installation guide for Windows | system wide
100% working on all windows​
Download latest ADB and Fastboot drivers, extract and replace to your existing adb and fastboot folder.
If you are installing adb and fastboot for the 1st time, follow the next steps:
1. Create a folder in C:\ , give it a desired name, (for me the adb.exe it's in: "C:\platform-tools")
2. Go to Control Panel -> System ->Advanced System Settings -> Advanced Tab -> Environmental Variables
3. Add the adb path just like in the screenshots below.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Below, under "System variables" scroll down to the variable labeled "Path" and choose Edit and add the path of the adb.exe there too
Ok. Now you are ready to use adb and fastboot , everywhere you are. You don't have to 'cd' to the adb path anymore.
**If you ever get a bad alloc error or falling to an older adb version message in Windows 10 x64, just reboot your phone to recovery and try again.
How do i get the drvers? In fastboot it shows up as an unknown device
It is not the first time i have installed them on my computer (Windows 10),anyway , it is not as simple as you said .
aceten100 said:
How do i get the drvers? In fastboot it shows up as an unknown device
Click to expand...
Click to collapse
Having fastboot installed on the PC should be enough. You sure the phone is booted to bootloader-fastboot mode (which is mandatory)? What is the response to the command: fastboot devices

bootloader unlock from a Mac (Sierra and prolly others)

This assumes you already have the latest version adb/fastboot installed on your Mac.
There's plenty of info here and else for that.
You are responsible for unlocking the bootloader.
Unplug all other USB devices. Most important step. It seems the HTC sometimes wants to own the USB.
Plug U11 into USB.
Toggle USB connection on U11 to File Transfer.
Launch Terminal (utilities) on your Mac.
enter "adb devices” in Terminal - should get serial back in Terminal window.
In Terminal - “adb reboot bootloader" .
“fastboot devices” should bring serial to Terminal window, and this screen on the U11.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Reboot to download mode by hand using the up/down volume keys and power to enter/choose.
Now in download mode enter “fastboot oem get_identifier_token" in Terminal.
Option click to mark: from <<<<Identifier Token Start>>>>
to
<<<<<Identifier Token End>>>>>
DO NOT highlight “INFO on any line.
The purpose of the option key is to be able to highlight and copy just what is needed.
Copy.
Now you can paste the "identifier_token" into the space of the htcdev.com page.
This will cause an email to be sent to you that will have an attachment of Unlock_code.bin , as well as a further link for the next couple steps to complete the Unlock process.
This Unlock_code.bin has to be dropped into the same folder as you have adb/fastboot in.
I use a subfolder of Downloads. In Terminal cd /Downloads/Android. Whatever works for you.

Categories

Resources