yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] Goldie:
Sorry but that is all explained in detail in the first posts
[Galaxy S II Android Development] the_vanya1:
One more sir - its work, but in 1 min?
[Galaxy S II Android Development] remuntada78:
deleted
[Galaxy S II Android Development] Goldie:
Download my s2 4.1.2 rom and have a look there as I did this
[Galaxy S II Android Development] remuntada78:
found nothing about dots:(
[Galaxy S II Android Development] CNexus:
What android version is this?

Because on 4.3+ the lockscreen clock is in KeyguardWigdet.apk
[Galaxy S II Android Development] remuntada78:
Noo, i'm still with 4.1.2 with my old s2 thanks anyway:good:

[MENTION=3065070]Goldie[/MENTION] ,I really can not understand how to find the way to change the color of dots, i used the hierarchyviewer tool too

and it use id of zzz_colon01 , but bots are not implemented in smali files, how can i win the challenge?
[Galaxy S II Android Development] Ticklefish:
Just a quick question for y'all.

Is there a simple way of telling if the device is locked? I'm thinking of an equivalent to mPluggedIn.

I'd like to be able to disable the statusbar clock if the device is locked. Still being an amateur in the world of smali, I'm hoping it's a fairly simple mod to do....:fingers-crossed:
[Galaxy S II Android Development] Goldie:
Yes....you can do this....

const v3, 0x8

invoke-virtual {p0}, Lcom/android/systemui/statusbar/policy/Clock;->getContext()Landroid/content/Context;

move-result-object v2

const-string v5, "keyguard"

invoke-virtual {v2, v5}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v1

check-cast v1, Landroid/app/KeyguardManager;

invoke-virtual {v1}, Landroid/app/KeyguardManager;->isKeyguardLocked()Z

move-result v4

if-nez v4, :cond_new

const v3, 0x1

:cond_new

invoke-virtual {p0, v3}, Lcom/android/systemui/statusbar/policy/Clock;->setVisibility(I)V

....where the if-nez v4 tests if keyguard is locked and goes to cond_new if it is not which sets visibility to v3 (0x8) which is gone otherwise v3 is changed to 0x1 and then visibility set.

Done on phone so there may be mistakes and you may need to adjust the registers but you get the idea
[Galaxy S II Android Development] Ticklefish:
Very clever! And I nearly understand it as well which is a good sign.

I've used up my 8 for today so I'll have to press Thanks when I get onto Tapatalk later so for now...Thank you very much! :highfive:
[Galaxy S II Android Development] remuntada78:
Solved in this way, in red what i added

in the .method private convertTimeToImage(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)V

.method private convertTimeToImage(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)V
.registers 16
.parameter "hourTime"
.parameter "minTime"

.prologue
const/16 v6, 0xa

const/4 v9, 0x1

const/4 v8, 0x0

[COLOR="Red"]const v11, 0x108044b[/COLOR] [COLOR="Blue"]id of keyguard_lockscreen_time_dot png[/COLOR]
.
.
.
.
.line 1132
iget-object v6, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mMin02:Landroid/widget/ImageView;

aget v7, v1, v9

aget v7, v3, v7

invoke-virtual {v6, v7}, Landroid/widget/ImageView;->setImageResource(I)V

iget v10, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mClockColor:I

sget-object v12, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;

invoke-virtual {v6, v10, v12}, Landroid/widget/ImageView;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V

.line 1133[COLOR="Red"]
iget-object v6, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mDot:Landroid/widget/ImageView;

invoke-virtual {v6, v11}, Landroid/widget/ImageView;->setImageResource(I)V

iget v10, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mDotColor:I

sget-object v12, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;

invoke-virtual {v6, v10, v12}, Landroid/widget/ImageView;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V
[/COLOR]
return-void

in the .method protected onFinishInflate()V

.line 1002
const v0, 0x10202cd

invoke-virtual {p0, v0}, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/ImageView;

iput-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mHour02:Landroid/widget/ImageView;
[COLOR="Red"]
const v0, 0x10202ce [COLOR="RoyalBlue"]id of zzz_colon01[/COLOR]

invoke-virtual {p0, v0}, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/ImageView;

iput-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mDot:Landroid/widget/ImageView;
[/COLOR]
.line 1003
const v0, 0x10202cf

invoke-virtual {p0, v0}, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/ImageView;

iput-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mMin01:Landroid/widget/ImageView;
[Galaxy S II Android Development] gerryS2:
HI [MENTION=3065070]Goldie[/MENTION] and all community, I have a problem with a error on dalvikvm:

W/dalvikvm( 3589): VFY: expected non-float cat-1 arg to if

W/dalvikvm( 3589): VFY: rejecting opcode 0x38 at 0x01e7

W/dalvikvm( 3589): VFY: rejected Lcom/android/internal/policy/impl/PhoneWindowManager;.updateSettings ()V

W/dalvikvm( 3589): Verifier rejected class Lcom/android/internal/policy/impl/PhoneWindowManager;

The error i show when I insert this line in the method updatesettings()V of PhoneWindowsManager:

:cond_20d
const-string v10, "toolbox_onoff"

const/4 v12, 0x0

const/4 v13, -0x2

invoke-static {v4, v10, v12, v13}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v8

.local v8, toolbox:I
move-object/from16 v0, p0

iget v10, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mToolBoxMode:I

if-eq v10, v8, :cond_to1

move-object/from16 v0, p0

iput v8, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mToolBoxMode:I

move-object/from16 v0, p0

iget-object v12, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;

if-eqz v8, :cond_to2

const/4 v10, 0x7

:goto_to2
invoke-virtual {v12, v10}, Landroid/os/Handler;->sendEmptyMessage(I)Z

:cond_to1
const-string v10, "toolbox_apps"

const/4 v12, -0x2

invoke-static {v4, v10, v12}, Landroid/provider/Settings$Secure;->getStringForUser(Landroid/content/ContentResolver;Ljava/lang/String;I)Ljava/lang/String;

move-result-object v9

.local v9, packageList:Ljava/lang/String;
move-object/from16 v0, p0

iget-object v10, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mToolBoxPackageList:Ljava/lang/String;

invoke-virtual {v10, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v10

if-nez v10, :cond_next

move-object/from16 v0, p0

iput-object v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mToolBoxPackageList:Ljava/lang/String;

if-eqz v8, :cond_next

move-object/from16 v0, p0

iget-object v10, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mTwToolBoxFloatingViewer:Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer;

if-eqz v10, :cond_next

move-object/from16 v0, p0

iget-object v10, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mTwToolBoxFloatingViewer:Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer;

invoke-virtual {v10}, Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer;->reset()V

.end local v8 #toolbox:I
.end local v9 #packageList:Ljava/lang/String;
:cond_next
return-void

The thing that I would like to understand why and I see this error and how I can solve in general?
[Galaxy S II Android Development] remuntada78:
i don't understand what you are trying to do , but i can tell you that this line

W/dalvikvm( 3589): VFY: rejecting opcode 0x38 at 0x01e7

mean that you have some error in lines with if-eqz in the method updatesettings()V of PhoneWindowsManager
[Galaxy S II Android Development] lacoursiere18:
Where are all these :cond_ going?

if-eq v10, v8, :cond_to1

if-eqz v8, :cond_to2

if-eqz v8, :cond_next

if-eqz v10, :cond_next

And are they going to the right places.. also might want to check the variables on each of them..
[Galaxy S II Android Development] remuntada78:
[MENTION=3065070]Goldie[/MENTION], hi it's possible to change the position of layout ?in my case i want to change the position of lockscreen clock . There is some code that can help me in this?

Thanks

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II Android Development] tdunham:
I'm not sure how much this will help you out since it is for the S5 but this guide was pretty useful:

http://xdaforums.com/galaxy-s5/themes-apps/guide-lockscreen-style-note-4-s5-update-t2907990
[Galaxy S II Android Development] remuntada78:
Thanks tdunham but I mean with smali code , that let me choose position in the middle in the bottom to the right , to the left

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II Android Development] tdunham:
I know what you mean and why ;).

