Replacing system .apk with another .apk? - Hero CDMA General

Does anyone know how to replace a system .apk like the camera or something with another camera.apk? I cant install it the conventional way and pushing it into the folder doesnt seem to work. Any suggestions?

Are you remounting before pushing?

DevinXtreme said:
Are you remounting before pushing?
Click to expand...
Click to collapse
I dont think so, its just that when I try to replace something it just copies it into the directory without installing. Maybe its supposed to do that?

amallama said:
I dont think so, its just that when I try to replace something it just copies it into the directory without installing. Maybe its supposed to do that?
Click to expand...
Click to collapse
You need to remount. /system/ is read-only. adb remount makes it writable. It might say it's pushing things to /system/app, but it's doing nothing,

DevinXtreme said:
You need to remount. /system/ is read-only. adb remount makes it writable. It might say it's pushing things to /system/app, but it's doing nothing,
Click to expand...
Click to collapse
My /system is writable, its just that pushing the file there doesnt install anything, like Im trying to install the friendstream widget, but I cant install it and pushing it into the /system folder doesnt install it either

amallama said:
My /system is writable, its just that pushing the file there doesnt install anything, like Im trying to install the friendstream widget, but I cant install it and pushing it into the /system folder doesnt install it either
Click to expand...
Click to collapse
If you aren't remounting, it isn't. And you can't push it to /system. The phone isn't looking there for anything. Push it to /system/app.
I can't remember, but I heard FriendStream has problems on our phones. You have to have a ROM that actually supports it. I'm on Darchdroid, so I can't use it anyway.

check out my signature for adb commands devinextreme is right some roms don't support friendstream

First off, I would recommend pulling your current one off of the phone if you are trying to replace it. Then remove it from the phone and then push it onto the phone into system app. You might also try deleting the current one on your phone and then using the install command instead of push.
And yes, the friendstream app will only work in certain ROM's because of some modifications made to make it work with our phone.

Related

Serious unexplainable issue with my rom

Hey, i'll make this brief. Whenever I use an update
Or try and push an apk over to /system/apps
It doesn't stick.
For example I removed the browser.apk, and replaced it with my own (using root manager and adp both) rebooted my phone and I have no browser.apk anylonger cant put one in regardless of how I try...
Another example, while installing and update to HTC_IME.apk (Black theme) It sticks to the phone until i reboot it...
Any advice?
Do a search on the missing apk. Just to be sure.
Not much help huh?
Its like the missing apk completely disappeared... no traces of it.
on your phone try going to the superuser and there should be a + /system/sh push it and it should disappear then try the adb push method
XxsydenxX said:
Hey, i'll make this brief. Whenever I use an update
Or try and push an apk over to /system/apps
It doesn't stick.
For example I removed the browser.apk, and replaced it with my own (using root manager and adp both) rebooted my phone and I have no browser.apk anylonger cant put one in regardless of how I try...
Another example, while installing and update to HTC_IME.apk (Black theme) It sticks to the phone until i reboot it...
Any advice?
Click to expand...
Click to collapse
If you were trying to push to /system/APPS That might be a problem. I don't know alot, but if I'm not mistaken, the correct directory for apps is /system/app/
Try this.
Code:
adb remount
adb push browser.apk /system/app/
Also, if you're using A2SD.. it would be /system/sd/app
Let me know if it worked.
Ok well, I checked for root access just to be sure, And of course, I have it lol..
But none of these methods work.
Edit: I mean ive done it before, I dont know what the hell is wrong...
Why not do a simple mount of the sdcard , no adb.
Then copy the file to the card. Use a rooted terminal emulator or even root explorer to copy/move it.
BTW I know that on some systems the ".foo" files ( beginning with a . ) can be invisible and on other systems they can be designated as temporary, I don't know the convention for linux/android.
I do know that I would push a file which has been disappearing and then do a ls -af xxxx on it in a rooted terminal emulator to see it's permissions and "real" name.
^Tried using a rooted file manager to move it..it simply doesnt show up in the tray and when i go back..it's gone like always.
XxsydenxX said:
^Tried using a rooted file manager to move it..it simply doesnt show up in the tray and when i go back..it's gone like always.
Click to expand...
Click to collapse
So it's on the sdcard?
Use a terminal emulator and do a
$su
#ls -af filename.
Eh you know what, I'll just wipe and reflash a fresh rom. I'm not putting in anymore effort lol...
A mod can close this now.

