yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] sieuan:
I tried as your guide with the code:

.line 217
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$2;

const v2, 0x1080030

const v3, 0x104012f

invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$2;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
[COLOR="Red"]
.line 218
new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$8;

const v2, 0x1080030

const-string v3, "Reboot"

invoke-virtual {v1, v3}, Lcom/android/internal/policy/impl/GlobalActions$8;->setText(Ljava/lang/String;)V

move-result-object v4

invoke-direct {v1, p0, v2, v4}, Lcom/android/internal/policy/impl/GlobalActions$8;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V[/COLOR]
[COLOR="Blue"]
.line 219
new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$9;

const v2, 0x1080030

const-string v3, "Recovery"

invoke-virtual {v1, v3}, Lcom/android/internal/policy/impl/GlobalActions$9;->setText(Ljava/lang/String;)V

move-result-object v4

invoke-direct {v1, p0, v2, v4}, Lcom/android/internal/policy/impl/GlobalActions$9;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V[/COLOR]

and still lost my power button. When I press and hold the power button, my phone reboots unfortunately

---------- Post added at 11:18 AM ---------- Previous post was at 11:13 AM ----------

I use root-explorer, my phone does not have any folder data/log, and can not found any file with name Dumpstate_sys_error.txt.gz

My phone running ICS 4.0.3. Is there anyway to get a log, sir? Thanks!
[Galaxy S II Android Development] Biftor:
Did you re signed ideas in framework-res.apk

String and pngs id

Check ids

const v2, 0x1080030

const v3, 0x104012f

And...

After that did you have other global$xxx.smali for reboot hot boot recovery... ?

After that did you checked registers?

Goodluck

Armin.
[Galaxy S II Android Development] majdinj:
I used new register (v4) in:

move-result-object v4

So please check if you have already enough registers in the beginning of the method

Also you may try:

invoke-virtual {v1, v3}, Lcom/android/internal/policy/impl/GlobalActions$8;-><init>(Ljava/lang/String;)V

Use monitor.exe to take log from sdk\tools\lib\monitor,, keep usb plugged during loop for certain time and it will show log in monitor.exe
[Galaxy S II Android Development] sieuan:
Thanks sir!

But I have a problem with my framework-res.apk. I can not recompile it, even when I keep it original without editing anything after decompile it.

And I contact with iBotPeaches, who dev the apktool, ask him for test my framework-res.apk. And after he looked over that 20,000 line file and found 0 error within aapt, he said that "it is bad apk", so I can not recompile it to get a public string id's for use in smali.

This is my orginal code of "power off" method:

.line 217
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$2;

const v2, 0x1080030 [COLOR="Red"]<-- this is public id of power off icon[/COLOR]

const v3, 0x104012f [COLOR="red"]<-- this is public id of the text "power off" in string.xml[/COLOR]

invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$2;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

I'm following this guide: http://xdaforums.com/showthread.php?t=2225970, made 3 copied of this above code and change it to GlobalActions$8, GlobalActions$9, and add 2 file GlobalActions$8.smali, GlobalActions$9.smali in android.policy.jar

And this code working good for me:

.line 217
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$2;

const v2, 0x1080030

const v3, 0x104012f

invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$2;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

[COLOR="Blue"].line 218
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$8;

const v2, 0x1080030

const v3, 0x104012f

invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$8;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z[/COLOR]

[COLOR="Red"].line 219
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$9;

const v2, 0x1080030

const v3, 0x104012f

invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$9;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z[/COLOR]

And the reboot, recovery function working good with the icon and text "power off" id's

And because the framework-res.apk can not recompile to get the public id's of string name "Reboot", "Recovery", I want change the id 0x104012f to text in smali.

/// sorry for my bad english, sir.
[Galaxy S II Android Development] majdinj:
May be this is not the thread to discuss apktool ,, but what are the errors giving by recompile framwork-res.apk

Some bad apks can be treated..!!!
[Galaxy S II Android Development] sieuan:
Here is the log when recompile it:

--------------------------------------------------------------------------
|24/05/2013 -- 16:30:32,25|
--------------------------------------------------------------------------
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)
Could Not Find C:\Users\nguyen\Downloads\Compressed\ApkManagerWanam\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\nguyen\AppData\Local\Temp\APKTOOL9042299258849906978.tmp, -x, -S, C:\Users\nguyen\Downloads\Compressed\ApkManagerWanam\other\..\projects\framework-res.apk\res, -M, C:\Users\nguyen\Downloads\Compressed\ApkManagerWanam\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:357)
at brut.androlib.Androlib.buildResources(Androlib.java:282)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:218)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\nguyen\AppData\Local\Temp\APKTOOL9042299258849906978.tmp, -x, -S, C:\Users\nguyen\Downloads\Compressed\ApkManagerWanam\other\..\projects\framework-res.apk\res, -M, C:\Users\nguyen\Downloads\Compressed\ApkManagerWanam\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:349)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:335)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\nguyen\AppData\Local\Temp\APKTOOL9042299258849906978.tmp, -x, -S, C:\Users\nguyen\Downloads\Compressed\ApkManagerWanam\other\..\projects\framework-res.apk\res, -M, C:\Users\nguyen\Downloads\Compressed\ApkManagerWanam\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:347)
... 6 more
The system cannot find the file specified.

