[HD2 Android NAND Development] dorimanx:
try this via ADB

rm -rf /data/data/com.facebook.katana

then try to install.

if no go, then there is one more place to look for it :)

but it's will be not easy!

connect your phone to usb install adb!

run adb shell

now go to "windows" START run "or in search" type cmd "run it"

in black screen, go to folder were is the ADB file exist.

type.

adb pull /data/system/packages.list

now edit this file in your PC with NOTEPAD++ or EDITPLUS

Find : com.facebook.katana

my line look like this, your mabe slightly different.

com.facebook.katana 10315 0 /data/data/com.facebook.katana

DELETE this LINE!!!

Save the file.

now push it back to phone:

adb push packages.list /data/system/

in adb shell type

chmod 664 /data/system/packages.list

chown 1000:1000 /data/system/packages.list

next step!

adb pull /data/system/packages.xml

now edit this file in your PC with NOTEPAD++ or EDITPLUS

look for word com.facebook.katana

delete all this lines!

<item name="com.facebook.katana.permission.C2D_MESSAGE" package="com.facebook.katana" protection="2" />

<item name="com.facebook.katana.provider.ACCESS" package="com.facebook.katana" protection="2" />

<package name="com.facebook.katana" codePath="/data/app/com.facebook.katana-2.apk" nativeLibraryPath="/data/data/com.facebook.katana/lib" flags="0" ft="13453249ab8" it="1340461d6c0" ut="134

<sigs count="1">

<cert index="171" key="30820268308201d102044a9c4610300d06092a864886f70d0101040500307a310b3009060355040613025553310b3009060355040813024341311230100603550407130950616c6f20416c746f311830160603

</sigs>

<perms>

<item name="android.permission.SEND_SMS" />

<item name="android.permission.WRITE_EXTERNAL_STORAGE" />

<item name="android.permission.WRITE_SMS" />

<item name="android.permission.RECEIVE_SMS" />

<item name="android.permission.GET_ACCOUNTS" />

<item name="android.permission.READ_CONTACTS" />

<item name="android.permission.WRITE_CONTACTS" />

<item name="com.google.android.c2dm.permission.RECEIVE" />

<item name="android.permission.AUTHENTICATE_ACCOUNTS" />

<item name="android.permission.READ_PHONE_STATE" />

<item name="android.permission.READ_SMS" />

<item name="android.permission.WRITE_SYNC_SETTINGS" />

<item name="com.facebook.katana.provider.ACCESS" />

<item name="com.facebook.katana.permission.C2D_MESSAGE" />

<item name="android.permission.INTERNET" />

<item name="android.permission.ACCESS_FINE_LOCATION" />

<item name="android.permission.READ_SYNC_SETTINGS" />

<item name="android.permission.MANAGE_ACCOUNTS" />

<item name="android.permission.VIBRATE" />

<item name="android.permission.ACCESS_NETWORK_STATE" />

<item name="android.permission.WAKE_LOCK" />

</perms>

<revoked-perms />

<disabled-components>

If you have something here delete it also, if not then delete all till </package>

</disabled-components>

</package>

Save the file

PUSH it back to phone

adb push packages.xml /data/system/

in adb shell:

chmod 664 /data/system/packages.xml

chown 1000:1000 /data/system/packages.xml

sync

reboot

then try to reinstall!

This guide good for any STUCK app that cant be reinstalled!

You just need to know the package name!

Happy linux messing :)