Need mac adb help - G1 Q&A, Help & Troubleshooting

I am trying to install the new Hero OS, and can gain adb mount, but when the file I want to upload is on my desktop, adb wont see it. I have also tried adding it to the tools folder of the sdk itself, and it still doesnt see it.
Can anyone help me out a bit? I have even tried writing the full path to the file, but i dont think i have that correct either. So far i have tried these:
adb push app_s /system/sd/app_s
"cannot stat "app_s": No such file or directory"
I also have tried various forms of this, but still get the above responce.
adb push C:\users\username\app_s /system/sd/app_s
Is this a problem with not see ing the file, or am i maybe trying to push it to a non-existant directory on my sd. I dunno, i have searched on here for anything adb, but when you search, nothing comes up.
I have been listening to the stupid htc jingle for over an hour simply trying to figure out how to push a file, so please help me keep my sanity..

you did install the SDK right?
http://developer.android.com/sdk/1.5_r2/index.html
if so, you need to add it to your path or give the full path to where you installed it every time you execute the command

you're even not very smart, or completely lost.
lolz, i'm j/k
i'm a mac user too, pm me you ichat i'll help you out.

i looked at my PATH,
(/Users/tslate/Desktop/fastboot:Users/tslate/Desktop/SDK/tools:
/Users/tslate/Desktop/SDK/tools:/Users/tslate/Desktop/SDK/tools/adb:
tslate/Desktop/SDK/tools/adb:/tslate/Desktop/SDK/tools/adb:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin)
and added the folder to the tools folder and the fastboot folder, but this still doesnt work for me. Still getting Cannot stat 'app_s': No such file or directory exists.
Any ideas?

need mac adb help
I dont understand but my thread was moved to general for some reason so here it is again.
I cannot make adb find local files to push to my g1. I can and do have adb mount though. My PATH is:
/Users/tslate/Desktop/fastboot:Users/tslate/Desktop/SDK/tools:/Users/tslate/Desktop/SDK/tools:/Users/tslate/Desktop/SDK/tools/adb:tslate/Desktop/SDK/tools/adb:/tslate/Desktop/SDK/tools/adb:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
I have tried adding the local file to both the tools folder of the sdk itself, and to the "fastboot" folder mentioned in the PATH, but i get the following error:
cannot stat 'localfile': No such file or directory
Anyone have an idea?

It was moved to general, because it is a general android (poorly worded) question.

Please don't make duplicate threads.

I'm sorry, but I guess I didnt really know there was any other way to ask. I and prob many others here are trying to learn what you guys already seem to know. If I'm going to be called stupid, I would at least like to know the proper procedure is for asking.

I didn't see anyone call you stupid, except one person who said "you're even not very smart, or completely lost." but was just kidding.

neoobs said:
I didn't see anyone call you stupid, except one person who said "you're even not very smart, or completely lost." but was just kidding.
Click to expand...
Click to collapse
Ok, so not stupid, but unable to write a question correctly. So what's the correct way for me to ask this? Im not trying to be a smartass, but when things like this happen, and people don't understand what they did to receive such treatment, it reflects poorly on the xda dev community, and makes it hard to appease the powers that be and get my question answered. So how can i reword the aforementioned poorly written question differently?

For that I point you to some threads, which are all stickied by the way.
http://forum.xda-developers.com/showthread.php?t=479704
http://forum.xda-developers.com/showthread.php?t=519523
http://forum.xda-developers.com/showthread.php?t=480521

how did you setup your variable?
i can adb just fine on my windows computer. i have no idea how to set up the adb on my mac. how do i set the variable?

neoobs said:
For that I point you to some threads, which are all stickied by the way.
http://forum.xda-developers.com/showthread.php?t=479704
http://forum.xda-developers.com/showthread.php?t=519523
http://forum.xda-developers.com/showthread.php?t=480521
Click to expand...
Click to collapse
I actually did do a search through both those adb threads, as well as a search through the general developer forum, which returns 0 results for the term "adb". My question isnt answered in either of those threads which are mostly windows based from what i have seen.
Since no one can really give me an answer on how to make the question better or more to the point so I dont get locked/moved/etc. I'm going to assume there isnt one.
Thanks to those that actually tried to help.

Thread locked. Don't create another one until you learn to read.

Related

HELP! installing apps

title might sound dumb. But I am running into an issue thats more of just customizing a ROM. Ive searched high and low only running into dead ends. But someone please HOW DO I PUSH .APK's what i am trying to do is get apps such as advanced task manager, setcpu and more. I have all the roms from where they come from. i know i need .apk and i also know i need .odex. ive tried just copy and pasting these things but i run into booting issues i know it cant be done that way ive tried. so if anyone can help with information installing it through adb or is it about moving some files around making sure its all in place then reboot????? please someone HELLPPPPPPPPPPPP!
hobbitton said:
title might sound dumb. But I am running into an issue thats more of just customizing a ROM. Ive searched high and low only running into dead ends. But someone please HOW DO I PUSH .APK's what i am trying to do is get apps such as advanced task manager, setcpu and more. I have all the roms from where they come from. i know i need .apk and i also know i need .odex. ive tried just copy and pasting these things but i run into booting issues i know it cant be done that way ive tried. so if anyone can help with information installing it through adb or is it about moving some files around making sure its all in place then reboot????? please someone HELLPPPPPPPPPPPP!
Click to expand...
Click to collapse
to push an app you type
Code:
adb push app /system/sd/app
adb push app-private /system/sd/app-private
You can also use adb install <path of apk>
do my eyes deceive me or did u two just help someone
pistol4413 said:
do my eyes deceive me or did u two just help someone
Click to expand...
Click to collapse
Hey I was flyin solo for awhile waitin for you jerks. In the mean time I had a nice bone.
pistol4413 said:
do my eyes deceive me or did u two just help someone
Click to expand...
Click to collapse
we help people when we are feeling lonely
but sometimes we give people instructions to brick their phones too
that usually makes me less lonely

How do you Root Froyo on the Captivate the Easiest way?

