[Q] Replace XML files topic

SOCIALIZE IT ⇨


Hi.
I'm new at developing Xposed module, so i've a lot to learn.
I would use Xposed to replace some xml files. I've write some code but that doesn't work (it doesn't even compile): for example


Code:


resparam.res.setReplacement("com.name.application", "xml", "file", modRes.fwd(R.xml.file));


But that doesn't ever recognize R.xml.file. I've add some lines to R.java:


Code:


public static final class xml {                                       
public static final int file=0x7f040000;
}



Just to make it recognize the name, but then i've a lot of error:


PHP Code:







file.xml:2errorNo resource identifier found for attribute 'attribute' in package 'com.example.xtest' 










And so on.

It's very likely that this code has no sense, so i'm asking you: how can i replace some xml files?

Thanks!




xda-developers


  1. [Q] Replace XML files topic
  2. [FIXED] Unable to replace Kinguser with SuperSU, updating binaries & keeping Root topic
  3. [Q] Replace Touchwiz on Samsung Galaxy S5 SM-G900F topic
  4. Is root required to roll back to KitKat? topic
  5. [REQ] Multi DPI Stock Camera topic
  6. May be this is it for Xperia J topic
  7. [Q] No IMEI and baseband anymore. So back to stock rom for repair! topic
  8. [Q] New to phone - on 24A rooted - where to go from here? topic
  9. Htc desire 816 official lollipop update video review topic
  10. [Q] Galaxy S6 Edge T-Mobile Unlock by SIM code topic
  11. How to roll back to KK topic
  12. What is this in Greenify settings topic
  13. [Q] How to update? topic

0 commentaires:

Enregistrer un commentaire