[Q] Where do you put apks you want to push to your phone? - Nexus S Q&A, Help & Troubleshooting

sorry noob question, but when you have an apk on the computer, what folder do you put it in so that you can push it to your phone via ADB?
...and where do the files go when you 'pull' them from your phone? ie what directory?
thank you!

.apk you can install like any other app so u don't need to push it. As far as pulling I'm not sure I use root explorer to move files instead of adb
Sent from my Nexus S

FaithCry said:
sorry noob question, but when you have an apk on the computer, what folder do you put it in so that you can push it to your phone via ADB?
...and where do the files go when you 'pull' them from your phone? ie what directory?
thank you!
Click to expand...
Click to collapse
You can just put them wherever you want and specify the full path in your adb command, both ways...
For example, I recently pulled a file from my phone to push to another:
Code:
adb pull /data/app/com.neevo.mobiledefense-1.apk /Users/dave/Dropbox/Android\ Apps

If you're using windows command prompt you could just drag the file into the terminal I believe and it will autopopulate the directory. Correct me if I'm wrong.
Sent from my Nexus S using XDA App

peeturr said:
If you're using windows command prompt you could just drag the file into the terminal I believe and it will autopopulate the directory. Correct me if I'm wrong.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
That should work on Windows, and on Macs as well. Probably would work in a Linux GUI environment as well.

easiest way is to install from Dropbox
FaithCry said:
sorry noob question, but when you have an apk on the computer, what folder do you put it in so that you can push it to your phone via ADB?
...and where do the files go when you 'pull' them from your phone? ie what directory?
thank you!
Click to expand...
Click to collapse
easiest way is to use DROP BOX
Then drag any APK you want to install into the Drop Box
and in your phone just install the app or game from you Drop Box
the best thing is you get a FREE 2GB, when you sign up

Related

Downgrade Help

