[Q] Is there a way to install all this stuff with a Mac? - Optimus One, P500, V General

I know that i have to open command prompt and give commands via the adb shell. I used that method before to set my phone to install everything new to the SD card but I didnt really like it because I would have to haul my PC all the way upstairs just to do it and then if I wanted it to stop, I would have to bring it upstairs again... (I use apps2sd now...)
Is there anyway for me to do the steps usually mentioned here like installing Custom recovery and custom roms on a mac?

Related

Update USB Drivers?

I recently rooted my Eris and I'm unable to flash a custom recovery because I can't get the USB drivers to update with those found in the SDK files. When I try to update the drivers Windows tells me that I have the most up to date drivers installed. It's because of this I cannot see my phone in the command prompt and can't get the custom recovery to work.
Has anyone tried putting the recovery files on their SD and using a terminal emulator?
Any ideas on updating the USB drivers?
If I flashed a custom Rom (as risky as that is without a recovery) could I then use nandroid or some other recovery? Or would I still need to use SDK?
joshw0000 said:
I recently rooted my Eris and I'm unable to flash a custom recovery because I can't get the USB drivers to update with those found in the SDK files. When I try to update the drivers Windows tells me that I have the most up to date drivers installed. It's because of this I cannot see my phone in the command prompt and can't get the custom recovery to work.
Has anyone tried putting the recovery files on their SD and using a terminal emulator?
Any ideas on updating the USB drivers?
If I flashed a custom Rom (as risky as that is without a recovery) could I then use nandroid or some other recovery? Or would I still need to use SDK?
Click to expand...
Click to collapse
download htc sync that should fix ur problem , it did for me
Yes HTC sync updated mine as soon as your phone is acknowledged by HTC sync it should update your usb drivers
FYI HTC sync did NOT work for me on Windows 7. I had to do some pretty annoying stuff to stop windows from installing the regular drivers automatically. If HTC sync doesn't work I can try to help.
If HTC Sync doesn't help, try the following steps.
1. Unplug your Eris from the PC
2. Open Device Manager and delete the Android device
3. Reboot your PC
4. Once in Windows, connect your Eris
5. The drivers should load automatically, if not point it to the SDK drivers folder
Good luck!
Any more ideas
First I tried downloading HTC Sync on my laptop (running Vista) and that didn't do it. Then I deleted the drivers and tried to manually download them back with the ones in the USB folder of SDK and still it wouldn't work.
So I started over and downloaded SDK and Java to my pc (Windows 7) and tried to update the drivers with the ones found in SDK and it wouldn't let me. So I deleted the drivers, unplugged my phone, and plugged it back up. Before I could attempt to direct it to download the intended USB drivers, Windows 7 had already updated with the drivers of it's choice. I can't win for losing.
If you don't mind using one of those "Live" Linux CDs, you could install the recovery using fastboot.
No need to install anything on the PC, and no drivers are needed for Linux, no SDK, no Java, no adb; just make sure to run fastboot as root.
The downloads of fastboot and the Amon_RA recovery are small, so they will easily fit in /tmp.
bftb0
I've never used Linux but I'm willing to try. Please tell me more. Are there "how tos" for this?
When you have your phone plugges in do you have it set to "charge" or "sync"? I know all the how to's say yo have it set to charge only but the inly way my computer ever finds my phone is if it us set to sync.
-------------------------------------
Sent via the XDA Tapatalk App
I set it to charge. I was finally able to install the correct driver. I selected a Google driver from the list it gave me (which my computer did not like) then went back and updated the drivers with those found in the tools usb folder of SDK. IT FINALLY LET ME!
Now I have a new problem. I'm using the command prompt and trying to create a custom recovery. I set it to the tools directory in SDK (where the flash and recovery images are) and I'm entering the commands exactly like the "how to" instructions have them. I keep getting "adb: not found" errors.
Can anyone tell me what I'm doing wrong?
joshw0000 said:
I've never used Linux but I'm willing to try. Please tell me more. Are there "how tos" for this?
Click to expand...
Click to collapse
Well, in the long run it is probably a good idea to resolve the driver install problems you are having on your PC, because it is very useful to have "adb" around, even if you are already rooted and have the ROM of your choice installed.
But, if you would like to do this, here's an outline below. Note that the point of the "Live" CDs is that you are not installing Linux on your machine, you are just booting it directly from the CD - the OS and hard drive on your PC are untouched.
1) Download an ".iso" file from your favorite Linux distro [ 3 ] for their "live" CD. (BIG download, usually 600+ MB)
2) Burn the .iso file to a CD as a bootable CD. (Most decent CD/DVD burner programs know what an .ISO file is, but might refer to them as a disk image).
3) Boot your PC off it! (You might need to hit a key on your PC right after you power it on to go into a boot menu, or the BIOS setup to change the boot order so your PC will try to boot from the CD/DVD before it tries the hard drive).
4) Copy the fastboot [ 1 ] executable for Linux and the Amon_RA recovery image [ 2 ] to /tmp "somehow" - you could just download it using the Linux browser if your network come up automatically (wired ethernet), or you could put them onto a USB key beforehand, and plug that in after Linux has booted; it should mount automatically.
5) Then, open up a terminal window and become root. (Type either "su" or "sudo /bin/bash" - depends on the Linux distro)
6) Attach your (well-charged) phone to the phone via USB, and power it up in fastboot mode (Send+End simultaneously)
cd /tmp
chmod 755 fastboot
md5sum recovery.img (check file sig)
./fastboot devices (check to see you are connected)
./fastboot flash recovery recovery.img
Obviously, if you need to look something up on the internet, it is useful to be networked, so you can use a web browser. The Linux boot will try to autoconfigure network interfaces automatically, but this is going to be most straightforward with a wired connection (Ethernet). Alternatively, if you have another PC or laptop nearby, you could use that.
Good luck.
Edits:
[ 1 ] Find Linux version of fastboot from HTC midway down this page - md5sum 9851bb6ad29cd4b60c9ba9d011ba9efd
[ 2 ] Amon_RA's recovery is located on this XDA page - md5sum e3932991f097993602af3c7a4b61a4f8
[ 3 ] Ubuntu's Current (x32) CD for v10.04 this page
NOTE: This CD is both a "Live" CD and an Install CD. You DO NOT WANT TO INSTALL ANYTHING; you are using the "Live" CD function - see the "show me how" link under Item #3 ("Try It!") on the above linked page
[ 4 ] Various OpenSuSe 11.2 Live CDs
Thanks for the info. I was able to get my drivers installed and run a nandroid recovery. Then I think I bricked my phone:
I just ran a nandroid backup for my Eris which was at stock 2.1 w/ root. I first partitioned the sd to swap - 3072 MB, ext2 swap 3072 MB, and fat32 - remainder. Realizing this was stupid, I went back and changed the partition to swap - 0, ext2 - 512 MB, fat32 - remainder 7680 MB or 7.5 GB. I moved ext2 to ext3 and booted the phone. All my sd was cleared so I copied everything back on (I saved all sd contents to my computer prior to this). I went back to recovery and flashed Eris Lightning 3.02. Everything went successful and when it rebooted, I saw the droid guys, then the "quietly brilliant", then "Verizon" screens. It then began running the "quietly brilliant" and "verizon" screens over and over. I pulled the battery and powered up again but it's still running those two screens over and over. I booted into recovery and attached my phone to the computer. I opened command prompt, entered " sd C:\android-sdk-windows\tools" and then entered "adb devices". It reads "List of devices attached" but there are none. I attempted to add the driver back to my device but when I go to device manager and click "update driver" and point it to the tools directory in SDK, it says that "Windows could not find driver software for your device".
If I can't communicate with my phone via usb and it wont boot, how can I get it to recover?
Any suggestions would help, I'm scratching my head here. I really don't want to have to buy another phone.
joshw0000 said:
Thanks for the info. I was able to get my drivers installed and run a nandroid recovery. Then I think I bricked my phone:
I just ran a nandroid backup for my Eris which was at stock 2.1 w/ root. I first partitioned the sd to swap - 3072 MB, ext2 swap 3072 MB, and fat32 - remainder. Realizing this was stupid, I went back and changed the partition to swap - 0, ext2 - 512 MB, fat32 - remainder 7680 MB or 7.5 GB. I moved ext2 to ext3 and booted the phone. All my sd was cleared so I copied everything back on (I saved all sd contents to my computer prior to this). I went back to recovery and flashed Eris Lightning 3.02. Everything went successful and when it rebooted, I saw the droid guys, then the "quietly brilliant", then "Verizon" screens. It then began running the "quietly brilliant" and "verizon" screens over and over. I pulled the battery and powered up again but it's still running those two screens over and over. I booted into recovery and attached my phone to the computer. I opened command prompt, entered " sd C:\android-sdk-windows\tools" and then entered "adb devices". It reads "List of devices attached" but there are none. I attempted to add the driver back to my device but when I go to device manager and click "update driver" and point it to the tools directory in SDK, it says that "Windows could not find driver software for your device".
If I can't communicate with my phone via usb and it wont boot, how can I get it to recover?
Any suggestions would help, I'm scratching my head here. I really don't want to have to buy another phone.
Click to expand...
Click to collapse
First, relax and take a deep breath; everything's going to be fine.
In the recovery main menu, there is an Item called something like "MS-USB toggle" or something like that. It does not use the adb driver, it uses a standard "Mass Storage Device" USB driver already on the PC. The purpose of this function is to make the SD Card mount on the PC when the Amon_RA recovery is running.
Try that - it should work.
Then, download a conservative ROM such as Ivanmmj's Official 1.0 alpha, or Jcase's "Plain Jane", and copy it to your SD card.
After you have done that, make sure to check the MD5 sum of that .zip file on the SD card. (You should be doing this already).
Then, cleanly dismount the USB drive from the PC with the "Safely Remove Hardware" thingamabob, and toggle "off" the MS-USB toggle on the phone. Return to the main menu, wipe /data, and then flash the "conservative" ROM.
Then boot the conservative ROM just to verify everything is OK.
Next, Backup anything from the SD card that you don't already have (this step might be optional), and boot into recovery, and unpartition your SD card so that the only thing that is there is the VFAT partition.
For the moment, I'll give you some advice: f*ck A2SD. You need to gain some familarity with how the various versions of a2sd work before you start using it..
Very likely you were just stuck in a boot loop created by the re-partitioning you performed after initial configuration of a ROM that uses a2sd. Frankly, it is easy to create conditions for this, especially if you switch between ROMs that use different versions of a2sd, and/or don't understand that certain versions are not correctly backed up with Nandroid at the moment (e.g CLB).
bftb0
Go in to the start menu of your computer or laptop right click on computer and go down to properties and open it up look to the right and you will see something that says advanced system settings click that and it will open up another window for system properties.. Okay look at the bottom of that small window you will see something that says environmental variables, click that. Now you want to scroll through the system variables and find the one that says "path" you want to change that to you ";C:\android-sdk-windows\tools" and save it.. That is where your adb file or app is in your sdk tools folder, so when you open up a command prompt type in adb devices it may say something about killing daemon starting successful.. Don't worry just type it in again you should get your phones serial number thats when you know your good and you can start talking to your phone.. You can try a simple command like adb reboot and it will reboot your phone.. All else fails and you do this and your phone is responding but you can get anything to run in the command prompt type with 1 space cd then another space and then copy and paste "C:\android-sdk-windows\tools" that.. So it will look something like this
cd C:\android-sdk-windows\tools.. That should def do the trick.. Or absolute worst case scenario and you want to make it real easy and not have the fun of doing all the hard but fun work just use the "all in one root script" it will root your phone and it will also install "amon RA recoveryv1.6.2"... Hope this helps you out. LoL I know its long but yo dude I went through the same hell and I finally got everything where I want it!!!!!! Also make sure your HBOOT is under 1.49, if you have 1.49 you cant root... For example 1.46 your good...
Go in to the start menu of your computer or laptop right click on computer and go down to properties and open it up look to the right and you will see something that says advanced system settings click that and it will open up another window for system properties.. Okay look at the bottom of that small window you will see something that says environmental variables, click that. Now you want to scroll through the system variables and find the one that says "path" you want to change that to you ";C:\android-sdk-windows\tools" and save it.. That is where your adb file or app is in your sdk tools folder, so when you open up a command prompt type in adb devices it may say something about killing daemon starting successful.. Don't worry just type it in again you should get your phones serial number thats when you know your good and you can start talking to your phone.. You can try a simple command like adb reboot and it will reboot your phone.. All else fails and you do this and your phone is responding but you can get anything to run in the command prompt type with 1 space cd then another space and then copy and paste "C:\android-sdk-windows\tools" that.. So it will look something like this
cd C:\android-sdk-windows\tools.. That should def do the trick.. Or absolute worst case scenario and you want to make it real easy and not have the fun of doing all the hard but fun work just use the "all in one root script" it will root your phone and it will also install "amon RA recoveryv1.6.2"... Hope this helps you out. LoL I know its long but yo dude I went through the same hell and I finally got everything where I want it!!!!!! Also make sure your HBOOT is under 1.49, if you have 1.49 you cant root... For example 1.46 your good...

