[DEV][MODDING] CRT, Airview, 4-way reboot, ink effect, phone, sms..etc [9/Dec/2013]

majdinj

Senior Member
Nov 25, 2006
980
3,437
0
AlAhsa
hi @majdinj in the quote above I could you explain a little better than see what value access$xx in GlobalActions.smali because I'm trying to port it to a galaxy s rom advance please
#1
To match the same "Landroid/content/context" class in both GlobalActions.smali and GlobalActions$99.smali, open GlobalActions.smali, and search for the method that includes this class "Landroid/content/context", usually it is:
Code:
.method static synthetic access$200(Lcom/android/internal/policy/impl/GlobalActions;)Landroid/content/Context;
As you see here, the class "Landroid/content/Context" is defined by the method "method static synthetic access$200". Here take a look at "access$200" that what we want to know,,,
Now open GlobalActions$99.smali and search for all lines that contains the class "Landroid/content/context" and adjust any "access$xx" to what you have found in GlobalActions.smali


#2
You will need to decompile framework-res.apk and to go to res\values folder and open public.xml and look for:
Code:
    <public type="string" name="ok" id="0x0104000a" />
and
Code:
    <public type="string" name="cancel" id="0x01040000" />
Here the ids (0x0104000a) and (0x01040000) will be differ according to your ROM. Now open GlobalActions$99.smali and change ids values there to be like the ones above; you need to omit the first 0 value from each id (0x0104000a will be 0x104000a and 0x01040000 will be 0x1040000 in GlobalActions$99.smali)
 

tkari4

Senior Member
Jan 24, 2010
2,231
6,982
0
  • Like
Reactions: Kamy

Javho

Senior Member
Nov 26, 2012
325
20
0
@majdinj actually for my device I got a custom ROM with aosp lock screen but this aosp lock screen is disabled when I touch the menu boton, my question is with your guide for aosp lockscreen I got the same problem or you manage to fix the problem (sorry my bad English)

Enviado desde mi GT-I9070 usando Tapatalk 4 Beta
 

majdinj

Senior Member
Nov 25, 2006
980
3,437
0
AlAhsa
@majdinj actually for my device I got a custom ROM with aosp lock screen but this aosp lock screen is disabled when I touch the menu boton, my question is with your guide for aosp lockscreen I got the same problem or you manage to fix the problem (sorry my bad English)

Enviado desde mi GT-I9070 usando Tapatalk 4 Beta
At least for me, it is running fine,,, So you have to try..
 

HighlanderZA

Senior Member
Oct 12, 2012
1,336
3,918
0
"The Highlands"
Lol yes..
Okay - I'm not sure, but if they are the same or similar to the S2 then you'll be looking for a bunch of 9 patch pngs in framework-res.
If not the same maybe these names will point you in the right direction.
dialog_bottom_xx
dialog_top_xx
dialog_full_xx
dialog_middle_xx

popup_bottom_xx
popup_center_xx
popup_full_xx
popup_top_xx

and if you're themeing those then you might want to do
menu_dropdown_xx
menu_hardkey_xx
as well.

I themed them for the S2 if you'ed like to take a look at my thread. Popup Menu mods.
See Sig below.
 

lacoursiere18

Senior Member
Jan 9, 2013
4,182
7,001
0
LbTs
Okay - I'm not sure, but if they are the same or similar to the S2 then you'll be looking for a bunch of 9 patch pngs in framework-res.
If not the same maybe these names will point you in the right direction.
dialog_bottom_xx
dialog_top_xx
dialog_full_xx
dialog_middle_xx

popup_bottom_xx
popup_center_xx
popup_full_xx
popup_top_xx

and if you're themeing those then you might want to do
menu_dropdown_xx
menu_hardkey_xx
as well.

I themed them for the S2 if you'ed like to take a look at my thread. Popup Menu mods.
See Sig below.
Yea I swear I have tried all those and I have not had a change.. I running a tablet UI but a stock framework so I don't know why it would be different..
 