But I think all those edits are done through framework-res edits for your purpose and the edits can be rather difficult to get right (a lot of trial and error) like from the guide here for ICS & JB based roms:

http://xdaforums.com/showthread.php?t=1838130
[Galaxy S II Android Development] maskerwsk:
How about adding the new clocks to the layout files and then show and hide them in the normal way with a list pref?
[Galaxy S II Android Development] remuntada78:
Yeah that could be a way but not exactly what I want

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II Android Development] remuntada78:
Maybe i found how to http://stackoverflow.com/questions/6535648/how-can-i-dynamically-set-the-position-of-view-in-android ,i need to use setLayoutParams, now i need to undarstand how to use it
[Galaxy S II Android Development] remuntada78:
[MENTION=3065070]Goldie[/MENTION].

Hi Goldie , i'm trying to change clock lockscreen position, i found a way with eclipse.

in my ClockWidget$Clock.smali file i have this code

const v0, 0x10202ca

invoke-virtual {p0, v0}, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/LinearLayout;

iput-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mSingleClock:Landroid/widget/LinearLayout;

0x10202ca is id that needto be worked

do you see something wrong in the following method?

.method set_clock_position()V
.registers 7

iget-object v1, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mContext:Landroid/content/Context;

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

move-result-object v1

const-string v2, "clock_position"

