[Q] Screen Lock Modification? - Android Q&A, Help & Troubleshooting

I was just wondering if it is at all possible to modify the lock screen on android? I don't mean replace it with an app or anything like that. I mean for example, if someone were to input the incorrect passcode is it possible to have a little "special" message if the pin is wrong?

carnage.exe said:
I was just wondering if it is at all possible to modify the lock screen on android? I don't mean replace it with an app or anything like that. I mean for example, if someone were to input the incorrect passcode is it possible to have a little "special" message if the pin is wrong?
Click to expand...
Click to collapse
Yes, you would have to decompile the framework.jar (Pull it from your device using ADB) and then edit the xml files with the modification you want to make then recompile it. After you have recompiled it push it back to the device using ADB.
Sent from my SCH-I535 using xda premium

shimp208 said:
Yes, you would have to decompile the framework.jar (Pull it from your device using ADB) and then edit the xml files with the modification you want to make then recompile it. After you have recompiled it push it back to the device using ADB.
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
How exactly would I do that? I am new to this so sorry if I am asking a stupid question.

carnage.exe said:
How exactly would I do that? I am new to this so sorry if I am asking a stupid question.
Click to expand...
Click to collapse
You would have to decompile the framework.jar and then recompile it using smali and baksmali check out this guide (Scroll down to the video on "Editing .jar files) that should hopefully point you in the right direction. And we were all beginners once no such thing as a stupid question .

Related

[Q] CRT animation

Hi guys! Please help me how to enable crt animation on HTC Desire S? Found info about changes in framework-res.apk only. I know that in sense roms I need to edit services.jar too...but what changes i need to do?
Post #3 on this page http://forum.xda-developers.com/showthread.php?t=1122797
Sent from my HTC Desire S
Thanks but i want to know what changes in smali i need to do myself.
Decompile android.policy.jar. (The one with crt animation). You will find lock screen smali in that framework file.
Sent from my LG-P500 using XDA Premium App
4silvertooth said:
Decompile android.policy.jar. (The one with crt animation). You will find lock screen smali in that framework file.
Sent from my LG-P500 using XDA Premium App
Click to expand...
Click to collapse
Cant seem to find the smali files you're refering to in the android.policy.jar...
With lock in the files I have:
WifiService$LockList.smali
PowerManagerService$LockList.smali
UsbnetService$LockList.smali
am i missing something?
Kris
4silvertooth said:
Decompile android.policy.jar. (The one with crt animation). You will find lock screen smali in that framework file.
Click to expand...
Click to collapse
My question is the exact opposite: how to remove this annoying CRT effect from custom ROM? easy way pls
Zisworg said:
My question is the exact opposite: how to remove this annoying CRT effect from custom ROM? easy way pls
Click to expand...
Click to collapse
I can tell u how to do that...
set config_animateScreenLights to true in "/system/framework/framework-res.apk/res/values/bools.xml"
Kris

[Q]How to change xperia Z lockscreen wallpaper manually?

Since i have serenityv3 i can't flash nxt settings so I cant change the lockscreeen wallpaper, I remember reading some where in this forum how to change it manually but can't find it atm. Can someone help me out ?
Using apktool try decompiling the lockscreen apk. I think that it is uxpnxtlockscreen.apk. Not sure about that. After decompiling, go to res folder and drawable. Then search for the lockscreen wallpaper file and replace it. Then recompile it with apktool. I highly recommend Stalin Sallu's guide for decompiling the apk. Good luck.
Sent from my LT26i using xda app-developers app
abcdjdj said:
Using apktool try decompiling the lockscreen apk. I think that it is uxpnxtlockscreen.apk. Not sure about that. After decompiling, go to res folder and drawable. Then search for the lockscreen wallpaper file and replace it. Then recompile it with apktool. I highly recommend Stalin Sallu's guide for decompiling the apk. Good luck.
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
arr i remember Tk or someone posted something relating to renaming a pic to background.png in a folder...:crying:
i also want the lockscreen...
Keep the same name
Raider_ said:
arr i remember Tk or someone posted something relating to renaming a pic to background.png in a folder...:crying:
Click to expand...
Click to collapse
Yes, you will have to rename the picture that you want to insert to the same as that of what is already there. Only then will you be able to repack the apk. If you change the name of the inserted picture to anything else, then the apk will not be able to find that particular picture for the lockscreen and it will most probably not work. Change the picture, but keep the name same as the name of the original picture and you should be good to go.

[Q] How to change the list on press action or bg in Xperia U devices?

Hi guys, I'm fairly new to this but I wanted to know how I can change the list pressed animation style in Xperia U? I mean the white background glow on pressing and holding any list button in menus or tabs or buttons, for example see the following photo (attachments), how the background of the notification has turn to white (fading).
I thought there might be a. 9.png file for that, but when I started searching for in the drawable folder of framework-res.apk, I wasn't able to find it?
So I wanna know that am I searching wrongly or there is no such file and just a xml code which I'm not able to get my hands on because of lack of my knowledge of decompiling the apks. I tried decompiling it by apktool but it won't budge. Also to edit pngs I am using a simple technique (posted by a xda user, sorry for not recalling your name but thanks) that is to just open or extract the roms through 7zip and then just copy them back to the respective apk file. This seems to be working as I was able to create my own lockscreen. So please help me in finding where I'm going wrong.
Thanks in advanced...
You must decompile the framework-res.apk and then, search in /drawable-hdpi folder the image. Its name is notification-normal-bg.9.png or something like that. Edit it with photoshop, and, when you have all that you want, compile the framework-res.apk and change it in your phone. Do a backup before do anything.
Enviado desde mi ST25i usando XDA Premium HD app
Slash137 said:
You must decompile the framework-res.apk and then, search in /drawable-hdpi folder the image. Its name is notification-normal-bg.9.png or something like that. Edit it with photoshop, and, when you have all that you want, compile the framework-res.apk and change it in your phone. Do a backup before do anything.
Enviado desde mi ST25i usando XDA Premium HD app
Click to expand...
Click to collapse
First of all thanks for your advice, but as it turns out the Sony isn't using that file?? And also I just did it with my normal method (described before), so I guess it might be a problem that I'm not decompiling it, but as it turns out I don't know exactly how to. So can you suggest me a Guide or something like that through which I can learn to do it without any problems...?? Because last I time tried it, I got a failed app! Please help, thanks in advance...
divinemamgai said:
First of all thanks for your advice, but as it turns out the Sony isn't using that file?? And also I just did it with my normal method (described before), so I guess it might be a problem that I'm not decompiling it, but as it turns out I don't know exactly how to. So can you suggest me a Guide or something like that through which I can learn to do it without any problems...?? Because last I time tried it, I got a failed app! Please help, thanks in advance...
Click to expand...
Click to collapse
I have successfully figured out the first part of the problem, the sony uses the .png starting with semc... So I just searched for semc_list_.... And found what I was looking for. But still how to decompile system apps in Xperia based devices succesfully..? Please someone..?
divinemamgai said:
I have successfully figured out the first part of the problem, the sony uses the .png starting with semc... So I just searched for semc_list_.... And found what I was looking for. But still how to decompile system apps in Xperia based devices succesfully..? Please someone..?
Click to expand...
Click to collapse
You must use APKTool for decompile. When you got it it's so easy to use.
Slash137 said:
You must use APKTool for decompile. When you got it it's so easy to use.
Click to expand...
Click to collapse
Yeah buddy, it was pretty easy. And I figured out what I was doing wrong before, I wasn't including framework-res.apk and SemcGenericUxp.apk in the tool to help it compile the resources! Thanks.
divinemamgai said:
Yeah buddy, it was pretty easy. And I figured out what I was doing wrong before, I wasn't including framework-res.apk and SemcGenericUxp.apk in the tool to help it compile the resources! Thanks.
Click to expand...
Click to collapse
Can you suggest me a method of porting roms perfectly...?
divinemamgai said:
Can you suggest me a method of porting roms perfectly...?
Click to expand...
Click to collapse
Don't worry GOT.. IT....

[Q] How to remuve menus from settings.apk?

i want to ask if any body tried already to remove menus from settings like i want to hide the about phone on stock settings.apk deodexed on jb 4.2 i want to get rid of some menus in my settings i ported dakele os to mtk6589 so i would like to ask if how to? since it is a ported rom some of the menus are not a feature of my stock rom and i want to hide or remove them just to prevent boot loop for example like this in the attachment below i want to get rid of the ad block or sensor_cali .. ..
i badly need help kinda excited to release my ported rom hehe
TIA:good::fingers-crossed:
uppdate: ive done some experement in settings_header.xml i tried to change the name of about phone to phone only and it works so my conclusion is settings_headers changes the appearance of the settings menu
I have not used ICS or JB much but it's possible.
I know exact process of how to do that on GB but not ICS. You'll have to decompile Settings.apk and look for the xml which controls the layout of app.
iamareebjamal said:
I have not used ICS or JB much but it's possible.
I know exact process of how to do that on GB but not ICS. You'll have to decompile Settings.apk and look for the xml which controls the layout of app.
Click to expand...
Click to collapse
yes i think its the settings.header yet everytime i change something in that xml,recompile success, and push my mooded settings but the problem is it wont open systemUI stops everytime i try to open settings from the noti. bar and there's no icon for settings in the drawer ive check the permission its rw-r-r and its correct . ive also tried drag and drop signing still the same problem
marc2777 said:
yes i think its the settings.header yet everytime i change something in that xml,recompile success, and push my mooded settings but the problem is it wont open systemUI stops everytime i try to open settings from the noti. bar and there's no icon for settings in the drawer ive check the permission its rw-r-r and its correct . ive also tried drag and drop signing still the same problem
Click to expand...
Click to collapse
Which tool are you using to compile apps? And System apps don't need to be signed. Maybe that's the problem.
If you want, you can check out Ultimate Guide in Android Development Section which shows how to correctly compile system apps. Its sticky(noun, not an adjective ) there
iamareebjamal said:
Which tool are you using to compile apps? And System apps don't need to be signed. Maybe that's the problem.
If you want, you can check out Ultimate Guide in Android Development Section which shows how to correctly compile system apps. Its sticky(noun, not an adjective ) there
Click to expand...
Click to collapse
sorry gotta bad english here tnx gonna check it out
marc2777 said:
sorry gotta bad english here tnx gonna check it out
Click to expand...
Click to collapse
editing the xmls dose not change anything any suggestions but using apk multi tool works it didnt cause any systemui fc and the settings is properly installed but as i said as i edit xml it didnt change anything in the setting menus
marc2777 said:
editing the xmls dose not change anything any suggestions but using apk multi tool works it didnt cause any systemui fc and the settings is properly installed but as i said as i edit xml it didnt change anything in the setting menus
Click to expand...
Click to collapse
Then maybe that xml doesn't change it
Or, did you delete the modded files from keep folder?
marc2777 said:
editing the xmls dose not change anything any suggestions but using apk multi tool works it didnt cause any systemui fc and the settings is properly installed but as i said as i edit xml it didnt change anything in the setting menus
Click to expand...
Click to collapse
Are you extracting the resources.arsc from the new apk and dropping it back again after compiling?
XperienceD said:
Are you extracting the resources.arsc from the new apk and dropping it back again after compiling?
Click to expand...
Click to collapse
since im using multi tool i dont know if that resource.asrc is original from my original apk for example i already compiled my modded settings.apk shud i keep the resource.asrc or shud i get the resource.asrc from the original and unmodded settings.apk?
1757 fuchet
iamareebjamal said:
Then maybe that xml doesn't change it
Or, did you delete the modded files from keep folder?
Click to expand...
Click to collapse
ive read alot of tuts on how to add apps on settings menu yes it is possible since it is possible to add then maybe it is possible to delete ive tried to reverse the tuts on adding to delete the menus specially on the settings_header.xml and strings tried to edit those xmls after editing recompile i directly push it to my phone i tried to push unsigned and signed apks yet i get same results nothing change i got a feeling that resource.asrc has something to do with this
marc2777 said:
ive read alot of tuts on how to add apps on settings menu yes it is possible since it is possible to add then maybe it is possible to delete ive tried to reverse the tuts on adding to delete the menus specially on the settings_header.xml and strings tried to edit those xmls after editing recompile i directly push it to my phone i tried to push unsigned and signed apks yet i get same results nothing change i got a feeling that resource.asrc has something to do with this
Click to expand...
Click to collapse
If you've read my guide, you would know that you'll have to add resources.arsc from new app to old app and then push old app to your phone
iamareebjamal said:
If you've read my guide, you would know that you'll have to add resources.arsc from new app to old app and then push old app to your phone
Click to expand...
Click to collapse
can you lead mo to ur link/? so this means the created resources.asrc from my mooded apk will be transfered to my original apk am i ryt? and ill push my old apk ?
marc2777 said:
can you lead mo to ur link/? so this means the created resources.asrc from my mooded apk will be transfered to my original apk am i ryt? and ill push my old apk ?
Click to expand...
Click to collapse
Here you go
http://forum.xda-developers.com/showthread.php?t=2326393
I hope its good enough to make it clear
iamareebjamal said:
Here you go
http://forum.xda-developers.com/showthread.php?t=2326393
I hope its good enough to make it clear
Click to expand...
Click to collapse
tnx im reading this but as i check my log something is weird in the res forlder of settings.apk since this is a ported rom there are some folders that multi tool cant read
marc2777 said:
tnx im reading this but as i check my log something is weird in the res forlder of settings.apk since this is a ported rom there are some folders that multi tool cant read
Click to expand...
Click to collapse
Upload your apk.
XperienceD said:
Upload your apk.
Click to expand...
Click to collapse
http://www.4shared.com/account/home.jsp#dir=VTulsuo_ everything you need is in that link i hope you can help me im havng a hard time T_T
marc2777 said:
http://www.4shared.com/account/home.jsp#dir=VTulsuo_ everything you need is in that link i hope you can help me im havng a hard time T_T
Click to expand...
Click to collapse
Access denied?
XperienceD said:
Access denied?
Click to expand...
Click to collapse
access denied ? where sir? in the links?
marc2777 said:
access denied ? where sir? in the links?
Click to expand...
Click to collapse
Works now, but no Settings.apk?
XperienceD said:
Works now, but no Settings.apk?
Click to expand...
Click to collapse
o my god my settings.apk is gone reuploading demet

[Q] Help Required Editting framework.jar

Hi, I am hoping that one of the Android developers on here might be able to give me a bit of advice please regarding editting my 'framework.jar' file.
I have a Jiayu G3 phone running Android Jelly Bean 4.1.2 but my caller ID is not functioning properly because it is not matching local & international numbers. Having done a lot of searching it appears that this is probably due to the parameters in the 'framework.jar' file as per this post on xdadevelopers here
I have succesfully decompiled the 'framework-res.apk' file using apktools and confirmed that the 'config_use_strict_phone_number_comparation' variable is set to false. However, I am having trouble decompiling the 'framework.jar' file.
I have copied the 'framework.jar' file from my phone and opened it in a Jave decompiler. However, all I am presented with is the following:
Code:
META-INF
MANIFEST.MF
preloaded-classes
(See attached image)
In the xda post it says the following:
II) Check for and fix MIN_MATCH constant in telephony framework
1) Decompile framework.jar
2) Open smali/android/telephony/PhoneNumberUtils.smali
3) Search for MIN_MATCH constant and set it to 0x7
Click to expand...
Click to collapse
...but I don't appear to have that in mine.
Am I doing something wrong.
If anyone could offer any advice I would be very grateful.
Many thanks
Russell
P'S. I tried replying about this in the original xda post itself but I don't have authorisation to post in the developers section so I thought I would try here instead.
So, is no one able to help me with this then. All the searching I've done indicates that when I decompress 'framework.jar' then I should have 'classes.dex' inside. However I don't have that.
Can anyone explain to me why this is please before I pull the rest of my hair out.
Thanks
Russell_S said:
So, is no one able to help me with this then. All the searching I've done indicates that when I decompress 'framework.jar' then I should have 'classes.dex' inside. However I don't have that.
Can anyone explain to me why this is please before I pull the rest of my hair out.
Thanks
Click to expand...
Click to collapse
You have to use apktool and apply the command to decompile..
eg.
apktool d framework.jar
this in cmd, will create a new folder named framework.jar.out, then you navigate inside this folder were all the smali's files are etc..
PS. you can't open framework.jar in java decompile, you can open framework.jar extract the classes.dex then use dex2jar tool and turn it back into framework_classes.jar this is the one that can be viewed with java decompilers
Does annybody know....
Where i can find a clean Settings.apk for the GE 4.3 (i9505) that i can mod? (Decompile/Recompile)
frapedas said:
You have to use apktool and apply the command to decompile..
eg.
apktool d framework.jar
this in cmd, will create a new folder named framework.jar.out, then you navigate inside this folder were all the smali's files are etc..
PS. you can't open framework.jar in java decompile, you can open framework.jar extract the classes.dex then use dex2jar tool and turn it back into framework_classes.jar this is the one that can be viewed with java decompilers
Click to expand...
Click to collapse
Thanks for the help. I'm away this week but I'll give it a go next weekend when I'm back.
Sent from my GT-I9100 using Tapatalk 2
Force it into submission
be rough with it
Sent from my HTC One using Tapatalk 4
Russell_S said:
then I should have 'classes.dex' inside. However I don't have that.
Click to expand...
Click to collapse
Are you using a deodexed ROM?
XperienceD said:
Are you using a deodexed ROM?
Click to expand...
Click to collapse
You've got me there. How would I find out?
Sent from my GT-I9100 using Tapatalk 2
Ok, I'm gradually learning here. Having done a bit of research it appears that my rom is odexed (I have .apk and .odex files in my /system/app folder).
I'm assuming then that this will scupper my plans to edit my framework.jar file.
Sent from my GT-I9100 using Tapatalk 2
Russell_S said:
I'm assuming then that this will scupper my plans to edit my framework.jar file.
Click to expand...
Click to collapse
No no, you just need to deodex your ROM then, luckily for you I've got a little thread here - [Info/How-To/Tools] Deodexing Made Easy... - which will help you with that, obviously ignore the Xperia Z Users part and give the rest a read.
XperienceD said:
No no, you just need to deodex your ROM then, luckily for you I've got a little thread here - [Info/How-To/Tool] Deodexing Made Easy... - which will help you with that, obviously ignore the Xperia Z Users part and give the rest a read.
Click to expand...
Click to collapse
Thanks very much for that, I shall digest the information while I'm on holiday ready to act on it when I get back.
I'll let you know how I get on.
Sent from my GT-I9100 using Tapatalk 2

Categories

Resources