ADB Push

I searched around and couldn't get a clear answer. I'm a noob at anything command prompt/terminal related.
I was screwing around with adb last night after figuring out that I can remove program .apks with the rm <com.whatever.program> command. I got a little trigger happy and removed things that I don't use, just to test it out. I made a nandroid backup before I started. The phone runs fine, but now the Market won't download anything. It just sits on the Starting download... screen.
One of the .apks I removed was GmailProvider.apk. Whether this is the problem or not, I'd like to reinstall it for practice. I can always nand restore later.
So my question is... How can I use adb push to reinstall an apk?
I tried:
Code:
adb push C:\GmailProvider.apk
adb install C:\GmailProvider.apk
adb install C:\GmailProvider.apk \system\app
And about every variation of the 3, in and out of the adb shell.
It didn't work, and I'm at a loss to do anything else. So does anyone have any suggestions?
EDIT: I think my "\" should be "/". I got this
Code:
BusyBox v1.15.2 <2009-12-02 TIME EST> multi-call binary
Usage: install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [source] dest|directory
Copy files and set attributes
Options:
Then some usage stuff here.
Then I looked at the command prompt and made a face like .
Suggestions?
It might help to say that I'm using EvilEris 2.0.1, Windows 7.
Just reflash your ROM after doing a titanium backup. Easiest fix.
try this after putting GmailProvider.apk in your sdk\tools dir:
Code:
adb remount
adb push GmailProvider.apk /system/app
remount marks the system directory as read/write
silverramsrt said:
try this after putting GmailProvider.apk in your sdk\tools dir:
Code:
adb remount
adb push GmailProvider.apk /system/app
remount marks the system directory as read/write
Click to expand...
Click to collapse
Beat me to it. ADB is powerful and pretty cool if you know some good commands, but you can really mess up your phone if you know what I mean. Not mess up like brick (unless you really try) but more like phone won't load gmail now, phone won't get past the htc screen. As long as you have a nandroid backup you SHOULD be fine, the push, pull and rm commands are really the first step of rom building. If you know what files you pushed and rm'd you can make your dream rom.
CPCookieMan said:
Beat me to it. ADB is powerful and pretty cool if you know some good commands, but you can really mess up your phone if you know what I mean. Not mess up like brick (unless you really try) but more like phone won't load gmail now, phone won't get past the htc screen. As long as you have a nandroid backup you SHOULD be fine, the push, pull and rm commands are really the first step of rom building. If you know what files you pushed and rm'd you can make your dream rom.[/QUOTE
i am installing htc facebook.apk on a rom that has had all the Bloat removed.do i need to do something after i have pushed a apk file into system/app?? i have tried rebooting the phone and the program isnt there,ive tried going in the phone with root explorer and tried installing while having it in r/w and r/o and still cant get it to install.im not sure what im doing wrong.any help is apreciated
Click to expand...
Click to collapse
i am installing htc facebook.apk on a rom that has had all the Bloat removed.do i need to do something after i have pushed a apk file into system/app?? i have tried rebooting the phone and the program isnt there,ive tried going in the phone with root explorer and tried installing while having it in r/w and r/o and still cant get it to install.im not sure what im doing wrong.any help is apreciated
Click to expand...
Click to collapse
You do not have to do anything after an adb push.
What rom? Some roms have been modified to the point some htc apps will not work. Addionally a copy of the htcfacebook.apk from an eris build may not work on a sprint based or g1 based roms do to signature variations
Sent from my Eris using XDA App
zach.xtr said:
You do not have to do anything after an adb push.
What rom? Some roms have been modified to the point some htc apps will not work. Addionally a copy of the htcfacebook.apk from an eris build may not work on a sprint based or g1 based roms do to signature variations
Sent from my Eris using XDA App
Click to expand...
Click to collapse
im running xtrom 3.0.......i just went ahead and installed the social app flash and deleted what the ones i dont uses,but thanks for the help anyways.i was looking into pushing friendstream into it but found out its only works in sprint base builds