CWM Flash/Bootable SD not working

So since cm7 is so close, I decided to try the flashable cwm from indirect. Unfortunately, after that all that happens is my nook tries to boot, I see the white screen with the package, and then it turns off. If I have it plugged in, it will just loop.
I have partitioned a 4gb sandisk with a 50mb FAT 32 partition as the primary, and have given it the lba and boot flags in gparted from my ubuntu laptop. I never could get it to boot off the sd card.
So now I must ask, where do I go from here. I've searched and crawled this forum, but with the boot loop and not being able to boot off of SD, I am unsure where to go next.
Any tips? To me, it looks like it just keeps trying to boot from the recovery. N + Power yields same results as above. Could really use some help with this head scratcher
So you cant access to CWM at all, if not somehow you must make the sdcard method to work in order to apply the fix posted by Indirect, that is the only way im afraid.
~ Veronica
http://forum.xda-developers.com/showthread.php?p=21785424 there's a link to indirects fix for broken recovery.
_______sig starts here______
Even you were a beginner once
If this post helped click the thanks button!
remember QTIP - Quit Taking It Personal
Okay, I get that. I have two questions though,
1: Does this mean I have to do the recovery method vs the bootable sd card?
2: How am I supposed to run commands to a device that keeps rebooting and doesn't give windows time to communicate with it, or will it send commands to it even though its rebooting?
cleverghost said:
Okay, I get that. I have two questions though,
1: Does this mean I have to do the recovery method vs the bootable sd card?
2: How am I supposed to run commands to a device that keeps rebooting and doesn't give windows time to communicate with it, or will it send commands to it even though its rebooting?
Click to expand...
Click to collapse
To apply Indirect's fix first you need to use Goncezilla's CWM sdcard method to boot into CWM once in CWM basically you use adb tools to fix it, use the link posted below by @dodgepot and read the OP carefully to understand the process.
~ Veronica
Thank you for the replies....
So I've gone through and tried once again to get my nook to boot from SD, and still I can't get it to boot. There is a way to do it using DISKPART in windows, I've made the 50mb fat partition, and set it to active. Have there been any other issues with getting it to work?
Poked around the CM7 thread again, apparently CelticWebSolutions was having a problem booting from an sd card.
Anyone know what he did exactly?
It works! Installing android sdk now
cleverghost said:
It works! Installing android sdk now
Click to expand...
Click to collapse
If you are on windows there is no need of SDK it will just give you troubles with the drivers, you should already have the drivers and adb if you rooted your nook tablet before. The adb drivers came in the zip provided for root and should be in C:\ntroot folder.
~ Veronica
I had access to a xp laptop when I did it on before. Using a win 7 64 bit right now, and indirect's batch file stops part of the way through. I had problems in 64 bit before, using the usb drivers from snowball's mod. Guess its a 64 bit problem. (have used usbdeview and I have verified it sets up as an android composite device.)
cleverghost said:
I had access to a xp laptop when I did it on before. Using a win 7 64 bit right now, and indirect's batch file stops part of the way through. I had problems in 64 bit before, using the usb drivers from snowball's mod. Guess its a 64 bit problem. (have used usbdeview and I have verified it sets up as an android composite device.)
Click to expand...
Click to collapse
i have a windows x64 bits too and when i rooted did not have any problem, do not install sdk it is not necessary, run the runmefirst.bat the one that comes in the .zip with the root files not the one that comes in the drivers.zip from Indirect's root. Snowball uses the same drivers as Indirect.
~ Veronica
I did everything stated above ... still a no go.
I tried indirect's driver half a dozen times and can never seem to get it working on x64. I decided to format my laptop and put xp on it. Like I said, last time I used XP, no problems at all.
Edit: Okay, so I tried it on another x64 machine, and I still run into the same issue!
1. run runmefirst.bat
2. Plug in nook
3. Right click nook device with /!\ and update drivers from c:\ntroot
4. Open up bat from indirect's thread
5. Y, Enter
6. Program starts abd..... locks up right after it states it, I waited a good 10 mins for results.
7. Use USBDeview and delete all references to usb mass storage, nook, and android devices. Unplug nook.
8. Plug in nook and repeat 3-6
9. Bang head against wall lol.
It's probably something stupid I overlooked. Feel free to flame away, I'll take it like a man XD. I started with a nook color, but this is pretty much my first tablet experience. You guys have a lot of experience, and I just want to make sure I am not missing something obvious. (I guess I just don't want to seem like a noob, more like a half noob )
Truth be told, I don't know if this is an issue... but I am runing W7x64 Ultimate N
Alright, so adb devices lists my device as "recovery".
I run the script and it still seems to just stop.
Uhmmm the steps you've done are right, I run a windows professional no N edition but that shouldn't be a problem. Maybe try disabling firewall, antivirus if any also Use ccleaner to clean your registries and cache of your machine, reboot and then try again, I want to repeat do not install SDK (just making sure).
~ Veronica
Sent from XDA premium using my Nook Tablet
okay great! Then I do understand the steps.
Yep, no SDK.
Edit: Going to crash now, ill wake up in a bit and take another crack at it. Thanks for your help so far
Alrighty. I woke up again and decided to give it a try from step one. Still a no go. Going to try wiping my drivers again. I've also disabled all antivirus/antimalware....
Looks like its going to be a fun day heh.
ok keep us updated on how you doing.
~ Veronica
Should I see the nook and sd drives mounting in Windows? Right now, I see the drives, but I can't access them. I don't know if that matters or not.....
Also, when I do an adb devices, mine shows as:
Code:
<String of numbers> recovery
Thats correct?
I also took a look at the batch file and might try to run the first few commands to see if I can find where the problem is manually. I have a feeling it's stopping at:
Code:
adb wait-for-device
We'll see though.
EDIT: Unless when you run the command it's supposed to not do anything, then yes. It's hanging.
Alright. Here is what I've found out.
I've done some forum crawling, and I happened upon a post by Loglug where he says to run the following commands:
Code:
adb shell mount -t vfat /dev/block/mmcblk0p6 /data
adb shell dd if=/dev/zero of=/data/BCB bs=1 count=1088
adb shell dd if=/dev/zero of=/data/BootCnt bs=1 count=1
adb reboot
All of the commands work except the second one. It basically echos back and tells me how to use the command. Now, I read a little further into his post and it says that if you do not get the BN recovery after 8 reboots, your recovery partition might be messed up. Could this be what is preventing me from recovering?
EDIT: NEVERMIND! I am up. Sorry, I feel pretty stupid now lol. I just ran the second command wrong -_-. Sorry, my answer was in the forums, just couldn't find it!

[Q] Access USB via ADB

Hey guys,
is it possible to access the internal storage via adb, without having a display?
My Galaxy SII Display is broken, but the rest should work.
usually i have to lock in with the security points that have to be connected (i dont know how that is called in english),
to allow access via usb.
now that the display does not work, i can not go that way.
so is it possible to access the internal storage via adb?
or do you have another way for me to get my data back?
i am not going to buy a new galaxy s2 and replacing the motherboard,
because its not worth it.
i have cm10.1 installed with dorimanx kernel, and root is allowed for adb and apps.
i never used adb, so i dont know how to start my search.
i also have the problem that i dont know how to look for that thing,
because im not english.
it would be nice if you can give me a start,
or another way to access the internal storage.
i also thougt about accessing via recovery.
i think i can go into recovery, and by pressing volume and power keys,
i can naviagte to mount data.
but im not sure about the steps,
so if anyone have a dorimanx 7.xx kernel,
can you please write the steps down for me?
thank you.
Grandtheftman said:
Hey guys,
is it possible to access the internal storage via adb, without having a display?
My Galaxy SII Display is broken, but the rest should work.
usually i have to lock in with the security points that have to be connected (i dont know how that is called in english),
to allow access via usb.
now that the display does not work, i can not go that way.
so is it possible to access the internal storage via adb?
or do you have another way for me to get my data back?
i am not going to buy a new galaxy s2 and replacing the motherboard,
because its not worth it.
i have cm10.1 installed with dorimanx kernel, and root is allowed for adb and apps.
i never used adb, so i dont know how to start my search.
i also have the problem that i dont know how to look for that thing,
because im not english.
it would be nice if you can give me a start,
or another way to access the internal storage.
i also thougt about accessing via recovery.
i think i can go into recovery, and by pressing volume and power keys,
i can naviagte to mount data.
but im not sure about the steps,
so if anyone have a dorimanx 7.xx kernel,
can you please write the steps down for me?
thank you.
Click to expand...
Click to collapse
if you can mount in recovery then mount everything in recovery,connect your device to PC and the open command prompt and navaigate to folder where you have set up android sdk.
now do the following
1) adb shell
2) now type ls -it'll list all folder and files.
3) now navigate to your sd-card (can't tell exact name for internal sd card) by typing cd <directory name>
4) you can list all files by using ls command.
5) Once you find the exact directory name of sd card and files to be recovered then type exit
6) now type adb pull /path/to/your/folder/filename.File will be saved in working directory...
i don't have s2,just helping you with some common adb stuffs.
btw you can use adb file managers which provides GUI.Like this one http://forum.xda-developers.com/showthread.php?t=1821601
adb
Connect the phone to system, Open terminal and do adb remount then adb shell.
Now do ls, you will be able to see all the folder and everything. Go to Sd-card folder and there you should have all your data.
There is and app ADBExplorer. I have never used this tool, but you can check it is GUI.
Thanks,
The ADBFileexplorer worked very well for me.
Just booted in recovery and started the explorer.jar in the adb folder.
Thank you for the tips.
This can be closed now

