[Q] Howto reinstall CalendarProvider.apk? - Optimus One, P500, V Q&A, Help & Troubleshooting

Hi!
I accidentally (don't ask how. Please -.-) removed my Calendar.apk and CalendarProvider.apk (including the .odex-files) from my device and now I'm trying to reinstall it since yesterday.
I tried different .apk files installing via root explorer. I also tried copying the files I got from another Optimus One into my system/app-folder, without success.
Problems I had so far:
- .apk-files don't include odex-files -> so I deodexed them and tried again:
- .apk-files not signed -> so I signed them and tried again:
- Calendar.apk can be installed, but adb install CalendarProvider.apk fails with
Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]
Click to expand...
Click to collapse
adb logcat says a little bit more:
D/PackageManager( 1374): Shared UserID android.uid.calendar (uid=10016): packages=[]
E/PackageManager( 1374): Package com.android.providers.calendar has no signatures that match those in shared user android.uid.calendar; ignoring!
W/PackageManager( 1374): Package couldn't be installed in /data/app/com.android.providers.calendar-1.apk
Click to expand...
Click to collapse
After reading through several boards, threads, mailinglists and the packages.list/packages.xml files I think that the problem is that the Calendar and CalendarProvider have to run with the same user id. But somehow signing the apk-files destroyed something in the CalendarProvider package?
I really don't have any clue what to try next

Somehow I did it.. ^^ I don't know what exactly made the trick, but the following worked:
At first I installed the signed Calendar.apk. Then I pulled the packages.xml onto my pc and deleted the id of the calendar-user (10012). Then I rebooted the device and ignored about a dozen errors. Then I installed the CalendarProvider.apk (which was now possible) and rebooted.
Then I checked the packages.xml again and the uid 10012 was in there again..^^ Now my calendar is synced again

fabswabs said:
At first I installed the signed Calendar.apk. Then I pulled the packages.xml onto my pc and deleted the id of the calendar-user (10012). Then I rebooted the device and ignored about a dozen errors. Then I installed the CalendarProvider.apk (which was now possible) and rebooted.
Click to expand...
Click to collapse
I just wanted to note that this process also just worked for me on my rooted Nook Tablet with the 1.4.1 update, which had no Calendar or CalendarProvider to begin with. I grabbed the files for Android 2.3 from here, copied Calendar.apk to /system/app with Root Explorer, deleted all the user id and shared user ids for calendar from packages.xml as described above, rebooted, installed CalendarProvider.apk using adb, rebooted again, and I have a calendar that syncs!

same problem
The same problem. Resolved: 1) installing the apk. 2) ODEX by Lucky Patcher 3), and then reboot into recovery and clear cash and cash Dalvin. 4) restart the system

Related

installing system apps

I deleted all of the touchwizcalendar.apk files, now I am trying to install a basic android Calendar.apk, and it is not allowing me to.
I have chmod'd EVERYTHING to 777 in the system/app directory, including the file. Still will not let me install it through Astro File manager.
What am I doing wrong? I have the file in the system/app directory, upon reboot it still does not install. Though I notice that rebooting makes all the permissions go back to what they were. At this point, I just want my calendar back. Any calendar.
- KrossXC
KrossXC said:
I deleted all of the touchwizcalendar.apk files, now I am trying to install a basic android Calendar.apk, and it is not allowing me to.
I have chmod'd EVERYTHING to 777 in the system/app directory, including the file. Still will not let me install it through Astro File manager.
What am I doing wrong? I have the file in the system/app directory, upon reboot it still does not install. Though I notice that rebooting makes all the permissions go back to what they were. At this point, I just want my calendar back. Any calendar.
- KrossXC
Click to expand...
Click to collapse
Move it to your sdcard and install it that way.. then if that does work move it over to /system/app and reboot

HELP Reinstall APK!!!

