[Q] Help about sideloading apk files - Nook Color General

Hi,
Nook Color CM7 RC1.
I am trying to sideload Google+ apk using adbwireless.
ADB seems to work OK in the PC, adbwireless is active, but I get device not found.
Is there a a tutorial or step-by-step explanation somewhere that explains how to use adb commands?
I come from DOS days, and know how to use command line, but I have very limited experience with Linux.
Thanks for answers

velizet said:
Hi,
Nook Color CM7 RC1.
I am trying to sideload Google+ apk using adbwireless.
ADB seems to work OK in the PC, adbwireless is active, but I get device not found.
Is there a a tutorial or step-by-step explanation somewhere that explains how to use adb commands?
I come from DOS days, and know how to use command line, but I have very limited experience with Linux.
Thanks for answers
Click to expand...
Click to collapse
Hi,
Solved the problem myself..

There is no man page, but running 'adb' by itself will print a description of the syntax.

By far the easiest way to do it is to download the apk to your Nook using your Nook's web browser, then navigate to the apk with Astro File Manager, select it and choose "install."

dsf3g said:
By far the easiest way to do it is to download the apk to your Nook using your Nook's web browser, then navigate to the apk with Astro File Manager, select it and choose "install."
Click to expand...
Click to collapse
To each his own. And you are titled to your opinion just as i am mine.
downloading an App on a computer storing it to your c:/<android_tools> folder then typing
Code:
adb install -s app_name.apk
is super easy.
most people are scared of ADB because it requires using the dreaded command prompt on your computer. And people are afraid of that.

neidlinger said:
To each his own. And you are titled to your opinion just as i am mine.
downloading an App on a computer storing it to your c:/<android_tools> folder then typing
Code:
adb install -s app_name.apk
is super easy.
most people are scared of ADB because it requires using the dreaded command prompt on your computer. And people are afraid of that.
Click to expand...
Click to collapse
why the -s switch?

velizet said:
why the -s switch?
Click to expand...
Click to collapse
adb install -s app_name.apk
Click to expand...
Click to collapse
will install the app onto the sdcard.
-l means forward-lock the app
-r means reinstall the app, keeping its data
-s means install on SD card instead of internal storage

neidlinger said:
To each his own. And you are titled to your opinion just as i am mine.
downloading an App on a computer storing it to your c:/<android_tools> folder then typing
Code:
adb install -s app_name.apk
is super easy.
most people are scared of ADB because it requires using the dreaded command prompt on your computer. And people are afraid of that.
Click to expand...
Click to collapse
No need to store the app in that folder. I keep my apks in a random one under my documents. When you want to install, just
Code:
adb install "drag the apk into command prompt"
and it will install just fine.

Nburnes said:
No need to store the app in that folder. I keep my apks in a random one under my documents. When you want to install, just
Code:
adb install "drag the apk into command prompt"
and it will install just fine.
Click to expand...
Click to collapse
Is it not possible to specify the folder of the apk file in the command line?
Something like:
adb install C:\<app_folder_path>\app_name.apk

Related

Facebook for Android - MIA

I applied the latest CM-update, and upon reboot my Facebook application was not showing, not listed in settings (manage application) or application directory. but if you attempt to install from Market it shows as installed and Open & Uninstall are grayed out. does anyone have an idea how to resolve this ???
Did you try ADBing in, removing the app, then reinstalling?
Mi|enko said:
Did you try ADBing in, removing the app, then reinstalling?
Click to expand...
Click to collapse
Hmmm - ADBing (must research this and find the appropriate instructions) .. I have never attempted something like this, Just a simple flash ROM guy; but I do have a little technical experience..
Is it very complicated ???
Shouldn't be too hard. Download adb (from the tools folder from the Android SDK), first do "adb remount", then use "adb shell" once it's set up, then you should get the rest, at least if you know basic unix commands like cd and rm. I think it's in /system/app somewhere, btw. If you need any help, just ask
The Compiler said:
Shouldn't be too hard. Download adb (from the tools folder from the Android SDK), first do "adb remount", then use "adb shell" once it's set up, then you should get the rest, at least if you know basic unix commands like cd and rm. I think it's in /system/app somewhere, btw. If you need any help, just ask
Click to expand...
Click to collapse
All better now...Thanks you guys...