I also tried with apktool 1.5.2, apkmultitool,... and get the same error

And here is my framework, can you test recompile it for me, sir? Thanks!

http://www.mediafire.com/download/9pim59iz4vdpnx2/framework-res_mediatek-res_P700.zip

/// sorry for OFF-TOPIC
[Galaxy S II Android Development] Biftor:
Ok, but first you should solve pb of compile framework-res.apk because you will need that too much...

Anyway

Check this

iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$8;

const v2, 0x1080030

const-string v3, "Reboot"

invoke-virtual {v1, v3}, Lcom/android/internal/policy/impl/GlobalActions$8;->setText(Ljava/lang/String;)V

move-result-object v4 #hint#dont for get check .local max register for v4 or add new one

invoke-direct {v1, p0, v2, v4}, Lcom/android/internal/policy/impl/GlobalActions$8;->(Lcom/android/internal/policy/impl/GlobalActions;II)V

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

You can do anything same this with this you don't need to re signed I'd...

Add the string without I'd

Don't forget check register number

Goodluck

Armin.
[Galaxy S II Android Development] Goldie:
Ummm...Thats what he was trying to do in his first post here in the first place before you started mentioning ids :rolleyes:

Also [MENTION=535343]all[/MENTION] can we please use hide tags to save scrolling through tons of stuff in quotes etc :)
[Galaxy S II Android Development] Goldie:
Why use a new register? v3 gets redefined before its used again so he could just move-result-object v3 no? :)
[Galaxy S II Android Development] majdinj:
I think it is better to use new register to make sure that you didn't use already defined register,, this is just to decrease the chance of error,, but you are right of re-using of registers :o

---------- Post added at 12:44 PM ---------- Previous post was at 12:38 PM ----------

OK, I will try and come back
[Galaxy S II Android Development] Biftor:
Yes that's better but remember this you if your method is in working have more register than 15 you should rechange all method again for verification to regester upper than 16 ...and this is harder than before...

Goodluck

Armin.
[Galaxy S II Android Development] sieuan:
Hi, i tried with your code, and still get the same error. The phone still reboots unfortunately when press and hold power button. Here is the log I get with the Android Debug Minotor
[Galaxy S II Android Development] Goldie:
Hence reusing registers makes sense. I have never needed to change all registers in any mod simply by reusing ones that get redefined later.
[Galaxy S II Android Development] majdinj:
[MENTION=4948569]sieuan[/MENTION],, I got half way now

You need to install dummy apk resources and to edit apktool.yml to adapt new resources apk,,,

I have to left house now for urgent thing.. I will let you know the details later on

cheers,,

Edit:

[MENTION=4948569]sieuan[/MENTION] please check pm
[Galaxy S II Android Development] Goldie:
Passing a string wont work . Its a different way to how we do it. Its not expecting one as you can see in the parameters being passed. It then passes from $8 straight to SinglePressAction. Should have noticed by the parameters earlier. You need to fix your res
[Galaxy S II Android Development] sieuan:
Thanks sir!

My phone is Lenovo P700, running ICS. And I can decompile/compile or mod anything with custom rom 4.0.4. But with the stock rom (deodexed) 4.0.3, I can not recompile framework-res.apk, even when I keep it original without editing anything after decompile it

I attach my android.policy.jar, please check it help me.

[MENTION=369057]majdinj[/MENTION]: I'm trying with your guide about recompile the framework-res, please check pm. Thanks!
[MENTION=3065070]Goldie[/MENTION]: Can you check my attached android.policy.jar? Thanks!
[Galaxy S II Android Development] Goldie:
Your policy is fine and working as it is. You cant change it to take a string without a lot of changes in $8, $9, GlobalActions and SinglePressAction. You need to fix the issue with res to change the text there.

See here....

invoke-direct {v1, p0, v2, v4}, Lcom/android/internal/policy/impl/GlobalActions$9;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

...v4 relates to the last thing in the brackets which is not a string. So you cannot pass it one without changing the parameters of $9 which in turn get passed to SinglePressAction so that would have to be changed too.
[Galaxy S II Android Development] remuntada78:
Hi to all,

if I want to implement the stuff of changing the generl text color whit colorpicker in my Settings/Display i've to add this line in my display_settings.xml

