using adb for installing stock apps - Captivate General

sorry if this has been asked a lot, i have tried searching and need some help.
I flashed the latest Axura, and hate the music app installed in it. So i found the stock samsung music player, and tried to install it in the /system/app folder via Astro file manager, but i can't paste or cut anything that's not in the sd card.
so i tried adb. i couldn't push anything to the system/app folder as my permission was denied, so i copied the apk to the sd card, then i went into adb shell and used su to copy the file into the /system/app folder. that worked, but when i did that i lost the music player icon totally.
if i go to my music files on the sd card they will play individually, so the player must be installed, i just have to icon to boot into the player.
any help would be appreciated!

Anything?!
Sent from my SAMSUNG-SGH-I897 using XDA App

drizzle67 said:
Anything?!
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
copy to your sdcard
adb shell
su
(accept the prompt on your screen)
cd /sdcard/whereveryoustuckfile
cp blahblahblah.apk /system/app/

I did that, and the music player apj is in the folder now, but its not in my application drawer. I have tried to install it from there but it fails everytime as well. I can always reflash the axura rom but I would like the stock player back!
Sent from my SAMSUNG-SGH-I897 using XDA App

drizzle67 said:
I did that, and the music player apj is in the folder now, but its not in my application drawer. I have tried to install it from there but it fails everytime as well. I can always reflash the axura rom but I would like the stock player back!
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
sounds like you dont have proper permissions on it
do you have root explorer?

I had to remount the system/app folder to allow write.
Sent from my SAMSUNG-SGH-I896 using XDA App

I don't have root explorer, I have astro file manager, but thsts it.
Also I tried remounting the system/app folder to read/write but it wouldn't let me in adb.
Sent from my SAMSUNG-SGH-I897 using XDA App

drizzle67 said:
I don't have root explorer, I have astro file manager, but thsts it.
Also I tried remounting the system/app folder to read/write but it wouldn't let me in adb.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
once you su, run this command
mount -o rw,remount /dev/block/stl9 /system

Related

Copying files from /data/data..

I'm having some problems copying the files i need from /data/data.. I'm using an old version of SUFBS (tried android mate also, same results), as root explorer is a paid app
So, the thing is, I'm finding the files i need, but when i try to copy them nothing happens. No errors. The files just don't appear where i sent them
Please help
Sent from my E10i using XDA App
I use estrongs file manager with root explorer turned on in options.
Yes, I have tried that too before but it doesn't work on my phone. It only works on Cyanogen and hiapk ROMs
Any more ideas?
Sent from my E10i using XDA App
Try this from 'adb shell' or a terminal emulator on your phone.
su
cp -rf /data/data/dirtocopy /sdcard/diryouwantyourfiles/
I think you'll need busybox installed as android doesn't come with cp.
Done.
Had to give up and use Root Explorer lol
Thanks anyway mercianary
Sent from my E10i using XDA App

Want to install apk's

Ok, I have a rooted Charge running Eclipse Rom
I have downloaded some apk's & placed them on my sd card (buddies now, Samsung weather widget & a couple of other stock ones)
How do I get them from my sd card to system/app??
markkitos said:
Ok, I have a rooted Charge running Eclipse Rom
I have downloaded some apk's & placed them on my sd card (buddies now, Samsung weather widget & a couple of other stock ones)
How do I get them from my sd card to system/app??
Click to expand...
Click to collapse
If they are not system app, you can download 'appinstaller" by FunTrigger and browse to the apk and install. If system app, you can use "root explore" or "ES File Explorer" from the Market and drop the apk in /Sytem/app/
Good luck.
You should just be able to click on them with Root Explorer to install them. If installation fails, just push them to /system/app with Root Explorer.
Sent from my SCH-I510 using xda premium
kvswim said:
You should just be able to click on them with Root Explorer to install them. If installation fails, just push them to /system/app with Root Explorer.
Sent from my SCH-I510 using xda premium
Click to expand...
Click to collapse
it wouldn't install the system apps. I tried to move & copy to the system/app but it said it was a read only file
I really want the buddies now & samsung weather widget but can't figure out how to move them
markkitos said:
it wouldn't install the system apps. I tried to move & copy to the system/app but it said it was a read only file
I really want the buddies now & samsung weather widget but can't figure out how to move them
Click to expand...
Click to collapse
You have to mount /system/app as read/write. If you're using Root Explorer, tap the "Mount R/W" button at the top of the /system/app directory. If you're using another file explorer, you should be able to find an option to do it, but I don't know any of the other ones personally.
Thanks Guys
This is why I love XDA!!!
Some apks will not install with this rom tho like the samsung music player
Sent from my SCH-I510 using XDA App
whattheh said:
Some apks will not install with this rom tho like the samsung music player
Sent from my SCH-I510 using XDA App
Click to expand...
Click to collapse
they're probably not compatible with his modified framework etc... there is/was same issue on Infinity with stock Samsung widgets and a few touchwiz4 ones
blazing through on my Nexus Prime via XDA app

