[Q] Pushing Gapps To ginger bread. - Nexus One Q&A, Help & Troubleshooting

I just got Chis's GB rom and as usual it is lacking Google apps, I understand that I must flash them or use adb push, but every time i try adb push it never works!!
I copy the apk files and paste it under androidsdk/tools
then i go to command: cd\androidSDK\tools\adb push androidmarket.apk /system/app/.
then when it should show the file size and download time, it just says directory not found, I've watched tons of tuts, but it does the same every time. What am I doing WRONG!?!

and i know i spelled gingerbread wrong, sorry!

try
cd {path to your android sdk tools} (just drag it to your terminal) enter
androidSDK/tools/ adb root enter
androidSDK/tools/ adb push {path to your .apk, again just drag} /system/app/ enter
it should push then, where did you download the latest gapps from?

I picked them up from the cyanogen guys, u cant flash them all as u normally would because you will get a boot loop.

gullygossner said:
cd {path to your android sdk tools} (just drag it to your terminal) enter
androidSDK/tools/ adb root enter
androidSDK/tools/ adb push {path to your .apk, again just drag} /system/app/ enter
it should push then, where did you download the latest gapps from?
Click to expand...
Click to collapse
I tried this method, but for some reason adb is acting up because almost everything i do it says "permission denied"

You need to mount the file system as rw first.

thanks to both of you guys, i successfully pushed the market on the nexus, however, IT KEEPS CRASHING!!!! It truly never ends! any ideas for this one?

Related

Pushing apps to phone

does anyone know if there are ways to push the apps from the sd card to the phone such as My faves, amazon mp3, etc, basically, any apps having to do with the possible t-mobile build?
Well if they will work on every build i am not sure,but i can tell you how to push the apps to your phone.
1.First put your phone in bootmode by shutting it down then restarting holding down the home button.
2.you need to connect to the tools folder in your SDK my SDK folder sits on my desktop so with my phone connected in bootmode open the CMD and i would do cd C:\Users\owner\Desktop\android-sdk-windows-1.5_r1 then cd tools.
3.Now your ready to mount the phone adb shell mount /system
4.Next step would be to push the .apk you want adb push Myfaves.apk /system/app
5.The app should be pushed.
You can also use adb install AppName.apk
manup456 said:
Well if they will work on every build i am not sure,but i can tell you how to push the apps to your phone.
1.First put your phone in bootmode by shutting it down then restarting holding down the home button.
2.you need to connect to the tools folder in your SDK my SDK folder sits on my desktop so with my phone connected in bootmode open the CMD and i would do cd C:\Users\owner\Desktop\android-sdk-windows-1.5_r1 then cd tools.
3.Now your ready to mount the phone adb shell mount /system
4.Next step would be to push the .apk you want adb push Myfaves.apk /system/app
5.The app should be pushed.
Click to expand...
Click to collapse
Could use Terminal its great

/sdcard/ problem

i can never access from terminal
/sdcard/app.apk when tryin to install from someones commands.. they say cp /sdcard/app.apk /system/app
then i get cp cannot stat '/sdcard/app.apk no such file or directory?
mrnv45 said:
i can never access from terminal
/sdcard/app.apk when tryin to install from someones commands.. they say cp /sdcard/app.apk /system/app
then i get cp cannot stat '/sdcard/app.apk no such file or directory?
Click to expand...
Click to collapse
Is the .apk on the root of your card?
whats the app name? just want to confirm your using the apk files name instead of "app.apk"
mrnv45 said:
i can never access from terminal
/sdcard/app.apk when tryin to install from someones commands.. they say cp /sdcard/app.apk /system/app
then i get cp cannot stat '/sdcard/app.apk no such file or directory?
Click to expand...
Click to collapse
It sounds like you've got your commands mixed up. What are you trying to do exactly? You shouldn't really be pushing apps to /system while the phone is on..
just any app exapmle..
i tried to install the modified contacts.apk so i just go by the abundence of commands i got since it wasnt workin while in recovery in terminal to adb push /sdcard/contacts.apk /system/app/contacts.apk (with or without the last contac ts.apk on this section cause i know some do it without and just leave the folder name)
also when i am in my terminal and i to all that rw, -o,remount code they give you but i never can access /sdcard/ that away either.. and i usually just go to recovery load up adb shell ums_enable and the i run adb install f:/contacts.apk but then i get a sh: bin error or something like that..
now i cant even access my sdcard via adb using adb shell ums_enable/disable ..and at times a cant adb remount it says remount unsuccesful.. idk just alot of crazy ****
your sd card is probably going bad. also the commands are case sensitive. Contacts.apk
also RA recovery lets you toggle usb. you dont have to type ums_enable disable
just go and click on "toggle usb" in the recovery

