FORUMS
Post Reply Subscribe to Thread Email Thread

help port AppcircleSidebar to stock 5.0.1

4th February 2015, 06:38 PM |#1  
uriel_zo's Avatar
OP Senior Member
Flag ciudad del carmen campeche
Thanks Meter: 482
 
More
can someone please help me solve this error
this occurs after adding the following lines=

HTML Code:
# virtual methods
.method protected addAppCircleSidebar()V
    .locals 3

    .prologue
    .line 2281
    iget-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mAppCircleSidebar:Lcom/android/systemui/statusbar/appcirclesidebar/AppCircleSidebar;

    if-nez v0, :cond_0

    .line 2282
    iget-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mContext:Landroid/content/Context;

    const/high16 v1, 0x7f040050

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/android/systemui/statusbar/appcirclesidebar/AppCircleSidebar;

    iput-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mAppCircleSidebar:Lcom/android/systemui/statusbar/appcirclesidebar/AppCircleSidebar;

    .line 2283
    iget-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mWindowManager:Landroid/view/WindowManager;

    iget-object v1, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mAppCircleSidebar:Lcom/android/systemui/statusbar/appcirclesidebar/AppCircleSidebar;

    invoke-virtual {p0}, Lcom/android/systemui/statusbar/BaseStatusBar;->getAppCircleSidebarLayoutParams()Landroid/view/WindowManager$LayoutParams;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Landroid/view/WindowManager;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 2285
    :cond_0
    return-void
.end method



HTML Code:
.method protected getAppCircleSidebarLayoutParams()Landroid/view/WindowManager$LayoutParams;
    .locals 6

    .prologue
    .line 2294
    iget-object v2, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mContext:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0c0114

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    .line 2297
    .local v1, "maxWidth":I
    new-instance v0, Landroid/view/WindowManager$LayoutParams;

    const/4 v2, -0x1

    const/16 v3, 0x7e1

    const v4, 0x840068

    const/4 v5, -0x3

    invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V

    .line 2308
    .local v0, "lp":Landroid/view/WindowManager$LayoutParams;
    iget v2, v0, Landroid/view/WindowManager$LayoutParams;->privateFlags:I

    or-int/lit8 v2, v2, 0x40

    iput v2, v0, Landroid/view/WindowManager$LayoutParams;->privateFlags:I

    .line 2309
    const/16 v2, 0x35

    iput v2, v0, Landroid/view/WindowManager$LayoutParams;->gravity:I

    .line 2310
    const-string v2, "AppCircleSidebar"

    invoke-virtual {v0, v2}, Landroid/view/WindowManager$LayoutParams;->setTitle(Ljava/lang/CharSequence;)V

    .line 2312
    return-object v0
.end method
why?


thanks in advance.

@Adi Aisiteru Reborn help
Attached Thumbnails
Click image for larger version

Name:	Sin título.png
Views:	46
Size:	30.1 KB
ID:	3149925  
Last edited by uriel_zo; 4th February 2015 at 06:51 PM.
 
 
5th February 2015, 08:17 AM |#2  
uriel_zo's Avatar
OP Senior Member
Flag ciudad del carmen campeche
Thanks Meter: 482
 
More
why?

Log For : SystemUI.apk

Log Type : Recompiling

Log Recorded At : 04 2015-02- 13:35:17,18

Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak

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

..\3-Out\SystemUI.apk\smali\com\android\systemui\status bar\BaseStatusBar.smali[2693,4] Invalid literal value: 2130968656. Low 16 bits must be zeroed out.
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/systemui/statusbar/BaseStatusBar.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuil der.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)






settings ready
I only need the systemui
can someone tell me
how to solve the error message mentioned above

http://dl-1.va.us.xda-developers.com/3/1/5/0/6/9/8/Screenshot_2015-02-02-19-48-19.png?key=u1BPvFUrWdc-tEB4MSLbfg&ts=1423124234
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes