[Q] Need help in smali editing
I enabled CRT Animation by this awesome guide
.I know little bit about smali editing so i tried to make a toggle for it and did some changes ( basically just set up constant harsh_killer as checkbox preference and an interface to toggle it in secsettings and added jump condition in ScreenBrightnessAnimator ).But it is giving me following error in logcat
W/dalvikvm( 2152): VFY: tried to get class from non-ref register v7 (type=17)
W/dalvikvm( 2152): VFY: rejecting opcode 0x6e at 0x008d
W/dalvikvm( 2152): VFY: rejected Lcom/android/server/PowerManagerService$ScreenBrightnessAnimator;.animateInternal (IZI)V
W/dalvikvm( 2152): Verifier rejected class Lcom/android/server/PowerManagerService$ScreenBrightnessAnimator;
W/dalvikvm( 2152): threadid=14: thread exiting with uncaught exception (group=0x40fc72a0)
E/android.os.Debug( 2152): !@Dumpstate > dumpstate -k -t -z -d -o /data/log/dumpstate_sys_error
E/AndroidRuntime( 2152): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread
E/AndroidRuntime( 2152): java.lang.VerifyError: com/android/server/PowerManagerService$ScreenBrightnessAnimator
E/AndroidRuntime( 2152): at com.android.server.PowerManagerService.init(PowerManagerService.java:867)
E/AndroidRuntime( 2152): at com.android.server.ServerThread.run(SystemServer.java:270)
Here is my PowerManagerService$ScreenBrightnessAnimator.smali
and full logcat and PowerManagerService.smali and PowerManagerService$ScreenBrightnessAnimator.smali are at d-h.st/6zD
I would also like to inform you that CRT animation was working before and i also checked that toggle part of settings was working.I checked it by printing value in logcat.
I also came to this thread
where the OP used similiar logic.
I've exams till mid of December so i can't check xda till then
Donate me some "Thanks" if i've helped you...
because it'll cost you only 1 second but it'll reward my hours of hard work
HTC GENE (still using as spare :P)-->HTC HD2-->LG Optimus SOl-->Samsung Galaxy S AdvanceMy sources can be found at Github