Some explain to me "pushing an .apk" - Hero CDMA Q&A, Help & Troubleshooting

I'm very new to this so any dumbing down of an explanation is appreciated. I read a lot posts telling users to push a specific .apk and then linking to a download. I understand that the .apk is an application, but can someone walk me through the process? I did a search but could not find anything.

Pushing an apk is usually referring to sending the program to your phone using adb which is part of the software development kit from Google. It basically opens up an interface between your phone and the pc to send commands and files. If you need help on that do a search for adb guides. There is a lot of info on it. Hope that helps
Sent via the Sprint HTC EVO

Related

Need mac adb help

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.

Noob question about guide

I am wondering if there is any literature online about a simple guideline or something of that nature about the adb shell and commands and all that. I have rooted my phone and used the adb, but dont really understand it just basically copying off guides that were on here. also like loading apks through the shell and taking apks off, and having to rename zips all this stuff im kinda gray on but if someone could maybe point me in the direction of a good place to understand all this i would be very grateful....i am new to this but am very addicted to xda now modifying my phone I am currently using darch's 2.1 and really want to add all the additions but need to know about using the shell thanks in advance guys...people on xda rule the world
aauussttiinn88 said:
I am wondering if there is any literature online about a simple guideline or something of that nature about the adb shell and commands and all that. I have rooted my phone and used the adb, but dont really understand it just basically copying off guides that were on here. also like loading apks through the shell and taking apks off, and having to rename zips all this stuff im kinda gray on but if someone could maybe point me in the direction of a good place to understand all this i would be very grateful....i am new to this but am very addicted to xda now modifying my phone I am currently using darch's 2.1 and really want to add all the additions but need to know about using the shell thanks in advance guys...people on xda rule the world
Click to expand...
Click to collapse
Well id say if your very addicted to xda then you should know there's these things called Sticky's at the top of page very useful info could of answered your own question.
forum.xda-developers.com/showthread.php?t=603052
When you use the command "adb shell", that is simply dropping you into the shell of the phone. The phone runs Android, which is a version of Linux. Since almost EVERY ROM has "busybox" installed, you are able to run Linux shell commands on the phone, just as if you were on a Linux install on a computer. So just learn basic Linux commands, and you'll be fine
yea bertman in the stickies there is nothing what im asking about but thanks for your help anyway....mrhinehart so instead of running the cmd promt from my pc i can just run busy box or do i run busy box from reboot recovery?......................ohh snap i found it in the stickes thanks bertman that actually exactly what i was looking for just didnt think it would be in something that had to do with rooting....thanks a bunch man
ADB / 101 Info from Nexus One Forum
Here's some information from the Nexus One forum. Hopefully you'll find it useful.
http://forum.xda-developers.com/showthread.php?t=619153
I seriously apreesh all the help that last post was like the icing on the cake.Roundaway i see that you have darch's 2.1 seriously a badd ace rom. i have v3 of the rom and the aosp 2.1 kernal and thats all and i have really been wanting to add the jit and fix the whitelist etc etc all that awsome stuff that people have been finding at that thread and i would real remount this or rename the zip to this and just never understood why but that clears up alotta things and connects alot of bridges for me so no on to playing with the adb thanks again everyone

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?

[Q] APK File

I tried to post to the developer threads but I don't have 10 posts so it wouldn't let me. Sorry if this is the wrong place.
I have the source, the raw commands, for an APK file. I am trying to find out how to get from here, to a file I can upload to the Android Market (where I have an account).
Can anyone spell it out, as a 1-2-3, for a noob who is struggling?
I believe I have to compile the raw source... using software I download to my PC (APKtool?).
Is that correct? As part of this, is there anything special I need to do, other than just copy in the source code?
I also learned that I need to 'sign' it as well. Is that done from the compiler/APKtool, or automatically via the market?
If anyone could just spell this out in simple steps... well... I'd be very very grateful.

[Q] Non-OS services running on startup

Folks, please be gentle if I'm asking something obvious... I'm new to Android. The question is if there is a way to disable some non-OS services (such as Skype, HeyTell, Google BlogService, HeyWire etc) from starting after my ROOTED DS7 is powered off/on. I'm UNIX guy, so was looking for something like /etc/rcX.d start scripts but was not able to find it. Advanced Task Killer for Froyo cant disable those permanently as well. Basically I need to stop it manually every time I turning on my DS7.
Any help is greatly appreciated. Thank you.
RusGrizzly said:
Folks, please be gentle if I'm asking something obvious... I'm new to Android. The question is if there is a way to disable some non-OS services (such as Skype, HeyTell, Google BlogService, HeyWire etc) from starting after my ROOTED DS7 is powered off/on. I'm UNIX guy, so was looking for something like /etc/rcX.d start scripts but was not able to find it. Advanced Task Killer for Froyo cant disable those permanently as well. Basically I need to stop it manually every time I turning on my DS7.
Any help is greatly appreciated. Thank you.
Click to expand...
Click to collapse
It has been a while since I went into an android installation, but the install packages have the extension .apk. There is a folder on the device that contains the .apk files that are installed when the device is reset. If you go into that folder you can rename the .apk to .bak or whatever, and then do a hard reset, the programs won't install. Maybe someone with a rooted device can provide the directory names.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums and Read THIS
Moving to General
stevedebi said:
It has been a while since I went into an android installation, but the install packages have the extension .apk. There is a folder on the device that contains the .apk files that are installed when the device is reset. If you go into that folder you can rename the .apk to .bak or whatever, and then do a hard reset, the programs won't install. Maybe someone with a rooted device can provide the directory names.
Click to expand...
Click to collapse
Thank you for the reply. There is a directory /system/app with bunch of apk(s) in it. However if I rename those which are starting after the reboot wouldn't it disable app permanently? It is not my goal, honestly. I just trying to find the way to use those on demand basis. Thank you again.
lufc said:
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums and Read THIS
Moving to General
Click to expand...
Click to collapse
My fault. Sorry.
RusGrizzly said:
Thank you for the reply. There is a directory /system/app with bunch of apk(s) in it. However if I rename those which are starting after the reboot wouldn't it disable app permanently? It is not my goal, honestly. I just trying to find the way to use those on demand basis. Thank you again.
Click to expand...
Click to collapse
Titanium backup can freeze those app so they won't run, and then un-freeze them if you want.
Thanks a lot! Worked as a charm!
Sent from my Dell Streak 7 using xda premium

Categories

Resources