I'm having trouble downgrading to 8.2.2.9 from 8.2.2.13. When I power down the unit and try to install the update it shows a progress bar for 2 seconds and then shows a warning symbol. It eventually starts up, but it is still 8.2.2.13. Is there anything I am missing here?
I tried placing the unzipped files on the root of my SD card, and then powered down my Transformer. Powered back on by holding down power and volume down.
Please help.
Did you put this file in the root of the sd card US_epad-user-8.2.3.9.zip?
type3 said:
Did you put this file in the root of the sd card US_epad-user-8.2.3.9.zip?
Click to expand...
Click to collapse
Where is that located? I downloaded the file from Asus's site, and the unzipped it, and then just placed the contents in the root of the SD card. I'm not seeing that file.
It's inside the folder called update
When you unzip the file you downloaded from asus you'll see a folder called asus inside that folder there's another folder called update inside that folder there is the file you need to put in the root of your sd card
type3 said:
When you unzip the file you downloaded from asus you'll see a folder called asus inside that folder there's another folder called update inside that folder there is the file you need to put in the root of your sd card
Click to expand...
Click to collapse
Ok. I think I downloaded the wrong file? I'm attempting it now.
Edit: Where is the file I'm supposed to download? I've tried 3 different files now.
Cory1234 said:
Ok. I think I downloaded the wrong file? I'm attempting it now.
Edit: Where is the file I'm supposed to download? I've tried 3 different files now.
Click to expand...
Click to collapse
http://db.tt/EEElFqP
Thanks. I was able to downgrade. Now I'm having problems with ADB. I followed the guide located here: http://forum.xda-developers.com/showthread.php?t=1071584.
I'm not seeing the platform-tools folder. I see a platform folder, and a tools folder, but no platform-tools folder.
Cory1234 said:
Thanks. I was able to downgrade. Now I'm having problems with ADB. I followed the guide located here: http://forum.xda-developers.com/showthread.php?t=1071584.
I'm not seeing the platform-tools folder. I see a platform folder, and a tools folder, but no platform-tools folder.
Click to expand...
Click to collapse
i think you just need the tools folder give it a try with a command prompt window
In new SDK there's no ADB in the zip file, you need to go to "tools" directory and run i think it is "android" command and it will allow you to download. It will go to "platform-tools" directory.
There is also a text file in tools directory explaining this
type3 said:
http://db.tt/EEElFqP
Click to expand...
Click to collapse
MD5? thanks in advance!
Thank you guys for your help so far. I'm finally working on doing the actual root.
Where do I place the blob zip file? Inside of the Platform tools? Or just inside of Android-SDK?
When I got to step 4, nothing happened.
Cory1234 said:
Thank you guys for your help so far. I'm finally working on doing the actual root.
Where do I place the blob zip file? Inside of the Platform tools? Or just inside of Android-SDK?
When I got to step 4, nothing happened.
Click to expand...
Click to collapse
You shoul extract files from zip and put CWM_BLOB_5, gingerbreakBB and superuser in platform-tools folder and then adb push gingerbreakBB (step 2) change file permission (step 3) run adb shell and execute gingerbreakBB (step 4) and let it do its magic to get temp root
After this you can push cwmblob to install CWM and insecure boot and you'll be ROOTED
Sent from my Transformer TF101 using XDA Premium App
At step 4 I get: /data/local/gingerbreakBB: not found.
Cory1234 said:
At step 4 I get: /data/local/gingerbreakBB: not found.
Click to expand...
Click to collapse
That means you haven't pushed gingerbreakbb to the transformer
You have to make sure you have all them files in the platform tools folder and start from step 2 again after executing step 2 you should see transfer confirmation eg 300 kb <21500 bytes in 0.70s> and then proceed further if you can't see transfer confirmation check first if adb detects your device if not try reinstalling usb drivers or execute adb remount
Hope this helps
Sent from my Transformer TF101 using XDA Premium App
artiik said:
That means you haven't pushed gingerbreakbb to the transformer
You have to make sure you have all them files in the platform tools folder and start from step 2 again after executing step 2 you should see transfer confirmation eg 300 kb <21500 bytes in 0.70s> and then proceed further if you can't see transfer confirmation check first if adb detects your device if not try reinstalling usb drivers or execute adb remount
Hope this helps
Sent from my Transformer TF101 using XDA Premium App
Click to expand...
Click to collapse
After running "adb push gingerbreakBB /data/local/" in step 2 the command prompt gives me back a bunch of information like : Android Debug Bridge version 1.0.26.
ADB is detecting my device. Maybe I am missing something else?
Cory1234 said:
After running "adb push gingerbreakBB /data/local/" in step 2 the command prompt gives me back a bunch of information like : Android Debug Bridge version 1.0.26.
ADB is detecting my device. Maybe I am missing something else?
Click to expand...
Click to collapse
All you should get is transfer conf, the "Android debug..." info only appears when there is something wrong with adb command so it looks like you're doing something wrong there
Just a quick example how the command line should look like
C:\android\android-sdk\platform-tools\adb push gingerbreakBB /data/local
Sent from my Transformer TF101 using XDA Premium App
artiik said:
All you should get is transfer conf, the "Android debug..." info only appears when there is something wrong with adb command so it looks like you're doing something wrong there
Just a quick example how the command line should look like
C:\android\android-sdk\platform-tools\adb push gingerbreakBB /data/local
Sent from my Transformer TF101 using XDA Premium App
Click to expand...
Click to collapse
That's exactly how my command prompt looks like. I'm reinstalling the Android SDK now. Hopefully that fixes things.
Not to totally hijack this thread, but does this downgrading work on 3.1? Because I downloaded the file and well I get cogs and the exclamation mark. Sucks for me cause I'd like to downgrade and then install the rooted 3.1 file.
Edit: I forgot the most important step; Removing the sd card and installing it again.
Be sure to place the update file in the external SDcard root and be sure to name it exactly
EP101_SDUPDATE.zip
or it won't work
Ty