I have tried EVERYTHING I can read. For one thing, when I try
adb install TouchWizCalendar.apk
-> I get an error that says INSTALL_FAILED_DEXOPT
--> I have 64mb of phone memory, and my phone is rooted...
adb push TouchWizCalendar.apk /system/app
-> Permission Denied
I finally copied the TouchWizCalendar.apk back over along with the odex file to the system/app folder using Root Explorer, but the program isn't in my app drawer, and I can't even access it from my calendar widget on launcher pro.
Any help is appreciated... Thank you
EDIT:: I really don't care if it's the TouchWiz calendar that I install or the default stock calendar, I would just like A calendar... Any help is appreciated.. I'm still trying to get it worked....
EDIT::: I just checked logcat and I'm getting an error "Package does not include classes.dex" when trying to install. Anyone know why?
Okay, I figured it out... Sort of.
If anyone else gets this problem you should go to
forum.cyanogenmod.~com/topic/395-cyanogenmod-5-for-nexus-one-kang-central-station-v508-06192010/
Without the ~ before com. I can't post links.
Download Cyanogen's mod, and extract the file, navigate to system/apps and retrieve Calendar.apk and CalendarProvider.apk. Put those on your phone's SD card and install like any regular apk file.
This worked for me. It's not the TouchWizCalendar, but it's A Calendar, that is working atleast...
Have you tried moving the apk to the phone and installing from there and capture the log, it might give some useful information

[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] Google Maps installation issue

I tried updating google maps today and it kept saying the package was not signed correctly. Upon researching the issue, I decided to delete the Maps.apk and Street.apk from system/app and trying to install from market after reboot. I tried to install and I got the code "unknown error code during application installation "-8"". I tried to move the downloaded apk from cache to system/app and renaming it Maps.apk and rebooting and that didn't work. When I try to hit install, it asks me if the permissions are ok, I hit install and it says application was not installed. I've deleted the com folders and every trace of maps I could find through root explorer to try to start fresh and no such luck. Can anyone help out?
Use the non signed version, it has always worked for me, but don't install it as a regular app, just copy the Maps.apk to system/app , change permissions to rw--r--r and reboot, all the applications should appear...
most like its because the modded rom you flash uses the unsigned version so it can't be updated. If I were you I would have stick with the unsigned version. If you don't want to reflash, you could extract the unsigned map.apk from the rom you flash and manually install it. It SHOULD work.

[Completed] [Q] APK rebuild and install issues

I am learning how to mod Android apps.
I have rooted ASUS Transformer Prime for my experiments. It has busybox installed.
I have downloaded one of the games from /data/app directory, by copying it to sdcard and then using adb pull.
Then I have used apktool to disassemble apk and without any changes assembling it back. I did verify with Beyound Compare tool that resulting apk logically is same to original. All files inside are byte to byte same.
I ran zipalign on it.
Then I pushed it back to my device via adb push to sdcard and then copy it to /dev/app folder. restored permissions and owner.
When I tried to run the app I got the error, "Unfortunately application stopped".
The only difference between original and disassembled apk that I can see is that files inside the apk (which is zip) are in different order.
Can anyone shed the light on this problem? Does Android somehow remembered offsets of different files in that apk? Is there any log somewhere?
Thank you very much.
vasiliy_gagin said:
I am learning how to mod Android apps.
I have rooted ASUS Transformer Prime for my experiments. It has busybox installed.
I have downloaded one of the games from /data/app directory, by copying it to sdcard and then using adb pull.
Then I have used apktool to disassemble apk and without any changes assembling it back. I did verify with Beyound Compare tool that resulting apk logically is same to original. All files inside are byte to byte same.
I ran zipalign on it.
Then I pushed it back to my device via adb push to sdcard and then copy it to /dev/app folder. restored permissions and owner.
When I tried to run the app I got the error, "Unfortunately application stopped".
The only difference between original and disassembled apk that I can see is that files inside the apk (which is zip) are in different order.
Can anyone shed the light on this problem? Does Android somehow remembered offsets of different files in that apk? Is there any log somewhere?
Thank you very much.
Click to expand...
Click to collapse
Learned to use adb logcat.
Apparently app was failing because dalvik detected that timestamp on a dex file is different and decided that it should replace cached file in /data/dalvik-cache.
But that file is not writable for a group. Not sure why.

Categories

Resources