[Q] Terminal Emulator....Help??? Anyone???

I have wiped and restored more times tonight than I can count....HELP!!!! I have a very lean rom. So lean it that it has no file explorer and I don't want to install gapps. All I want to do is install Titanium Backup (the .apk file is on the root of my SD card) with the terminal emulator and I'll be all set. I have had all different error messages, and I'm more confused now then when I started this adventure, 6+ hours ago. Any help would be great.
hockeyfamily737 said:
I have wiped and restored more times tonight than I can count....HELP!!!! I have a very lean rom. So lean it that it has no file explorer and I don't want to install gapps. All I want to do is install Titanium Backup (the .apk file is on the root of my SD card) with the terminal emulator and I'll be all set. I have had all different error messages, and I'm more confused now then when I started this adventure, 6+ hours ago. Any help would be great.
Click to expand...
Click to collapse
Just download a file manager, (es fileexplorer, or root explorer) and install it that way. or if you have adb and all the drivers you need for it.
Put the .apk in the tools folder in the SDK
and go to it in a command prompt and type adb install titaniumbackup.apk..
Or whatever you apk is named.
if you need help, dont quote this, just send me a pm for help =]
(Posting this again for others reference all this is pulled from my previous post which you can find in my signature - "Terminal/adb shell commands")
Adb commands are completely different than terminal commands.
First enter "su" to get substitute user (the # sign)
Then enter "mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system" to make the root r/w
to copy files use "cp" command
to move files use "mv" command
to remove files use "rm" command
to change file/dir permissions use "chmod"
to change directories use "cd" - "cd .." will bring you back one directory - "cd //" brings you back to root
to list files in the dir use "ls"
to read/mod/combine a file use "cat"
to edit a value use "echo"
to see running processes use "top"
to kill a process use "kill -9 PID#HERE"
ex) cp /sdcard/download/myapplication.apk /data/app/myapplication.apk
If you know any linux commands then you should know your way around terminal emulator. If you want i can give you more examples just let me know. Hope this helped
To answer your question OP, just follow my example. Except in your case it'd be something like this:
Code:
su
cp /sdcard/TitaniumBackup.apk /data/app/TitaniumBackup.apk
replace "titaniumbackup.apk" with the actual file name of your apk file.
Sent from my Android using Tapatalk
kyouko said:
(Posting this again for others reference all this is pulled from my previous post which you can find in my signature - "Terminal/adb shell commands")
Adb commands are completely different than terminal commands.
First enter "su" to get substitute user (the # sign)
Then enter "mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system" to make the root r/w
to copy files use "cp" command
to move files use "mv" command
to remove files use "rm" command
to change file/dir permissions use "chmod"
to change directories use "cd" - "cd .." will bring you back one directory - "cd //" brings you back to root
to list files in the dir use "ls"
to read/mod/combine a file use "cat"
to edit a value use "echo"
to see running processes use "top"
to kill a process use "kill -9 PID#HERE"
ex) cp /sdcard/download/myapplication.apk /data/app/myapplication.apk
If you know any linux commands then you should know your way around terminal emulator. If you want i can give you more examples just let me know. Hope this helped
To answer your question OP, just follow my example. Except in your case it'd be something like this:
Code:
su
cp /sdcard/TitaniumBackup.apk /data/app/TitaniumBackup.apk
replace "titaniumbackup.apk" with the actual file name of your apk file.
Sent from my Android using Tapatalk
Click to expand...
Click to collapse
i know theyre different,i was getting a point across, in which if he cant get it too work, try adb. Even though errors with TE usually means youre not entering something correct
davidevan said:
i know theyre different,i was getting a point across, in which if he cant get it too work, try adb. Even though errors with TE usually means youre not entering something correct
Click to expand...
Click to collapse
Yea they are. Besides, personally I'd do it the way you mentioned; either first using a filemanager (easiest imo) or via adb install
Only reason I replied was in case there was a specific reason he'd only want to use terminal emulator and not adb or a FileMan
Edit: Oh I see what I think you're referring to, the line:
Adb commands are completely different than terminal commands.
Click to expand...
Click to collapse
That was just directly copied from a post I made before something about wanting to "adb push" with TE, it had nothing to do with your response
Sent from my Android using Tapatalk
Thank you everyone. I need to use Terminal Emulator, because I'm not allowed to install the ADB drivers on my work computer, the ROM I want to use did not have a file manager packed in it and I don't want to install gapps to download one from the market. I simply want to install Titanium, so I can add a file manager and a couple of other select apps so as not to clutter up the system. As soon as I flash back to that rom, I'll try it the above mentioned way.
hockeyfamily737 said:
Thank you everyone. I need to use Terminal Emulator, because I'm not allowed to install the ADB drivers on my work computer, the ROM I want to use did not have a file manager packed in it and I don't want to install gapps to download one from the market. I simply want to install Titanium, so I can add a file manager and a couple of other select apps so as not to clutter up the system. As soon as I flash back to that rom, I'll try it the above mentioned way.
Click to expand...
Click to collapse
Ah thats sucks bro, it come in handy now and then, Listen to this guy up here since he knows more about TE than I. Also a simple google "terminal emulator" command and it might add on to your comprehension.
And judt to get this outta of the way, in TE if you do type su <enter> you get #? if you dont #,you get acces denied; denied meaning youre not rooted. Meaning it cant find an su in the bin or xbin, rendering TE pointless. So make sure youre root
hockeyfamily737 said:
Thank you everyone. I need to use Terminal Emulator, because I'm not allowed to install the ADB drivers on my work computer, the ROM I want to use did not have a file manager packed in it and I don't want to install gapps to download one from the market. I simply want to install Titanium, so I can add a file manager and a couple of other select apps so as not to clutter up the system. As soon as I flash back to that rom, I'll try it the above mentioned way.
Click to expand...
Click to collapse
btw click my thanks meter ;]
its the ony thing i have left lmao! :'(
davidevan said:
Ah thats sucks bro, it come in handy now and then, Listen to this guy up here since he knows more about TE than I. Also a simple google "terminal emulator" command and it might add on to your comprehension.
And judt to get this outta of the way, in TE if you do type su <enter> you get #? if you dont #,you get acces denied; denied meaning youre not rooted. Meaning it cant find an su in the bin or xbin, rendering TE pointless. So make sure youre root
Click to expand...
Click to collapse
and how is your computer not compatible with SDK. You dont have Windows, linux or Macc?
davidevan said:
and how is your computer not compatible with SDK. You dont have Windows, linux or Macc?
Click to expand...
Click to collapse
It's not an issue of compatibilty..... It's an issue of the IT people at work having our computers locked up so we can't install / uninstall anything from them. All I can do is transfer files from the pc to my sd. I don't have authorization to install the necessary drivers for my phone.
hockeyfamily737 said:
It's not an issue of compatibilty..... It's an issue of the IT people at work having our computers locked up so we can't install / uninstall anything from them. All I can do is transfer files from the pc to my sd. I don't have authorization to install the necessary drivers for my phone.
Click to expand...
Click to collapse
If you can transfer files from a computer to a device, then you should be able to take files from a USB drive and put them on the C drive of your computer.
waffle_ said:
If you can transfer files from a computer to a device, then you should be able to take files from a USB drive and put them on the C drive of your computer.
Click to expand...
Click to collapse
To clarify.... Yes I can access my sd card from my computer. Yes I can transfer files between my sd card and my hard drive. However, when I try to install the ADB drivers to access the rom in my phone I get a little message that I'm not authorized to add / remove hardware or software from the computer....to please contact my IT administrator. Maybe it's something I'm doing wrong, maybe it's not. If I can learn to use this emulator though, it doesn't really matter. I have ADB on my computer at home if I really need it, I'm just not inclined to turn the computer at home on very often. Thanks again to everyone for the help.
"
hockeyfamily737 said:
To clarify.... Yes I can access my sd card from my computer. Yes I can transfer files between my sd card and my hard drive. However, when I try to install the ADB drivers to access the rom in my phone I get a little message that I'm not authorized to add / remove hardware or software from the computer....to please contact my IT administrator. Maybe it's something I'm doing wrong, maybe it's not. If I can learn to use this emulator though, it doesn't really matter. I have ADB on my computer at home if I really need it, I'm just not inclined to turn the computer at home on very often. Thanks again to everyone for the help.
Click to expand...
Click to collapse
Search the dev thread for my guide on how to install adb. Might do the job for your work computer. Or just hit my avatar and find the thread that way. If you do try it let me know if it works.
#Root/Hack_Mod-Always®
laie1472 said:
"
Search the dev thread for my guide on how to install adb. Might do the job for your work computer. Or just hit my avatar and find the thread that way. If you do try it let me know if it works.
#Root/Hack_Mod-Always®
Click to expand...
Click to collapse
Sitll no good installing ADB at work, but I did get a good ADB workout at home this weekend rooting my son's Optimus......Wholy crap!!! Revert to old software, lose the lcd display, root with rage against the cage, push recovery to the phone, revert back to current version of software, lose root, and then re-root on current software with recovery already installed, what a process that was!!!! BTW.... Terminal Emulator commands worked perfect. Mistake I was making was trying to "push" from my SD card instead of "copy".

