It would be useful to have some context for what you are trying to achieve. Rewriting AppType on a running app is probably not the safest method. I believe the changes only last as long as the app is in memory so it's not a permanent change, but maybe that's what you're after. Can you expand on your desired outcome and the reasons behind it? There may well be other options.