How to flash zips?

Is there a way on the Vibrant to flash *.zip files like on the Nexus One? For example, I have a Mobile Defense as System App *.zip file that on the N1 I flash from the Recovery menu. Is this possible on the Vibrant? How else can I install System Apps?
it will be posible to flash .zip files in recovery once we get a custom recovery. there is a guy working on porting clockwork as we speak so it souldnt be too long before we can flash roms and kernals and other .zip stuff
hah2110 said:
Is there a way on the Vibrant to flash *.zip files like on the Nexus One? For example, I have a Mobile Defense as System App *.zip file that on the N1 I flash from the Recovery menu. Is this possible on the Vibrant? How else can I install System Apps?
Click to expand...
Click to collapse
You can only use the .zip flash function on the phone to manipulate some files. If you wanted to add a completely new rom you must use Odin. The clockwork recovery being done is still in it's very basic stage where nothing is working. So it's impossible to tell if they will get it to work especially since the bootloader is completely different from all other android phones.
Why not just inzip it on your computer and move the apk to your sd and install it that way?
Sent from my SGH-T959 using XDA App
spigatelli said:
Why not just inzip it on your computer and move the apk to your sd and install it that way?
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Cause then it wouldn't be a system app. He could just use adb to push the file though.
Tried to push the file but I can't do adb remount. It says no such file or directory. What am I doing wrong?
Anyone??????
Your probably pushing the file to the wrong place.. Do you have the Samsung drivers and SDK installed?
DAKIDD236 said:
Your probably pushing the file to the wrong place.. Do you have the Samsung drivers and SDK installed?
Click to expand...
Click to collapse
Yes, because every other command works. Also, if you look, I am getting the error when not even trying to push. I am trying to do ADB REMOUNT.
hah2110 said:
Yes, because every other command works. Also, if you look, I am getting the error when not even trying to push. I am trying to do ADB REMOUNT.
Click to expand...
Click to collapse
Samsung devices use a different code to remount. Try this
mount -o rw,remount /dev/st9 /system
This is ripped from the behold 2 so you might have to play with the directories
yeah, if anyone can figure out what the mount directories are from /dev/ it would be great. i'm trying to push my ringtones so that they dont show up in media scanner. seems like a simple trick, but when remount wont work and we dont know the mount directory, its harder than it seems.
psychoace said:
Samsung devices use a different code to remount. Try this
mount -o rw,remount /dev/st9 /system
This is ripped from the behold 2 so you might have to play with the directories
Click to expand...
Click to collapse
Operation not permitted
hah2110 said:
Operation not permitted
Click to expand...
Click to collapse
Do you have root?
If so then it might just be because we don't know what mounting block to use.
we do know what mounting block to use.
http://forum.xda-developers.com/showthread.php?t=729976

[Q] Honeycomb Keyboard