[Q] Don't know how to connect D3 using ADB

When i open ADB all it does is it has a lot of white writing that scrolls along and then closes, does anyone know if i set it up wrong, or if they could post step by step instructions? it would be much appreciated, Thanks.
what operating system are you using
smoshism said:
what operating system are you using
Click to expand...
Click to collapse
I am using windows 7
um, is there a way to remount adb? im on ubuntu so i cant help out a whole lot. but maybe i can bounce some ideas that could work
smoshism said:
um, is there a way to remount adb? im on ubuntu so i cant help out a whole lot. but maybe i can bounce some ideas that could work
Click to expand...
Click to collapse
im not sure, im not very familiar with ADB
I'm pretty new to this, but seems to me you are trying to open the adb that psouza includes with his tools. (If not, then just ignore me)
that's not gonna work for what you are trying to do. i think you need to download the android sdk to get adb working.
SrulDog said:
I'm pretty new to this, but seems to me you are trying to open the adb that psouza includes with his tools. (If not, then just ignore me)
that's not gonna work for what you are trying to do. i think you need to download the android sdk to get adb working.
Click to expand...
Click to collapse
i am using the one in the SDK, i have it on my c drive in the correct spot but it still closes itslef
Are you clicking it like an icon or running it from a DOS prompt? It is to be run from the command line as it is a dos/command line program..
Ie.. at the c:\android-sdk-x86\platform_tools\ prompt you type adb and what you want to do.
Adb push or adb pull or adb shell, etc. Just adb will give some command options
Sent from my Xoom
d7benjamin said:
When i open ADB all it does is it has a lot of white writing that scrolls along and then closes, does anyone know if i set it up wrong, or if they could post step by step instructions? it would be much appreciated, Thanks.
Click to expand...
Click to collapse
First you have to open an elevated command prompt. Do this by clicking the start icon, then typing in "cmd" (without the quotes of course) and then right clicking the only thing that pops up and choosing Run As Administrator. After doing this, you need to know where you folder that contains ADB is at. To find this easily, click Start and then click Computer and in the explorer window that just popped up, type in "adb.exe". That will show you where your adb files are at.
Continuing on, for an example, my adb stuff is in C:\root stuffz. So in the command prompt I would type in "cd c:\root stuffz" and then hit enter. After that, I can then do my adb commands, such as "adb shell", "adb push", "adb pull", etc...
Edit: Make sure you have your drivers installed for the phone. Also, make sure the phone is in debug mode and charge only. This should just about cover most of the absolute basics of getting your phone recognized by adb. I'm not too sure if I missed anything, and one of the other more experienced peeps on here can prob give you more detailed information lol.