Deleted stock task manager

Hello everyone,
I am new to all hacking and modding so please forgive me if I do something wrong.I was uninstalling applications from my rooted atrix 2 2.3.6 stock when I deleted the task manager can you give me the apk or the file and tell me how to use it.I have the 55.28.37 Asia retail please help me.
Sent from my MB865 using XDA
A word of advice: NEVER delete system applications, instead just freeze them. You never know when you may need them or want them back, and if you delete something (case in point here) that you want back, then you're asking for possible unwanted issues...
Sent from my MB865 using xda's premium carrier pigeon service
Try doing "adb install com.motorola.PerformanceManager.apk" or copy it to SD card and then use some file manager.
kousik said:
Try doing "adb install com.motorola.PerformanceManager.apk" or copy it to SD card and then use some file manager.
Click to expand...
Click to collapse
He should have no problem downloading the file and placing on root of the /sdcard and install like any other .apk (unless he's deleted his file manager also!).
Sent from my MB865 using xda's premium carrier pigeon service
Set the right permissions otherwise even after placing app into system it will not work.
Sent from my MB865
For reference, my Performance Manager's location is /system/app/PerformanceManager.apk and the permissions are rw-r--r-- which is chmod 644
Thanks every one for your replies you people are really helpful
Sent from my MB865 using XDA
If you can give me a step by step guide then it would be very helpful
Sent from my MB865 using XDA
Easiest way is to download the file to your computer, then connect your phone in usb mass storage mode to your computer, copy the .apk file you downloaded to your sdcard (which might show up as D: or E: in your PC), disconnect phone from computer, on phone use the "Files" file manager, go to "sd card", locate the .apk and tap on it to install. (Unknown sources should be ticked in your Settings > Applications)
Delete previous performance Manager that you have copied to system/app folder
Extract the attachment then copy both files to system/app without renaming or modifying them
Now to set the permission press and hold both files one after other for 3 seconds a window will appear in that select permission .
Now set permission as I have attached a Image.
People please help me I copied the apk and odex file and I have set the permissions but its not helping
Sent from my MB865 using xda app-developers app
Please help me
Sent from my MB865 using xda app-developers app
shaurya19 said:
Please help me
Sent from my MB865 using xda app-developers app
Click to expand...
Click to collapse
For future reference just copying files to system/app never works. You ALWAYS have to push them with adb. Do you have adb set up on your computer?
If you must use root explorer, you need to copy the files first to the /system folder, and change the permissions to rw-r--r--.. Then "multi-select" both files and "MOVE" (do not copy) them to the /system/app folder, then reboot immediately. If you can go into recovery mode (with bootstrap or cwm on boot feature), then wipe dalvik and cache partition - if not, it may act up.. and it may not.. I have done this countless times with no issues (unless I was sloppy and forgot to rename or change permissions).
It's not the best method - farshad525hou is right, adb is cleaner.. but it can/does work
alteredlikeness said:
If you must use root explorer, you need to copy the files first to the /system folder, and change the permissions to rw-r--r--.. Then "multi-select" both files and "MOVE" (do not copy) them to the /system/app folder, then reboot immediately. If you can go into recovery mode (with bootstrap or cwm on boot feature), then wipe dalvik and cache partition - if not, it may act up.. and it may not.. I have done this countless times with no issues (unless I was sloppy and forgot to rename or change permissions).
It's not the best method - farshad525hou is right, adb is cleaner.. but it can/does work
Click to expand...
Click to collapse
Using root explorer never worked for me...
Sent from my MB865 using xda app-developers app
farshad525hou said:
Using root explorer never worked for me...
Sent from my MB865 using xda app-developers app
Click to expand...
Click to collapse
Yea, I know some folks are opposed to it and/or can't get it to work properly, but I've doing it for quite some time and never ran into a problem - unless I don't do something right. But, come to think of it, I am usually overwriting old files when pushing with root explorer, not placing new ones - I wonder if that may have something to do with it..?
But, I am all for adb - it's an excellent tool that everyone who wants to mod needs to get familiar with.
I suppose we are getting off topic, but this would make a good discussion thread somewhere...
EDIT: just checked, I guess I'm not alone after all!! http://forum.xda-developers.com/showthread.php?t=1412729 - the key steps are to set permissions (which can't be done on the sdcard) and MOVE to /system/app (or where ever)
Where can i get abd?
Sent from my MB865 using xda app-developers app
farshad525hou said:
For future reference just copying files to system/app never works. You ALWAYS have to push them with adb. Do you have adb set up on your computer?
Click to expand...
Click to collapse
I got adb but should i adb install the file that kousik has posted or should i push both the odex and apk files posted by prasannapmv?
Whenever i type adb remount it says that it is not allowed and when i try to adb install it gives an error
Sent from my MB865 using xda app-developers app
shaurya19 said:
I got adb but should i adb install the file that kousik has posted or should i push both the odex and apk files posted by prasannapmv?
Whenever i type adb remount it says that it is not allowed and when i try to adb install it gives an error
Click to expand...
Click to collapse
Just do adb install xx.xx.xx.apk there is no need to remount (or odex file). What is the error message do you get when you tried adb install? If it says already installed, then go to settings -> applications -> all and uninstall the same, and try adb install again.
kousik said:
Just do adb install xx.xx.xx.apk there is no need to remount (or odex file). What is the error message do you get when you tried adb install? If it says already installed, then go to settings -> applications -> all and uninstall the same, and try adb install again.
Click to expand...
Click to collapse
it says install-failed-dexopt

