android - Obfuscate R.id class with or without proguard -


i know in proguard recommended keep fields names of r inner classes id. because proguard doesn't handle layout xml files. end broken links

but there away obfuscate classes r$id other means, if involves doing before passing proguard, via ant.

i asking because if have button id btnsavearticle, hacker becomes easy grasp code around doing looking @ name.

could possible copy source code, including resource files folder , use ant run regex change names of r.ids changing appear in layout xml files, , somehow running generate re-create r classes?

or create translation class eg tr map fields in r.class

eg.

tr.btnsavearticle = r.id.dhtxm;  

where dhtxm meaning less word can used in layout xml. in code refer tr.btnsavearticle, obfuscated proguard.

are there ways achieve or wasting time?

i asking because if have button id btnsavearticle, hacker becomes easy grasp code around doing looking @ name.

using hierarchy view, take them less 30 seconds determine actual id of "save article" button, no matter name it. , can envision faster solutions bit of custom tooling.

am wasting time?

imho, yes.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -