Yeah I know about that but changing AndroidManifest.xml requires resigning, META-INF/CERT.RF and MANIFEST.MF can be taken from the resigned apk but it will be incompatible with CERT.RSA which includes the "miui sign" registered at firstname.lastname@example.org
What do you mean with "reinject"? If you mean just using the old META-INF from the apk, then it doesn't work because apparently meta-inf is tied to androidmanifest.xml so it (apparently) requires resigning.
I haven't looked much into it but I guess it would be easier that MIUI used a...
I've been trying to do this..but
Torch isn't an app, it's part of MiuiSystemUI.apk like fonfon said.
That's part of AndroidManifest.xml from MiuiSystemUI.apk which include the Torch Activity (ACTIVITY not app) so you'd need to modify the androidmanifest, but that requires resigning...