[HOWTO] Get Email reply working on JPH 2.2 - Galaxy S I9000 Android Development

Yes people! i've done it! got the Email.apk from Froyo 2.2 JIJP5 and got it working on JPH by deodexing it. Here is a short tutorial howto push it to your phone.
But thats old use the Cyanogenmod Email.apk (it's in this post)
You can choose:
Email deoxed.zip (original email client)
Email.apk (CM email client without security reinforcement)
Requirements:
- ADB and some basic knowledge of ADB
- rooted SGS I9000
- JPH firmware
Con's
- You have to set your Email again
Follow these steps:
1) First backup your original Email.apk (just in case)
Code:
adb pull /system/app/Email.apk
adb pull /system/app/Email.odex
2) Now move the original Email.apk and odex file a backup folder
3) Download the new Email deoxed.zip or the Email.apk (Cyanogen) and extract it in the ADB folder
4) Now push the new Email.apk to your /sdcard/
Code:
adb push Email.apk /sdcard/
5) Remove the original Email.apk and odex from your phone
Code:
adb shell
su
rm /system/app/Email.apk
rm /system/app/Email.odex
6) Make sure Email is gone from the app drawer
7) Move the new Email.apk from /sdcard/ to /system/app
Code:
mv /sdcard/Email.apk /system/app/
8) Check if Email is in the app drawer again
Done! new Email app with a working reply function

Great!
You won't believe, just 30 secs ago - I pushed the cyanogen based (http://forum.xda-developers.com/showthread.php?t=775007) email.apk to the phone!
Btw, can your mod circumvent the security policy?...

hacksome said:
You won't believe, just 30 secs ago - I pushed the cyanogen email.apk to the phone!
Btw, can your mod circumvent the security policy?...
Click to expand...
Click to collapse
Nope can your's? does it work? because i tried the Evo email app and it didn't work! FC'd on me!
Please upload it here!

Mine works!
The Email.apk from the http://forum.xda-developers.com/showthread.php?t=775007 Thread helps circumvent. Just accept the dialog for the first time when it asks during setup. No more bugging.
I removed the stock email.apk/odex files using the SGSTools before installing this.

thanks trying out now.
this will also rendered the mail/contact/calendar to be purged off and requires re setup of the exchange account sync.

zenkinz said:
thanks trying out now.
this will also rendered the mail/contact/calendar to be purged off and requires re setup of the exchange account sync.
Click to expand...
Click to collapse
Jep you need to set your email again!

BackfireNL said:
Yes people! i've done it! got the Email.apk from Froyo 2.2 JIJP5 and got it working on JPH by deodexing it. Here is a short tutorial howto push it to your phone.
But thats old use the Cyanogenmod Email.apk (it's in this post)
You can choose:
Email deoxed.zip (original email client)
Email.apk (CM email client without security reinforcement)
Requirements:
- ADB and some basic knowledge of ADB
- rooted SGS I9000
- JPH firmware
Con's
- You have to set your Email again
Follow these steps:
1) First backup your original Email.apk (just in case)
Code:
adb pull /system/app/Email.apk
adb pull /system/app/Email.odex
2) Now move the original Email.apk and odex file a backup folder
3) Download the new Email deoxed.zip or the Email.apk (Cyanogen) and extract it in the ADB folder
4) Now push the new Email.apk to your /sdcard/
Code:
adb push Email.apk /sdcard/
5) Remove the original Email.apk and odex from your phone
Code:
adb shell
su
rm /system/app/Email.apk
rm /system/app/Email.odex
6) Make sure Email is gone from the app drawer
7) Move the new Email.apk from /sdcard/ to /system/app
Code:
mv /sdcard/Email.apk /system/app/
8) Check if Email is in the app drawer again
Done! new Email app with a working reply function
Click to expand...
Click to collapse
Heeey MEN!!
YOU ARE THE SUNSHINE IN MY HEART.. hahahahahahahaha SOOOO GREAT! many thanks!!

after setting up my exchange account, my calendar doesn't sync anymore, so I'm not sure if this is the culprit. any advise? problem with android exchagne sync is that you can't see the status of the sync progress (unlike ms activesync)

Does this by chance contain any fixes for allowing a non standard port number to be specified when configuring exchange account?