const/4 v3, 0x0

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

move-result v1

const v2, 0x1

if-eq v1, v2, :cond_0

const v2, 0x2

if-eq v1, v2, :cond_1

iget-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mSingleClock:Landroid/widget/LinearLayout;

const/16 v4, 0x30

goto:goto_set

:cond_0
iget-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mSingleClock:Landroid/widget/LinearLayout;

const/16 v4, 0x50

goto:goto_set

:cond_1
iget-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mSingleClock:Landroid/widget/LinearLayout;

const/16 v4, 0x11

:goto_set
invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setGravity(I)V

return-void
.end method
[Galaxy S II Android Development] remuntada78:
[MENTION=3065070]Goldie[/MENTION], hi first of all i want let you know i solved the problem with lockscreen clock position http://xdaforums.com/galaxy-s2/development-derivatives/mod-how-to-change-lockscreen-clock-t2951843

then i'm here to ask you some suggestion

i'm trying to change dialer actionbartab background, i went to work with ActionBarOverlayLayout.smali in framework2, i added the following code to test

.line 211
const v0, 0x10203f7

invoke-virtual {p0, v0}, Lcom/android/internal/widget/ActionBarOverlayLayout;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Lcom/android/internal/widget/ActionBarView;
[COLOR="Red"]
iget-object v1, p0, Lcom/android/internal/widget/ActionBarOverlayLayout;->mContext:Landroid/content/Context;

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

move-result-object v1

const-string v2, "tab_test"

const v3, 0x0

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

move-result v1

const v2, 0x1

if-eq v1, v2, :cond_0

const v2, 0x7f020674

goto :goto_0

:cond_0
const v2, 0x7f020675

:goto_0
invoke-virtual {v0, v2}, Landroid/view/View;->setBackgroundResource(I)V
[/COLOR]
iput-object v0, p0, Lcom/android/internal/widget/ActionBarOverlayLayout;->mActionView:Lcom/android/internal/widget/ActionBarView;

.line 212

the result is this

[YOUTUBE]7oJgPMAbgek[/YOUTUBE]

As you can see it seem to work for a instant then return back stock background

i know that dialer actionbartab background is defined in styles.xml

<style name="DialtactsActionBarStyle" parent="@*android:style/Widget.DeviceDefault.ActionBar">
<item name="android:background">@drawable/tw_action_bar_tab_bg_holo_dark</item>
<item name="android:displayOptions"></item>
<item name="android:backgroundStacked">@drawable/tw_action_bar_tab_bg_holo_dark</item>
</style>

so there's a way to bypass the code in styles.xml, or there's a differnt way?

thanks in advance
[Galaxy S II Android Development] maskerwsk:
Anyone know a way to hide checkboxes and list prefs in the xml files?
[Galaxy S II Android Development] remuntada78:
Try to ask herehttp://xdaforums.com/showthread.php?t=2929816

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II Android Development] lacoursiere18:
What do you mean? You can disable them..
[Galaxy S II Android Development] Jm@n:
Hi everyone. This is a great thread. I've been doing a lot of smali edits lately, and porting mods, and I'm having trouble with a few things. Would someone be willing to help me out please, or can I post files and methods here?
[Galaxy S II Android Development] remuntada78:
Try to post your problem here

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II Android Development] Jm@n:
I'm trying to show navigation bar menu even when action bar menu is there. This is one of 2 ways I tried forcing it to show always but it also shows on lockscreen. I don't want it on lockscreen. The other buttons are hidden on lockscreen. This is the stock 2 methods, I only changed 0x4 to 0x1 at the bottom