I'm kinda new to android
I've started to delete useless apps through Titanium Backup(acer staff,games etc) , and exidently deleted smth connected with honeycomb stock keyboard.
Now every time when i want to use stock keyboard, pops up a messege "The application Android keyboard (process com.google.android.inputmethod.latin) has stopped unexpectedly. plz try again".
Ive tryied to reset factory data but it wont helped. Is thera any solution for this problem? if there no, plz tell how to completely reset tablet) ive read "system Images " thread but i didn understand some things
here is my recover steps: (for a500 which is bricked)
for a500 is normal:
root it
put the system.img into a500
connect to the computer with adb and follow the codes:
su
dd if=/sdcard/system.img of=/dev/block/mmcblk0p3
then reboot
Click to expand...
Click to collapse
connect to the computer with adb and follow the codes:
su
dd if=/sdcard/system.img of=/dev/block/mmcblk0p3
what that means)
You might very well have ruined your tablet.
I'm not a developer or coder so I can't make any sense of the code you posted but if a reset didn't fix it then you've certainly deleted something important. Hopefully someone has some ideas.
If not, then maybe you can return it? And next time, don't delete something unless you know what it is you're deleting.
ok ive recovered from image, but now wifi is not working , what should i do?
There are posts about having to change file permissions to fix wifi. Search this forum, there are a few.
edit - linked post
http://forum.xda-developers.com/showthread.php?t=1074449&highlight=wifi+permission
yeah ive read this but i dont know how to move that files to system folder on devide, wifi is down , so i cant download any file managing apps from market and theres no any file managers on stock Rom
If you've got the adb working, you can use the command mv to move the file.
I'm not sure of the exact path involved, but for example. the file is in /mnt/sdcard/filetobemoved and needs to go into /sytem/lib/modules
mv /mnt/sdcard/filetobemoved /system/lib/modules
That'd put it in the location you need. To change the permissions, you'd use the command chmod
chmod 655 /system/lib/modules/filetobemoved
The 655 is an octal(0-7) representation of the file's permissions. I'm not sure what permissions it needs, but you could try 655 as a start unless someone else knows for sure.
if you want, hit me up on msn, I can try to walk you through it: [email protected]
Glebaka said:
ok ive recovered from image, but now wifi is not working , what should i do?
Click to expand...
Click to collapse
Ah *phew* Good to hear.
gammaRascal said:
Ah *phew* Good to hear.
Click to expand...
Click to collapse
lol How'd he get in that shape to begin with? Any idea what exactly it was he deleted that bonked his system?
muqali said:
lol How'd he get in that shape to begin with? Any idea what exactly it was he deleted that bonked his system?
Click to expand...
Click to collapse
No clue. I really should start reading up on HC app development and at least familiarize myself with that environment.
I haven't rooted yet cause I'm e'scarded to.
ahh i cant replace that files , somehow installed astro manager(through docsttogo) but i cant remove/replace/rename that files in system/lib/modules it says i dont have permission to do this.
tryed in connectbot type "mv /mnt/sdcard/filetobemoved /system/lib/modules"
got this "failed on '/system/lib/modules/filename' - cross-device link"
im rooted what if
Glebaka said:
ahh i cant replace that files , somehow installed astro manager(through docsttogo) but i cant remove/replace/rename that files in system/lib/modules i dont have permission to do this.
tried connectbot tryied "mv /mnt/sdcard/filetobemoved /system/lib/modules"
got this "failed on '/system/lib/modules/filename' - cross-device link"
im rooted
Click to expand...
Click to collapse
type mount and paste/retype the line that has /system in it. It might be mounted read only.
or try the cp command in place of mv
edit - also, the filetobemoved is just an example. I think one of the filenames is bcm4329.ko but I'm not sure. so /system/lib/modules/bcm4329.ko would be the full path
ah im total noob tried cp instead of mv it said permission denied .
t
ype mount and paste/retype the line that has /system in it. It might be mounted read only.
Click to expand...
Click to collapse
i didnt get that (
edit - also, the filetobemoved is just an example. I think one of the filenames is bcm4329.ko but I'm not sure. so /system/lib/modules/bcm4329.ko would be the full path
Click to expand...
Click to collapse
yeah thats i know)
Are you logged into the tablet using adb's shell? I've only used that once on a different tablet, but iirc the commands are standard Unix/Linux commands. Someone correct me if I'm wrong but aren't you already logged in as superuser like this? You don't need to 'sudo' or 'su' to switch over do you?
I'm not familiar enough with this specific environment to figure out what might be keeping you from placing those files in that location. The command to check the partitions mount options is
mount
It should return a bunch of text, one line of which is gonna be the /system partition. If it's ro(read only) then you can't write to it and would need to remount it.
yeah it looks like it is "ro"
ive got /system ext4 ro
how to remount)
My knowledge of adb is limited as well. All I know is that I can connect to it, type: adb devices (in the command prompt) to make sure it sees my tab then 'adb push filename.extension /directory/structure' to force files... Conversly, I think adb pull filename.extension /directory/structure will grab files on the tab if you know what they are called and where they are located.
Glebaka said:
yeah it looks like it is "ro"
ive got /system ext4 ro
how to remount)
Click to expand...
Click to collapse
what was the /dev/block/mtdblock for /system?
there is a number after it...for example /dev/block/mtdblock1
mount -o rw,remount -t ext4 /dev/block/mtdblock1 /system
would remount it read/write, provided that it is mtdblock1, change the number depending on what your device has.
yeah now /system have "rw", but it anyway refuses to copy using mv(failed on '/system/lib/modules/filename' - cross-device link"
) or astro manager
Glebaka said:
yeah now /system have "rw", but it anyway refuses to copy using mv(failed on '/system/lib/modules/filename' - cross-device link"
) or astro manager
Click to expand...
Click to collapse
If cp won't put it there either, I'm out of ideas. Maybe ask in the other thread how they were able to copy/move the file and set the permissions?
I know it may not be really classy, but how about downloading an .apk That will let you mount the drive, to an sd card in a computer then transfer that to the Acer. (If it's an extreme case and nothing else will work..not condoning piracy, but don't know what would work...)
or is it possible to copy the system data from a Titanium backup and send it over so he can restore the missing files?
This following step I can't be responsible for it's safety. It looks safe to my eyes, but proceed having been forewarned. I did some research and you might be able to use dd to get the file there.
dd if=/mnt/sdcard/filname of=/system/lib/modules/filename

