Ok I tried it again. I took the attached APK, which is from scott's rom and works unmodified. I modified it according to what you posted above decompiling and recompiling it using APKtool. I signed it (used a different way to sign it and it signed correctly) and I get the following error (see image).