I'm including the smali file incase there's another method I need to change too

https://www.dropbox.com/s/gj7qhjwv6shsk7x/NavigationBarView.smali?dl=0

.method public setMenuVisibility(Z)V

.locals 1

.param p1, "show" # Z

.prologue

.line 449

const/4 v0, 0x1

invoke-virtual {p0, p1, v0}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->setMenuVisibility(ZZ)V

.line 450

return-void

.end method

.method public setMenuVisibility(ZZ)V

.locals 2

.param p1, "show" # Z

.param p2, "force" # Z

.prologue

.line 453

if-nez p2, :cond_0

iget-boolean v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mShowMenu:Z

if-ne v0, p1, :cond_0

.line 458

:goto_0

return-void

.line 455

:cond_0

iput-boolean p1, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mShowMenu:Z

.line 457

invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->getMenuButton()Landroid/view/View;

move-result-object v1

iget-boolean v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mShowMenu:Z

if-eqz v0, :cond_1

const/4 v0, 0x1

:goto_1

invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V

goto :goto_0

:cond_1

const/4 v0, 0x1

goto :goto_1

.end method
[Galaxy S II Android Development] remuntada78:
hi mate, it's hard for me to solve your issue, try to change in the second method the second 0x1 to 0x8 but i'm not sure it work i don't use navigation bar . I n my NavigationBarView.smali there are two more method that i'm think are refered to lockscreen

.method public setMenuButtonVisibilityForLockscreen(Z)V
.locals 1
.parameter "show"

.prologue
.line 457
if-nez p1, :cond_0

const/4 v0, 0x1

:goto_0
iput-boolean v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mHideMenuButtonForLockscreen:Z

.line 458
return-void

.line 457
:cond_0
const/4 v0, 0x0

goto :goto_0
.end method

.method private refreshMenuButtonForLockscreen()V
.locals 2

.prologue
.line 461
iget-boolean v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mHideMenuButtonForLockscreen:Z

if-eqz v0, :cond_0

.line 462
invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->getMenuButton()Landroid/view/View;

move-result-object v0

const/4 v1, 0x4

invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

.line 466
:goto_0
return-void

.line 464
:cond_0
invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->getMenuButton()Landroid/view/View;

move-result-object v0

const/4 v1, 0x0

invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

goto :goto_0
.end method

and this is the whole file View attachment NavigationBarView.zip hope this can help you waiting for others users suggestions
[Galaxy S II Android Development] Jm@n:
No didn't work.
[Galaxy S II Android Development] remuntada78:
[MENTION=3065070]Goldie[/MENTION] , Me , again:D , from the previous post i need a suggestion about where to add the observer, i tried to add the line

invoke-virtual {p0}, Lcom/android/phone/InCallTouchUi;->set_incall_buttons_background()V

in different places but i was not able to solve it, i'm thinking also to add the observer file but i can't find the place where add the call of it

help me please
[Galaxy S II Android Development] Ofeliax:
Hi to all

Fantastic thread Goldie :)

Maybe this can help someone

https://code.google.com/p/smali/wi...google.com/p/smali/wiki/TypesMethodsAndFields

My little advice is to learn java first for better understand about smali.

Cheers
[Galaxy S II Android Development] maskerwsk:
Hi guys.

Im having trouble recompiling stuff for lollipop. Im using smalis that ive used in ics through to 4.4 but now i get errors. Do you think they are now incompatible or is there something im missing recompiling
[Galaxy S II Android Development] Goldie:
Updated apktool?
[Galaxy S II Android Development] maskerwsk:
yeah I updated to the newest 2.0.0-RC3

for example here is one issue im having.

decompiled secsettings, added all my rom control string, layouts etc.

added my color picker and rom control smali files (that have worked unedited except id from ics through to 4.4)

when I recompile I get these errors:

------------------------------------------------------