trying to adb push an xml file to g1

hi, i'm running cm5 test 4 on my g1 and for the most part it's been great...except for the slow market...so i did my research and found that there's an xml file that you can push to fix this issue-http://www.google.com/support/forum/p/Android+Market/thread?tid=1ea082d443f3d16c&hl=en...so i copied the file, named it "marketfix" and stuck it in C:...tried to adb push it like this - adb push C:\marketfix.rtf /data/data/com.android.vending/shared_prefs/vending_preferences.xml - but after that i get an "adb: not found"...what did i do wrong? any help would be appreciated...thanks in advance!
naars90 said:
hi, i'm running cm5 test 4 on my g1 and for the most part it's been great...except for the slow market...so i did my research and found that there's an xml file that you can push to fix this issue-http://www.google.com/support/forum/p/Android+Market/thread?tid=1ea082d443f3d16c&hl=en...so i copied the file, named it "marketfix" and stuck it in C:...tried to adb push it like this - adb push C:\marketfix.rtf /data/data/com.android.vending/shared_prefs/vending_preferences.xml - but after that i get an "adb: not found"...what did i do wrong? any help would be appreciated...thanks in advance!
Click to expand...
Click to collapse
Either you don't have adb installed, you didn't set it up correctly, or you aren't in the directory where adb is installed.
Solutions are: Setup adb, set it up correctly, or change your directory in your cmd prompt to the directory where the adb.exe file is located.
Additionally, make sure you aren't entering the command superfluously like:
Code:
adb shell
adb push blah blah blah
You can't push files from within adb so once you open you cmd prompt and navigate to the correct directory do adb push directly from there, don't try and go into the shell and then execute adb push like I outlined above

[Q] how to get market

I just put cm7 on a sd and am running it on my NC. how do I get the market on it? I saw one link but don't understand how to do it.
If all you want is the market, you can download the newest market APK from my webserver. The link is:
http://www.r00tyou.com/android/tools/Vending(new).apk
To push it to the device simple connect the device to your computer using ADB and type the following in the console:
adb devices
adb install \path\to\the\downloaded\apk.apk
Click to expand...
Click to collapse
Wait for it to successfully transfer over and install.
The viola, you have the newest market APK.
However, I suggest that you download the newest GAPPS from the cyanogen website and push over the whole gapps.
To do this, simply download the latest GAPPS from here:
http://wiki.cyanogenmod.com/index.php?title=Latest_Version#Google_Apps
Again, using ADB type the following commands:
adb shell mount -o remount,rw /dev/block/mmcblk0p5 /system
adb push [the path to your SDK tools folder]\system system/
adb reboot
Click to expand...
Click to collapse
The console will show the progress of what apps are being transferred over and installed. Once it is done rebooting it will prompt you for logging in to your google account to setup your device. You can simply skip this (Tapping in each corner of the screen starting from the top left going clockwise) or you can proceed with the setup process.
Hope that helps
Thanks for the info. It took some doing because I haven't written code since DOS.
Thanx alot man i had the same problem and this worked perfecty
Not sure if it's important since /system/ is mounted ro anyway but all apps in /system/app/ have 644 permissions, pushing files with adb (whether in linux or windoz) will give them 755 permissions defaultly, so I usually do a:
chmod 644 [app-name].apk
after I transfer the file. Might be a good idea to do this if you are remounting it a lot.
Cheers,
Mike
PS. Themed Markets :-D

ADB Shell not working, but my N1 isn't bricked

I wanted to use USB Tunnel to share my PC's internet connection with the phone, but I got the error:
Code:
- exec '/system/bin/sh' failed: No such file or directory (2) -
I tried to install other APK's through ADB and they also failed, so I googled this error and I saw that the main issue is a failing ADB Shell. I tried to open Shell and I got the same error. The difference between me and the other users is that my phone is booting as usual, USB Mass Storage works, the phone is detected by fastboot- and adb devices commands and everything is working as intended, except for installing APKs through ADB/opening Shell.
Here is my phone's current config:
MeDroidMod 1.4.4 w/ HWA
Latest Tiamat kernel
TexasICE HBOOT w/ 210/8/218 partition layout
4GB microSD card...I don't know the filesystem but it's definitely NOT ext4, so there's not A2SD for me (I think it's FAT or FAT32)
ClockWorkMod Recovery
gnexus47 said:
I wanted to use USB Tunnel to share my PC's internet connection with the phone, but I got the error:
Code:
- exec '/system/bin/sh' failed: No such file or directory (2) -
I tried to install other APK's through ADB and they also failed, so I googled this error and I saw that the main issue is a failing ADB Shell. I tried to open Shell and I got the same error. The difference between me and the other users is that my phone is booting as usual, USB Mass Storage works, the phone is detected by fastboot- and adb devices commands and everything is working as intended, except for installing APKs through ADB/opening Shell.
Here is my phone's current config:
MeDroidMod 1.4.4 w/ HWA
Latest Tiamat kernel
TexasICE HBOOT w/ 210/8/218 partition layout
4GB microSD card...I don't know the filesystem but it's definitely NOT ext4, so there's not A2SD for me (I think it's FAT or FAT32)
ClockWorkMod Recovery
Click to expand...
Click to collapse
Which adb commands did you use? Can you list the commands here that you had used? It could be that you didn't issue su command to get superuser rights?
you don't need to be in Shell to push apk
put the apk on your C: drive
open command window and navigate to the folder you have adb/fastboot in--normally tools of your sdk
then:
type adb devices--then
1. adb remount
2. adb push C:/CalendarGoogle.apk /system/app/CalendarGoogle.apk
3. adb push C:/CalendarProvider.apk /system/app/CalendarProvider.apk
4. adb shell
7. chmod 777 system/app/CalendarGoogle.apk
11. chmod 777 system/app/CalendarProvider.apk
12. exit
13. Reboot
use the apk name of whatever you are flashing in place of mine and your chmod may not be exactly like mine--
ADB Shell
rugmankc said:
you don't need to be in Shell to push apk
put the apk on your C: drive
open command window and navigate to the folder you have adb/fastboot in--normally tools of your sdk
then:
type adb devices--then
1. adb remount
2. adb push C:/CalendarGoogle.apk /system/app/CalendarGoogle.apk
3. adb push C:/CalendarProvider.apk /system/app/CalendarProvider.apk
4. adb shell
7. chmod 777 system/app/CalendarGoogle.apk
11. chmod 777 system/app/CalendarProvider.apk
12. exit
13. Reboot
use the apk name of whatever you are flashing in place of mine and your chmod may not be exactly like mine--
Click to expand...
Click to collapse
I don't use ADB Shell to push APK's. That's just another thing which doesn't work.
@taodan: I only use: adb install xxxxx.apk.
A work around is to mount the sdcard and drag and drop the apks to the sdcard. Then install using your favorite file manager.
evilkorn said:
A work around is to mount the sdcard and drag and drop the apks to the sdcard. Then install using your favorite file manager.
Click to expand...
Click to collapse
that will work too, i've used root explorer to copy paste from sdcard to correct file location. prefer adb. set your permissions after
did you try adb remount first, not sure if that would help
what i was saying is you don't need to type adb shell. assuming you are doing this from a pc command terminal window.
you can use the commands I gave above to push apk. i think when you push it copies apk to phone leaving apk on pc also. install actually moves it to phone--as i understand it
here is some links and info that might help.*
http://www.talkandroid.com/guides/beginner/install-apk-files-on-android/#.T2-cdaJST3U
http://www.brighthub.com/mobile/google-android/articles/37151.aspx
also, have you ever had luck installing/pushing apk's. you may not have the correct environmental path on pc or are typing incorrect path in your command line
you can google environmental path editing for android and get examples of how to do it--i am not even sure mine is set right since I still have to type the full path in command window to use adb
sorry if this is old news just trying to find your problem

Categories

Resources