Best way to push modified apks

So I've started modifying my apks to create a custom theme for myself. The question I have, is what is the best way to get them back on my phone.
I pulled them with toolkit, and tried to push them that way, but it didn't seem to work as it said i was missing certificates...
I tried to just push the files into system/apps but that didn't seem to work.
Any suggestions?
Thanks in advance!
zbt1985 said:
So I've started modifying my apks to create a custom theme for myself. The question I have, is what is the best way to get them back on my phone.
I pulled them with toolkit, and tried to push them that way, but it didn't seem to work as it said i was missing certificates...
I tried to just push the files into system/apps but that didn't seem to work.
Any suggestions?
Thanks in advance!
Click to expand...
Click to collapse
Try it the easy way.. Root Explorer copy it in the right place and give the necessary rights.
B3rt0 said:
Try it the easy way.. Root Explorer copy it in the right place and give the necessary rights.
Click to expand...
Click to collapse
What do you mean by rights? Are you talking about r/w r/o?
zbt1985 said:
So I've started modifying my apks to create a custom theme for myself. The question I have, is what is the best way to get them back on my phone.
I pulled them with toolkit, and tried to push them that way, but it didn't seem to work as it said i was missing certificates...
I tried to just push the files into system/apps but that didn't seem to work.
Any suggestions?
Thanks in advance!
Click to expand...
Click to collapse
Are you trying to push files with the toolkit? Download the android SDK and push the files with adb. Its much better than root explorer as you'll be able to see changes immediately (except for the framework-res and SystemUI apk's). Also, try pushing to system/app (not system/apps).
Sent from my Nexus 4 using xda premium
zbt1985 said:
What do you mean by rights? Are you talking about r/w r/o?
Click to expand...
Click to collapse
I think he means permissions. Like said previously push them with adb as its much simpler, you can also set permissions with adb shell though I cant remember the exact syntax but it's a chmod command.
adb remount
adb push (name of apk) /system/app

Categories

Resources