I have the one click root on my computer. I was able to root stock 2.1 but not Froyo. I cant seem to get a normal Update.zip to reinstall to root it. Can anyone help me out with this? Thank you
Have you used adb before? Its easy. Just need to get the sdk dev kit. Then go here.
http://forum.xda-developers.com/showthread.php?t=797397
smokestack76 said:
Have you used adb before? Its easy. Just need to get the sdk dev kit. Then go here.
http://forum.xda-developers.com/showthread.php?t=797397
Click to expand...
Click to collapse
I never have. But Im to nervous to attempt it bud lol
Its not hard. You can PM me if you want. Its easier than all the flashing to swap Kernels i think.
smokestack76 said:
Its not hard. You can PM me if you want. Its easier than all the flashing to swap Kernels i think.
Click to expand...
Click to collapse
+1 Its easier to cut and paste between windows. I also like to see how adb commands are used.
Terrigno said:
I never have. But Im to nervous to attempt it bud lol
Click to expand...
Click to collapse
If you're comfortable with flashing Froyo using adb shouldn't be a problem.
cappysw10 said:
If you're comfortable with flashing Froyo using adb shouldn't be a problem.
Click to expand...
Click to collapse
I sent smokestack a PM to see if he can help me out on how to do it. I just flashed the phone with Froyo following the directions here. I wasnt to sure about what I was doing but I did everything and it all eventually worked out well, with a couple scares lol. Im new to the rooting scene. I mean Im pretty savy when it comes to certain stuff and I was easy to install beta leaks and builds with BlackBerrys for 3 years. Im new to Android since the Captivate came out, so Im slowly trying to learn the tricks of the trade
Terrigno said:
I sent smokestack a PM to see if he can help me out on how to do it. I just flashed the phone with Froyo following the directions here. I wasnt to sure about what I was doing but I did everything and it all eventually worked out well, with a couple scares lol. Im new to the rooting scene. I mean Im pretty savy when it comes to certain stuff and I was easy to install beta leaks and builds with BlackBerrys for 3 years. Im new to Android since the Captivate came out, so Im slowly trying to learn the tricks of the trade
Click to expand...
Click to collapse
Sent you a reply as well.
I was wondering if someone was also willing to help me, the instructions on the link are kinda of vague I think
we are working on it
Seems that adb does not like Win7. Anyone else see issues?
smokestack76 said:
Seems that adb does not like Win7. Anyone else see issues?
Click to expand...
Click to collapse
nope. been working fine on mine since July....i have it on 3 machines all running win7 64bit ultimate
alme1304 said:
I was wondering if someone was also willing to help me, the instructions on the link are kinda of vague I think
Click to expand...
Click to collapse
The instructions seemed clear as day to me. Put the phone in debug mode, use adb to push the files, execute a shell script, use sqlite3 to allow side loading, change permissions on the files you pushed, and reboot.
Sent from my SAMSUNG-SGH-I897 using XDA App
rajendra82 said:
The instructions seemed clear as day to me. Put the phone in debug mode, use adb to push the files, execute a shell script, use sqlite3 to allow side loading, change permissions on the files you pushed, and reboot.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
you are forgetting one important step that nobody seems to want to do.
learn what all that means
its a gimme gimme gimme world....gimme now, i dont want to understand it! just do it for me!
Pirateghost said:
you are forgetting one important step that nobody seems to want to do.
learn what all that means
its a gimme gimme gimme world....gimme now, i dont want to understand it! just do it for me!
Click to expand...
Click to collapse
Kinda. Seems the OP here has win7 and i cant get it to play right. I see the above poster said they have it. Please post some info
rajendra82 said:
The instructions seemed clear as day to me. Put the phone in debug mode, use adb to push the files, execute a shell script, use sqlite3 to allow side loading, change permissions on the files you pushed, and reboot.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
I think what they are looking for is where to put the files that they download. I know in the rooting tread, it was missing. I also think some people do it differently, so it may help just to let them know how you find it easiest to navigate to them, etc.
Personally, I take the files that were downloaded and extract them all. Then make sure you have downloaded the android SDK program and put it on the root of your computers hard drive such as drive C:. Then add those files you downloaded to the "Tools" file within sdk.
To navigate to them with command prompt, it would look like: cd C:\android-sdk-windows\tools
Then run the commands as listed in the tread.
Hope this helps.
Perhaps this is not the answer you are looking for, but if you are comfortable flashing roms, flash Cognition 2.2 (its already rooted).
Good luck
ronandi said:
Perhaps this is not the answer you are looking for, but if you are comfortable flashing roms, flash Cognition 2.2 (its already rooted).
Good luck
Click to expand...
Click to collapse
Its funny all the n00b post. I guess i dont know what im doing
Gr8Danes said:
I think what they are looking for is where to put the files that they download. I know in the rooting tread, it was missing. I also think some people do it differently, so it may help just to let them know how you find it easiest to navigate to them, etc.
Personally, I take the files that were downloaded and extract them all. Then make sure you have downloaded the android SDK program and put it on the root of your computers hard drive such as drive C:. Then add those files you downloaded to the "Tools" file within sdk.
To navigate to them with command prompt, it would look like: cd C:\android-sdk-windows\tools
Then run the commands as listed in the tread.
Hope this helps.
Click to expand...
Click to collapse
I'm running W7 and am having issues with adb. I'm a noob to android but I'm learning. Anyway, I tried your suggestion of adding the files to the tools directory but when I enter "su" the system returns "su: not found". Any help?
Moved to Q&A.

Change Icon (signing .apk w/ubuntu)

