How to reinstall MMS app? - G1 Android Development

I was messing around with the MMS app and for some reason decided to just delete Mms.apk and Mms.odex from the /system/app directory. Before I deleted it I decided to make a copy o the .apk file but not the .odex file. Now everytime I try to reinstall it I receive a message letting me know that application install was unsucessful. Any ideas how I can reinstall the Mms application?

Is the app in the Settings that you could uninstall it?

Did you use adb to remove it? If so you should be able to:
adb push current location/Mms.apk /system/app
adb push current location/Mms.odex /system/app
Then reboot the phone and see if they're back.

foxtrickle said:
Did you use adb to remove it? If so you should be able to:
adb push current location/Mms.apk /system/app
adb push current location/Mms.odex /system/app
Then reboot the phone and see if they're back.
Click to expand...
Click to collapse
Unfortunately for some reason I didd not think about backing up Mms.odex. I only backed out Mms.apk. The whole messaging application is now missing from my applications list and I can't receive new messages on either ChompSMS or Handcent SMS either

foxtrickle said:
Did you use adb to remove it? If so you should be able to:
adb push current location/Mms.apk /system/app
adb push current location/Mms.odex /system/app
Then reboot the phone and see if they're back.
Click to expand...
Click to collapse
Woohoo! I was able to restore both Mms.apk and Mms.odex to the /system/app/ directory. I ended up downloading the J.F.v1.43 zip file and extracted both files and did an adb push into the /system/app/ directory.
Thanks for taking a look at this guys. It works like a charm once again!

Related

com.google.process.gapps force close !?

