[How 2] Custom Bootanimation - Droid Incredible Themes and Apps

You will need to download the android-sdk located www.android.com
I do not take credit for any of this at all, I discovered this on the www.androidforums.com This may help a few of you.
This tutorial should help you get your own custom bootanimation on your Droid incredible. Here is a "PREVIEW" http://www.youtube.com/watch?v=l9erbdb7sOo&feature=player_embedded
Click to expand...
Click to collapse
1st)Go to http://www.flexjunk.com/2010/05/01/installing-htc-incredible-android-sd-drivers/ This will help you setup your Droid Incredible to be recognized on your computer. After do this step it will tell you to reboot your computer.
(If your droid is is already setup to be recognized skip step 1)
2nd)Run terminal or (command prompt), point it to your (<sdk>directory)
3rd)With you Droid Incredible-
: go to settings, applications, development, *(Check) USB Debugging*
: plug in your Incredible to the usb, select "disk drive" option
: inside terminal (or command prompt) run
Code:
adb devices
if it doesn't not recognize your device then you did something wrong.
(tips- reboot computer, make sure adb debugging is checked, reboot phone)
4th)Download any custom bootanimation.zip you want and place it inside your 'tools folder' located in your SDK
(you can find many custom bootanimations inside many custom roms <located inside /system/media>)
5th)Now type
Code:
adb push bootanimation.zip /data/local
: If you also want audio to play with your boot animation find the mp3 audio file you want and type this
Code:
adb push android_audio.mp3 /data/local
: If the command worked, you should see a prompt with "bootanimation.zip filesize 4,470 kB" or some file size (yours will be different)
6th)Now type
Code:
adb shell reboot
Please Note: not any audio or bootanimation.zip will work-no one is responsible for your actions. Hope this helps enjoy!!!
*ID*

If I missed any steps please post your problems and we will try our best to help you.

Thanks for this. Will update on how well it works when i finish making my animation.

not sure what im doing wrong i have androidsdk saved as c:androidsdk. but when i run cmd i get this
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Chris>androidsdk
'androidsdk' is not recognized as an internal or external command,
operable program or batch file.

IncredibleDoes said:
If I missed any steps please post your problems and we will try our best to help you.
Click to expand...
Click to collapse
This is very cool ID, I was j/w if you had any tutorial/example boot animations... I will check out the ones that come with the SDK, that may be enough to learn from (I'm very interested in creating my own, not just using other people's work without understanding it) for the Incredible. If there is a tutorial in the SDK, feel free to say "RTFM", lol, my phone is 15 miles away but I won't be able to get it until next week =/, but I want to be prepped to go at it before then.

thanks for this, been wanting to put the nexus boot animation on my phone for awile now

I cannot get any mp3 to sound during boot up. Anyone have any ideas. I figured it was because of the size of the mp3 but I even tried a small one and still no luck.

More than likely you'll need an ogg file for sound. I'm about to change mine so I'll let you know.
-------------------------------------
Sent via the XDA Tapatalk App

android_audio.mp3 works as the file name
edit: sorry for the double post

