Remove All Ads from XDA

Xposed - Legacy thread. Don't panic, Xposed is still here.

2,559 posts
Thanks Meter: 68,659
 
By rovo89, Senior Recognized Developer on 31st March 2012, 02:55 PM
Thread Closed Email Thread
19th June 2014, 11:37 AM |#12151  
GermainZ's Avatar
Retired Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 8,788
 
More
Quote:
Originally Posted by Massi-X

Hi @rovo89
I'm trying to do a module but I've met a problem:
I have to edit this array of String situated in a class but i don't have idea how to do it...
Is possible to do this?

Code:
 public static final String[] FieldA = new String[] {
"a","b","c"
};

You can't (static final), you need to hook the methods that use this array and handle it there instead.
The Following 2 Users Say Thank You to GermainZ For This Useful Post: [ View ]
 
 
19th June 2014, 11:43 AM |#12152  
rovo89's Avatar
OP Senior Recognized Developer
Thanks Meter: 68,659
 
Donate to Me
More
Quote:
Originally Posted by GermainZ

You can't (static final), you need to hook the methods that use this array and handle it there instead.

Well, it depends... Using reflection (e.g. setStaticObjectField), you can change even final fields. The problem is usually that the compiler has inlined those values directly into the code where they are used, so the runtime wouldn't even check the field content. However, with references this can hardly happen, so I would simply try it.

And if you just want to change the individual elements, that should always be possible. Only the reference to the array is final, not the elements themselves.
The Following 7 Users Say Thank You to rovo89 For This Useful Post: [ View ]
19th June 2014, 12:11 PM |#12153  
abalam's Avatar
Senior Member
Thanks Meter: 2,178
 
More
Delete by double post
19th June 2014, 12:15 PM |#12154  
GermainZ's Avatar
Retired Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 8,788
 
More
Quote:
Originally Posted by abalam

Goodby Dalvik
http://www.xda-developers.com/androi...rt-as-default/

How about you read a few posts back? Or even the OP? Or just the comments to the article you linked? Or the forum rules?
The Following 4 Users Say Thank You to GermainZ For This Useful Post: [ View ]
19th June 2014, 12:19 PM |#12155  
abalam's Avatar
Senior Member
Thanks Meter: 2,178
 
More
Quote:
Originally Posted by GermainZ

How about you read a few posts back? Or even the OP? Or just the comments to the article you linked? Or the forum rules?

Sorry. Have some problems with tapa reading the post. did it out of good intention. Will remove my post.
19th June 2014, 01:33 PM |#12156  
rovo89's Avatar
OP Senior Recognized Developer
Thanks Meter: 68,659
 
Donate to Me
More
Alright, finally I have found the time to move the remaining information from the first post to its new place. Keep everything in one thread has become too hard to follow, so please use these new places:

General information on Xposed has been moved to this thread: http://forum.xda-developers.com/xpos...gelog-t2714053
The FAQ has been moved to this thread: http://forum.xda-developers.com/xposed/-t2735540
Questions, suggestions, bug reports and so on can be posted in the Xposed General forum (for the installer/framework/development only) and in the Xposed Framework modules forum (for anything module-related). Make sure you to check whether someone else has already posted about your topic before opening a new thread.

Thanks everyone. Thread closed.
The Following 160 Users Say Thank You to rovo89 For This Useful Post: [ View ]
Thread Closed Subscribe to Thread

Tags
don't ask questions about modules here!!!, framework, xposed
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes