Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Exile1975
Old
(Last edited by Exile1975; 28th June 2012 at 04:28 AM.)
#21  
Junior Member
Thanks Meter 0
Posts: 23
Join Date: Dec 2011
trying to follow these directions, but when i compile classes.dex i get the error:

dexout\com\android\server\PowerManagerService$Brig htnessState.smali[385,10] Label "goto_37" is not defined.

so i am tring to figure out what this refers to.

any help is great. thanks for the awesome guide

EDIT:
nevermind, found it. user error
 
Exile1975
Old
#22  
Junior Member
Thanks Meter 0
Posts: 23
Join Date: Dec 2011
So I've followed the steps and cleared my dalvik and cache, but after a reboot nothing changes. CRT off works fine. How can I find out why? I'm using a mostly stock 2.3.6 on a Samsung admire. Any help is much appreciated

Sent from my SCH-R720 using xda premium
 
wilfredcool007
Old
#23  
wilfredcool007's Avatar
Recognized Contributor - OP
Thanks Meter 1198
Posts: 414
Join Date: Aug 2011
Location: Chennai

 
DONATE TO ME
Quote:
Originally Posted by Exile1975 View Post
So I've followed the steps and cleared my dalvik and cache, but after a reboot nothing changes. CRT off works fine. How can I find out why? I'm using a mostly stock 2.3.6 on a Samsung admire. Any help is much appreciated

Sent from my SCH-R720 using xda premium
If u had followed all the steps which i had put up thn u r sure to hav CRT ON

If not just recheck the file of your's


Dont just say ,Press it

Try not to become a man of success...but a man of value




______________________________________________

Phone : Samsung Galaxy Fit ( S5670 )
Kernel version : 2.6.35.7
Baseband version : S5670DXKT7
ROM : Hyper_Droid_v3
 
Exile1975
Old
#24  
Junior Member
Thanks Meter 0
Posts: 23
Join Date: Dec 2011
An earlier post mentions patching Android policy. Maybe this is my problem, where can i find info on this? Believe me, other than changing what you said to, every thing is copy and paste, no mistakes. Used NotePad++ for editing so i know it's good. My one question would be the very first line number has to be changed. Should i change that to the current number of the first line and renumber everything after that, or number it as the line before what's already there?

Sent from my SCH-R720 using xda premium
 
Spz0
Old
(Last edited by Spz0; 7th July 2012 at 05:03 PM.)
#25  
Spz0's Avatar
Recognized Developer
Thanks Meter 106
Posts: 553
Join Date: Sep 2010
Location: Oregon

 
DONATE TO ME
Quote:
Originally Posted by wilfredcool007 View Post
Code:
Note:
Make changes in the line numbers (ex:.line 2098,.line2083) according to the order the lines organized in ur smali
Can you elaborate on this more? It is pretty vague.

I can see one value that does not match up that should be changed in the step listed here:
Quote:
Now Search For
Code:
.method public run()V
    .registers 10
    .prologue
    const/4 v8, 0x0
And paste this code below “const/4 v8, 0x0”
Code:
.line 2078
    iget-object v4, p0, Lcom/android/server/PowerManagerService$BrightnessState;->this$0:Lcom/android/server/PowerManagerService;
    invoke-static {v4}, Lcom/android/server/PowerManagerService;->getContextZZ(Lcom/android/server/PowerManagerService;)Landroid/content/Context;
    move-result-object v4
    invoke-direct {p0, v4}, Lcom/android/server/PowerManagerService$BrightnessState;->getScreenAnimationMode(Landroid/content/Context;)I
    move-result v4
    if-nez v4, :cond_3b
But as for anything else, Im not sure.
I see in the last step (the one with all the tiny mods) that your unmodded codes .line numbers differ from the modded version. are we to change those numbers to match?

The reason Im asking, is because I have made the modifications, and CRT on is still not working.


Also, in your first step, with the code:
search for these two lines
Code:
.field static final ANIM_STEPS:I = 0xf
.field static final AUTOBRIGHTNESS_ANIM_STEPS:I = 0x3c
And Replace With
Code:
.field static final ANIM_STEPS:I = 0xa
.field static final AUTOBRIGHTNESS_ANIM_STEPS:I = 0xf
My code reads slightly different:
Code:
.field static final ANIM_STEPS:I = 0x1

.field static final AUTOBRIGHTNESS_ANIM_STEPS:I = 0x3c
Do I still change to match your steps?

Thanks in advance!

~Spz0
.......Devices.......
...Kyocera M6000(zio)
OpenZio ROM 2.1.2
Adrynalyne OC
...Pandigital Planet
OpenPDP ROM-2.2.1
...Pandigital Planet 2.3.4 REFRESH
OpenPDP ROM 2.3.4
...Samsung ?SCH-R720 (Vitality)
OpenAndroid ROM 2.3 w/Spz0's OC Kernel
...Moto Droid X
VXL-OpenAndroid 2.1.2
Lots moar..

>Donate<
 
wilfredcool007
Old
#26  
wilfredcool007's Avatar
Recognized Contributor - OP
Thanks Meter 1198
Posts: 414
Join Date: Aug 2011
Location: Chennai

 
DONATE TO ME
Quote:
Originally Posted by Spz0 View Post
Can you elaborate on this more? It is pretty vague.

I can see one value that does not match up that should be changed in the step listed here:


But as for anything else, Im not sure.
I see in the last step (the one with all the tiny mods) that your unmodded codes .line numbers differ from the modded version. are we to change those numbers to match?

The reason Im asking, is because I have made the modifications, and CRT on is still not working.


Also, in your first step, with the code:
search for these two lines
Code:
.field static final ANIM_STEPS:I = 0xf
.field static final AUTOBRIGHTNESS_ANIM_STEPS:I = 0x3c
And Replace With
Code:
.field static final ANIM_STEPS:I = 0xa
.field static final AUTOBRIGHTNESS_ANIM_STEPS:I = 0xf
My code reads slightly different:
Code:
.field static final ANIM_STEPS:I = 0x1

.field static final AUTOBRIGHTNESS_ANIM_STEPS:I = 0x3c
Do I still change to match your steps?

Thanks in advance!

~Spz0

Do not mtch the line numbers as they are compiler generated only make changes to the modifications that i made....

Also in your case, The given code
Code:
field static final ANIM_STEPS:I = 0x1
is indeed differnt from the code i gave as it is for G-Fit
may be try converting the .dex to.jar files and check it with the respective dalvik code


Dont just say ,Press it

Try not to become a man of success...but a man of value




______________________________________________

Phone : Samsung Galaxy Fit ( S5670 )
Kernel version : 2.6.35.7
Baseband version : S5670DXKT7
ROM : Hyper_Droid_v3
The Following User Says Thank You to wilfredcool007 For This Useful Post: [ Click to Expand ]
 
Spz0
Old
#27  
Spz0's Avatar
Recognized Developer
Thanks Meter 106
Posts: 553
Join Date: Sep 2010
Location: Oregon

 
DONATE TO ME
Quote:
Originally Posted by wilfredcool007 View Post
Do not mtch the line numbers as they are compiler generated only make changes to the modifications that i made....

Also in your case, The given code
Code:
field static final ANIM_STEPS:I = 0x1
is indeed differnt from the code i gave as it is for G-Fit
may be try converting the .dex to.jar files and check it with the respective dalvik code

Ok
So just to reiterate for clarity, the only .line value to modify would be in this step:

Quote:
Now Search For
Code:
.method public run()V
    .registers 10
    .prologue
    const/4 v8, 0x0
And paste this code below “const/4 v8, 0x0”
Code:
.line 2078
    iget-object v4, p0, Lcom/android/server/PowerManagerService$BrightnessState;->this$0:Lcom/android/server/PowerManagerService;
    invoke-static {v4}, Lcom/android/server/PowerManagerService;->getContextZZ(Lcom/android/server/PowerManagerService;)Landroid/content/Context;
    move-result-object v4
    invoke-direct {p0, v4}, Lcom/android/server/PowerManagerService$BrightnessState;->getScreenAnimationMode(Landroid/content/Context;)I
    move-result v4
    if-nez v4, :cond_3b
I would match 2078 to go in sequence with my specific generated .line values?

Sorry for the nubbish sounding question but Im not sure what you mean by converting the .dex to .jar .

Thanks for Responding so quickly m8.
.......Devices.......
...Kyocera M6000(zio)
OpenZio ROM 2.1.2
Adrynalyne OC
...Pandigital Planet
OpenPDP ROM-2.2.1
...Pandigital Planet 2.3.4 REFRESH
OpenPDP ROM 2.3.4
...Samsung ?SCH-R720 (Vitality)
OpenAndroid ROM 2.3 w/Spz0's OC Kernel
...Moto Droid X
VXL-OpenAndroid 2.1.2
Lots moar..

>Donate<
 
wilfredcool007
Old
#28  
wilfredcool007's Avatar
Recognized Contributor - OP
Thanks Meter 1198
Posts: 414
Join Date: Aug 2011
Location: Chennai

 
DONATE TO ME
Quote:
Originally Posted by Spz0 View Post
Ok
So just to reiterate for clarity, the only .line value to modify would be in this step:


I would match 2078 to go in sequence with my specific generated .line values?

Sorry for the nubbish sounding question but Im not sure what you mean by converting the .dex to .jar .

Thanks for Responding so quickly m8.
nop dnt go in for line numbrs.... Check the public run method in youtlr code and paste the code which i gave
btw.... There r dex 2 jar converters which converts dalvik codes to basic java language :D


Dont just say ,Press it

Try not to become a man of success...but a man of value




______________________________________________

Phone : Samsung Galaxy Fit ( S5670 )
Kernel version : 2.6.35.7
Baseband version : S5670DXKT7
ROM : Hyper_Droid_v3
The Following User Says Thank You to wilfredcool007 For This Useful Post: [ Click to Expand ]
 
Spz0
Old
#29  
Spz0's Avatar
Recognized Developer
Thanks Meter 106
Posts: 553
Join Date: Sep 2010
Location: Oregon

 
DONATE TO ME
Quote:
Originally Posted by wilfredcool007 View Post
nop dnt go in for line numbrs.... Check the public run method in youtlr code and paste the code which i gave
btw.... There r dex 2 jar converters which converts dalvik codes to basic java language :D
K, I'll keep pluggin away at it m8.

btw.. did you port these instructions from another device, or from scratch. If so, would you have a link to the other instructions (the more guides, the better to reference. )

Thanks again!!
.......Devices.......
...Kyocera M6000(zio)
OpenZio ROM 2.1.2
Adrynalyne OC
...Pandigital Planet
OpenPDP ROM-2.2.1
...Pandigital Planet 2.3.4 REFRESH
OpenPDP ROM 2.3.4
...Samsung ?SCH-R720 (Vitality)
OpenAndroid ROM 2.3 w/Spz0's OC Kernel
...Moto Droid X
VXL-OpenAndroid 2.1.2
Lots moar..

>Donate<
 
Spz0
Old
(Last edited by Spz0; 7th July 2012 at 09:24 PM.)
#30  
Spz0's Avatar
Recognized Developer
Thanks Meter 106
Posts: 553
Join Date: Sep 2010
Location: Oregon

 
DONATE TO ME
Ok, I think I may have got it, but I believe my screen on delay is too long (I vaguely saw the crt on animation once when turning the screen on).
Any clues as to how to reduce this delay time?
**edit:
or to increase the animation delay of the crt on?

Thanks in advance.
.......Devices.......
...Kyocera M6000(zio)
OpenZio ROM 2.1.2
Adrynalyne OC
...Pandigital Planet
OpenPDP ROM-2.2.1
...Pandigital Planet 2.3.4 REFRESH
OpenPDP ROM 2.3.4
...Samsung ?SCH-R720 (Vitality)
OpenAndroid ROM 2.3 w/Spz0's OC Kernel
...Moto Droid X
VXL-OpenAndroid 2.1.2
Lots moar..

>Donate<

 
Post Reply+
Tags
crt animation, crt on, screen on animation
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...