zenkinz said:
after setting up my exchange account, my calendar doesn't sync anymore, so I'm not sure if this is the culprit. any advise? problem with android exchagne sync is that you can't see the status of the sync progress (unlike ms activesync)
Click to expand...
Click to collapse
Have you restarted the phone yet?

BackfireNL said:
Have you restarted the phone yet?
Click to expand...
Click to collapse
yup. restarted

It works here (on XXJPH at least)! Thanks so much!
The only thing I noticed is that the Email.apk from JIJP5 is not localized (at least not to German), but shows English text all around. That's not really a problem though, just in case anyone wonders.

does this fix the imap not deleting emails on the server bug aswell?

baldric said:
does this fix the imap not deleting emails on the server bug aswell?
Click to expand...
Click to collapse
aha! I just installed touchdown for exchange sync and noticed emails deleted in touchdown were still on my PC's outlook... annoying!
anyone know if this email.apk fixes this?

strange, on my JPM it crashes/fc whenever I try to start it.

Hi guys I am trying to run this fix on my email.
I am running ODIN3 Froyo on my captivate but I keep getting a bunch of errors.
When I try to back up both files, it tells me that it cant find them. I tried to browse to the system/app directory but cant see the files.
When I try to copy email.apk to the sdcard I get an error that it a directory. Any help would be greatly appreciated.

Hey Guys,
I tried the above steps, all of the commands worked except that I don't still see the Email app in the drawer. I see the Email.apk file in the /system/app folder, re-started my phone multiple times but the Email app is no where to be seen.
Any pointers?
I was running this on the Froyo 2.2 build on my Captivate!

Code:
mv /sdcard/Email.apk /system/app/
failed on '/sdcard/Email.apk' - Cross-device link
Everything is fine mail is removed but now i am getting this error pushing the new package to my phone.
Any ideas?

I'm getting an error trying to rm Email.apk and Email.odex (read-only system file). I used SuperOneClick to root my phone and I have SU but I'm wondering if it's not truely rooted. Any advice on how I can verify?
When I adb shell and then issue su, I don't get any errors - just the # prompt so it looks like it wants to work.
FYI, I'm doing this because I put Froyo on my new captivate and can't reply/forward exchange emails. I was pointed at this thread as a fix for that issue.
TIA!

Looks like this may have been a reboot or something issue. I was able to get in and remove the Email files.
mallama said:
Code:
mv /sdcard/Email.apk /system/app/
failed on '/sdcard/Email.apk' - Cross-device link
Everything is fine mail is removed but now i am getting this error pushing the new package to my phone.
Any ideas?
Click to expand...
Click to collapse
FYI, I got the same error as mallama above so I just exited shell and did an adb push Email.apk instead of doing the mv from the sdcard... Everything is working great now.
Thanks, yet again, XDA!

Related