Delete system ringtones/notifications/alarms?

I have a bunch of different notifications and ringtones I'd like to use, but I cant insert them into the default directory along with the other ringtones. Is there anyway to do this?
Are you rooted? If so, you can use root explorer or es file explorer to mount /system as writable (I assume you are rooted if you know where to put the files) then copy your files.
Sent from my LG-P999 using xda premium
Волк said:
Are you rooted? If so, you can use root explorer or es file explorer to mount /system as writable (I assume you are rooted if you know where to put the files) then copy your files.
Sent from my LG-P999 using xda premium
Click to expand...
Click to collapse
So through Clockwork, I know how to mount /system, but then what? Do i start the phone as normal to get to the OS, and do my file swapping from there?
Or do I need to do something else?
**** i didnt see the part about Root Explorer. I'm download ES right now.
Why do you want to put it in your system folder and not on your SD card? Every time you flash a new nightly or release you'll have to put them there again.
No one ever uses ADB anymore for some reason, but if you're running windows you can create a batch file to delete the stuff you don't want and the push your files to the media folder. I have a batch file I run after every nightly to remove a lot of junk, here is the commands I use for the sounds. I don't push any sounds to the media folder b/c they are all on my sd card.
Code:
adb shell rm -f /system/media/audio/ui/camera_click.ogg
adb shell rm -f /system/media/audio/ringtones/*.ogg
adb shell rm -f /system/media/audio/notifications/*.ogg
stevew84 said:
I have a bunch of different notifications and ringtones I'd like to use, but I cant insert them into the default directory along with the other ringtones. Is there anyway to do this?
Click to expand...
Click to collapse
You can put them on your External SD in Folders named ringtones and notifications. The rom should read it from there, or mine does. I am using Xborders GB 1.0.
Cant delete an audio file !!
I installed an audio app from the market. It gave options to "Set as ringtone" for its sounds. I set a tone. But now i cant remove it from my system/media/audio/ringtones !!. Its so irritating. I have a rooted xperia mini ( ROM - Jelly Vanilla Ex 2.1) ... I even flashed the stock firmware, wiped data and everything, but every time i set a new ringtone, it is present in the SOUND PICKER !. Can anyone please help me in this ??? Is this a virus or anythin >???? :crying:

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

Installing Cerberus

Can someone help me to install Cerberus on my rooted verizon s3. I rooted using the non-flash method and I don't have a custom recovery or rom. Their instructions say:
you can manually install Cerberus in /system/app this way:
- Uninstall Cerberus from your device
- Download Cerberus.apk and put the file on your sd card
- Open a terminal emulator and execute:
su
mount -o remount rw /system
cp /sdcard/Cerberus.apk /system/app/
Click to expand...
Click to collapse
After research, it seems that I should be able to install using either Titanium Backup or root explorer or adb if necessary.
Is this a simple matter of using Titanium Backup's "convert to system app" feature? Does this automatically move the file to the /system/app directory and set the correct rights?
Or should I place the apk in the /system/app directory using root explorer? What rights would I have to set?
Thanks for your help.
I suggest using RootExplorer. You would just navigate to the system/app directory, mount r/w, and then copy the apk. All those steps are performed using the UI in RootExplorer.
Sent from my SCH-I535 using xda app-developers app
I will give it a try. Thanks.
NP. It's one of those apps that is worth two or three times what the dev charges for it.
Sent from my SCH-I535 using xda app-developers app
Wifi won't connect
I installed Cerberus in \system\app and rebooted. I got the custom lock screen but this went away after rebooting again.
However, I can no longer connect to my wifi (either automatic or forced).
When I remove Cerberus, and reboot, wifi automatically connects
Any ideas what is going on?
** UPDATE - uninstalled and reinstalled to system/app and everything worked as it should. I'm curious what happened internally - e.g. why the lock screen and why it messed up wifi.

Categories

Resources