cbucz24

Senior Member
Jan 31, 2011
2,757
2,897
0
Central Florida
Yea I swear I have tried all those and I have not had a change.. I running a tablet UI but a stock framework so I don't know why it would be different..
What controls your tabletUI?

I ask cuz when I was trying to color the text on the dropdown toggles, it was always a specific xml. When it didn't work I got pretty frustrated. But I had forgotten, I was coloring the lidroid toggles.

His toggle has its own colors files. So you may be hitting the right ones normally. But since the ui is changed, it may be determining the other parts your looking for too. Since you have tried every where asking for help, id decompile that an see if you can find it



check out our rom website, http://updater.team-nocturnal.com/labrats/
 

lacoursiere18

Senior Member
Jan 9, 2013
4,182
7,001
0
LbTs
What controls your tabletUI?

I ask cuz when I was trying to color the text on the dropdown toggles, it was always a specific xml. When it didn't work I got pretty frustrated. But I had forgotten, I was coloring the lidroid toggles.

His toggle has its own colors files. So you may be hitting the right ones normally. But since the ui is changed, it may be determining the other parts your looking for too. Since you have tried every where asking for help, id decompile that an see if you can find it



check out our rom website, http://updater.team-nocturnal.com/labrats/
I thought the same.. But thanks again guys for all your help I might try over and theme all those files you listed.. and see what happens.. Thank you again!
EDIT: I kinda thought it was pulling it from a theme in the styles.xml
EDIT #2: So i changed those files in phone UI and they change the background fine.. But in Tablet UI they do not change.. Thats why I think it is using something else..
 
Last edited:
  • Like
Reactions: HighlanderZA

cbucz24

Senior Member
Jan 31, 2011
2,757
2,897
0
Central Florida
I thought the same.. But thanks again guys for all your help I might try over and theme all those files you listed.. and see what happens.. Thank you again!
EDIT: I kinda thought it was pulling it from a theme in the styles.xml
EDIT #2: So i changed those files in phone UI and they change the background fine.. But in Tablet UI they do not change.. Thats why I think it is using something else..
Obviously you have looked inside an apk an learned a lot. If you noticed, there are like 4-6 versions of file sets in the framework and the systemui.

Looking thru all the xmls, deciphering what is where, sometimes that is where I go to find a name of a file. Then I go digging to where it is.

You will see all of the @drawable/myfile.9.png and then go from there. the different resolutions and options change everything.

I edited a Pandora and on my note2 it used the hdpi but on my wife evo it used mdpi. Same application, but it grabs what it wants. So, good luck an im sorry I didn't have the right place for you.
:thumbup:



check out our rom website, http://updater.team-nocturnal.com/labrats/
 
  • Like
Reactions: lacoursiere18

burtcom

Senior Member
Apr 23, 2007
913
326
0
Helena
Yay for the sticky :)

Now -- I am trying to figure out where the heck the default background is for the Jellybean TW lockscreen. Looking in framework-res.apk for the latest LT9 SweetROM and not finding it.
 

majdinj

Senior Member
Nov 25, 2006
980
3,437
0
AlAhsa
  • Like
Reactions: burtcom

majdinj

Senior Member
Nov 25, 2006
980
3,437
0
AlAhsa

Robbie Hood

Senior Member
Nov 7, 2010
3,410
6,018
0
36
breda
www.darkyrom.com
LOL.. you have been credited in the main mod thread here:
http://forum.xda-developers.com/showthread.php?t=2302921

but not in this thread,,, bad me,,
It will corrected.. sorry I didn't noticed
Well thanks but dont think eybee has something to do with it ;)
Still I think its utterly without respect to take someones work and just compare it to a stock rom.
Then writing it down here as if it was made by you or you made a effort to make it work....
I think this even goes against the xda GPL.
This post is stopping me from makin a new rom.....
Will report this.
 
Last edited: