Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,785,457 Members 42,062 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Modify Stock Lockscreen

Tip us?
 
galamdring
Old
#1  
Member - OP
Thanks Meter 19
Posts: 30
Join Date: Mar 2012
Question [Q] Modify Stock Lockscreen

Hey all, been a reader for a couple months now, first time poster.

I am running Supercharged 5.2 on the Atrix 2 (MB865)
Replacing the lockscreen with an App isn't an option for me if I want to keep my work email on the phone.
I'm wondering if there is any way to make modifications to the lockscreen? I love the changes that were made for Supercharged, but I would like to take it a step further, but don't know where to start.
If possible, I would love to be able to convince the phone that something such as widgetlocker was the built-in lockscreen.

Anyone have any ideas? Or a starting direction?
 
tmease1
Old
#2  
tmease1's Avatar
Senior Member
Thanks Meter 363
Posts: 1,404
Join Date: Dec 2010
Location: Indiana
This is probably not what you are looking for but i use widgetlocker and it works good for me if i give it superuser permissions.

Sent from my MB865 using xda premium
 
alteredlikeness
Old
(Last edited by alteredlikeness; 26th March 2012 at 11:30 PM.) Reason: added essential "brick" comment (BE CAREFUL!)
#3  
alteredlikeness's Avatar
Recognized Contributor
Thanks Meter 5,248
Posts: 2,401
Join Date: Mar 2012
Location: reflecting on Indra's net

 
DONATE TO ME
Quote:
Originally Posted by galamdring View Post
Hey all, been a reader for a couple months now, first time poster.

I am running Supercharged 5.2 on the Atrix 2 (MB865)
Replacing the lockscreen with an App isn't an option for me if I want to keep my work email on the phone.
I'm wondering if there is any way to make modifications to the lockscreen? I love the changes that were made for Supercharged, but I would like to take it a step further, but don't know where to start.
If possible, I would love to be able to convince the phone that something such as widgetlocker was the built-in lockscreen.

Anyone have any ideas? Or a starting direction?
You going to have to break apart the framework-res.apk and add a lock screen image (i think the zz_moto_lockscreen_sd_door.png file is missing from SCV5), possibly edit the related xml file, then put it back together and push it to your phone with adb... i've never done it but i'm sure with some proper searching and researching, you could pull it off..

the lockscreen image should be in /system/framework/framework-res.apk --> open the apk --> framework-res.apk/res/drawable-hdpi

Attached is the stock lock screen, if you can manage to slip it in there...without bricking your phone
Attached Thumbnails
Click image for larger version

Name:	zz_moto_lockscreen_sd_door.jpg
Views:	115
Size:	47.7 KB
ID:	966955  
Quote:
Originally Posted by doseone/themselves View Post
Code:
Select Code
...with the kind of hunger wings once sprung from...
A2 Edison | N10 Manta | One M8


/-\ |_ T F |2 F |)
The Following User Says Thank You to alteredlikeness For This Useful Post: [ Click to Expand ]
 
alteredlikeness
Old
#4  
alteredlikeness's Avatar
Recognized Contributor
Thanks Meter 5,248
Posts: 2,401
Join Date: Mar 2012
Location: reflecting on Indra's net

 
DONATE TO ME
Did you figure it out yet? I managed to swap the lockscreen on the atrixblaze rom to the stock lockscreen (just to see if i could).. and it was pretty simple.

You need an apk tool like APK Manager or the MultiTool (i did it with APK Manager, since i read that there may be some issues with the MultiTool), then copy to your computer, and using APK Manager "extract zip" the framework-res.apk, swap out the lockscreen image file, and re-zip the apk with the APK Manager (it gets more complicated if you're editing xml files, but for images only this works well). Copy the modified framework-res.apk to your sd card, then using root explorer, copy it to your /system folder (you need to copy it here before moving it to the framework folder so you can change the permissions). Change the permissions to chmod 644 (like shown in the 3rd attached pic), then MOVE (do not copy) to the framework folder. It will ask you if you want to overwrite - say yes. Reboot. And done.

But, I didn't see a lockscreen file in SCV5, so this may not work for you at all. You could try to add it and hope that everything that references that image is still intact in the xml files..

NOTE: Please install the CWM on Boot before you try swapping your framework-res.apk, it can save you a lot of trouble if something goes wrong
Attached Thumbnails
Click image for larger version

Name:	1332856569831.jpg
Views:	108
Size:	34.6 KB
ID:	971740   Click image for larger version

Name:	1332910632832.jpg
Views:	91
Size:	68.0 KB
ID:	971741   Click image for larger version

Name:	permissions.png
Views:	75
Size:	15.1 KB
ID:	971742  
Quote:
Originally Posted by doseone/themselves View Post
Code:
Select Code
...with the kind of hunger wings once sprung from...
A2 Edison | N10 Manta | One M8


/-\ |_ T F |2 F |)
The Following User Says Thank You to alteredlikeness For This Useful Post: [ Click to Expand ]
 
