Add music controls to lockscreen (GOT 2.2.1)

E

emanuelsanti

Neues Mitglied
19
I need to contact with someone with enough experience in smali editing to port music controls to lockscreen. I got the smali with the controls (from a Droid). I only need this to finish a theme. Anybody?

PD: I don't speak German, sorry.
 
Post the files and I will look into it.

Is the source code for this available?
 
In cyanogen is related to CMParts.apk, in my source mod its only in android.policy.jar->lockscreen.smali

Ill post em on a zip
 
Attached the zip with the smalis.

with MOD:

Lockscreen.smali
Lockscreen$1.smali
Lockscreen$2.smali
Lockscreen$3.smali
Lockscreen$4.smali
Lockscreen$5.smali
Lockscreen$6.smali
Lockscreen$7.smali

my smalis:

Lockscreen.smali
Lockscreen$1.smali
Lockscreen$2.smali
Lockscreen$3.smali
Lockscreen$4.smali

Note: the MODED lockscreen has a lot of extra mods. I just want the music controls, and in some part of the music controls mod the code calls for some lockscreen$x(some numbers), thats why i added em.
 

Anhänge

  • LockScreen.zip
    29 KB · Aufrufe: 72
Logcat of my try:

*** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy
11-22 21:46:01.849: ERROR/AndroidRuntime(1836): java.lang.NullPointerException
11-22 21:46:01.849: ERROR/AndroidRuntime(1836): at com.android.internal.policy.impl.LockScreen.<init>(LockScreen.java:254)
11-22 21:46:01.849: ERROR/AndroidRuntime(1836): at com.android.internal.policy.impl.LockPatternKeyguardView.createLockScreen(LockPatternKeyguardView.java:640)
11-22 21:46:01.849: ERROR/AndroidRuntime(1836): at com.android.internal.policy.impl.LockPatternKeyguardView.<init>(LockPatternKeyguardView.java:341)
11-22 21:46:01.849: ERROR/AndroidRuntime(1836): at com.android.internal.policy.impl.LockPatternKeyguardViewProperties.createKeyguardView(LockPatternKeyguardViewProperties.java:53)
11-22 21:46:01.849: ERROR/AndroidRuntime(1836): at com.android.internal.policy.impl.KeyguardViewManager.show(KeyguardViewManager.java:125)
11-22 21:46:01.849: ERROR/AndroidRuntime(1836): at com.android.internal.policy.impl.KeyguardViewMediator.handleShow(KeyguardViewMediator.java:1002)
11-22 21:46:01.849: ERROR/AndroidRuntime(1836): at com.android.internal.policy.impl.KeyguardViewMediator.access$800(KeyguardViewMediator.java:98)
11-22 21:46:01.849: ERROR/AndroidRuntime(1836): at com.android.internal.policy.impl.KeyguardViewMediator$2.handleMessage(KeyguardViewMediator.java:869)
11-22 21:46:01.849: ERROR/AndroidRuntime(1836): at android.os.Handler.dispatchMessage(Handler.java:99)
11-22 21:46:01.849: ERROR/AndroidRuntime(1836): at android.os.Looper.loop(Looper.java:123)
11-22 21:46:01.849: ERROR/AndroidRuntime(1836): at com.android.server.WindowManagerService$PolicyThread.run(WindowManagerService.java:614)

content of LockScreen.java:254

.line 254
iget-object v1, p0, Lcom/android/internal/policy/impl/LockScreen;->mPlayIcon:Landroid/widget/ImageButton;
new-instance v2, Lcom/android/internal/policy/impl/LockScreen$5;
invoke-direct {v2, p0}, Lcom/android/internal/policy/impl/LockScreen$5;-><init>(Lcom/android/internal/policy/impl/LockScreen;)V
invoke-virtual {v1, v2}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V
 
You may want to compile it from source instead of hacking around with smali bytecode. It's in the cyanogen sources and it should be possible to merge with the aosp sources.
 

Ähnliche Themen

X
Antworten
27
Aufrufe
2.944
xanya
X
B
Antworten
6
Aufrufe
7.555
martin_austria
M
F
  • Fearghus
Antworten
9
Aufrufe
1.284
-FuFu-
-FuFu-
Zurück
Oben Unten