Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
theroman
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 28
Join Date: Dec 2006
Location: Rotterdam
Default How to re-install Calendar.apk

Hey everyone,

I've just done something stupid.. I wanted to install the old (G1) Calendar app on my Hero (I think the old app is better, faster etc.). So in order to do that I first deleted CalendarProvider.apk (and .odex) and Calendar.apk (and .odex) from /system/app

So after that brilliant step, I found out the old calendar won't install.. and now I found out the original (backuped) apk's won't install either.

I tried adb push to /system/app, which works, but doesn't give me a working calendar.

What to do?
 
Lox_Dev
Old
#2  
Lox_Dev's Avatar
Senior Member
Thanks Meter 24
Posts: 323
Join Date: Oct 2007
Location: Kanaky-New-Caledonia

 
DONATE TO ME
Are the permissions the same as other files?
 
theroman
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 28
Join Date: Dec 2006
Location: Rotterdam
gecka, what do you mean exactly?

I have been able to rm and adb push, but adb install didn't work..
 
Dollitle
Old
#4  
Dollitle's Avatar
Senior Member
Thanks Meter 11
Posts: 118
Join Date: Mar 2004
Location: Haifa
can you upload the calendar???
 
theroman
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 28
Join Date: Dec 2006
Location: Rotterdam
Sure, you can find the files here:

http://theroman.nl/CalendarProvider.apk
http://theroman.nl/Calendar.apk
 
Lox_Dev
Old
#6  
Lox_Dev's Avatar
Senior Member
Thanks Meter 24
Posts: 323
Join Date: Oct 2007
Location: Kanaky-New-Caledonia

 
DONATE TO ME
Quote:
Originally Posted by theroman View Post
gecka, what do you mean exactly?

I have been able to rm and adb push, but adb install didn't work..
Try adb shell, then "ls -lah" in app dir, that will show you file permissions.
Just an idea.
 
theroman
Old
#7  
Junior Member - OP
Thanks Meter 0
Posts: 28
Join Date: Dec 2006
Location: Rotterdam
Quote:
Originally Posted by gecka View Post
Try adb shell, then "ls -lah" in app dir, that will show you file permissions.
Just an idea.
Hmm.. I get this:


And this is the adb pushed Calendar.apk

So I think I have all necessary permissions, but how to make it work
 
Lox_Dev
Old
#8  
Lox_Dev's Avatar
Senior Member
Thanks Meter 24
Posts: 323
Join Date: Oct 2007
Location: Kanaky-New-Caledonia

 
DONATE TO ME
Calendar.apk should be own by root as other .apk, I suppose.

As you can see it is own by "shell". Not sure on own to change that, you should be root to do a

chown root:root Calendar.apk

If you have rooted your phone try su to become root
 
theroman
Old
(Last edited by theroman; 25th August 2009 at 11:56 AM.)
#9  
Junior Member - OP
Thanks Meter 0
Posts: 28
Join Date: Dec 2006
Location: Rotterdam
Quote:
Originally Posted by gecka View Post
Calendar.apk should be own by root as other .apk, I suppose.

As you can see it is own by "shell". Not sure on own to change that, you should be root to do a

chown root:root Calendar.apk

If you have rooted your phone try su to become root
I did the chown, but it won't take root:root, so I did:

chown root Calendar.apk .. which gives:



Unfortunately it doesn't work, but I did get the owner to root.. any other idea's? Thanks for thinking with me!

[Edit] I rebooted into Recovery and tried to install, got another error message:
 
paulobrien
Old
#10  
paulobrien's Avatar
Senior Member
Thanks Meter 5230
Posts: 4,382
Join Date: Nov 2003
Location: Norwich
Did you push the odex too? You need both...

P
Follow me on Twitter - http://twitter.com/paulobrien

Follow MoDaCo Android on Twitter - http://twitter.com/modaco

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.


 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Preventing App Piracy: Join the Discussion

The topic of piracy is always a touchy subject, but I feel that the grass roots style of Android … more

Jolla Sailfish OS Flagship Device Makes First Appearance

Given the amount of coverage that Android receives around here, you could almost be … more

XDA University: Porting ClockworkMod Recovery to New Devices

Having a good recovery makes the process of modifying, tweaking, maintaining, … more

One Stop Guide Shop for the Newbie and Dev

It’s been well established that XDA-Developers isthedestination for resources relating to … more