1. Nimm jetzt an unserem Uhans - 3. ADVENT - Gewinnspiel teil - Alle Informationen findest Du hier!

Add music controls to lockscreen (GOT 2.2.1)

Dieses Thema im Forum "Root / Hacking / Modding für Motorola Milestone" wurde erstellt von emanuelsanti, 23.11.2010.

  1. emanuelsanti, 23.11.2010 #1
    emanuelsanti

    emanuelsanti Threadstarter Junior Mitglied

    Beiträge:
    26
    Erhaltene Danke:
    19
    Registriert seit:
    14.06.2010
    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.
     
  2. Redh3ad, 23.11.2010 #2
    Redh3ad

    Redh3ad Fortgeschrittenes Mitglied

    Beiträge:
    294
    Erhaltene Danke:
    50
    Registriert seit:
    01.04.2010
    Phone:
    Motorola Milestone
    Post the files and I will look into it.

    Is the source code for this available?
     
  3. emanuelsanti, 23.11.2010 #3
    emanuelsanti

    emanuelsanti Threadstarter Junior Mitglied

    Beiträge:
    26
    Erhaltene Danke:
    19
    Registriert seit:
    14.06.2010
    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
     
  4. emanuelsanti, 23.11.2010 #4
    emanuelsanti

    emanuelsanti Threadstarter Junior Mitglied

    Beiträge:
    26
    Erhaltene Danke:
    19
    Registriert seit:
    14.06.2010
    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:

  5. emanuelsanti, 23.11.2010 #5
    emanuelsanti

    emanuelsanti Threadstarter Junior Mitglied

    Beiträge:
    26
    Erhaltene Danke:
    19
    Registriert seit:
    14.06.2010
    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
     
  6. Redh3ad, 23.11.2010 #6
    Redh3ad

    Redh3ad Fortgeschrittenes Mitglied

    Beiträge:
    294
    Erhaltene Danke:
    50
    Registriert seit:
    01.04.2010
    Phone:
    Motorola Milestone
    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.
     

Diese Seite empfehlen