galamdring
Old
#5  
Member - OP
Thanks Meter 19
Posts: 30
Join Date: Mar 2012
Thank you for the suggestions. I actually haven't been able to get the CWM on boot to work with SCV5.2.
I ended up finding a different way around. When it comes right down to it I hate the stock lockscreen. If I wanted to be stuck with a simple slide to unlock, I would just go back to the iPhone.
Was frustrating the hell out of me that my work email could place that kind of restriction on me.
So I hunted, and found an email app that used the webDav interface instead of directly accessing the Exchange Server, thus no device admin.
Maildroid was what worked for me with Exchange 2010.

Then to get the calendar on my phone, I used the Google Calendar Sync on my work computer, so no more need for device admin for any of it.

Got WidgetLocker and loving it.
 
alteredlikeness
Old
#6  
alteredlikeness's Avatar
Recognized Contributor
Thanks Meter 5,248
Posts: 2,401
Join Date: Mar 2012
Location: reflecting on Indra's net

 
DONATE TO ME
Quote:
Originally Posted by galamdring View Post
Thank you for the suggestions. I actually haven't been able to get the CWM on boot to work with SCV5.2.
I ended up finding a different way around. When it comes right down to it I hate the stock lockscreen. If I wanted to be stuck with a simple slide to unlock, I would just go back to the iPhone.
Was frustrating the hell out of me that my work email could place that kind of restriction on me.
So I hunted, and found an email app that used the webDav interface instead of directly accessing the Exchange Server, thus no device admin.
Maildroid was what worked for me with Exchange 2010.

Then to get the calendar on my phone, I used the Google Calendar Sync on my work computer, so no more need for device admin for any of it.

Got WidgetLocker and loving it.
Ahhhh. Yea, I hooked up to my work email at one time and it made me put on a pin or screen lock. So, I uninstalled it - don't really need my work email on my phone - or i can just check it through the web.
Glad you found a work-around though.. this may help some others with a similar issue.
Quote:
Originally Posted by doseone/themselves View Post
Code:
Select Code
...with the kind of hunger wings once sprung from...
A2 Edison | N10 Manta | One M8


/-\ |_ T F |2 F |)
 
galamdring
Old
#7  
Member - OP
Thanks Meter 19
Posts: 30
Join Date: Mar 2012
Yeah, I hunted for days to try to find some form of work around. Most of the email apps either only support exchange 2007 or have the same device admin forced settings.
 
nephillim
Old
#8  
nephillim's Avatar
Senior Member
Thanks Meter 27
Posts: 137
Join Date: Apr 2008
Location: Danville
Isn't there a "Corporate Sync" somewhere for Accounts that will sync your exchange email without requiring the Security? I could have swore I saw it somewhere.....
AT&T Samsung Galaxy S4 MF3 **Stock - Rooted - XPosed
Atrix 2 ** CM10 build 9-28.... Retired
iPhone 3GS **jailbroken and flashed 4571^3 times.... RETIRED!!!! (Thank God)
RAZR V3xx **custom themed and unlocked...... Retired to the porcelain throne.
 
galamdring
Old
#9  
Member - OP
Thanks Meter 19
Posts: 30
Join Date: Mar 2012
I had seen a patch to the built in email app, but I couldn't get it to work with the blur crapola. I would like to try cyanogen, but until we get an unlocked bootloader or Jim and lfaber get safestrap working, guess I'm stuck.

Thanks for the responses. Nice to finally join a community that's all about helping and doesn't tolerate trolls.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes