yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] Biftor:
Ok i will try it now,but this is not solution i think,

Because i dont want anythings have custom color,befor user set any color

This method all things always have custom color to my default color i wrote, not android default color.

Goodluck

Armin.

---------- Post added at 06:10 PM ---------- Previous post was at 05:45 PM ----------

@Goldie ,that else working but thats not solution of this pb!because that still set to my color not android default :(

For example for bg, before color picker, stock is transparent but in white screen app will change to black,...

But after else and set color to 0x0000000

Is transparent if switch is unchecked set to my background color and in white app bg is with not black!because got my transparent color from else of if operation!

I don't know slim stock switch how working with observers i do exactly same .

Goodluck

Armin.
[Galaxy S II Android Development] MyLifeRocks10:
Hi [MENTION=3065070]Goldie[/MENTION], I'm back again with another mod I want to implement.:o Since there were images in drawable folder for 5 or 6 signal bars I thought there should be a way to use it like in some xposed modules. So I looked into wanam's xposed module code and I think I found the required file in SystemUI.apk to enable it. But now I don't know how to use the code to be able to select signal bars. From wanam's module I found out it can be enabled from Feature.smali file and this method:

.method public static final getMaxLevelOfSignalStrengthIndicator()I

I hope you can help me on this.:fingers-crossed:
[Galaxy S II Android Development] Goldie:
Depends if you want to keep the stock settings based on the existing and add an additional.

I would just replace the whole method with a type key either 0x0,0x1,0x2 which returns 4,5 or 6 to v0

Edit: actually getting context there may be awkward. So I would find the call to the method and pass 4,5 or 6 there instead

Edit 2 : here in NetworkController...
[Galaxy S II Android Development] MyLifeRocks10:
I want to use array to be able to select between 4,5 or 6 signals. How would I do what you just said? :o If I understood correctly I should use condtions and "if" to do that but tbh I don't fully understand code with conditions and sometimes I get lost when looking codes with lot of conditions.:D
[Galaxy S II Android Development] Goldie:
An example ...

iget-object v1, p0, Lcom/android/systemui/statusbar/policy/NetworkController;->mContext:Landroid/content/Context;

invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v2, "signal_bars"

const v3, 0x5

invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v5

const v1, 0x4

if-eq v5, v1, :cond_four

const v1, 0x5

if-eq v5, v1, :cond_five

const v1, 0x6

if-eq v5, v1, :cond_six

const v0, 0x5

goto :goto_new

:cond_four

const v0, 0x4

goto :goto_new

:cond_five

const v0, 0x5

goto :goto_new

:cond_six

const v0, 0x6

:goto_new

So here it gets the value from settings for "signal_bars" in v5 and then compares it with a value you put in v1. Then moves to cond that makes true. That then puts the value in v0 and then you can use that instead of the v0 in the method
[Galaxy S II Android Development] Goldie:
Nice idea. This is done on my phone so maybe a mistake but comparing this method with the one in NetworkController should help...

.method private updateStatusBarNetworkSettings()V
.locals 6

.prologue
.line 4866
iget-object v1, p0, Lcom/android/systemui/statusbar/policy/NetworkController;->mContext:Landroid/content/Context;

invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v2, "signal_bars"

const v3, 0x5

invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v5

const v1, 0x4

if-eq v5, v1, :cond_four

const v1, 0x5

if-eq v5, v1, :cond_five

const v1, 0x6

if-eq v5, v1, :cond_six

const v0, 0x5

goto :goto_new

:cond_four

const v0, 0x4

goto :goto_new

:cond_five

const v0, 0x5

goto :goto_new

:cond_six

const v0, 0x6

:goto_new

iput v0, p0, Lcom/android/systemui/statusbar/policy/NetworkController;->mMaxLevelOfSignalStrengthIndicator:I

.line 4870
invoke-static {}, Lcom/android/systemui/statusbar/Feature;->getOperator()Ljava/lang/String;

move-result-object v0

iput-object v0, p0, Lcom/android/systemui/statusbar/policy/NetworkController;->mOperator:Ljava/lang/String;

.line 4873
invoke-static {}, Lcom/sec/android/app/CscFeature;->getInstance()Lcom/sec/android/app/CscFeature;

move-result-object v0

const-string v1, "CscFeature_Framework_ReplaceDataTypeIconAsOpBrand"

invoke-virtual {v0, v1}, Lcom/sec/android/app/CscFeature;->getString(Ljava/lang/String;)Ljava/lang/String;

move-result-object v0

iput-object v0, p0, Lcom/android/systemui/statusbar/policy/NetworkController;->mDataTypeBrand:Ljava/lang/String;

.line 4875
return-void
.end method
[Galaxy S II Android Development] MyLifeRocks10:
Thanks mate, got it working just needs ui restart for changes to take place.:)
[Galaxy S II Android Development] CNexus:
Add

return-void

After the :cond_skip_text. The method isn't returning anything as is
[Galaxy S II Android Development] remuntada78:
thanks CNexus,now statusbar is working but the button is not colored, why?
[Galaxy S II Android Development] CNexus:
Well, is the text_color key defined? Otherwise it'll skip it according to your code
[Galaxy S II Android Development] remuntada78:
yes text_color key is already defined, i use it for more other implementations
[Galaxy S II Android Development] Goldie:
Well... You check-cast v0 into an imageview then wipe it out by putting Mcontext in v0. Move the imageview into v5 instead. Then invoke on v5 at the end. Up locals to 6. Also you are calling drawable set color filter instead of image view set color filter.
[Galaxy S II Android Development] remuntada78:
look better this?

.method Screenshot_color()V
.locals 6

iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v1, 0x7f020176

invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/ImageView;

iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v3

const-string v4, "checkbox_preference"

const v5, 0x1

invoke-static {v3, v4, v5}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v3

if-eqz v3, :cond_skip_text

iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v3

const-string v4, "text_color"

const v5, -0x1

invoke-static {v3, v4, v5}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v3

invoke-virtual {v0, v3}, Landroid/graphics/drawable/Drawable;->setColorFilter(I)V

:cond_skip_text

.end method
[Galaxy S II Android Development] Goldie:
Yes but....

invoke-virtual {v0, v3}, Landroid/graphics/drawable/Drawable;->setColorFilter(I)V

Would be...

invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setColorFilter(I)V
[Galaxy S II Android Development] remuntada78:
ohh yes :silly: i'm tired and I have not seen thanks

---------- Post added at 01:08 AM ---------- Previous post was at 12:53 AM ----------

tried with this code

.method Screenshot_color()V
.locals 6

iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v1, 0x7f020176

invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/ImageView;

iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v3

const-string v4, "checkbox_preference"

const v5, 0x1

invoke-static {v3, v4, v5}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v3

if-eqz v3, :cond_skip_text

iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v3

const-string v4, "text_color"

const v5, -0x1

invoke-static {v3, v4, v5}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v3

invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setColorFilter(I)V

:cond_skip_text

return-void

.end method

but the button is not colored:(:confused:
[Galaxy S II Android Development] Goldie:
Maybe the invoke isn't working properly or at the right place
[Galaxy S II Android Development] remuntada78:
you mean this invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->Screenshot_color()V ?
[Galaxy S II Android Development] remuntada78:
i tried to change the position of invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->Screenshot_color()V

right here

.line 696

iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSettingsButton:Landroid/view/View;

iget-object v10, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSettingsButtonListener:Landroid/view/View$OnClickListener;

invoke-virtual {v9, v10}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->Screenshot_color()V

but I got a FC

logcat

/AndroidRuntime( 2351): FATAL EXCEPTION: main

E/AndroidRuntime( 2351): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: java.lang.NullPointerException

E/AndroidRuntime( 2351):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2424)

E/AndroidRuntime( 2351):	at android.app.ActivityThread.access$1700(ActivityThread.java:140)

E/AndroidRuntime( 2351):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1319)

E/AndroidRuntime( 2351):	at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime( 2351):	at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime( 2351):	at android.app.ActivityThread.main(ActivityThread.java:4921)

E/AndroidRuntime( 2351):	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( 2351):	at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime( 2351):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)

E/AndroidRuntime( 2351):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)

E/AndroidRuntime( 2351):	at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 2351): Caused by: java.lang.NullPointerException

E/AndroidRuntime( 2351):	at com.android.systemui.statusbar.phone.PhoneStatusBar.Screenshot_color(PhoneStatusBar.java)

E/AndroidRuntime( 2351):	at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:696)

E/AndroidRuntime( 2351):	at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3017)

E/AndroidRuntime( 2351):	at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:2986)

E/AndroidRuntime( 2351):	at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:460)

E/AndroidRuntime( 2351):	at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:481)

E/AndroidRuntime( 2351):	at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:94)

E/AndroidRuntime( 2351):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2414)

E/AndroidRuntime( 2351):	... 10 more

I could not find vfy refers to this,
[Galaxy S II Android Development] remuntada78:
Maybe i need to add the all code in PhoneStatusBarView smali intead of PhoneStatusBar?

i tried many changes but button still not change color:crying:
[Galaxy S II Android Development] remuntada78:
i'm not able to change color of image of screenshot button in statusbar from PhoneStatusBar smali

i found in my QuickLaunchKeyButtonView smali this code

.line 164
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/QuickLaunchKeyButtonView;->mResources:Landroid/content/res/Resources;

const v1, 0x7f020176 [COLOR="Red"]<-- this is the id of the image[/COLOR]

invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

move-result-object v0

invoke-virtual {p0, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

it's possible change the color from here?
[Galaxy S II Android Development] Goldie:
Yes. Good place
[Galaxy S II Android Development] remuntada78:
certainly I'll not be able to the first attempt then wait:D:D

Edit:

unbelievable done at first attempt:laugh::laugh::laugh::laugh:
[Galaxy S II Android Development] gerryS2:
Hi [MENTION=3065070]Goldie[/MENTION], I would like to create a EditTextPreference in SecSettings that when I insert a text and press ok, the summary of this preference change.

I only need the smali code to create this effect :)

EDIT:I have resolve using resource of DeviceInfoSettings.smali file from SecSettings of android 4.2.2 of S2 plus :D
[Galaxy S II Android Development] remuntada78:
[MENTION=3065070]Goldie[/MENTION] hi always me:D

the change color of image work only when restart,I have seen this http://xdaforums.com/showpost.php?p=48197186&postcount=239 i tried but not work

now, in the code i need to put the key like this text_color or the id like id/screenshot_button?

since i added the code for changecolor in QuickLaunchKeyButtonView smali i looked in QuickLaunchKeyButtonView$QuickLaunchObserver smali

but there isn't a observe method

how can i do it?
[Galaxy S II Android Development] gerryS2:
Excuse me, I would like to know about how to specify the number of locals or registers, which are under a method
[Galaxy S II Android Development] remuntada78:
look at this http://xdaforums.com/showpost.php?p=47738180&postcount=154 and other posts after
[Galaxy S II Android Development] remuntada78:
Hi, do not get angry with me, i m still working on this and i got an apk with eclipse that simulates the operation of the keypad in the simunlockscreen window to change the color of the button when pressed , and in eclipse emulator this works as I want.

now i need suggestions how to implements code from my apk to my SimUnlockScreen smali and SimUnlockScreen$TouchInput smali where i suppose i need to add.

this is my apk that work with emulator View attachment ProvaBottone.zip

my smali:

View attachment SimUnlockScreen$TouchInput.zip

View attachment SimUnlockScreen.zip

thanks in advance
[Galaxy S II Android Development] gerryS2:
Hi, someone please tell me how to create a SettingsObserve smali file?
[Galaxy S II Android Development] remuntada78:
Please do not let die the thread.IMO its the most usefull and interesting on xda:D
[Galaxy S II Android Development] phenomarc:
+1

Enviado desde mi GT-I9100 mediante Tapatalk
[Galaxy S II Android Development] Goldie:
Its not dead mate. Sorry for late reply to your pm. You can post that tool by all means but even if you get it right in that converted java you cant convert it back to useable code. As far as I know there is no method to do that. You can get readable java from it but you will not be able to convert that to use
[Galaxy S II Android Development] SpaceCaker:
[MENTION=3065070]Goldie[/MENTION]

recently i have been working on some stuff

andi found that main reason why Low end samsung stock roms not display a Weather icon in lockscreen is because they werent assigned properly

i mean

in framework.jar R.smali they are assigned to an Framework const value.

however after searching through framework those pngs werent their

so i went and search in some S2 rom files and found the images i was looking for.

i added them and such

But

after that i saw in smali that they where loaded through an array-data

now comes the tricky part :p

i needed to convert those values

but they are bit weird.

its 20pngs

in an array.

only i havent figured out fully how i should decode or translate those values to proper Framework ids

small stuff i figured but bigger not yet.

tomorrow i have acces to pc so i can give an sample of what i mean.
[Galaxy S II Android Development] Goldie:
They are reverse with some missing 0s.

So 0x7f02015a

Would become...

0x5at 0x1t 0x2t 0x7ft

And 0x01080511

Would become...

0x11t 0x5t 0x8t 0x1t

Split the id into sections...

0x010 80 5 11

Working from the right of the array with res ids the last section between 0x and t is the first part of id after 0x0 i.e 1.

Then miss the last 0 in the first section of the id. Next part of array between 0x and t is the first digit of second section of the id i.e 8

Next part of array between 0x and t is next section of id i.e 5

And finally first part of array between 0x and t is last two digit section of id i.e 11.

UI and app ids are same but use 7f in place of 01

Make sense?
[Galaxy S II Android Development] SpaceCaker:
i always thought the T was a 0 xD

but this cleared a lot for me thanks ;)
[Galaxy S II Android Development] josephpatrick:
Hi Goldie, is there some way to get the option of getting "save contact to" SIM option in AOSP dialer by smali editing. Thanks.
[Galaxy S II Android Development] Goldie:
No clue im afraid. I dont use aosp or aosp apps
[Galaxy S II Android Development] remuntada78:
Hi Goldie , have you some suggestion about how to change the color of button pressed? all my attempts made before don't work.

Now i've another target, I would like to achieve something like this

but whit the stock effect like these

View attachment 2610065View attachment 2610066

to do this i know i need to add png in the framework-res then add

an array in SecSettins/res/value/arrays.xml like this

<string-array name="lockscreen_effect_entries">
<item>Stock ring S2</item>
<item>Light Effect S4</item>
other.....
</string-array>
<string-array name="lockscreen_effect_values">
<item>0</item>
<item>1</item>
other..
</string-array>

then add a ListPreference in the lockscreen_settings.xml

<ListPreference android:entries="@array/lockscreen_effect_entries" android:title="@string/lockscreen_effect" android:key="lockscreen_effect" android:entryValues="@array/lockscreen_effect_value" />

the problem is how to make read the new pngs, i found this method in android.policy\com\android\internal\policy\impl\sec\CircleUnlockView.smali

.method private getUnlockscreenLockImageIdAt(D)I
.registers 7
.parameter "value"

.prologue
.line 671
const/16 v2, 0x1c

