[guide] statusbar and lockscreen animation effect

yash989

Senior Member
Sep 10, 2012
2,369
2,260
0
jodhpur
Animation Mod
Hi guys this is my first tutorial or guide.
In this i will show u how to get accent animaton effect on lockscreen and statusbar.

REQUIREMENT
- 4.4+ Device
- Superuser mod
- Know to decompile/recompile

Instructions
- decompile systemui
- download the zip from attachment
- copy drawable and drwable-hdpi to res
- copy android to smali folder
- go to res-layout-msim_statusbar_expanded.xml/statusbar_Expanded.xml
- paste this before </com.android.systemui.statusbar.phone.NotificationPanelView>
Code:
<android.para****.AnimatedImageView android:layout_gravity="center" android:id="@id/bekgron_image" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/duitblue" android:scaleType="fitXY" />
- ****- change this to s.h.i.t dont add dots i have added because cant type it here
- go to res - values - colors.xml and paste this
Code:
<color name="somc_color_accent_dark">@android:color/somc_color_accent_dark</color>
- than in values folder ids.xml add this
Code:
<item type="id" name="bekgron_image">false</item>
- done recompile.
 
Last edited:

G4B33

Senior Member
Jul 9, 2015
215
118
0
21
I tried it twice, but receiving these errors:
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue1.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue10.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue11.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue12.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue13.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue14.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue15.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue16.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue2.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue3.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue4.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue5.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue6.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue7.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue8.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue9.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\G4B33\AppData\Local\Temp\brut_util_Jar_6929661432006947638.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-1xdidi, -F, C:\Users\G4B33\AppData\Local\Temp\APKTOOL616343226343353787.tmp, -0, arsc, -0, arsc, -I, C:\Users\G4B33\apktool\framework\1.apk, -S, C:\Users\G4B33\Desktop\systemui\decode\res, -M, C:\Users\G4B33\Desktop\systemui\decode\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:472)
at brut.androlib.Androlib.buildResources(Androlib.java:410)
at brut.androlib.Androlib.build(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\G4B33\AppData\Local\Temp\brut_util_Jar_6929661432006947638.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-1xdidi, -F, C:\Users\G4B33\AppData\Local\Temp\APKTOOL616343226343353787.tmp, -0, arsc, -0, arsc, -I, C:\Users\G4B33\apktool\framework\1.apk, -S, C:\Users\G4B33\Desktop\systemui\decode\res, -M, C:\Users\G4B33\Desktop\systemui\decode\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:425)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\G4B33\AppData\Local\Temp\brut_util_Jar_6929661432006947638.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-1xdidi, -F, C:\Users\G4B33\AppData\Local\Temp\APKTOOL616343226343353787.tmp, -0, arsc, -0, arsc, -I, C:\Users\G4B33\apktool\framework\1.apk, -S, C:\Users\G4B33\Desktop\systemui\decode\res, -M, C:\Users\G4B33\Desktop\systemui\decode\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
... 6 more
I'm using z1c, 5.1.1 .
 

yash989

Senior Member
Sep 10, 2012
2,369
2,260
0
jodhpur
Thanks, it successfully recompiled it, but It doesn't wanna work :(
- go to res-layout-msim_statusbar_expanded.xml/statusbar_Expanded.xml
- paste this before </com.android.systemui.statusbar.phone.NotificationPanelView>
Code:
<android.para****.AnimatedImageView android:layout_gravity="center" android:id="@id/bekgron_image" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/duitblue" android:scaleType="fitXY" />
- ****- change this to s.h.i.t dont add dots i have added because cant type it here
 

G4B33

Senior Member
Jul 9, 2015
215
118
0
21
- go to res-layout-msim_statusbar_expanded.xml/statusbar_Expanded.xml
- paste this before </com.android.systemui.statusbar.phone.NotificationPanelView>
Code:
<android.para****.AnimatedImageView android:layout_gravity="center" android:id="@id/bekgron_image" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/duitblue" android:scaleType="fitXY" />
- ****- change this to s.h.i.t dont add dots i have added because cant type it here
Thanks man, I tried it, but still nothing..