[Nook Color Android Development] racks11479:
Hi all! This is to address the issue with many apps force closing on launch. Just a temporary fix until CM7 is fully ironed out by the devs.

I'm running CM7 nightly v3 and Stock 1.1.0 Nootered on dualboot setup by Rookie1.

I see alot of people are still having issues with their apps force closing on them. And I just wanted to to see if what I did to modify my framework.jar has any aspect as to why some of my apps like Market, Pandora, Live Holdem Poker, Gameloft games & even the XDA app that people said can't survive a login is now running like normal for me without the FC'ing issue.

**Credit goes to the original devs who came up with the original patch**

clockworx

brut.all

Decad3nce for the great write up

Cyanogen

I took the TelephonyManager.patch from http://xdaforums.com/showthread.php?t=955847 and modified some lines to correspond to the framework.jar from the CM7 Rom when patched.

I then backed up my original framework.jar file and replaced it with the new one. And after rebooting. Most (Maps 5.1.0 is still crashing on me / I just used a backup of my Maps 5.0.0 and it works fine), if not all of my apps that were FC'ing before is now running as normal.

I believe the nook doesn't have an AndroidID/IMEI#. And I believe that this is the reason for the apps to FC on launch as it is looking for one and doesn't see it. This patch will generate a false AndroidID/IMEI#

**As stated. This is a temp fix. This does not store the AndroidID/IMEI# It generates a new one on each request**

**Please use my experience as a guide and always do a backup before you try anything new. You are solely responsible for anything that happens to your device**

**Edit: 2/23 - I noticed that when unzipping in OSX. It would unzip the .jar file as well and give you a classes.dex file. I've re-zipped it within a folder. Just download, unzip and use the file within the folder. Make sure to rename and set correct permissions.**

**2/23 - I've added my patched framework.jar from my Stock Rooted 1.1.0 if anyone ones to give that a try as well. Follow same instructions. Make sure you use the correct framework for your system. Also remember to set correct permissions after replacing your file.**

**2/25 Please only use patch. For CM7 up to v5 only. The CM team is working on a permanent fix. If you decide to use. Use at your own risks. Thank you guys!!!**

**3/5 I know this still isn't a solution, but it will at least give everyone the wonderful experience to keep using their XDA app on their nook for the time being.

-Remember to set correct permissions for the framework.jar file and rename the old one to framework.jar.bak just in case it doesn't work for you. Reboot after replacing framework file. Then wipe Dalvik-Cache (I used Root Explorer and just deleted all the files in Dalvik Cache folder / only because I'm on dualboot, if you're on EMMC just wipe dalvik-cache with CWM), Fix permissions with Rom Manager (with CWM if you're on EMMC). And do another reboot. The reboots will take a while because its rebuilding the Dalvik Cache.

-Thank you devs for all your hard work at no cost to us. But of course we look forward to "donating' when we can.**

Rename the file you just downloaded to framework.jar and place it in your adb folder.

adb shell mount -o remount,rw /dev/block/mmcblk1p2 /system
adb shell mv /system/framework/framework.jar /system/framework/framework.jar.bak
adb push framework.jar /system/framework/framework.jar
adb shell chmod 6755 /system/framework/framework.jar
adb reboot

Or you can just use Root Explorer to copy it over and set the correct permissions.

Just my experience. Hope this helps in someway, if not i'll edit accordingly.

Please let me know if it works or not.

Thank you to all the devs for all the hard work you've put in to get this running!