..\3-Out\SecSettings.apk\smali\com\maskerwsk\colorpicker\ColorPickerPanelView.smali[50,4] Invalid literal value: 16256. Low 16 bits must be zeroed out.
..\3-Out\SecSettings.apk\smali\com\maskerwsk\colorpicker\ColorPickerPanelView.smali[58,4] Invalid literal value: -256. Low 16 bits must be zeroed out.
..\3-Out\SecSettings.apk\smali\com\maskerwsk\colorpicker\ColorPickerPanelView.smali[104,4] Invalid literal value: 16256. Low 16 bits must be zeroed out.
..\3-Out\SecSettings.apk\smali\com\maskerwsk\colorpicker\ColorPickerPanelView.smali[132,4] Invalid literal value: 16544. Low 16 bits must be zeroed out.
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/maskerwsk/colorpicker/ColorPickerPanelView.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:349)
at brut.androlib.Androlib.buildSources(Androlib.java:289)
at brut.androlib.Androlib.build(Androlib.java:275)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)

------------------------------------------------------

the '[50,4]' parts as far as im aware refer to this is colorpickerpanelview

const/high16 v0, 0x3f80

<<this is line 50 in smali

const/high16 v0, -0x100

<< this is line 58

and so on, it would seem all the errors come from the 'const/high16 v0, -0xXXXX' stuff.

any ideas why?

thanks.
[Galaxy S II Android Development] Vivek_Neel:
Use this const/4 v0 instead of const/high16 v0
[Galaxy S II Android Development] maskerwsk:
thanks buddy.

but doing that I get this error:

..\3-Out\SecSettings.apk\smali\com\maskerwsk\colorpicker\ColorPickerPanelView.smali[50,4] 16256 cannot fit into a nibble
..\3-Out\SecSettings.apk\smali\com\maskerwsk\colorpicker\ColorPickerPanelView.smali[58,4] -256 cannot fit into a nibble
..\3-Out\SecSettings.apk\smali\com\maskerwsk\colorpicker\ColorPickerPanelView.smali[104,4] 16256 cannot fit into a nibble
..\3-Out\SecSettings.apk\smali\com\maskerwsk\colorpicker\ColorPickerPanelView.smali[132,4] 16544 cannot fit into a nibble
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/maskerwsk/colorpicker/ColorPickerPanelView.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:349)
at brut.androlib.Androlib.buildSources(Androlib.java:289)
at brut.androlib.Androlib.build(Androlib.java:275)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)

------------------------------------------------------
[Galaxy S II Android Development] remuntada78:
you can solve it as Vivek_Neel said or using 2.0.0-RC3 you need to change const/high16 v0, 0x3f80 to const/high16 v0, 0x3f800000
[Galaxy S II Android Development] Vivek_Neel:
How about with 16 bit.

const/16
[Galaxy S II Android Development] Goldie:
Const/4 is for boolean values. Adding the zeros as remuntada said or simply using just const should work
[Galaxy S II Android Development] maskerwsk:
You beautiful people :)

thanks a lot guys, all compiled fine after that (had to edit a number of other files too)

Best thread on XDA!
[Galaxy S II Android Development] maskerwsk:
Hi Guys.

Another issue with code on lollipop.

I added a method to SystemUIService that launches apps dependent on there 'tags'

however when I recompile I get this error

..\3-Out\SystemUI.apk\smali\com\android\systemui\SystemUIService.smali[21,4] Error for input '.parameter': Invalid directive

..\3-Out\SystemUI.apk\smali\com\android\systemui\SystemUIService.smali[21,15] mismatched input '"v"' expecting END_METHOD_DIRECTIVE

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/systemui/SystemUIService.smali

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:349)

at brut.androlib.Androlib.buildSources(Androlib.java:289)

at brut.androlib.Androlib.build(Androlib.java:275)

at brut.androlib.Androlib.build(Androlib.java:250)

at brut.apktool.Main.cmdBuild(Main.java:225)

at brut.apktool.Main.main(Main.java:84)

------------------------------------------------------

Ive used the code on 4.4 and was fine.

any ideas?

thanks guys
[Galaxy S II Android Development] remuntada78:
You need to remove the " " simbols

Inviato dal mio GT-I9100 utilizzando Tapatalk