<PreferenceCategory android:title="@string/textcolor_options" android:key="textcolor_options">
<com.ficeto.colorpicker.ColorPickerPreference android:title="@string/textcolor_color_title" android:key="text_color" android:summary="@string/text_color_summary" android:defaultValue="0xffffffff" alphaSlider="true" />
</PreferenceCategory>

but i know that whitout colorpicker, if i want change the text color i need to mod framework-res,but if i want the colorpicker, in framework-res

there aren't smali files where implements The ContentResolver and The Key.

How i can do this?
[Galaxy S II Android Development] Goldie:
For settings text you need secsettings.apk not framework-res ;)
[Galaxy S II Android Development] remuntada78:
I tried to use your guide to find the right smali in SecSettings and i suppose is not only one smali file i need to mod.

it is right or not?

if not i'll do a better search

thanks :p
[Galaxy S II Android Development] maskerwsk:
Thanks buddy, that worked great,

had to check-cast on v0 but worked great.

thanks guys :)
[Galaxy S II Android Development] maskerwsk:
back again :)

quick question - in layout files, if an item is a linearlayout, and I change it to RelativeLayout, will I need to mod the corresponding smali files aswell? to reflect the relativelayout change?
[Galaxy S II Android Development] Goldie:
Depends if its called by view/View or by linearlayout i guess
[Galaxy S II Android Development] maskerwsk:
any body added observers to TW launcher?

ive just added text color mod and have to restart to change color.

can it be done?
[Galaxy S II Android Development] tdunham:
Hey Goldie.

Is there no function assigned to long press back capacitive key (so we can re-assign it of course ;)) on the Galaxy s5 any longer? I can't seem to find anything in android.policy for that one.
[Galaxy S II Android Development] Goldie:
it launches multiwindow as per other devices
[Galaxy S II Android Development] maskerwsk:
ok guys, back with another lol.

trying to colour lockscreen text.

so in keyguard.apk - SecKeyguardClock.smali

ive added field -

.field private mMaskerwskClockColor:I

method (under #virtual methods) -

[HIDE].method maskerwsk_clock_color()V
.locals 4

iget-object v0, p0, Lcom/android/keyguard/sec/SecKeyguardClock;->mContext:Landroid/content/Context;

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

move-result-object v1

const-string v2, "maskerwsk_lockscreen_clock_color"

const v3, -0xffe2da

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

move-result v1

iput v1, p0, Lcom/android/keyguard/sec/SecKeyguardClock;->mMaskerwskClockColor:I

return-void
.end method[/HIDE]

and invoked like this (in red) -

iget-object v1, p0, Lcom/android/keyguard/sec/SecKeyguardClock;->mAlarm:Landroid/widget/TextView;

iget-object v2, p0, Landroid/view/View;->mContext:Landroid/content/Context;

const v3, 0x7f0600bb

const/4 v4, 0x1

new-array v4, v4, [Ljava/lang/Object;

aput-object v0, v4, v5

invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

move-result-object v2

invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

[COLOR="Red"]invoke-virtual {p0}, Lcom/android/keyguard/sec/SecKeyguardClock;->maskerwsk_clock_color()V

iget v7, p0, Lcom/android/keyguard/sec/SecKeyguardClock;->mMaskerwskClockColor:I

invoke-virtual {v1, v7}, Landroid/widget/TextView;->setTextColor(I)V[/COLOR]

.line 223
iget-object v1, p0, Lcom/android/keyguard/sec/SecKeyguardClock;->mAlarm:Landroid/widget/TextView;

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

invoked the same way on all SetText occurrences (increased .local value by one on each method and useD the new local value for the 'iget vX'

All compiles fine, no issues on boot, but stock plain text.

any ideas guys :)

thanks.
[Galaxy S II Android Development] maskerwsk:
hey guys back again lol

ive rustled something together from a few old files I found,

but it uses an outdated command to collapse the statusbar, here is the old command:

invoke-virtual {p0}, Lcom/android/systemui/statusbar/StatusBarService;->animateCollapse()V

ive had a look through and found a new statusbar collapse method method in PhoneStatusBar here:

animateCollapsePanels()V

So I figured if I change the path and method name to the new files and method it should work:

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

but using the above code it gives me a FC of systemUI.

removing the line completely it compiles and works fine, it just doesn't collapse the statusbar.

any ideas?

EDIT - Nevermind, Sorted it
[Galaxy S II Android Development] sssomnath474:
hello

hello i need a little help i wan a on click method in my contact.apk and that on click method will open dialer what can i do?

i found from logcat

package name- com.android.contacts

cmp=com.android.contacts/.DialactsContactEntryActivity

flg=0x13800000

intent act=android.intent.action.VIEW

i'm using GB

if i'm not wrong i ahve to put on click method on contact list activity but cant able to do that help me attaching smali if u can put the method then mention the method name thank you :D
[Galaxy S II Android Development] Sami Kabir:
I'm trying to add a toggle button that will show all the QuickSettings buttons (like what TouchWiz on Android 4.2 and above does).. And after hours of hard work, it did not work :(

My SystemUI keeps force closing - so I'm thinking that it has something to do with my PhoneStatusBar.smali (according to my logcat). The problem is that I still don't understand logcats or smali codes properly so I need your help..

Here's my filtered out logcat:

06-20 10:44:12.181 10986 11002 E Drive.UninstallOperation: Package still installed com.android.systemui

06-20 10:44:50.538 11423 11423 E AndroidRuntime: java.lang.NoSuchMethodError: com.android.systemui.statusbar.phone.PhoneStatusBar.update_power_button

06-20 10:44:50.538 11423 11423 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:708)

06-20 10:44:50.538 11423 11423 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3067)

06-20 10:44:50.538 11423 11423 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3036)

06-20 10:44:50.538 11423 11423 E AndroidRuntime:	at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:460)

06-20 10:44:50.538 11423 11423 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:483)

06-20 10:44:50.538 11423 11423 E AndroidRuntime:	at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:94)

06-20 10:44:57.225 11306 11324 E ActivityManager: App already has crash dialog: ProcessRecord{41cd67a8 11423:com.android.systemui/u0a77}

and here's my PhoneStatusBar.smali file. Please take a look at them if you have the time. Thanks :)
[Galaxy S II Android Development] phenomarc:
Hi, I'm trying to implement a toogle to hide/show the statusbar in lockscreen.

That's what I've added to KeyguardViewManager.smali:

iget-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mViewManager:Landroid/view/ViewManager;

iget-object v2, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;

iget-object v3, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mWindowLayoutParams:Landroid/view/WindowManager$LayoutParams;

invoke-interface {v1, v2, v3}, Landroid/view/ViewManager;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

[COLOR="Red"]iget-object v2, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mView:Landroid/view/View;

invoke-virtual {v2}, Landroid/view/View;->getContext()Landroid/content/Context;

move-result-object v2

const-string v4, "toggle_sb"

const v5, 0x1

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

move-result v2

if-nez v2, :cond_show_sb

const v4, 0x8

:cond_show_sb

invoke-virtual {p0, v2}, Lcom/android/internal/policy/impl/KeyguardViewManager;->setStatusBarShow(Z)V[/COLOR]

.line 163
iget-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardView:Lcom/android/internal/policy/impl/KeyguardViewBase;

if-nez v1, :cond_7

It's correct or I have to modify something?

It's better to do it like the above or making a new method in the smali?
[Galaxy S II Android Development] Goldie:
Setstatusbarshow requires a boolean parameter hence the Z in brackets. You are passing v2 in all cases. This makes more sense....

iget-object v2, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mView:Landroid/view/View;

invoke-virtual {v2}, Landroid/view/View;->getContext()Landroid/content/Context;

move-result-object v2

const-string v4, "toggle_sb"

const v5, 0x1

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

move-result v2

const/4 v4, 0x1

if-eqz v2, :cond_show_sb

const/4 v4, 0x0

:cond_show_sb

invoke-virtual {p0, v4}, Lcom/android/internal/policy/impl/KeyguardViewManager;->setStatusBarShow(Z)V
[Galaxy S II Android Development] phenomarc:
Now it give bootloop. I made a logcat and says the following:

E/Trace (26479): error opening trace file: Permission denied (13)
E/android.os.Debug(26002): !@Dumpstate > dumpstate -k -t -z -d -o /data/log/dumpstate_sys_error
E/AndroidRuntime(26002): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy
E/AndroidRuntime(26002): java.lang.NoSuchFieldError: com.android.internal.policy.impl.KeyguardViewManager.mView
E/AndroidRuntime(26002):	at com.android.internal.policy.impl.KeyguardViewManager.show(KeyguardViewManager.java:161)
E/AndroidRuntime(26002):	at com.android.internal.policy.impl.KeyguardViewMediator.handleShow(KeyguardViewMediator.java:1418)
E/AndroidRuntime(26002):	at com.android.internal.policy.impl.KeyguardViewMediator.access$1400(KeyguardViewMediator.java:107)
E/AndroidRuntime(26002):	at com.android.internal.policy.impl.KeyguardViewMediator$4.handleMessage(KeyguardViewMediator.java:1271)
E/AndroidRuntime(26002):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(26002):	at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(26002):	at com.android.server.wm.WindowManagerService$PolicyThread.run(WindowManagerService.java:967)

So I added

.field private final mView:Landroid/view/View;

in instance fiels.

Hope it works now.