ADB Troubles

I have been trying for a few days not to get my NT to connect to ADB in CWM. I am having no luck.
I am able to connect and browse the 1 gb partition and the sd card in windows but cannot connect to adb even when the tablet is running.
It has been a while since i have messes with my NT but i currently running nightly CM and have CWM 6.0.0.0 installed as well.
I am sure i am just missing someting simple to accomplish this task but my searches are leading me know where.
I have also tried both in linux and windows to connect to ADB.
I feel one of my problems may be that i do not have debugging turned on in my ROM but i cant seem to find that either.
Any guidance or a link would be greatly apreciated.
Thanks in advance.
"ADB Debug" setting is under Settings->Developer's Options.
If you're trying to use ADB over USB, see also http://forum.xda-developers.com/showthread.php?p=35971559#post35971559.

[Q] Phone won't start - adb unauthorized

Hey fellas...
here's the deal. I had this great idea to format my phone. so I formatted system / data /sd-card etc. on my Nexus 4 via CWM.
That was stupid. Of course.
What I did not think about was that I dont have an OS on my phone anymore and that I deleted my data and therefore cant install an OS right now.
What I can do is access CWM. My laptop also recognizes my phone as plugged in via adb. But when I ask for adb devices it tells me that its unauthorized.
This is where I am stuck. Because I cannot acces usb-debugging. I cannot kill the adb server, because I won't get the prompt to accept this laptop.
Since CWM is working fine, is there any way for me to push a rom on the phone?
I am absoluetly clueless...

Categories

Resources