Deleting system apps after root?? (Root Explorer won't do it)

I used to use "Root Explorer" on my hero to delete system apps before..doesn't seem to work anymore..
solution??
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
did you mount /system in rw mode? (it's ro by default)
U dont have write access to system partition in normal use if i read the tutorial right. U have to do it with an update.zip (editing the update script) or with adb both u have to do in recovery menu from modaco i think. Tell me if i am wrong.
Sry for my bad english
@cezarL yes I did
@xtcislove I wish u were wrong..seems like pain.. anyway to do it without a pc?
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
Damn, you're right. Previously, I had deleted an .apk just to check if it's working, then reinstalled the app right away.
But I just tested now, it looks like after a reboot, the .apk magically reappears, and the application is running as usual
Damn, you're right. Previously, I had deleted an .apk just to check if it's working, then reinstalled the app right away.
But I just tested now, it looks like after a reboot, the .apk magically reappears, and the application is running as usual
Click to expand...
Click to collapse
ye..I'm sure it has something to do with the root limitations Paul mentioned in his rooting guide. hope it'll be fixed soon.
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
Try this: Boot in recovery menu and try the following commands:
adb remount
adb shell rm /system/app/APP.apk
adb shell rm /data/app/APP.apk
where APP.apk is the filename of the apk with the .apk extention, remember case-sensitive!
for example:
adb remount
adb shell rm /system/app/FriendStream.apk
adb shell rm /system/app/FriendStream.odex
take a look before if your app has a odex or try this: (here u need only one command)
adb remount
adb shell rm /system/app/*FriendStream*
Good luck and have fun =)
Edit: Just find a topic =)
hxxp://android.modaco.com/content/htc-hero-hero-modaco-com/297207/removal-of-apps-via-adb/#entry1124362
(replace hxxp with http)
I'm trying to do these things in windows at the moment. No issues getting in the recovery with the windows scripts. But when I try to open a ADB Shell after I've gone to recovery I can't really do anything with it and the recovery hangs (not controllable with the track pad).
Anyone can tell me what I'm doing wrong?
You're not doing anything wrong, from what I've seen opening a new adb instance on Windows will kill the server created by the .bat file used for recovery... which means the connection to the device is lost. I haven't looked into it further, but it might be fixeable somehow.
Ah I see, so basicly you undo the patched recovery by opening a new session. It does work properly under Linux then? I run ubuntu on my netbook so It's not a big issue anyway. Thanks for the tip, gonna try under linux now!
I'm having the same problems as:
http://android.modaco.com/content/h...co-com/307401/removing-sys-apps/#entry1256015
I removed a load of HTC widgets but I get strange entries on the widget menu. Anyone know how to get rid of these?
Also, I removed Stocks (.apk and .odex), now I get a force close on 'Accounts & sync'. Anyone know how to remove Stocks properly?
Cheers.
After running the bat file to get into recovery, start a new cmd prompt in windows and use again adb-nilezon for shell commands instead of ordinary adb, and it wont be killed.
This has worked for me atleast
blackadder1000 said:
Anyone know how to remove Stocks properly?
Click to expand...
Click to collapse
The best, foolproof, failsafe way is to remove them from the rom before installing it... and remember that some services are still required, weather you use them or not.
But, if a system app is already installed you need to remove:
the apk from /system/app
the data from /data/data/appname
the cache from /cache/dalvik-cache
Do not remove Accounts & Sync...
Thanks for the answer.
I guess now is a good time to bake my own ROM!
blackadder1000 said:
Thanks for the answer.
I guess now is a good time to bake my own ROM!
Click to expand...
Click to collapse
Yep, that's what I do... see my sig...

[Solved] How to install updates/apps after rom install

How do I install updates like Removed apps
thanks
This is removed, and I want to install it:
-Google Maps apk file
-Stocks
-Teeter
-QuickOffice
-Removed sim toolkit
-Removed footprints
-Facebook app
-And again what I forgot
If you want the removed apps back try this file (for v1.5):
Rapidshare:
pays-removed-apps-v1.5.zip
DevDroid:
pays-removed-apps-v1.5.zip
You need to push them back using adb.
e.g.
adb push c:\teeter.apk /system/app
adb push c:\teeter.odex /system/app
adb reboot
thanks you
extreme22 said:
thanks you
Click to expand...
Click to collapse
No problem
MasDroid said:
You need to push them back using adb.
e.g.
adb push c:\teeter.apk /system/app
adb push c:\teeter.odex /system/app
adb reboot
Click to expand...
Click to collapse
I downloaded the sdk and also pays-removed-apps-v1.5 because I really want to get the stock standard "HTC Stocks" app re-installed.
zed:app Rick$ ./adb push ./Stock.apk /system/app
2562 KB/s (318188 bytes in 0.121s)
zed:app Rick$ ./adb push ./Stock.odex /system/app
2636 KB/s (191632 bytes in 0.070s)
zed:app Rick$ ./adb reboot
I've run what looks like the right commeands and there's no error's but the Stocks program doesn't re-appear. I'm running "pays Desire BraveSoul 2.x". Any ideas on why Stocks doesn't appear?
I think u forgot DCSStock Utility !
Extract it from annother ROM and it should work ;-)

How can you install APKs from other ROMs?

I have looked around quite a bit, and haven't really figured out the straight answer on this.
I have seen apks that can be downloaded of things like the clock or gallery app, and then I have seen custom roms that include things like the AOSP dialer, contact app, browser, etc. However in my small amount of trying, I couldn't install them on top of another ROM (or stock).
Is there an issue with signing them, or does it have to be done in recovery mode, or do I have to remove the existing stuff in something like Titanium backup and then install the other APKs, or would my only option be to learn the dark arts of rom cooking?
Edit: Answered thanks to mrchu001. Doing an "adb remount" and then issuing the install command from the shell worked.
I'm not sure if this works for ALL apks between roms, but when i flashed Fresh it didn't have the cooliris 3d gallery that DC has, so i opened the zip, and copied the APK from one rom to the other then flashed it. I'm sure there are some programs that just won't work even if you did it this way, but something to consider.
That works in most cases..
Just get the zip on your computer, open it extract the apk you want and adb install it to your connected device.
No luck with either method mentioned above. I'm sure I don't know what I'm doing... but I did an adb install <apk name> and got an error:
Code:
MacBook: tools laydros$ adb install CarDock.apk
1344 KB/s (238640 bytes in 0.173s)
pkg: /data/local/tmp/CarDock.apk
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
And I grabbed one of the base rooted roms, unzipped, added the CarDock and DeskClock apks to the system/app folder with everything else, and the ROM failed to load. I did the same clockwork rom manager install rom from SD card methods I have done before. I assume this means that the zip was not properly signed.
The apks I was testing were ones from bugless beast 0.4, any ideas?
laydros said:
No luck with either method mentioned above. I'm sure I don't know what I'm doing... but I did an adb install <apk name> and got an error:
Code:
MacBook: tools laydros$ adb install CarDock.apk
1344 KB/s (238640 bytes in 0.173s)
pkg: /data/local/tmp/CarDock.apk
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
Click to expand...
Click to collapse
it looks like you didnt direct your terminal correctly. i'm assuming you have the sdk on your computer btw. now try to upload the rom you want on your phone. plug it in. make sure usb debugging is set. make sure the apks you want to put on your phone are on your desktop. and try this:
Code:
cd ~/*where every your sdk is*/tools
./adb remount
./adb shell
./adb install ~/desktop/*apk name* /system/app
./adb shell reboot
maybe you already tried but just incase.. do you have the Unknown sources check box "Checked" under "Settings/application" menu? if not you need to to install apps not from the market..
mrchu001 said:
it looks like you didnt direct your terminal correctly. i'm assuming you have the sdk on your computer btw. now try to upload the rom you want on your phone. plug it in. make sure usb debugging is set. make sure the apks you want to put on your phone are on your desktop. and try this:
Code:
cd ~/*where every your sdk is*/tools
./adb remount
./adb shell
./adb install ~/desktop/*apk name* /system/app
./adb shell reboot
Click to expand...
Click to collapse
The remount part did it, and then doing the install from adb shell. Thanks so much.
For the sake of anyone else that finds this, once you type adb shell, you are working from the phones shell instead of the one on your computer, so you would skip that command. I ended up moving the files to the sdcard, and then doing
Code:
cd ~/*where every your sdk is*/tools
./adb remount
./adb shell
(at this point you are at the phone's prompt)
install /sdcard/*apk name* /system/app
exit
(now you are back at the computer's prompt)
./adb shell reboot
Now I need to figure out what to install to get the phone/contacts working. Calendar and Mms applications were easy, but after installing several apks for the phone and contacts I just have a mess.
FroydVillain 1.0.0 install *.apk files in /system/app
Hi has anyone tried installing another apk file in FroydVillain 1.0. I follow the steps in the thread described i am able to issue adb shell commands and i have placed the apk files in the SD card as described. but i am getting an error as below that the file or dir is not found. tried several paths:
# install /mnt/sdcard/*.apk /system/app
install /mnt/sdcard/*.apk /system/app
install: can't stat '/mnt/sdcard/*.apk': No such file or directory
# install /sdcard/*.apk /system/app
install /sdcard/*.apk /system/app
install: can't stat '/sdcard/*.apk': No such file or directory
I use /mnt/sdcard path cause on Froyo the SDCARD folder is under /mnt.
any help solving this. i am trying to install some of the HTC Sense UI app to sys app. Like Stock.apk for test. and HTCAlbum.apk and others same result every time.
I have tried also AndroidCommander 0.7.9.6 updated for froyo. installing with it's install option button, and also from the console i run the shell command for install, successfully adds the apk in sys app folder but the apk is not installed, and asks for installation.
Thanks.
Regards Alek
help
Hi,
Can you explain to begginers (like me) how do you installed the apk in system/app? please, I want to install contacs.apk form CM9 to other rom.
Thanks.

Cannot delete apps within Android?

Help I've rooted my phone with nandroid and I still cannot delete apps within the android system with estrong file browser any help would be appreciated.
Running Damage Control 3.2.3.
casual864 said:
Help I've rooted my phone with nandroid and I still cannot delete apps within the android system with estrong file browser any help would be appreciated.
Running Damage Control 3.2.3.
Click to expand...
Click to collapse
Well, if you're trying to delete system apps -- you won't be able to delete them from Estrong. I believe Root Explorer will allow you to delete those files, but its a paid app.
I would just advice you to delete whatever apks you don't want from terminal/shell.
Just plug your phone in and open terminal/command prompt and type:
Code:
adb remount
adb shell
cd /system/app
ls -- lists all the apps on your phone, find what you want to remove
rm AppName.apk
rm AppName.odex (not all apks will have odex files), so don't worry if you get an error message
Example:
rm Mail.apk
When you're done, type:
exit
Hope that helps.
Thanks for the answer. I didn't know that I couldn't delete apps with estrong. Though I find it easier to delete apps within android than going into terminal and executing the commands myself. Thanks for the heads up though.
casual864 said:
Thanks for the answer. I didn't know that I couldn't delete apps with estrong. Though I find it easier to delete apps within android than going into terminal and executing the commands myself. Thanks for the heads up though.
Click to expand...
Click to collapse
Sure no problem.
I must be an idiot. Everyone keeps saying just type adb shell in a command prompt window. I just get errors saying ADB is not a recognized command. What gives?
It is in the sdk/tools directory.
Got it, I'm in. But now I'm getting read-only file system as I attempt to delete APK's.
Alternately, you can delete apps in one-click with Titanium Backup (which every rooted phone should have, IMO).
adb remount. Got it. Removed a few things I wanted gone after fresh 0.5.3.

[Q] teeter.apk that installs on froyo?

I'm currently running Skyraider 2.5, but was also looking for teeter when i was on 2.2.
The fiance loves to grab my phone while we are out and play teeter. I pulled the teeter.apk from another build i found and tried to install it, but it came back always that it did not install.
Anyone able to install teeter on froyo (not sure if this is a froyo or skyraider thing, but im assuming its froyo), and have a working apk they can post please ?
We both would very much appreciate it, thanks!
if you look in the aiccucs rom v4.2 thread, the second post has a bunch of .zip files that he removed from the stock froyo rom incase you want to put them back on. teeter is in there too. idk if installing the .zip would work since your on a different rom, but if you unzip it you can access the .apk and just try intstalling that
dccoh said:
I'm currently running Skyraider 2.5, but was also looking for teeter when i was on 2.2.
The fiance loves to grab my phone while we are out and play teeter. I pulled the teeter.apk from another build i found and tried to install it, but it came back always that it did not install.
Anyone able to install teeter on froyo (not sure if this is a froyo or skyraider thing, but im assuming its froyo), and have a working apk they can post please ?
We both would very much appreciate it, thanks!
Click to expand...
Click to collapse
I tried exactly what you did with the same results.
But...
If you boot into recovery and mount system, then push it to /system/app using adb shell then reboot it should work for you. It did for me.
Open a command propmt in a directory containing the teeter.apk file and run the following command:
adb push teeter.apk /system/app/teeter.apk
gadget! said:
I tried exactly what you did with the same results.
But...
If you boot into recovery and mount system, then push it to /system/app using adb shell then reboot it should work for you. It did for me.
Open a command propmt in a directory containing the teeter.apk file and run the following command:
adb push teeter.apk /system/app/teeter.apk
Click to expand...
Click to collapse
I just copied it to my SD card and installed normally... Had to tick the little block in the Unknown Sources though.
Adam_NCNN said:
I just copied it to my SD card and installed normally... Had to tick the little block in the Unknown Sources though.
Click to expand...
Click to collapse
Strange, that didn't work for me as well as several others. And I do have Install from unknown sources checked.
It always came back with "Application not installed".
Glad it worked for you.

Categories

Resources