Change lockscreen

brianmoyano

Senior Member
Jul 24, 2012
667
115
0
Buenos Aires
Hi, i'm using the firmware 'Asia Retail' (MB865 - NOT AT&T)


Is there a way to change the lockscreen? I don't like the moto loockscreen, and, i don't wan't to install an app to do that, because, it drains the battery.

And i want to know if i can install de BB lockscreen or the AOSP lockscreen.

Btw: The firm is odex.




This is the locker that i want

PS: If someone has that wallpaper, i'll be glad too :p
 
Last edited:

alteredlikeness

Senior Member
Mar 2, 2012
2,454
5,472
0
reflecting on Indra's net
Hi, i'm using the firmware 'Asia Retail' (MB865 - NOT AT&T)


Is there a way to change the lockscreen? I don't like the moto loockscreen, and, i don't wan't to install an app to do that, because, it drains the battery.

And i want to know if i can install de BB lockscreen or the AOSP lockscreen.

Btw: The firm is odex.

This is the locker that i want

PS: If someone has that wallpaper, i'll be glad too :p
It takes a lot of code edits. I kind of already answered this here: http://forum.xda-developers.com/showpost.php?p=33782818&postcount=80.
But, the AOSP one is built-in already, it's just that Moto has overlayed their lockscreen on top of it - you would need to edit the zz_moto_keyguard_unlock_widget.xml in framework-res.apk/res/layout.. Erase everything in that stock xml and replace with this to get the AOSP one to show up:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.internal.widget.multiwaveview.MultiWaveView android:orientation="horizontal" android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true" android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera" android:directionDescriptions="@array/lockscreen_direction_descriptions" android:targetDrawables="@array/lockscreen_targets_with_camera" android:handleDrawable="@drawable/ic_lockscreen_handle" android:rightChevronDrawable="@drawable/ic_lockscreen_chevron_right" android:waveDrawable="@drawable/ic_lockscreen_outerring" android:outerRadius="@dimen/multiwaveview_target_placement_radius" android:hitRadius="@dimen/multiwaveview_hit_radius" android:vibrationDuration="20" android:snapMargin="@dimen/multiwaveview_snap_margin" android:feedbackCount="3" android:verticalOffset="0.0dip" android:horizontalOffset="0.0dip"
  xmlns:android="http://schemas.android.com/apk/res/android" />
Then, to add a couple more widgets on the aosp lock widget, you would need to edit the smali code android.policy.jar, add some images to the drawable-hdpi folder and update the arrays.xml and strings.xml in /res/values, recompile the framework-res.apk, then decompile the newly modded one to get your new resource ids from the public.xml and put those in the android.policy java code.. and to change the layout of the locksreen completely, you would need to edit the keyguard_screen_tab_unlock.xml in framework-res.apk/res/layout.

So, in short, no - there is no easy way.
 

alteredlikeness

Senior Member
Mar 2, 2012
2,454
5,472
0
reflecting on Indra's net
The tutorial that you gave me, it's for at&t. And i haven't the att version.

I'll try the hard method. Thx.

Sent from my MB865 using xda app-developers app
I know that you don't have AT&T, and I suggested to take the AT&T one as an example to compare with your non-att files. Take the deodexed zip from the Numa thread, get your files all deodexed, then compare them all.. it's a pain, but possible.
 

18712886438

Senior Member
Aug 29, 2012
59
36
0
thanks

It takes a lot of code edits. I kind of already answered this here: http://forum.xda-developers.com/showpost.php?p=33782818&postcount=80.
But, the AOSP one is built-in already, it's just that Moto has overlayed their lockscreen on top of it - you would need to edit the zz_moto_keyguard_unlock_widget.xml in framework-res.apk/res/layout.. Erase everything in that stock xml and replace with this to get the AOSP one to show up:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.internal.widget.multiwaveview.MultiWaveView android:orientation="horizontal" android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true" android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera" android:directionDescriptions="@array/lockscreen_direction_descriptions" android:targetDrawables="@array/lockscreen_targets_with_camera" android:handleDrawable="@drawable/ic_lockscreen_handle" android:rightChevronDrawable="@drawable/ic_lockscreen_chevron_right" android:waveDrawable="@drawable/ic_lockscreen_outerring" android:outerRadius="@dimen/multiwaveview_target_placement_radius" android:hitRadius="@dimen/multiwaveview_hit_radius" android:vibrationDuration="20" android:snapMargin="@dimen/multiwaveview_snap_margin" android:feedbackCount="3" android:verticalOffset="0.0dip" android:horizontalOffset="0.0dip"
  xmlns:android="http://schemas.android.com/apk/res/android" />






Then, to add a couple more widgets on the aosp lock widget, you would need to edit the smali code android.policy.jar, add some images to the drawable-hdpi folder and update the arrays.xml and strings.xml in /res/values, recompile the framework-res.apk, then decompile the newly modded one to get your new resource ids from the public.xml and put those in the android.policy java code.. and to change the layout of the locksreen completely, you would need to edit the keyguard_screen_tab_unlock.xml in framework-res.apk/res/layout.

So, in short, no - there is no easy way.








thaks guy you are really something else