Ok guys please help me. I am fairly new to linux so all of the commands and script dont click with me as it will in a few more months so please be thorough if you can.
I have been searching and trying different things for almost 3 days now and Im just going to ask for help before giving up.
For now im trying to get familiar with further hacking for modifying apk's and roms but I am having a terrible time getting the correct information on how to resign an apk to make it installable on an android phone.
In order to keep this simple lets assume this is what Im trying to do.
(im using ubuntu, and every tuturial I see is for win or mac. I have seen 1 (http://forum.xda-developers.com/showthread.php?p=3271434) for ubuntu but it seems that it either does not apply to me or is simply over my head at the time with my limited ubuntu knowlege).
Im wanting to take avp.apk and change the icon. I replace the ya.png with a properly sized png named ya.png. I then have tried both ways of either deleting the meta-inf file (do I need to do this?)
And then after that I am stuck. I have tried some different autosign and testsign and different tools but Im obvousially typing something wrong or just not getting something right because it simply does not work with me.
Can someone please help me or tell you what to do or point me to a youtube vid? I keep coming up with the same threads and videos at this point and none of them seem to apply to me (for win/mac).
It seems like what Im trying to do should be simple enough. So please show me what Im being dumb about.

Honeycomb + market

Hey everyone, I've been following the Honeycomb developments on the nook, but havent posted yet. I just got my nook this weekend and immediately installed deeper blue's Honeycomb ROM on the SD card without rooting my nook.
It is great and he deserves all the praise in the world, but unfortunately does not have a ton of use to me without being able to download items from the market.
I'm not very experienced in programing in general or using the android sdk or adb.
I tried installing the market using the instructions in the following places:
w w w.addictivetips.com/mobile/what-is-adb-and-how-to-install-it-android/
w w w.addictivetips.com/mobile/install-android-3-0-honeycomb-and-market-on-nook-color/
After 2+ hours of frustration, I was finally able to get my device recognized in the command prompt using "adb devices" or something like that.
However, when I copied and pasted the commands, the command prompt text just scrolled and then the command prompt closed all together.
Alas, there was no market on my honeycombed nook.
Any ideas where I could have been going wrong?
I could really use an extremely basic step-by-step here.
Unfortunately, I wont be able to test anything until I get home from work later tonight.
Thanks in advance for any ideas or tips.
http://forum.xda-developers.com/showthread.php?t=937752
forsaken82 said:
http://forum.xda-developers.com/showthread.php?t=937752
Click to expand...
Click to collapse
I saw that, but didnt know if it was the same thing I was looking for. I dont remember if I tried it or not.
Is it just as simple as it sounds? What directory exactly do I extract it in? The platform-tools folder?
Then just double click that one file and it should automatically install the market on my device?
Are there any prereqs? Like I said in my original post, I THINK i got my device recognized in the command prompt, as it gave me a serial number in the response.
Sorry for the noob questions, but I am truly unexperienced.
Yup. It makes the files pushable. From there just copy paste his code
Sent from the honeynook pad
n4m347yp3 said:
Yup. It makes the files pushable. From there just copy paste his code
Sent from the honeynook pad
Click to expand...
Click to collapse
Im actually typing from my honeynook now.
The script worked like a charm and i now have gmail, market, etc.
Thanks everyone!
pman555 said:
Hey everyone, I've been following the Honeycomb developments on the nook, but havent posted yet. I just got my nook this weekend and immediately installed deeper blue's Honeycomb ROM on the SD card without rooting my nook.
It is great and he deserves all the praise in the world, but unfortunately does not have a ton of use to me without being able to download items from the market.
I'm not very experienced in programing in general or using the android sdk or adb.
I tried installing the market using the instructions in the following places:
w w w.addictivetips.com/mobile/what-is-adb-and-how-to-install-it-android/
w w w.addictivetips.com/mobile/install-android-3-0-honeycomb-and-market-on-nook-color/
After 2+ hours of frustration, I was finally able to get my device recognized in the command prompt using "adb devices" or something like that.
However, when I copied and pasted the commands, the command prompt text just scrolled and then the command prompt closed all together.
Alas, there was no market on my honeycombed nook.
Any ideas where I could have been going wrong?
I could really use an extremely basic step-by-step here.
Unfortunately, I wont be able to test anything until I get home from work later tonight.
Thanks in advance for any ideas or tips.
Click to expand...
Click to collapse
Hello,
I am the Mobile Technology Editor at AddictiveTips and both the guides that you quoted here were written by my writers and heavily edited by me. The issue lied in you not following one crucial step of the ADB guide - it seems you didn't add the tools and platform-tools folders of your SDK installation to your computer's PATH variable as outlined in that guide.
Doing that basically makes things a lot easier as you don't have to copy files for any such hacks or tricks into the tools or platform-tools folder of ADB and it keeps those folders clean, containing only the default tools files. It also eliminates the risk of you deleting any of those essential files when you are done with your customization and delete the files that you pasted there earlier.
The script you used was awesome as well...jleecong has done an excellent job at putting it together and I will update my guide to include it. Just like you, I've also got to thank forsaken82 for bringing it to my attention as while the guide I featured does install Market, enabling you to install the rest yourself...this one installs some other useful apps for you directly too. =)
HQRaja said:
Hello,
I am the Mobile Technology Editor at AddictiveTips and both the guides that you quoted here were written by my writers and heavily edited by me. The issue lied in you not following one crucial step of the ADB guide - it seems you didn't add the tools and platform-tools folders of your SDK installation to your computer's PATH variable as outlined in that guide.
Doing that basically makes things a lot easier as you don't have to copy files for any such hacks or tricks into the tools or platform-tools folder of ADB and it keeps those folders clean, containing only the default tools files and eliminates the risk of you deleting any of those essential files when you are done with your customization and delete the files that you pasted there earlier.
Click to expand...
Click to collapse
Thank you for your reply, but I have already figured everything out using a script.
I actually did add the tools and platform-tools folders to the PATH variable though.
Either way, the issue has been resolved.
pman555 said:
Thank you for your reply, but I have already figured everything out using a script.
I actually did add the tools and platform-tools folders to the PATH variable though.
Either way, the issue has been resolved.
Click to expand...
Click to collapse
It should definitely work if you added those folders to the PATH variable correctly - it has been tested by many users to work successfully. I am now curious on what sort of error you received but most likely you wouldn't have saved the output from those commands. In any case, as long as you got it working, it's all good. =)
EDIT: Just out of curiosity...did you copy and paste the commands there all together or did you enter them one by one?

.9.png's editing on Linux?

Yep. I'm on linux. Windows was just too slow. But now I'm trying to start theming again but I just can't figure a way to edit ant .9.png image files. On Windows I would use Xultimates D9PC but i don't believe that option is available on Linux. I would just use the draw9patch compiler provided in my SDK but i get an error stating that the "draw9patch.jar file cannot be found" ....tho I certainly see it is in there. I have of coarse Googled the problem, nut while it does seem to be a common issue, I have yet to read of it being resolved. I figure if anyone knows the answer, its the brilliant folks at XDA, so...LOL .....here I am!
(please say its possible, please say its possible, please say its possible......)
CleveRuse said:
Yep. I'm on linux. Windows was just too slow. But now I'm trying to start theming again but I just can't figure a way to edit ant .9.png image files. On Windows I would use Xultimates D9PC but i don't believe that option is available on Linux. I would just use the draw9patch compiler provided in my SDK but i get an error stating that the "draw9patch.jar file cannot be found" ....tho I certainly see it is in there. I have of coarse Googled the problem, nut while it does seem to be a common issue, I have yet to read of it being resolved. I figure if anyone knows the answer, its the brilliant folks at XDA, so...LOL .....here I am!
(please say its possible, please say its possible, please say its possible......)
Click to expand...
Click to collapse
I use draw9patch without any problems. Have been for years. Make sure that the sdk tools is in your path.
Im on ubuntu 10.10 using windows xp ob virtualbox. I tried and tried to get the gothemesfactory to work, but to no avail, so i broke down and set up a vbox to make ot work.
CleveRuse said:
Yep. I'm on linux. Windows was just too slow. But now I'm trying to start theming again but I just can't figure a way to edit ant .9.png image files. On Windows I would use Xultimates D9PC but i don't believe that option is available on Linux. I would just use the draw9patch compiler provided in my SDK but i get an error stating that the "draw9patch.jar file cannot be found" ....tho I certainly see it is in there. I have of coarse Googled the problem, nut while it does seem to be a common issue, I have yet to read of it being resolved. I figure if anyone knows the answer, its the brilliant folks at XDA, so...LOL .....here I am!
(please say its possible, please say its possible, please say its possible......)
Click to expand...
Click to collapse
I am not familiar with the D9PC program, but have you tried to run it with WINE?
Ok, Thnx guys! (i love XDA)
Let me respond to u all at once. Ok, so sorry I wasn't as informative as possible.
First, I'm "'cd'-ing" to the draw9patch's dir, but I've also tried just moving the files over to my platform-tools folder.... I still get the same error: "draw9patch.jar cannot be found". Finally, even tho 'cd'ing to 'tools' folder should yeild the same result, I added it (tools) to my path and I still get the error message. Like I said, Google seems to agree that the issue is quite common .....who knows?
As for a virtual box? I've heard of it.... Just not sure Wut it is. Is that like booting an OS ROM 'flash'?
And as for "Wine", I just googled it and I'm thoroughly excited! That sounds perfect! I'd also heard of that but also wasn't sure what it was ...wait, is that a virtual box? O see I need to create a "mock" C drive to install to. Wut version of Wine should I use? On-line, its suggested to use an older version but the advice seems a little dated. I'm running 11.04 "Natty".
Hey Thnx guys! I really appreciate all the help.

Categories

Resources