Resource Redirection of R.xml

Search This thread

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,425
7,689
253
23
Salford, Greater Manchester, UK
quinny898.co.uk
I'm finally updating my Google Keyboard Custom Smilies module, but the new version of Google Keyboard uses a new system, it has all the stuff in R.xml. It looks like I can actually make the module far better, with a whole new page for the custom smiles, but I've hit a problem, I can't get Xposed to redirect XML:
Code:
resparam.res.setReplacement("com.google.android.inputmethod.latin", "xml", "softkeys_body_smiley", modRes.fwd(R.xml.softkeys_body_smiley));
Does not work, shows no errors or anything in the log, just does nothing

Is there some error here? Does Xposed not support redirecting XML?

Also, if I CAN redirect XML, can I redirect it to a string, where the string simply contains XML? Else it won't be very "custom"

Cheers