How do I transfer apps from my pc to my rooted nook touch?

Hello everybody! I have a lot of android apps on my pc and I want to transfer them to my nook, but I don't know if it is possible. If it is, which folder do I drop them off in? I tried to find where the other apps are installed in my nook that I directly download from the android market, but I can't find their location. Please help me out, I really need some of the apps I have and I can't even find them or can't download them directly. Thank you for your time!
psbear532 said:
Hello everybody! I have a lot of android apps on my pc and I want to transfer them to my nook, but I don't know if it is possible. If it is, which folder do I drop them off in? I tried to find where the other apps are installed in my nook that I directly download from the android market, but I can't find their location. Please help me out, I really need some of the apps I have and I can't even find them or can't download them directly. Thank you for your time!
Click to expand...
Click to collapse
Use adb
Code:
adb install myapp.apk
ros87 said:
Use adb
Code:
adb install myapp.apk
Click to expand...
Click to collapse
Thanks for taking your time to help me I really appreciate it. I've run into a problem though. when I try to set up adb it wont find my device in the cmd prompt. I am following these instructions to set up adb: search in youtube "ANDROID SDK Tools (How-To Install)" first video. I get stuck at the part at 6:23 it just says "list of devices attached" and doesn't list anything. I don't know what am doing wrong .
psbear532,
You can use a file explorer program (astro, es explorer, etc), and choose the apk on sd and install it. Just remember to use nookcolortools and de-select and re-select the non-market app box.
I guess it would be easier - I haven't had luck with adb so far...
psbear532 said:
Thanks for taking your time to help me I really appreciate it. I've run into a problem though. when I try to set up adb it wont find my device in the cmd prompt. I am following these instructions to set up adb: search in youtube "ANDROID SDK Tools (How-To Install)" first video. I get stuck at the part at 6:23 it just says "list of devices attached" and doesn't list anything. I don't know what am doing wrong .
Click to expand...
Click to collapse
Assuming you've successfully rooted your NST:
1: Enable wifi on your NST and make a note of the IP address assigned to it.
2: Tell adb to connect to that IP
Code:
adb connect 10.0.0.2
That's it, if adb was able to connect you can now adb push or adb install all you want
---------- Post added at 01:41 AM ---------- Previous post was at 01:39 AM ----------
apeine said:
psbear532,
I guess it would be easier - I haven't had luck with adb so far...
Click to expand...
Click to collapse
Why?, apart from having to download and install the Android SDK, using adb should be straightforward unless you're trying to get it to connect to the NST trough usb.
Ros87,
Maybe that was my mistake. I've always tried using USB :S
apeine said:
Ros87,
Maybe that was my mistake. I've always tried using USB :S
Click to expand...
Click to collapse
Getting adb to work over USB on the NST is a pain in the a**
Some people have reported getting it to work with the Google drivers, but none of them worked for me in W7. Also I'm unable to try it in Ubuntu as I'm running that trough VMware Player and I cannot redirect the USB port properly.
Thank you both so much! Ros87 I got it to work over wifi which I think is even better since now I don't even have to deal with the wire. apeine I didn't try your method since adb worked, but thanks for your time anyway.
ros87 said:
Getting adb to work over USB on the NST is a pain in the a**
Some people have reported getting it to work with the Google drivers, but none of them worked for me in W7. Also I'm unable to try it in Ubuntu as I'm running that trough VMware Player and I cannot redirect the USB port properly.
Click to expand...
Click to collapse
So why don't you install linux on a separate partition?
How does one do this without an SD card? I will be getting one soon, but for now, can I just create a temporary folder on the home directory and install it from there? Does it automatically install to the apps directory?
Thanks!
EDIT: I just figured out how much you can browse with the computer. So...
The simplest method is to just copy the apps to an SD card, insert the card,browse to the .apk location,tap on the .apk file, you will be prompted with an screen asking if you want to proceed to install or just use the adb over wifi method as explained above
I use and app names Airdroid. It allows you to install apps remotely from your computer via wifi.
I have an "apk" folder in my UbuntuOne account, Dropbox should work too.
then i have the app for the service installed.
it works fine for me