Hello,
I have rooted my X10 and I have R2BA020 and I have removed some apps with Titanium, nothing like Mediascape or Timescape. I have removed Moxier, GTalk, Quadrapop and user manuals. Obviusly I have uninstalled something that I shouldnt ( me IDIOT didnt make backup of those apps in Titanium !! ). Now whenever I start my phone I get this message that it has failed to start and I must press Force close. I have found some solution that I delete data from Google Apps and Gmail in Settings -> Applications but it seems to work one time because when I entered my data again in Gmail I got it again when I boot my phone.
Please, can anybody help me ? Maybe give me GTalk and other app that was below it as .apk so I can install it ?
Tnx a lot !
Removing GTalk was a terrible idea.
I see that now I have found X10 dump and installed Talk.apk and gtalkservice.apk and I got GTalk icon but when I press it I get that message again. I dont get it when I go in Gmail or Market, they are working.
Any other help, please ?
damirbusic said:
I see that now I have found X10 dump and installed Talk.apk and gtalkservice.apk and I got GTalk icon but when I press it I get that message again. I dont get it when I go in Gmail or Market, they are working.
Any other help, please ?
Click to expand...
Click to collapse
You have to push them to /system/app, not just installed regularly
Ok, thanx. How do I do that ? I really have no idea how to do this, I have installed them only like any other .apk.
Thank you very much !
Assuming you put the two apks on your sdcard..
Code:
mount -o remount,rw /dev/block/mtd2 /system
dd if=/sdcard/gtalkservice.apk of=/system/app/gtalkservice.apk
dd if=/sdcard/Talk.apk of=/system/app/Talk.apk
chmod 644 /system/app/Talk.apk
chmod 644 /system/app/gtalkservice.apk
reboot
I put them on root of SD card right ?
Only one last thing, how and where should I copy&paste those commands ? Can you please tell me step by step, I would really appreciate it because I dont want to flash my phone again. Connect the phone on my PC and then Start -> Run or how ? I can see that you are professional and it is very hard for me to understand how to do this.
Thank you SO MUCH !
Android terminal app, YOU NEED NOT WORRY ABOUT THE COMMANDS BUT CAN MANUALLY COPY THE INSTALLED APP FILE FROM sdcard/gtalkservice.apk TO SYSTEM/APP/ ENABLING R/W OPTION TOP LEFT IN ROOT EXPLORER.
I need terminal app on my phone or on my PC ? Here:
http://www.appbrain.com/app/com.android.term
Manually copy this Talk.apk and gtalk.apk file to system/app ? How can I do that ? I dont know how to enter system/app folder on my phone ? Also those read-write permissions, where do I change that ? Can I do it with Astro File Manager ?
Please explain me like to an idiot coz Im not far from that
And on the end, should I uninstall Talk.apk and other one first since I have installed them just like regular .apk app ?
Is this Root Explorer that I need:
http://www.appbrain.com/app/com.speedsoftware.rootexplorer
Tnx a million !
I go in this Root Explorer and cannot copy Talk.apk from SDCard to system/app, it says that file system is read only. When I long press on Talk.apk in SDCard and go in Permissions there is no tick in User row, only in Group, then I tick Read and Write and OK but when I press ok ticks are gone again and I cannot copy that in system/app folder then.
Please guide me how to do it.
zephyrix said:
Assuming you put the two apks on your sdcard..
Code:
mount -o remount,rw /dev/block/mtd2 /system
dd if=/sdcard/gtalkservice.apk of=/system/app/gtalkservice.apk
dd if=/sdcard/Talk.apk of=/system/app/Talk.apk
chmod 644 /system/app/Talk.apk
chmod 644 /system/app/gtalkservice.apk
reboot
Click to expand...
Click to collapse
I have typed this in Better Terminal and apps have installed in system/app and they have permissions there but I still cannot get in GTalk on my phone, I get the sam error ? Is there any extra steps to make it work ? I have checked them in Root Explorer to see if they have R/W permissions.
Tnx a lot
damirbusic said:
I have typed this in Better Terminal and apps have installed in system/app and they have permissions there but I still cannot get in GTalk on my phone, I get the sam error ? Is there any extra steps to make it work ? I have checked them in Root Explorer to see if they have R/W permissions.
Tnx a lot
Click to expand...
Click to collapse
They need to be signed with the same signature as the system afaik. You'll need GTalk and the other app from an x10 build.
I have downloaded Talk.apk and gtalkservice.apk from X10 dump. What do I need more ? I think I will have to flash the phone again since obviusly there is no solution for this...
Tnx
Hey,
I had the same pb and the code on the 1st page worked for me.
Put those 2 .apk files on the root folder of your sdcard.
Write the code on 1st page in Better Terminal. Reboot and you're done !
Good luck
Nope, I have tried it but nothing happened with those last 2 chmod commands and I have reflashed my firmware again and not touching GTalk app
Tnx for the info
Hey guys,
I just rooted my phone, and haven't removed ANY of the google apps and I'm getting this same error... Any ideas?
X
wouldn't hurt to try a re-root
I get also same error, even i've not removed Gtalk. Gtalk works properly
i found these apps so that the error is not repeated all the apps should moved to system/app folder using 644 permissions
i have attached the files at the end
Removed Gtalk
ok, so yesterday I was using Gtalk on my samsung captivate to chat with some friends,until i wanted to sign out and go onto another of my google accounts to chat with other people. but when i clicked sign out it simply closed the app then when i reopened it, it was still on my other account. well me being the impatient person that i am decided to use my root power and remove gtalk and try to reinstall it later.....WRONG.... now i keep getting an error... (com.google.process.gapps. has unexpectedly closed. well i though ill just factory reinstall getting rid of the error. so Now i cant download anything on android market to get the explorer back because i cant use 3rd party apps again because my settings.db was reset! so i need lots of help.. running Ubuntu 10.04 so that makes the process even harder for a noob like me -.- any help is appreciated in advance

Rooted, trying to reinstall deleted Stock.apk

I had a questions about restoring the deleted Stocks app. I rooted with the new unrevoked last night and then installed Titanium to remove apps. I prematurely removed the Stocks app and I have been trying to get it back since.
I've tried multiple routes, from this Wildefire thread http://forum.xda-developers.com/showthread.php?t=738147 I tried the apk via adb and Root Explorer. Neither worked.
Then I downloaded the stock odexed EVO rom from this thread http://forum.xda-developers.com/showthread.php?t=874251, grabbd the stock.apk and moved it to my \system\apps folder with Root Explorer. I've restarted, tried clearing the Dalvik Cache, pushing it via adb, none have worked.
Right now it's still sitting in the \system\app folder.
I wanted to see if there was anything else I can try to get it back? Or am I doing something wrong?
Thanks in advance.
I take it you are running stock Rom. I think the best way is to make a nandroid of the stock Rom that you are running, with ClockworkMod. Once done download Myn's Rom or sprint lovers. Both of this Rom's have the stock Sprint apps. When flashing the Roms, please, make sure to use Rom Manager and flash ClockworkMod, than flash Amo-ra; is located at the buttom as an alternate recovery. Than once you flash the Rom, let it load, than flash clockworkMod again, than go into recovery, than restore,advance restore, select the newest nandroid, and just restore data. This will give you all the stock apps. OR just try this.
http://forum.xda-developers.com/showthread.php?t=832388
Here are some more apk's.
http://forum.xda-developers.com/showthread.php?t=901393
grab the apk out of the stock rom you have, then in adb do this
adb remount
adb push Stock.apk /system/app
if you need to push the odex do this also
adb push Stock.odex /system/app
the important thing is the remount to make the system/app read write
you can go to the rom file open the file then open system then open app and add the apk you want and reload the rom into the phone that sit more simple
ifly4vamerica said:
grab the apk out of the stock rom you have, then in adb do this
adb remount
adb push Stock.apk /system/app
if you need to push the odex do this also
adb push Stock.odex /system/app
the important thing is the remount to make the system/app read write
Click to expand...
Click to collapse
I did the above while booted in recovery mode with the system mounted. It successfully went in the system/app folder. I see it in Root Explorer, although it still doesn't show up in the apps menu. Oh well.
baker2gs said:
I did the above while booted in recovery mode with the system mounted. It successfully went in the system/app folder. I see it in Root Explorer, although it still doesn't show up in the apps menu. Oh well.
Click to expand...
Click to collapse
Yeah it doesn't work right if you are in recovery because it messes with permissions I heard. Just do it with phone plugged in to computer and on. If that doesn't work you can try deleting the apk and then using
Adb remount
Adb install stock.apk
Don't know if these will work but worth a try. Last resort is find a flashable zip that writes something to system/app and drop the apk in there.
Evo Sent
ifly4vamerica said:
Yeah it doesn't work right if you are in recovery because it messes with permissions I heard. Just do it with phone plugged in to computer and on. If that doesn't work you can try deleting the apk and then using
Adb remount
Adb install stock.apk
Don't know if these will work but worth a try. Last resort is find a flashable zip that writes something to system/app and drop the apk in there.
Evo Sent
Click to expand...
Click to collapse
When I run that command with the phone on charge mode with debugging on plugged into the computer I get a "remount failed: Operation not permitted".
I installed the Sync drivers and tried it with that but it didn't work either.
Any suggestions? Thanks for your help by the way.
baker2gs said:
When I run that command with the phone on charge mode with debugging on plugged into the computer I get a "remount failed: Operation not permitted".
I installed the Sync drivers and tried it with that but it didn't work either.
Any suggestions? Thanks for your help by the way.
Click to expand...
Click to collapse
I can't help with that, never ran in to that problem before, are you nand unlocked and s-off?
ifly4vamerica said:
I can't help with that, never ran in to that problem before, are you nand unlocked and s-off?
Click to expand...
Click to collapse
Yes to both, I have been trying to do research on it. It may be the stock rom...
I tried some workarounds but they didn't work. Thanks for your help.
baker2gs said:
Yes to both, I have been trying to do research on it. It may be the stock rom...
I tried some workarounds but they didn't work. Thanks for your help.
Click to expand...
Click to collapse
No problem, sorry I couldn't help.
Evo Sent
Just an update, I tried the .zip route you suggested. I created a Titanium back up and threw the Stock.apk in the zip. I ran the update.zip in recovery. It placed Stock.apk in the system/app folder but the app still does not appear in the apps menu. Thanks again.

[Q] Installing System Apps

Hi! I searched the forums, but didn't see any answers regarding to this.
I'm trying to install the moded versions of SMS and Phone/Contact apps found in Cyanogenmod ROM over stock 2.3.4.
What I did was to extract Contacts.apk, Mms.apk, and Phone.apk from one of CM releases and copied the APK files to /System/Apps/ via Root Explorer (set it from R/W to R/O) and rebooted the phone, but there was no change.
I then tried to install them (from the same /System/Apps/ location) through Root Explorer, but it doesn't let.
Any help would be much appreciated.
If you are trying this you need to check/change permission on each app...the phone.apk will not work though I've tried and got force closes. The dialer and mms apks will work though. The best way to do this is to push via adb. If you don't have sdk and knowledge of the basic adb and shell commands I would highly reccomend becoming familiar with them.
Sent from my Nexus S 4G using Tapatalk
I have sdk and worked with adb before to root my phone. I'll do some research on how to install apps via adb.
Thank you.
umbrae said:
I have sdk and worked with adb before to root my phone. I'll do some research on how to install apps via adb.
Thank you.
Click to expand...
Click to collapse
Just put the apps on your tool folder and enter the following commands....
adb push "your.apk" system/app
Sent from my Nexus S 4G using Tapatalk
Thanks again. I did that and got confirmation that the files were copied, but the new Mms, for example, wasn't installed.
I tried using "install" command after, but it wouldn't let me. I got a message saying that the file already exists.
I changed the permission and everything, too.
Any ideas?
umbrae said:
Thanks again. I did that and got confirmation that the files were copied, but the new Mms, for example, wasn't installed.
I tried using "install" command after, but it wouldn't let me. I got a message saying that the file already exists.
I changed the permission and everything, too.
Any ideas?
Click to expand...
Click to collapse
That's odd...I usually don't have to change permissions when I push an app. What version of the cm7 mms apk are you using? I used it from the stable 7
Sent from my Nexus S 4G using Tapatalk
sunder74 said:
That's odd...I usually don't have to change permissions when I push an app. What version of the cm7 mms apk are you using? I used it from the stable 7
Click to expand...
Click to collapse
I was using Nighties, but I'll try the latest stable 7. Downloading now.
Just to clarify what I did:
First, used the "adb push" method you suggested and the apk files were copied to system/app. I rebooted, but nothing had changed. I then tried to install the copied files via Root Explorer, but it wouldn't let me. I changed R/O and then Permissions, but still couldn't install.
Then I tried "adb install", but it said file already exists. I changed R/O then Permissions, but still couldn't.
After that, I deleted Mms.apk and Contacts.apk and tried all the methods described above again, but still nothing. The apps weren't installed and I kept getting FC.
Lastly, I manually copied the files again via Root Explorer (changed R/O then changed Permission), but still no change and couldn't install.
Hopefully CM 7 packages I'm downloading would work.

[Q] Can't delete Mms.odex, "No such file or directory"

I'm trying to use my new Sensation with the SIM from my Japanese iPhone, which requires replacing the stock Mms.apk with one that works with Softbank. That much I managed to do. Now when I try to open the Messaging app it crashes immediately, which is apparently normal and means I need to delete the old Mms.odex. But when I try, the command prompt window tells me:
rm failed for /system/app/Mms.odex, No such file or directory
I've made sure the folder isn't read-only (I managed to copy the new Mms.apk to it after all). Not sure what else could be going wrong. Thanks in advance for any help.
Its not a good idea to push files into the system directory of an odexed ROM like that. You usually need to push the appropriate .odex file with the .apk file.
Also could be a permissions problem. You need to make sure the permissions for the new file the are same as what's already in the directory.
Sent from my Sensation using Cyanogenmod
dr.m0x said:
Its not a good idea to push files into the system directory of an odexed ROM like that. You usually need to push the appropriate .odex file with the .apk file.
Click to expand...
Click to collapse
I know it's not ideal, but this method seems to work just fine; I've read a bunch of Japanese blogs that explain this is how to get MMS working with Softbank, and people on forums elsewhere say it's worked for them.
dr.m0x said:
Also could be a permissions problem. You need to make sure the permissions for the new file the are same as what's already in the directory.
Click to expand...
Click to collapse
How do I do that? I'm pretty new to all this, two days ago I was Googling where to find my Sensation's settings menu
If you want to ensure the mms.apk has correct permissions you can simply run:
adb shell chmod 644 /system/app/mms.apk
This will set the correct permissions for apps in the /system/app folder, although its worth reading up on linux permissions to understand what the command is actually doing.
Permissions didn't help, but I've managed to track down another Mms.apk file that works well enough - messages don't integrate properly with HTC's Messaging app, but I can send and receive MMS. I'm going to keep looking for a better apk but at least this one functions!

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