[Q] Need tool to access phone using PC, cant access phone

I have accidentally installed a theme that is probably of higher resolution than my phone screen. Now in locked mode the unlocking option/pattern/graphics is not visible as it is 'spilling out of screen'.Only a part of large lockscreen wallpaper is occupying my entire screen. Android debugging is on in my device (thankfully). Please suggest me a tool/method using which i can control the phone using PC(or atleast unlock the phone). I (obviously) cannot install anything on my phone, i found some such apps that need installation on phone.
Last option is to flash my phone in recovery with a ROM, but i dont want to do that if other ways possible. my phone is on MIUI ROM developed on 26/9/12
You can wipe your /data in recovery if you don't mind
Or you can manually delete the theme using adb(the apk will be in /data/app).
PS: make a nandroid backup first in case anything goes wrong...
Edit: if you don't know the Apk name, navigate to /data/app and type find(Idk if it will work on windows, cause I tested it in android )
Sent from my LG-P500 using xda premium
how to i enter in my phone's system dir using command line??
what commands to enter?
thankfully i am able to atleast see files and folders in my phone's system using http://code.google.com/p/androidscreencast/
Why would you enter in your system dir.
Btw now that you have access to your phone, download rootexplorer or es file explorer and you'll have access to /data, /system and more
Sent from my LG-P500 using xda premium
but my friend i am not able to access my device,meaning i am not able to unlock it, how do i install it (even if installation possible how to open that app without accessing phone)
i dont know if i am expressing my case properly, i am a noob you see.
Jigar Gada said:
how to i enter in my phone's system dir using command line??
what commands to enter?
thankfully i am able to atleast see files and folders in my phone's system using http://code.google.com/p/androidscreencast/
Click to expand...
Click to collapse
FIRST YOU STOP SPAMMING EVERYWHERE
What is the problem when you can see all system files and folder. Go to data /app.. and delete it. Or if you have moved the theme apk to sdcard.. just browse your sdcard using an adapter and delete that appname.apk from ".android_secure" folder.
Use these (if you havent moved the app to sdcard)
adb shell
login as.. su
cd data/app
ls
rm appname.apk
reboot
problem solved
Sorry 'senior member' , i did not mean to spam but if u can understand my desperation. btw problem solved- a noobie like me suggested to call from a different phone and while on the call change the theme....
i myself tried a lot fiddling with command line but wasnt able to figure out.
Peace \/
Jigar Gada said:
how to i enter in my phone's system dir using command line??
what commands to enter?
thankfully i am able to atleast see files and folders in my phone's system using http://code.google.com/p/androidscreencast/
Click to expand...
Click to collapse
FPChaim said:
Why would you enter in your system dir.
Btw now that you have access to your phone, download rootexplorer or es file explorer and you'll have access to /data, /system and more
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
Sorry I was sleeppy when I replied that...
Sent from my LG-P500 using xda premium

weird adb sideload problem

Hi guys
After a few weeks on f2fs i decided to revert back y filesystem to ext4. Everything goes well except sideloading new rom to my device ( as its completely wiped ) Everything is now formated to ext4. Then the problem starts..
When I'm trying to sideload the rom i get error 'cannot read' even though I've put rom in my adb folder and my device is connected in sideload mode.
If someone could help me via team viewer ( free software allowing you to use my PC from yours PC ) it would be super great.
Thanks
When you type adb devices is your phone recognized?
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
When you type adb devices is your phone recognized?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
yes
screenshot of my ADB folder and command window
toster jp said:
screenshot of my ADB folder and command window
Click to expand...
Click to collapse
Must give the path to your ROM zip. Your cmd prompt runs from c: \users\koppa but the ROM is not there.
You can't put the ROM in the adb folder. That only works if. You haven't added adb to your environment variable path and you have cd to that location
To get this to work either put the ROM in c: \users\koppa or cd to your adb folder or give the full path in the command
Sent from my Nexus 5 using Tapatalk
trying now
thanks
del.
No, sorry. If you want my help,, you'll have to keep replying in this thread
Sent from my Nexus 5 using Tapatalk
toster jp said:
could you pm me on hangouts? my email is : [email protected]
thanks
Click to expand...
Click to collapse
I don't think rootSU or I are going to pm you. The answers here can help others and it's best to keep them here. Did you put the rom.zip in the folder rootSU suggested?
okay
I just thought that you could help with this via TeamViewer so i could learn how to and you know, not spend another hour or two doing super basic things.
+yes
What directory is your ROM.zip?
Sent from my Nexus 5 using Tapatalk
I'm trying to flash stock 4.4.3
Its placed in a few places... C:/users/kopa/adb C:/users/kopa/desktop C:/users/kopa
toster jp said:
okay
I just thought that you could help with this via TeamViewer so i could learn how to and you know, not spend another hour or two doing super basic things.
+yes
Click to expand...
Click to collapse
A neat little trick with Windows and cmd is to back out of the folder you are in. So, if the path was C:\Users\toster jp\adb, back out to the C:\Users\toster jp folder. Hold shift and right click the adb folder. Select Open command window here. Then, cmd automatically cd to the proper directory. Then your adb sideload rom.zip will work.
toster jp said:
I tried to put my rom everywhere... And still same thing. 'cannot read'
Click to expand...
Click to collapse
Be explicit please
Also don't forget you must enable sideload in recovery
Sent from my Nexus 5 using Tapatalk
Aerowinder said:
A neat little trick with Windows and cmd is to back out of the folder you are in. So, if the path was C:\Users\toster jp\adb, back out to the C:\Users\toster jp folder. Hold shift and right click the adb folder. Select Open command window here. Then, cmd automatically cd to the proper directory. Then your adb sideload rom.zip will work.
Click to expand...
Click to collapse
SOLVED
huge thanks guys
I'm super happy because of that! And finaly I feel like I know how to use adb
THANKS!
toster jp said:
SOLVED
huge thanks guys
I'm super happy because of that! And finaly I feel like I know how to use adb
THANKS!
Click to expand...
Click to collapse
Glad you got it worked out
Sent from my Nexus 5 using XDA Free mobile app

ApkMultiTool

Anybody know how to change the destination folder when installing the modified apk?
wileout said:
Anybody know how to change the destination folder when installing the modified apk?
Click to expand...
Click to collapse
What do you mean exactly?
Are you installing using a flashable zip or the application?
A flashable zip is the easiest way so you can edit the installer script to place it in whatever directory you wish.
I never use the apk tools themselves for installing.
You can also boot to recovery and mount system.
Then from terminal, EX:
Code:
adb push MyCoolMod.apk /system/app
Let me know if that helps, or if you need more info, or are deadset on using that app to install and we can go from there.
santod040 said:
What do you mean exactly?
Are you installing using a flashable zip or the application?
A flashable zip is the easiest way so you can edit the installer script to place it in whatever directory you wish.
I never use the apk tools themselves for installing.
You can also boot to recovery and mount system.
Then from terminal, EX:
Code:
adb push MyCoolMod.apk /system/app
Let me know if that helps, or if you need more info, or are deadset on using that app to install and we can go from there.
Click to expand...
Click to collapse
I was trying to use the tool to push iy becaude i cant get adb to push it at all...but the tool keeps trying to push it to data/app or something like that and i need it to go to system/priv-app
ok tried adb pushing it again and no go even doing it with your command. any ideas?
wileout said:
ok tried adb pushing it again and no go even doing it with your command. any ideas?
Click to expand...
Click to collapse
My bad, forgot a slash, try it again.
Code:
adb push MyCoolMod.apk /system/priv-app/
santod040 said:
My bad, forgot a slash, try it again.
Code:
adb push MyCoolMod.apk /system/priv-app/
Click to expand...
Click to collapse
I did that man it just restarts adb like i put in a bad command or it says cannot stat blah blah blah file or directory not found
Ive had tigerstown tryin to help me out too and he has no idea whats going on
well got adb to push it but I lost my clock widget all together lol
wileout said:
well got adb to push it but I lost my clock widget all together lol
Click to expand...
Click to collapse
Using stock data cable? Had that be a problem on other devices when pushing files.
Sent from my HTC6525LVW using Tapatalk
wileout said:
well got adb to push it but I lost my clock widget all together lol
Click to expand...
Click to collapse
You need to do:
adb remount /system rw
adb push test.apk /system/priv-app
jsaxon2 said:
You need to do:
adb remount /system rw
adb push test.apk /system/priv-app
Click to expand...
Click to collapse
Do i replace test with the name of the file?
wileout said:
Do i replace test with the name of the file?
Click to expand...
Click to collapse
Yes sir.
You also need to have the file in your adb directory and start the command prompt from there.
There are other ways to do it, but this should work for you.
jsaxon2 said:
Yes sir.
You also need to have the file in your adb directory and start the command prompt from there.
There are other ways to do it, but this should work for you.
Click to expand...
Click to collapse
I got the widget back by going into the priv-app folder and clicking it and installing it but now it force closes so im assuming its something on my end with how it was signed and stuff
wileout said:
I got the widget back by going into the priv-app folder and clicking it and installing it but now it force closes so im assuming its something on my end with how it was signed and stuff
Click to expand...
Click to collapse
After you push to the /system/priv-app folder, did you reboot? That should have installed it for you. Might also be a permissions problem. Make sure the permissions on your file are the same as the permissions on the rest of the files in that folder.
jsaxon2 said:
After you push to the /system/priv-app folder, did you reboot? That should have installed it for you. Might also be a permissions problem. Make sure the permissions on your file are the same as the permissions on the rest of the files in that folder.
Click to expand...
Click to collapse
Ok ill try that...thanks for your help ill report back
jsaxon2 said:
After you push to the /system/priv-app folder, did you reboot? That should have installed it for you. Might also be a permissions problem. Make sure the permissions on your file are the same as the permissions on the rest of the files in that folder.
Click to expand...
Click to collapse
Tried that and im still getting force closes so its something on my end im assuming

Categories

Resources