Recovering files from broken S3 (dead lcd)?

Allright. I recently broke my S3 LTE's LCD when i was trying to change glass. Now my problem is that it tells my S3 is an portable media player, so it won't let me just open my folders and stuff. What i can do to save my important pictures and stuff. Thanks in advance!! :fingers-crossed::good:
Is adb enabled on the device?
Magik_Breezy said:
Is adb enabled on the device?
Click to expand...
Click to collapse
I don't think it's enabled, but i can't be sure im right.
Such Name said:
I don't think it's enabled, but i can't be sure im right.
Click to expand...
Click to collapse
Unfortunetly there is no instantaneous way to see if adb is enabled and you will be required to install the relevant tools to know.
1. Download and install the Samsung USB Drivers from http://developer.samsung.com/android/tools-sdks/Samsung-Android-USB-Driver-for-Windows
2. Download and install minimal adb and fastboot from http://forum.xda-developers.com/showthread.php?t=2317790 - thanks to shrimp208 for providing us with this so we don't have to install the whole SDK.
3. Run cmd and change directory to the location of adb.exe (e.g. cd C:\users\admin\downloads\apt), run 'adb.exe start-server' then 'adb.exe devices' to see if your phone has adb running.
If adb is running you can copy files from you're phone's file system to your pc with 'adb pull' (e.g. adb pull adb pull
/data/app C:\users\admin\downloads\apt).
Best of luck
Magik_Breezy said:
Unfortunetly there is no instantaneous way to see if adb is enabled and you will be required to install the relevant tools to know.
1. Download and install the Samsung USB Drivers from http://developer.samsung.com/android/tools-sdks/Samsung-Android-USB-Driver-for-Windows
2. Download and install minimal adb and fastboot from http://forum.xda-developers.com/showthread.php?t=2317790 - thanks to shrimp208 for providing us with this so we don't have to install the whole SDK.
3. Run cmd and change directory to the location of adb.exe (e.g. cd C:\users\admin\downloads\apt), run 'adb.exe start-server' then 'adb.exe devices' to see if your phone has adb running.
If adb is running you can copy files from you're phone's file system to your pc with 'adb pull' (e.g. adb pull adb pull
/data/app C:\users\admin\downloads\apt).
Best of luck
Click to expand...
Click to collapse
Huge thanks for this help. It tells me "List of devices attached: 430008b6b6f9a0b1 device" and sorry for stupid question, but what does that mean?
Such Name said:
Huge thanks for this help. It tells me "List of devices attached: 430008b6b6f9a0b1 device" and sorry for stupid question, but what does that mean?
Click to expand...
Click to collapse
That is your device id, this means you should be able to recover your files.
Initiate 'adb.exe shell' and it should automatically select your device. You can then navigate using the 'cd' command to change directory and 'ls' to list all files/folders in that directory. After finding the files you can pull them from your device to your computer
Magik_Breezy said:
That is your device id, this means you should be able to recover your files.
Initiate 'adb.exe shell' and it should automatically select your device. You can then navigate using the 'cd' command to change directory and 'ls' to list all files/folders in that directory. After finding the files you can pull them from your device to your computer
Click to expand...
Click to collapse
Thanks you very much . I was able to save all files/memories with ADB. I can't even thank you enough! :laugh:
I'm glad I could help, praise the ADB. Hit thanks if you wish

Categories

Resources