moosc said:
not sure what im doing wrong i have androidsdk saved as c:androidsdk. but when i run cmd i get this
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Chris>androidsdk
'androidsdk' is not recognized as an internal or external command,
operable program or batch file.
Click to expand...
Click to collapse
your missing a very important command
cd foldername/tools then hit enter (make sure that your files "bootanimation.zip" and "android_audio.mp3" are in the tools folder or this won't work it will you give you an error)
then type
adb devices
it will list whats connected
then type
adb push bootanimation.zip data/local
hit enter
adb push android_audio.mp3 data/local
hit enter
your done!
restart your phone and enjoy your new boot screen
here's a how to video of how i figured mine out
http://www.youtube.com/watch?v=WIBk1-NB_ZM&feature=player_embedded
and here's my result! http://www.youtube.com/watch?v=9SnsXKFvGQs i had some help with the audio syncing, Santod from PPC helped with that part since it was off by a few seconds
Note: this is NOT my boot animation, it was made by a member on Phandroid forums, i'm sharing the files i used to get my result nothing more.
DO NOT unzip the bootanimation.zip to put onto your phone
UNZIP the android_audio.zip to the tools folder where you need to have both files stored to do the file push to your phone
Edit: Just to clear up some confusion, make sure the following files are in your Tools folder for the SDK
bootanimation.zip
android_audio.mp3 (be sure to unzip the zip file to the same directory as the bootanimation.zip file or this will not transfer)

haha, that's awesome m8. Now I am really inspired to create my own Bootanimation from scratch, but first I am going to work on something a little easier (working on 2 different live wallpapers atm... might put them up on the marketplace if they turn out as good as I envision them in my head... anything I make for the Android platform will of course be free to XDA Senior Members/Moderators/etc).

sorry for the noob question but how do i remove the boot sound after I installed it via ADB in the instructions? i really dislike the one i put on...
thanks for any help

you can just remove it from the the directory, rm "file name" But i am still not able to get my sound to work during boot up. Any one have this problem

dincodee said:
you can just remove it from the the directory, rm "file name" But i am still not able to get my sound to work during boot up. Any one have this problem
Click to expand...
Click to collapse
Dincodee..
Make sure you unzip the audio file and drop only the .mp3 into your sdk tools folder then push the mp3. Worked for me this way.
parkson...
I believe you can just push another mp3 named the same and it will write over the existing. If I'm wrong someone correct me pls.

is there any way to do this via terminal emulator or astro on the phone itself? ADB does not work for me

BootAni Loaded - Now What?
Hi there - so I get the whole process - piece of cake. However, Where does this data now reside on the phone? Using AndExplorer to view the directory structure, but can't seem to locate where the zip file contents are pushed to, or the *.mp3 file is residing. What if I'd like to revert to the old (and boring) Verizon Wireless boot ani?
Any help is greatly appreciated!
Also, kudos to all who posted this.
~Justin

BootAni Loaded - Now What?
Hi there - so I get the whole process - piece of cake. However, Where does this data now reside on the phone? Using AndExplorer to view the directory structure, but can't seem to locate where the zip file contents are pushed to, or the *.mp3 file is residing. What if I'd like to revert to the old (and boring) Verizon Wireless boot ani?
Any help is greatly appreciated!
Also, kudos to all who posted this.
~Justin

NCX Designs said:
your missing a very important command
cd foldername/tools then hit enter (make sure that your files "bootanimation.zip" and "android_audio.mp3" are in the tools folder or this won't work it will you give you an error)
then type
adb devices
it will list whats connected
then type
adb push bootanimation.zip data/local
hit enter
adb push android_audio.mp3 data/local
hit enter
your done!
restart your phone and enjoy your new boot screen
Works Great!
thanks for the instructions team!
Click to expand...
Click to collapse

i followed the direction directly but when i reboot i get no boot animation at all, just a black screen until my phone actually boots to the homescreen. whats going on?

Thanks this really helped a lot. Also just resently leaded adb so this was a great start for me o learn
Sent from my Droid Incredible

Related

HTC Navigation.apk

anyone have this please id like to have it ...... and how do i remove the other nav please ( like to save it incase i dont like the HTC NAV )
I don't have the .apk for HTC Navigation, but when/if you do get it, just to to system/app and rename your current nav application (i.e. navigation.apk.old) if you don't want it to show up in your app list, but don't want to uninstall.
http://forum.xda-developers.com/showthread.php?t=700448 At the bottom of post #1 Flip was nice enough to zip all the apks into one zip file. Hope that helps.
Stunna4life888 said:
http://forum.xda-developers.com/showthread.php?t=700448 At the bottom of post #1 Flip was nice enough to zip all the apks into one zip file. Hope that helps.
Click to expand...
Click to collapse
yea i pulled that from the SDcard but it wont install i might have to push it
Sporkman said:
yea i pulled that from the SDcard but it wont install i might have to push it
Click to expand...
Click to collapse
Thats what I had to do, know how do that?
Stunna4life888 said:
Thats what I had to do, know how do that?
Click to expand...
Click to collapse
hmm, could you kindly explain what "pushing" is, and how to do it?
my android pushing and pulling files.
for those of you new to android and adb.
ok here is the real answer
pulled directly from android developer tools.
----------------------------------------------------------------------
Copying Files to or from an Emulator/Device Instance
You can use the adb commands pull and push to copy files to and from an emulator/device instance's data file. Unlike the install command, which only copies an .apk file to a specific location, the pull and push commands let you copy arbitrary directories and files to any location in an emulator/device instance.
To copy a file or directory (recursively) from the emulator or device, use
adb pull <remote> <local>To copy a file or directory (recursively) to the emulator or device, use
adb push <local> <remote>In the commands, <local> and <remote> refer to the paths to the target files/directory on your development machine (local) and on the emulator/device instance (remote).
Here's an example:
adb push foo.txt /sdcard/foo.txt
How to push the file via your sd card
So for an example on pushing a file from a computer to phone make sure you are in recovery mode. And assuming you have the apk somewhere on your sd card. Open command prompt and navigate to your sdk-tools to use adb. THIS EXAMPLE IS STRAIGHT FROM FRESH THATS WHY I SAYS ..../FRESH-REMOVED-APKS/. That is just the location on your sd card so this is where you need to type where the file is. WHATEVERAPP.apk thats what the apk name is. Make sure that it is the same spelling and spacing/no spacing as well. notice the space after .apk as well. Now you are ready simply type the following commands (enter at the end of each line.) Last line is simply where your file is on your sdcard then the file name as it appears in the file on your sd card. Hope this helps!
adb shell mount /sdcard
adb shell mount /system
adb shell
cp /sdcard/fresh-removed-apks/WHATEVERAPP.apk /system/app

[TOOL] sbf Flashing in Linux for Windows with Ubuntu Live CD

Here's a custom Ubuntu LiveCD made with ADB and the Linux sbf_flash script for sbf flashing your Droid 2 if you've failed in Windows with RSDlite or just want to have the convenience of flashing with only two Linux commands.
PLEASE READ ENTIRE POST BEFORE FLASHING ANYTHING!
If you want to follow this tutorial on your existing linux setup the sbf_flash file can be found on Google
READ OR RISK BRICK If you don't have the 2.3.2 update then you can sbf with EITHER the 2.2.0 (stock) or the 2.3.2(OTA update) but only if you don't have the update yet. Once you have the 2.3.2 update (through sbf or update.zip) you can ONLY sbf with the 2.3.2.sbf
Please have your phone charged up if not completely near complete or risk dealing with the consequences
Thanks Androidnite
1. Download 2.2.0.sbf file (for Droid 2 without 2.3.2 update only) or 2.3.20 HERE (for Droid 2's that have the 2.3.20 update) and put it on a flash drive. Yes even if you have one that you used with RSDlite.(this way we know you have the right one and it's all there)
2. Download the LiveCD ISO via torrent file attached below and unzip it and open the file with your choice of torrent program then BURN the downloaded file to a blank CD with your favorite burning software(I like DVD Decrypter or Imgburn). I recommend no faster than 4x in order to prevent burning "coasters".
3. Make sure your computer's BIOS is set to boot from the CD Drive then start your computer with the Disk in the drive.
4. Wait for the language list to pop up select "English". Then select "Try Ubuntu without installing"
5. Take the flash drive you put the .sbf file on and put it in your computer’s USB port and copy it to the same directory as the sbf_flash file. It will be the “Home” folder.
6. Plug your phone in via USB now and turn it off then hold the ‘up’ arrow on the keyboard and power on the phone to go into the bootloader.
NOTE: If your phone is not in operating condition Hold the 'UP' arrow on your keyboard and power on your phone for it to be recognized by your computer by entering the bootloader.
7. Open a command prompt by ‘CTRL+ALT+T’ or Applications>Accessories>Terminal
8. Type the first command then press enter and then do the same with one of the last two commands depending on the sbf you are trying to flash.
For both sbf's
Code:
chmod +x sbf_flash
Then
For the 2.2.0 sbf ONLY*OLD SBF*
Code:
sudo ./sbf_flash DROID2_X6_2.2.20_SHADOW_BP_C_01.09.05P_P2_USERBLD_SECURE.sbf
Or
For 2.3.2 sbf ONLY
Code:
sudo ./sbf_flash VRZ_A955_2.3.20_1FF_01.sbf
NOTE: every space in the .sbf's title should be taken by an underscore "_" and shouldn't contain other spaces or the command will not be recognized because it doesn't follow the command's syntax.
Now your phone should start flashing. Let it go and it should reboot in 20-30 minutes.
That should be it let me know what problems you have.
Boot Loop?
facelessuser said if you get a boot loop after flashing wipe your data and cache in recovery.
Instructions:
1. Pull your Battery.
2. Replace battery and power on while holding down the X key.
3. Wait for the android triangle to load.
4. Press the Search key (the magnifying glass)
5. Use down arrow and navigate to wipe data/factory reset and press OK.
6. Reboot phone.
Click to expand...
Click to collapse
These instructions are by theecho.
Not getting the updated baseband? From BP_C_01.09.05P to BP_C_01.09.07P
NOTE: Be sure to update your baseband before you load a custom ROM as the update needs to see the blur on your phone.(If you root it before updating you might not be rooted afterward I don't know).
After you sbf with the 2.3.20 sbf file above and you don't see and updated baseband then you can use the Update.zip
to update your baseband by:
1. Download the update.zip and put it in the /sdcard/ folder or the root of the sdcard (same thing)
2. Shutdown D2
3. While you hold the 'X' button on the keyboard, turn on the D2
4. You should be in Stock recovery not Clockwork Recovery.
5. Press the 'magnifying glass' (search) button on keyboard to bring the menu up
6. Use the volume buttons to scroll and the Camera button to Select 'apply sdcard:update.zip'
7. Then choose 'reboot system now' and you should have an updated baseband.
Click to expand...
Click to collapse
Thanks for the info Quackers
Thanks:
First, thanks Matt4542 for putting the flashing in Linux tutorial which the commands I used were adapted from.
Next, a thanks to theecho for hosting the files for everybody’s access and making this really easy for me as I am a newbie to file hosting.
Last, but not least the inspiration for the custom Ubuntu ISO and help while making it...shad0wf0x from the XDA HTC Aria section(s) needs a thank you as well.
Please keep issues on this thread to allow faster responses.
Even if you used the RSDlite method by Darkonion first. RSDlite related posts should go there and Ubuntu method posts stay here.
Thanks and may your Droid 2 live on!
This sounds convenient. I am going to add this to the information directory.
I just want to say Thank you from the bottom of my heart for un-bricking my Droid 2 with the Ubunta Live CD program you created. I truly thought my phone was dead! I would very much like to send a donation your way for all the hard work you put into this. Please let me know by PM on how I can send the donation. Again, Thank you Thank you Thank you!!!!
Sent from my DROID2 using XDA App
lol no problem but i just enabled you to get to the flashing it was matt4542 and his linux tutorial that really fixed your phone....but if you really want to donate just head to the site where the files are hosted http://Droid2files.com and click on the donate button under my pic (yes that's what I really look like lol).
I thank you for wanting to thank me and for wanting to contribute to my well being!
p.s. think about thanking matt4542 and TheEcho for hosting the files (for FREE) and shad0wf0x for inspiring the LiveCD.
newk8600 said:
lol no problem but i just enabled you to get to the flashing it was matt4542 and his linux tutorial that really fixed your phone....but if you really want to donate just head to the site where the files are hosted http://Droid2files.com and click on the donate button under my pic (yes that's what I really look like lol).
I thank you for wanting to thank me and for wanting to contribute to my well being!
p.s. think about thanking matt4542 and TheEcho for hosting the files (for FREE) and shad0wf0x for inspiring the LiveCD.
Click to expand...
Click to collapse
Okay, donation just sent to you and TheEcho!
Now I just need a way to send Matt4542 and shad0wf0x their donation
Well Matt4542's donate link is here and I'm checking with shad0wf0x about his.
And thanks again for your donation(s)!
Got Ubuntu installed - files transferred to "home"/ubuntu directory - phone connected in bootloader - first chmod flash command didn't seem to do anything (returned to $ prompt), 2nd sbf flash gives command not found error - what am I doing wrong?
Jacklad said:
Got Ubuntu installed - files transferred to "home"/ubuntu directory - phone connected in bootloader - first chmod flash command didn't seem to do anything (returned to $ prompt), 2nd sbf flash gives command not found error - what am I doing wrong?
Click to expand...
Click to collapse
Click on the browser icon and navigate to this page. Then try using the copy/paste feature rather than typing it in yourself.
Sent from my DROID2 using XDA App
newk8600 said:
Well Matt4542's donate link is here and I'm checking with shad0wf0x about his.
And thanks again for your donation(s)!
Click to expand...
Click to collapse
You are more than welcome!
Matt's donation has been made, and patiently waiting to make donation to shad0wf0x
Jacklad said:
chmod flash command didn't seem to do anything (returned to $ prompt), 2nd sbf flash gives command not found error - what am I doing wrong?
Click to expand...
Click to collapse
The first command changes permissions (chmod) for 'sbf_flash' giving it the ability to execute (-x) so you won't see anything unless you change directory (cd) to the file and then list it with it's permissions with ('ls -l' both being lowercase L's)
For the second one can you tell me which command it can't find.
Is it troubled with 'sudo' (do with super user priveleges) or with sbf_flash. You might not have typed it in correctly. Remember the space between 'sudo' and './'
Sent from my DROID2 using XDA App
Terri M said:
You are more than welcome!
Matt's donation has been made, and patiently waiting to make donation to shad0wf0x
Click to expand...
Click to collapse
No donation necessary, happy to have helped, if you really want to donate to somebody, donate to the EFF (http://www.eff.org/).
I agree with shad0wf0x the EFF is helping with litigation on behalf of the Yes Men. If you don't know who they are I'd wiki them. They do some pretty amazing things.
Sorry I got off topic. lol
Jacklad said:
Got Ubuntu installed - files transferred to "home"/ubuntu directory - phone connected in bootloader - first chmod flash command didn't seem to do anything (returned to $ prompt), 2nd sbf flash gives command not found error - what am I doing wrong?
Click to expand...
Click to collapse
Alright, I'm having the same problem. I have bootloader up and the files transferred, here is what i typed in the terminal and what it gave me:
[email protected]:~$ chmod +x sbf_flash
[email protected]:~$ sudo ./sbf_flashDROID2_X6_2.2.20_SHADOW_BP_C_01.09.05P_P2 _USERBLD_ SECURE.sbf
sudo: ./sbf_flashDROID2_X6_2.2.20_SHADOW_BP_C_01.09.05P_P2: command not found
[email protected]:~$
I copied and pasted it directly from the post, so I don't know what is going wrong here. Please help.
Sudo ./sbf_flash droid2...... The problem is the lavk of a space netween sbf_glash and the filename
Sent from my DROID2 using XDA App
zibrah3ed said:
Sudo ./sbf_flash droid2...... The problem is the lavk of a space netween sbf_glash and the filename
Sent from my DROID2 using XDA App
Click to expand...
Click to collapse
Failed again, but in a new way.
[email protected]:~$ chmod +x sbf_flash
[email protected]:~$ sudo ./sbf_flash DROID2_X6_2.2.20_SHADOW_BP_C_01.09.05P_P2 _USERBLD_ SECURE.sbf
SBF FLASH 1.08 (mbm)
DROID2_X6_2.2.20_SHADOW_BP_C_01.09.05P_P2: No such file or directory
!! failed
im guessing that the file in the home folder has a slightly different name with spaces n stuff? I know my name doesnt have the spaces around the _USERBLD_ would that mess it up?
im guessing that the file in the home folder has a slightly different name with spaces n stuff? I know my name doesnt have the spaces around the _USERBLD_ would that mess it up?
Click to expand...
Click to collapse
Yes if the file name isn't exaclty the same it will show an error. Go to the file and right click it and select the filename and copy it. Then put it in place of the filename that registered the error. I'll check into the filename problem.
Sent from my DROID2 using XDA App
Sweet! It's finally started flashing. Hopefully it won't run into anymore weird things. Thanks a ton for the help!!
mgalceran said:
Thanks a ton for the help!!
Click to expand...
Click to collapse
No problem thanks for pointing out the name difference.
Sent from my DROID2 using XDA App
trying to unbrick my cousin's droid 2...i followed the directions carefully and I keep getting "waiting for phone" message in terminal, but I already have the phone plugged in and it is in bootloader mode, why won't it detect?
Thanks a lot for the help! My phone was doing the boot loop so I followed your guide. Now everything is just like it was when I got the phone. When everything was done and the computer said the phone was rebooting I still had the boot loop issue. I then saw where facelessuser said you have to clear the cache, so I did and she booted up normally.
Something funny to note, in the terminal it said Droid X found, I thought that would be an issue but everything worked fine.
Thanks again, you saved me!

GUIDES & FAQs [Android]: ADB Workshop by Adrynalyne and Guide by Captainkrtek

DO NOT POST IN THIS THREAD BEFORE READING THE WHOLE POST
PLEASE ADD GUIDES TO COMMON ISSUES YOURSELVES
To my recollection, the previous WM Guides thread was successful.. so we'll be moving on to android as well - from beginner to pro.
I hope this thread will provide answers to a decent percentage of your questions.
Please hold until guide collecting is finished..
In the meanwhile you are ALL invited to send me links or full guides to add to this thread.. remember, we are all about sharing.
COMING SOON! (in the meanwhile, you've got a great battery life guide at http://forum.xda-developers.com/showthread.php?t=471521 - be sure to thank BruceElliot for it!)
also, if you decide to post a guide, please keep the guide as neat as possible, with a title containing the LEVEL ([BEGINNER], [INTERMEDIATE], [PRO]) and the commonly searched words so that people who look for it can find it easily. (if you can, use the same color (dark orange) and same size (4) and Bold.. for the main title.. tho that's not a must )
post #2. [BEGINNERS+INTERMEDIATE] Replacing System Files using Android Commander
post #3. [EVERYONE] ADB Workshop by Adrynalyne and Guide by Captainkrtek
post #4. [QUICK FAQ's] Common QnA's for beginners by Timmymarsh (work in progress)
[BEGINNERS] Replacing system files using Android Commander
Replacing system files using Android Commander:
(This post was formally based in the HD2's RTL support thread and revolved around our need to replace frameworks)
so:
1. Download the android SDK from: http://dl.google.com/android/android...08-windows.zip
2. EXTRACT(!!!) the android-sdk-windows to c:\
(make sure you extract the dir - not run the setup from inside the zip file)
3. install Android Commander from http://androidcommander.com
4. Connect your device and make sure it's set to Debugging mode in /settings/applications/development/
5. You might have to set a dir containing your adb.exe file. set it to c:\android-sdk-windows\tools\
6. You will see a Total Commander-like interface. you can then copy the framework.jar file to the correct directory (there's no difference between SD android builds and androids in ROM - the system dir will be shown the same way)
a. Yes, you can replace/delete system files while android is running.
b. (for androids running from SD) Any file copied to /sdcard/android/root/system/X will be copied to /system/X in the system file. The sdcard/android root dir is JUST LIKE your root in ROM androids.
c. Make sure you either created a backup or verified a match in any other way before replacing files like frameworks, zimage, modules, etc.. your android might not boot afterwards (I keep all system.ext2 files backed up so that i can restore them incase i screw something up.)
enjoy
[EVERYONE] ADB Workshop by Adrynalyne and Guide by Captainkrtek
This following guide was rewritten by Captainkrtek, please make sure to thank him for it
Original Post:
(http://forum.xda-developers.com/showthread.php?t=879701)
This workshop was held in #android-learning on irc.freenode.net by XDA Member Adrynalyne. All credit to him for this guide, I simply am taking it and turning it into a guide. Here we go!
You can find the raw IRC log here
Good evening folks, and welcome to my ADB workshop. This is by no means a full explanation on the subject, but more of a crash course to help folks get up to speed, and get more from their devices. There may be some things you already know here, so please be patient and respect those who do not.
Reference Files
http://adrynalyne.us/files/How to install adb.pdf
http://adrynalyne.us/files/Using ADB.pdf
So, lets just start with the basics.
What is ADB?
ADB stands for the android debugging bridge and is used for testing and debugging purposes by developers.
However, we like to get more out of our devices, and its a great way to fix things.
Knowing adb can mean the difference between a paperweight and a working phone.
So, to start with, we will look at installing ADB.
Generally speaking, the Sun/Oracle JDK is required to run all SDK functions.
ADB is but one tool in the SDK arsenal.
So, we begin by downloading and installing the JDK. This can be found here:
https://cds.sun.com/is-bin/[email protected]_Developer
Choose your OS, download and install. I recommend that 64 bit users use the regular x86/32 bit version as well.
Moving ahead, we download the Windows sdk from here:
http://dl.google.com/android/installer_r08-windows.exe
Due to already installing JDK, you won't be stopped by the install process.
Now, if you notice, I installed it to:
C:\android-sdk-windows
I did this because it makes things easier when setting up path variables.
I encourage everyone to do the same, but obviously it is not required.
So, this SDK is handy, but is only good up to 2.2. We want the latest and greatest! (Well I do)
So, we navigate to:
C:\android-sdk-windows\
and we run SDK Manager.exe
If you notice in your PDF file for installing adb, you will notice that you can update, and I made a choice not to include earlier sdk versions.
I won't go into full detail on that, but depending on the version of SDK you have, 8 or 9, it WILL make a difference in using adb.
By default, for version 8 adb.exe resides in C:\android-sdk-windows\tools
By default, for version 9 adb.exe resides in C:\android-sdk-windows\platform-tools
We will assume version 9 in this guide
Really, the SDK is installed and adb is usable right now, but in my humble opinion, its not enough
I like the ability to use adb in ANY directory on my machine.
To do this, we edit Windows's environment variables.
Specifically, the system path.
To do this, we click on start, or the orb (depending on OS), and right click on Computer, left clicking on properties in the menu.
If its windows XP, I believe it brings you into advanced system properties immediatly. Vista and 7 need a second step.
On the left hand side, as you notice I have highlighted in the pdf, left click advanced system settings.
Under advanced tab, we left click environment variables...
There are two boxes here.
We are concerned with system variables, however.
So we scroll down the list and highlight path and click edit.
Ignoring all the extra stuff in here, make sure you are at the end of the line, and type
Code:
;C:\android-sdk-windows\platform-tools
The semicolon allows us to separate it
from the previous path statement.
Click ok all the way out.
We now have ADB setup globally. We can use cmd.exe (I use powershell) and no matter what directory we are in, adb is recognized.
If it is not, make certain you entered the path into system variables, and made no typos.
If you installed to a different location, you will need to adjust the path accordingly.
This concludes the section on installing the Android SDK to use ADB.
This next section will be on using ADB, so please open that pdf now.
Now, this applies to any OS, not just Windows.
Well, with the exception of the USB drivers.
I will not go too much into that, but if you take a look at the PDF, it goes through installing usb drivers for the sdk, and how to download them.
Fiarly straightforward, in that rspect.
Now, to setup our phones to use with the SDK and ADB, we must change some settings.
First, we go to menu softkey, then settings.
We scroll down to Applications and tap it.
Under Development, we will check Enable USB Debugging. Please note the SGS phones are different in this respect.
The USB cable must be unplugged before enabling or disabling this setting.
Once this is done, we are now ready to play with adb
One quick note: If you get device not found/conencted, please reboot your phone. DJ05 has a quirk in it where ADBD randomly crashes on boot.
A reboot will fix this
ADBD= ADB Daemon
Ok, continuing on.
Lets look at installing applications. This is also known as sideloading.
Unlike installing from the SD card, it does not require unknown sources to be enabled.
The command for this is
Code:
adb install packagename
This assumes that you are working from the directory where the file is located.
This will install the application to /data/app.
It will also show sometimes useful errors if install fails.
That is not something you will see from the Android GUI.
Now, a lot of us have probably deleted files with apps like Root Explorer. While this isn't really a bad thing, it leaves behind databases and data for the application removed.
This is where the 0kb applicaiton entries come from.
If you take that application entry name, you can uninstall the extra data via adb.
First we go to the adb shell which logs into the phone.
Code:
adb shell
If we end up with a $, we will want admin rights, in many cases. This is not one of them, I don't beleive.
To get admin rights, you want to type
Code:
su
Look at your phone if this is the first time, it may prompt you to allow access. Else you will get permission denied.
If you are not rooted, this will not work either.
Ok, now that we are logged in, we will type
Code:
pm uninstall packagename
where packagename is the name of the 0kb listing.
Now this seems like a pain in the a** and I agree.
HOWEVER
There will be a time where Manage applications crashes when you try to uninstall it from the phone. In this case, a factory reset, or this method is the only effective way to fix the problem.
Moving on.
How many of us have removed system applications or renamed them? Did you know that you can simply disable them from the system?
Code:
adb shell
su
pm disable appllicationname
This will disable it, and the system will ignore it.
This can be seen as safer than deleting or renaming things, but your mileage may vary.
On the other hand, you can also re-enable these applications.
Code:
adb shell
su
pm enable applicationname
Please note: Not all applications will properly re-enable. I believe a factory reset or reinstall of said application will fix the issue.
Also, application names are absolutely case sensitive.
*nix based Operating Systems see the letter 'a' and 'A' as two different things.
when you log into adb shell, you are playing by android rules
Ok, a lot of us tweak and mod our phones and turning off the device to get to clockwork recovery, or battery pulls, or multiple button holds to get into Download mode are troublesome and annoying at best.
ADB can help us here.
Here, we do not need to be logged into the shell
If we want to merely reboot the phone:
Code:
adb reboot
If we want to go to recovery (works well with voodoo5)
Code:
adb reboot recovery
If we want to go to Download Mode because we need Odin, heaven forbid:
Code:
adb reboot download
Its instant. No waiting on animations or anything else.
Its also handy if Android has locked up, but yet still works in adb.
I for one hate taking my case off to battery pull.
So now we move on to pushing and pulling files.
Sometimes, I don't feel like mounting my sd card to copy a file over to my phone.
I can use this command to push a file straight to my sd card:
Code:
adb push filename /pathtodirectoryonphone
So for instance, if I have test.txt that I want to send, I would type:
Code:
adb push test.txt /sdcard/
and there it goes.
Ok moving on
Pushing files can be done to any directory, however, some are protected.
For instance, /system is going to give you a permission denied or a read only filesystem error.
To get around this, the easiest thing to do is push the file to your sdcard, then log into the shell:
Code:
adb shell
Code:
su
We will then mount the system as writable
Code:
mount -o rw,remount /dev/block/stl9 /system
Then we can use something like
Code:
cp /sdcard/test.txt /system/app/test.txt
cp stands for copy
and it requires the path of the file and destination path. The name of the file is optional
When you copy it, you can rename it to whatever you like.
For instance, if we wanted to backup a file
Code:
cp /sdcard/test.txt /sdcard/backuptest.txt
Now, lets assume you do not have busybox installed.
You non rooted users will not.
Then you must use a slightly more complicated command called dd
This is used like this:
Code:
dd if=/sdcard/test.txt of=/system/app/test.txt
if is for inputfile
of= output file
Not every user friendly, but probably one of the safer copy commands.
Ok, moving on to pulling files.
Lets say you want to get a file from your phone, to modify, backup, etc.
To do this, we simply use adb in this manner:
Code:
adb pull /pathtofile/filename destinationname
For instance, if I wanted to backup ADW launcher in system/app
I would do this
Code:
adb pull /system/app/ADWLaucnher.apk ADWLauncher.apk
And it will pull the file from the phone and put it in the current directory.
Like above, you can specifcy where it goes.
pushing files to the sdcard, it seems prudent to talk about changing permissions.
sdcards are typically fat32, which destroys permisisons, and Android is heavily permission based.
So if you push an application to your sd card, then try to copy it to /system/app/ bad things are going to happen, or the app may not even show up.
So in that case, we use something called chmod.
This is used in this manner
Code:
adb shell
su
chmod 755 /pathtoapplication/applicationname
Keep in mind
you dont want to do this while its still on your sd card.
an example
Code:
adb shell
su
chmod 755 /system/app/ADWLauncher.apk
755 is good for applications and script files.
Just a couple more topics to cover.
Lets go over deleting files.
This becomes especially handy for removing rogue applications.
To do this, we must be in the adb shell.
Code:
adb shell
su
rm /system/app/ADWLauncher.apk
You may need to remount system as writable with:
Code:
mount -o rw,remount /dev/block/stl9 /system
That applies when using chmod as well.
So what I did above was delete ADW Launcher from system/app
However, what if I wanted to delete the entire contents of a directory?
Same thing as before, except
Code:
adb shell
rm -f /data/dalvik-cache/*.*
I just cleared my dalvik-cache with that command
very quick, very effective.
If you just tried that, please reboot your phone now
Ok....this leaves us with the final topic: logcat
logcat allows us to log what the OS is doing, and possibly delve information for when things are not working
its quite simple Reading it is another.
To use logcat
Code:
adb shell
logcat
To logcat to a certain file do
Code:
adb shell
logcat > /sdcard/logcat.txt
Now we let the log settle down to a reasonable amount of data coming in and not a wall of scrolling, then start the app in question. When it gives an error, we hit ctrl-C and kill the adb shell session.
This should have captured enough data to see the error. Now, I prepared an example. A user came to me on IRC, and Google Maps was force closing. Clearing data didnt fix it, Clearing dalvik-cache, and fix permissions did not fix it. In this case, the user did not know how to use adb So I had him grab an app called alogcat from the market and email me the log. This is also a very valid method.
this file explains what the problem was, and highlights what to look for as an example.
http://adrynalyne.us/files/logcat.pdf
___________________________________________________________________
This concludes the guide from Adrynalyne, there will be more workshops such as this one in irc.freenode.net #android-learning.
Thanks to everyone in #samsung-fascinate !
QUICK FAQ's
sources: Q&A Section, The Weekly Q&A Section by XDA News Writers (thanks guys)
Q: ‘Is there any way to block specific apps from using my data connection?’
A: Try the Droid Wall application.
Q: ‘I read how you can make changes in the build.prop file on my Android device. How exactly do I get to it?’
A: Install ASTRO file manager, browse to /system, long press on build.prop – Edit – Copy. Press on the home icon then Edit icon – Paste. Connect sd card, edit it, and paste it over from where you copied build.prop
Q: What happens if I update my phone? will I need to re-root it and get the ROM again? will all of my applications get erased? If so, is there a way around this?
A: You will lose your root, but not apps if it is just an update.
Q: I just tried to flash a ROM from recovery on my Android phone and got “Verification Failed, Installation Aborted” What happened?
A: Before you can flash a custom ROM the .zip file must be digitally signed in the ROM kitchen, if unzipped and re-zipped it will lose its verification, this happens often using the Safari browser as it likes to decompress .zip’s. Or if your download is corrupted (download the ROM again) it will fail the Verification.
Q - HTC Location Widget shows "map data unavailable"
A - On the widget, click the pin/then click the windows button/click get more/scroll to download maps/download relevant map (care, maybe a big file). Now exit and click onto map, your location should now be visible :)
Q:So, I moved all the apps on the SD, but is still not enough. How can I free some memory? I could delete the cache of the older upgrade or something else?
A:Do you have pictures and videos? If so, check if they are on the SD card and not on your internal memory. Cleaning your cache helps, and try deleting your text messages threads.
Q: ‘What exactly is a kernel and what are the benefits in changing it?’
A: A kernel is a bridge between the applications and the actual data processing done at the hardware level. The kernel’s responsibilities include managing the system’s resources – the communication between hardware and software components. Flashing different kernels gives you different operating speeds, better battery life, the ability to overclock, and more.
Android control other device with IOIO Board.
It use ADB.
http://androidcontrol.blogspot.com/2011/10/ioio-board-for-android-control-io.html
timmymarsh said:
QUICK FAQ's
sources: Q&A Section, The Weekly Q&A Section by XDA News Writers (thanks guys)
Q: ‘Is there any way to block specific apps from using my data connection?’
A: Try the Droid Wall application.
Q: ‘I read how you can make changes in the build.prop file on my Android device. How exactly do I get to it?’
A: Install ASTRO file manager, browse to /system, long press on build.prop – Edit – Copy. Press on the home icon then Edit icon – Paste. Connect sd card, edit it, and paste it over from where you copied build.prop
Q: What happens if I update my phone? will I need to re-root it and get the ROM again? will all of my applications get erased? If so, is there a way around this?
A: You will lose your root, but not apps if it is just an update.
Q: I just tried to flash a ROM from recovery on my Android phone and got “Verification Failed, Installation Aborted” What happened?
A: Before you can flash a custom ROM the .zip file must be digitally signed in the ROM kitchen, if unzipped and re-zipped it will lose its verification, this happens often using the Safari browser as it likes to decompress .zip’s. Or if your download is corrupted (download the ROM again) it will fail the Verification.
Q - HTC Location Widget shows "map data unavailable"
A - On the widget, click the pin/then click the windows button/click get more/scroll to download maps/download relevant map (care, maybe a big file). Now exit and click onto map, your location should now be visible :)
Q:So, I moved all the apps on the SD, but is still not enough. How can I free some memory? I could delete the cache of the older upgrade or something else?
A:Do you have pictures and videos? If so, check if they are on the SD card and not on your internal memory. Cleaning your cache helps, and try deleting your text messages threads.
Q: ‘What exactly is a kernel and what are the benefits in changing it?’
A: A kernel is a bridge between the applications and the actual data processing done at the hardware level. The kernel’s responsibilities include managing the system’s resources – the communication between hardware and software components. Flashing different kernels gives you different operating speeds, better battery life, the ability to overclock, and more.
Click to expand...
Click to collapse
Thank you for your patience and taking the time to answer those questions. I loved your simple and easily digestible format.
There is a note
*nix based Operating Systems see the letter 'a' and 'A' as two different things.
when you log into adb shell, you are playing by android rules
Click to expand...
Click to collapse
this note is all wrong..
1. linNUX is not *NIX.
2. Mac OS-X is a *NIX OS, it is based upon UNIX, they use their own variant called Darwin. Darwin does not require capitolization.
3. The word should be POSIX. Linux is POSIX compliant and POSIX defines the capitolization standardards
soft brick
Taioba said:
Is there any way to use ADB even though I can not enable USB debugging by the android?
I have an Atrix with soft-brick. How can I restore a file (framework-res.apk) knowing that my USB debugging is off?
I can enable ADB via fastboot?
Thanks!
Click to expand...
Click to collapse
I found this for atrix 4g....
http://forum.xda-developers.com/showthread.php?t=965546
hope it helps
knoknot said:
i have a bricked s2 not so sure how to go about reviving it via adb
Click to expand...
Click to collapse
check this thread
http://forum.xda-developers.com/showthread.php?t=1237815
thanks. searched for that
Thanks for it.
Great Guys............ :good:
Thanks for sharing.
Thanks for sharing this guild :d, i am new member for reccod
Great job~ Sometimes could be used this.
I'm using Windows 10 RTM and I've set the path, yet I still get the "unrecognized application" error in the command console. What am I missing?
Nevermind, a restart fixed it. Used to be you didn't have to.... sheesh.
nir36 said:
Replacing system files using Android Commander:
(This post was formally based in the HD2's RTL support thread and revolved around our need to replace frameworks)
so:
1. Download the android SDK from: http://dl.google.com/android/android...08-windows.zip
2. EXTRACT(!!!) the android-sdk-windows to c:\
(make sure you extract the dir - not run the setup from inside the zip file)
3. install Android Commander from http://androidcommander.com
4. Connect your device and make sure it's set to Debugging mode in /settings/applications/development/
5. You might have to set a dir containing your adb.exe file. set it to c:\android-sdk-windows\tools\
6. You will see a Total Commander-like interface. you can then copy the framework.jar file to the correct directory (there's no difference between SD android builds and androids in ROM - the system dir will be shown the same way)
a. Yes, you can replace/delete system files while android is running.
b. (for androids running from SD) Any file copied to /sdcard/android/root/system/X will be copied to /system/X in the system file. The sdcard/android root dir is JUST LIKE your root in ROM androids.
c. Make sure you either created a backup or verified a match in any other way before replacing files like frameworks, zimage, modules, etc.. your android might not boot afterwards (I keep all system.ext2 files backed up so that i can restore them incase i screw something up.)
enjoy
Click to expand...
Click to collapse
Thanks, this Guide is very informative
Help with LG D722
I'm using LG D722 phone and I somehow unlocked bootloader and installed twrp recovery. I backed up Lollipop that's what I'm using and i want to restore custom ROM
I know I need to install Google Apps after installing Custom ROM. But Do I also need to install Modem files on my device ? Because I can't find them on XDA Forums. Please give me a link or something. The help is not just appreciated but seriously needed.
Success. Thanks
Hello, I walk testing one recovery but I'm booting before flashing, the question is, will the recovery feel same when booted vs flashed? I've booted and used to flash a pair of zips but felt very laggy and bugged although did the work right. Thanks
Edit: solved, tried myself
Sent from my SHIELD Tablet K1 using XDA-Developers mobile app
http://forum.xda-developers.com/showthread.php?t=872128&page=2

[Q] doubt about boot animation

Hi, im using cm7 , and just flashed trinity 1.1uv
the boot animation changed for the trinity one.
but the one that comes with cm7 is way better!
how can i change it?
do i need to delete the bootanimation.zip from the kernel before flashing it?
thx for the attention
hamtar0 said:
Hi, im using cm7 , and just flashed trinity 1.1uv
the boot animation changed for the trinity one.
but the one that comes with cm7 is way better!
how can i change it?
do i need to delete the bootanimation.zip from the kernel before flashing it?
thx for the attention
Click to expand...
Click to collapse
Sorry for thanks ^^
1. extract your downloaded cm build and go to system/media copy bootanimation.zip
2. copy to your sdcard
3. push to system/media on phone & delete /system/media/audio/poweron
4. reboot
5. enjoy
Actually, you can extract the bootanimation.zip from the rom, and then directly use adb, skipping the sdcard altogether:
adb remount
adb push bootanimation.zip /system/media/
The above works provided your copy of adb is included in your PATH system variable and that you're running it from the directory you've extracted bootanimation.zip. Otherwise, type bootanimation.zip's full path in the push command, and type the command in the directory where adb is installed.
Voilà!
Now, some extra tips:
You can rename files as you push them with adb, which means you could have multiple boot animations in a directory on your computer, and push whichever one you want on a whim, ie:
adb push bootanimation_somethingelse.zip /system/media/bootanimation.zip
There are many articles out there on making your own animation, I'll just add that 7zip works pretty well to make the archive (use the "store" method), optipng might repair images that don't seem to work otherwise, also make sure you have a text editor that can handle Unix-style line returns for the desc.txt file.
I personally use the stock Nexus boot animation, but with one addition: I put contact information in case the phone is found.
Goodbye,
Darkshado
Darkshado said:
Actually, you can extract the bootanimation.zip from the rom, and then directly use adb, skipping the sdcard altogether:
adb remount
adb push bootanimation.zip /system/media/
The above works provided your copy of adb is included in your PATH system variable and that you're running it from the directory you've extracted bootanimation.zip. Otherwise, type bootanimation.zip's full path in the push command, and type the command in the directory where adb is installed.
Voilà!
Now, some extra tips:
You can rename files as you push them with adb, which means you could have multiple boot animations in a directory on your computer, and push whichever one you want on a whim, ie:
adb push bootanimation_somethingelse.zip /system/media/bootanimation.zip
There are many articles out there on making your own animation, I'll just add that 7zip works pretty well to make the archive (use the "store" method), optipng might repair images that don't seem to work otherwise, also make sure you have a text editor that can handle Unix-style line returns for the desc.txt file.
I personally use the stock Nexus boot animation, but with one addition: I put contact information in case the phone is found.
Goodbye,
Darkshado
Click to expand...
Click to collapse
My Version is more noob like so see what he will choose D
Hey guys,
i've found another 'very' good kernel which, i think, does not change your boot animation. It has bln-support and voodoo, it works for both 9020 and 9023 users. Just check it out:
http://forum.xda-developers.com/showthread.php?t=1100448
thank you guys!

ADB issues

Okay, so i trying to push a file to my SGS4G... I thought i got it to work but when i went to find the file it was just some random file with no extension.
e.g. I typed (adb push FFFFFF.FFF /sdcard/download) it says the file was copied but when i go to my phone ffffff.fff is not there, instead a file called /sdcard/download
I followed these instructions....
A:android-sdk-windows installed
B: (on your phone) go to menu>settings>applications>developement and make sure usb debugging is checked.
C: the file you are pushing must be placed in the tools folder of adb so if you are pushing file "build.prop.txt" this needs to be downloaded/copy and pasted in C:\android-sdk-windows\tools
1: go to run and type cmd (or just open your command prompt)
2: cd C:\android-sdk-windows\tools
3: adb remount
4: adb devices *if everything is set up right this should output a serial number*
5: adb push FFFFFFF.FFF /#####/###### *i hope my notes help here you need to put the file name in for the F(s) and in the pound signs you put the destination on the devices example adb push build.prop.txt /system/bin
6. repeat step 3 for multiple files
7. adb reboot this is how you finish
What am i missing?
i see you are trying to push a file to your download folder on the sd card...
you can just drag and drop for stuff like this.
true true, not sure why i didnt think of that, i do it all the time... But would i use those instructions if i wanted to move a file say a recovery file to the bin directory?
i have never seen the need to use adb for this phone. it is not a nand locked device, so there is no real use for it (im speaking for users, not devs). if you want to push a file, jsut use root explorer or similar. thats all you need.
also, it seems to me like you are trying to get krylons cwm. just flash bali instead. no need for the recovery file or update.zip.

Categories

Resources