new-array v1, v2, [I

fill-array-data v1, :array_26

.line 682
.local v1, unlockscreen_lock_drawables:[I
const-wide v2, 0x3fb999999999999aL

cmpg-double v2, p1, v2

if-gez v2, :cond_14

.line 683
const/4 v0, 0x0

.line 689
.local v0, index:I
:goto_11
aget v2, v1, v0

return v2

.line 684
.end local v0 #index:I
:cond_14
const-wide/high16 v2, 0x3ff0

cmpl-double v2, p1, v2

if-ltz v2, :cond_1e

.line 685
array-length v2, v1

add-int/lit8 v0, v2, -0x1

.restart local v0 #index:I
goto :goto_11

.line 687
.end local v0 #index:I
:cond_1e
array-length v2, v1

int-to-double v2, v2

mul-double/2addr v2, p1

double-to-int v2, v2

add-int/lit8 v0, v2, -0x1

.restart local v0 #index:I
goto :goto_11

.line 671
nop

:array_26
.array-data 0x4
0x91t 0x4t 0x8t 0x1t
0x92t 0x4t 0x8t 0x1t
0x93t 0x4t 0x8t 0x1t
0x94t 0x4t 0x8t 0x1t
0x95t 0x4t 0x8t 0x1t
0x96t 0x4t 0x8t 0x1t
0x97t 0x4t 0x8t 0x1t
0x98t 0x4t 0x8t 0x1t
0x99t 0x4t 0x8t 0x1t
0x9at 0x4t 0x8t 0x1t
0x9bt 0x4t 0x8t 0x1t
0x9ct 0x4t 0x8t 0x1t
0x9dt 0x4t 0x8t 0x1t
0x9et 0x4t 0x8t 0x1t
0x9ft 0x4t 0x8t 0x1t
0xa0t 0x4t 0x8t 0x1t
0xa1t 0x4t 0x8t 0x1t
0xa2t 0x4t 0x8t 0x1t
0xa3t 0x4t 0x8t 0x1t
0xa4t 0x4t 0x8t 0x1t
0xa5t 0x4t 0x8t 0x1t
0xa6t 0x4t 0x8t 0x1t
0xa7t 0x4t 0x8t 0x1t
0xa8t 0x4t 0x8t 0x1t
0xa9t 0x4t 0x8t 0x1t
0xaat 0x4t 0x8t 0x1t
0xabt 0x4t 0x8t 0x1t
0xact 0x4t 0x8t 0x1t
.end array-data
.end method

where ids in array-data are the stock pngs, so how i need to do to switch ?

thanks in advance
[Galaxy S II Android Development] Goldie:
In simple terms...You create new arrays of the new images called new_array or whatever.

Then copy the code to fill the array.

const/16 v2, 0x1c

new-array v1, v2, [I

fill-array-data v1, :array_new

Then put the switch on the call for the array to call whichever array you want.
[Galaxy S II Android Development] remuntada78:
you mean like this?

.method private getUnlockscreenLockImageIdAt(D)I
.registers 7
.parameter "value"

.prologue
.line 671
const/16 v2, 0x1c

new-array v1, v2, [I

fill-array-data v1, :array_26

[COLOR="Red"] const/16 v2, 0x1c

new-array v1, v2, [I

fill-array-data v1, :array_new[/COLOR]

.line 682
.local v1, unlockscreen_lock_drawables:[I
const-wide v2, 0x3fb999999999999aL

cmpg-double v2, p1, v2

if-gez v2, :cond_14

.line 683
const/4 v0, 0x0

.line 689
.local v0, index:I
:goto_11
aget v2, v1, v0

return v2

.line 684
.end local v0 #index:I
:cond_14
const-wide/high16 v2, 0x3ff0

cmpl-double v2, p1, v2

if-ltz v2, :cond_1e

.line 685
array-length v2, v1

add-int/lit8 v0, v2, -0x1

.restart local v0 #index:I
goto :goto_11

.line 687
.end local v0 #index:I
:cond_1e
array-length v2, v1

int-to-double v2, v2

mul-double/2addr v2, p1

double-to-int v2, v2

add-int/lit8 v0, v2, -0x1

.restart local v0 #index:I
goto :goto_11

.line 671
nop

:array_26
.array-data 0x4
0x91t 0x4t 0x8t 0x1t
0x92t 0x4t 0x8t 0x1t
0x93t 0x4t 0x8t 0x1t
0x94t 0x4t 0x8t 0x1t
0x95t 0x4t 0x8t 0x1t
0x96t 0x4t 0x8t 0x1t
0x97t 0x4t 0x8t 0x1t
0x98t 0x4t 0x8t 0x1t
0x99t 0x4t 0x8t 0x1t
0x9at 0x4t 0x8t 0x1t
0x9bt 0x4t 0x8t 0x1t
0x9ct 0x4t 0x8t 0x1t
0x9dt 0x4t 0x8t 0x1t
0x9et 0x4t 0x8t 0x1t
0x9ft 0x4t 0x8t 0x1t
0xa0t 0x4t 0x8t 0x1t
0xa1t 0x4t 0x8t 0x1t
0xa2t 0x4t 0x8t 0x1t
0xa3t 0x4t 0x8t 0x1t
0xa4t 0x4t 0x8t 0x1t
0xa5t 0x4t 0x8t 0x1t
0xa6t 0x4t 0x8t 0x1t
0xa7t 0x4t 0x8t 0x1t
0xa8t 0x4t 0x8t 0x1t
0xa9t 0x4t 0x8t 0x1t
0xaat 0x4t 0x8t 0x1t
0xabt 0x4t 0x8t 0x1t
0xact 0x4t 0x8t 0x1t
.end array-data

[COLOR="Red"]
:array_new
.array-data 0x4
new ids of pngs
.end array-data
[/COLOR]
.end method

but i don't know the code for the switch
[Galaxy S II Android Development] CNexus:
What I'd suggest for you to do is create a dummy android application, write the code you need there, then compile and

I would even go so far as to use dex2jar on android.policy.jar, then only grab the CircleUnlockView.java, make your edits, compile, and inject the new smali into the existing CircleUnlockView.smali

MUCH simpler, and from your previous posts it should be easy for you to approach it in java
[Galaxy S II Android Development] remuntada78:
the issue is that also i don't know the code for the switch with java:p, i found nothing with google,i'm a noob with smali and more with java
[Galaxy S II Android Development] Vivek_Neel:
Hmm..that's what I too thought.

(Out of interest) btw I could able to convert .dex to .jar but after that .class are not readable because they need to be decompile.

How do u decompile .class?:confused:
[Galaxy S II Android Development] remuntada78:
ok perfect, when i'll have some free time i'll try it :good:thanks