[Q] How to Disable red pattern trail when wrong pattern is entered - Sony Xperia ZL

Hi,
Can anyone provide me a solution to disable the red coloured pattern trail in lockscreen when wrong pattern is entered.
I have tried with gravity box, but not working, Please help.Thanking you in advance.

midhunbhayi said:
Hi,
Can anyone provide me a solution to disable the red coloured pattern trail in lockscreen when wrong pattern is entered.
I have tried with gravity box, but not working, Please help.Thanking you in advance.
Click to expand...
Click to collapse
Bro its quite hard. You should be able to trace out under which 'ACTIVITY name' lock screen layout is there and the corresponding Classname which gets executed and you should change the hash value for the corresponding colour in code level and then compile it into a apk file.You should know to compile a new rom for doing this.

midhunbhayi said:
Hi,
Can anyone provide me a solution to disable the red coloured pattern trail in lockscreen when wrong pattern is entered.
I have tried with gravity box, but not working, Please help.Thanking you in advance.
Click to expand...
Click to collapse
Gravity box worked fine for me.

gokukaushik said:
Bro its quite hard. You should be able to trace out under which 'ACTIVITY name' lock screen layout is there and the corresponding Classname which gets executed and you should change the hash value for the corresponding colour in code level and then compile it into a apk file.You should know to compile a new rom for doing this.
Click to expand...
Click to collapse
For this small change , Why should i know to compile a new ROM .??? Are You kidding??

midhunbhayi said:
For this small change , Why should i know to compile a new ROM .??? Are You kidding??
Click to expand...
Click to collapse
Hmm..... Well,how else can you do it if you want to change a functionality in the code.I guess you know that all the apk are compiled versions of code and other resources.You need to have source code to make your changes not the compiled one.Another possiblility is that you can decompile the code to from dex files to java files and make your changes and recompile it back to .dex files, patch it back to your apk file for it to work properly.I am not aware of any tools/foolproof method that could do it properly.Educate me if you know how to do it without compiling a new rom.

gokukaushik said:
Hmm..... Well,how else can you do it i..................................Educate me if you know how to do it without compiling a new rom.
Click to expand...
Click to collapse
Modify the apk and recompile it and put back into the phone using any file explorer giving appropriate permission is enough to do this. There is no need to compile the entire ROM , my friend.

Could you elaborate the procedure to do it.How to modify a apk file.only images and layout files files could be decompiled and patched.As far as my experience goes even if you decompile dex to jar,the resulting code after patching cannot be recompiled back to workable dex files.only possible way to do it is using smali file generation. Believe me it is better to go with compiling a new rom from source rather than learning smali language for your patch.
Sent from my C6502 using XDA Free mobile app

Related

[Q] The secret of editing framework-res.apk

Hello everyone!
I have tried and tried to customize framework-res.apk, and what a nightmare!! I made a script that works all fine when using Defrost 2.9a and 2.5, but if i try Cyanogenmod or Defrost 3.0, i get force close. When I modify both xml and images.
What am I doing wrong?
Bestest of best regards,
Jonas Hald
Check this initially:
http://forum.xda-developers.com/showthread.php?t=722993
Daelyn said:
Check this initially:
Click to expand...
Click to collapse
As i get it, that doesnt work when I edit the xml, then it has to be recompiled?
Sure
If u change the code it has to be Recompiled ;-)
xtcislove said:
Sure
If u change the code it has to be Recompiled ;-)
Click to expand...
Click to collapse
Yeah, so I do
But i get force close in cyanogen and DF 3.0 - but the Circle Mod online framework modifier can do it, without force close.
Are you sure its not semi-edit the files? I think there are just various versions of the framework.
xtcislove said:
Are you sure its not semi-edit the files? I think there are just various versions of the framework.
Click to expand...
Click to collapse
Semi-edit the files?
So i'm trying to edit the status bar background.png file. I've made a copy of the framework, changed it to zip, replaced file, changed back to apk. But the systems folder is read only. how do i go about changing it to 'write' so I can replace the frameworks???
Also, if my background is transparent, do i also need to change something in the xml if I want the new background to be a solid color

Could someone test a compile of mms.apk for me?

I've been debugging my mms themed app and have come up on a problem. Everything works great, but even a simple decompile/recompile seems to break the search messaging function. I get no errors during decompile/recompile, and no installation errors. Search just doesn't work. I'll post a logcat in case somebody can see something i missed. I'm using apk manager 5.0.2 and have also tried multi-tool 1.0.2.
-My question is, could someone decompile, then recompile the stock 4.0.3 mms.apk, then try to search via the magnifying glass at the bottom? Mine always FC's when i hit search. Thanks for the help guys.
also, i cannot decompile with dependencies, as it tells me that the framework-res.apk isn't the correct dependant, try again. decompiling without dependants seems to work fine, but i have a feeling i'll have to be able to get it with dependants since i think the search function uses external sources.
Exactly same problem with gingerbread mms.apk from LG Optimus Black.
If I retouch images or smali code, no problem at all... but when try to modify a .xml inside /values/ and then replace resources.asrc, search function returns a FC!!!!
It must be a format problem, but how to bypass this issue?
Regards.
Huexxx said:
Exactly same problem with gingerbread mms.apk from LG Optimus Black.
If I retouch images or smali code, no problem at all... but when try to modify a .xml inside /values/ and then replace resources.asrc, search function returns a FC!!!!
It must be a format problem, but how to bypass this issue?
Regards.
Click to expand...
Click to collapse
I bet on recompiling, you are including extra XML files you never edited. Apktool has a nasty bug of adding random extra '\' to files. Check your edited files too.
Hmmmm odd, apkmultitool doesn't introduce the bug you report. And I blacked out a stock 4.0.4 apk and search is fine.
good day.
lol i forgot about this thread. I fixed it a long time ago Turned out to be a bug in the version of apktool i was using.
chopper the dog said:
Hmmmm odd, apkmultitool doesn't introduce the bug you report. And I blacked out a stock 4.0.4 apk and search is fine.
good day.
Click to expand...
Click to collapse
artvandelay440 said:
lol i forgot about this thread. I fixed it a long time ago Turned out to be a bug in the version of apktool i was using.
Click to expand...
Click to collapse
/me slaps chopperthedog upside the head with nitsuj17

[Guide][DDKQ8] Remove "Swipe screen to unlock" | Center lockscreen Clock | more...

[Guide][DDKQ8] Remove "Swipe screen to unlock" | Center lockscreen Clock | more...
No guide can explain every bit of information a beginner needs to know to achieve the wanted results. You need to make an effort and have patience to learn what you need.
This guide assumes that you have some basic knowledge like managing files on your phone, setting permissions, using command prompt on your computer. I will not explain what is ADB or Root Explorer or how to use them. google can help with that.
The steps described here are the steps i did on my computer (windows) and my rom (rooted, deodexed). i cannot promise to offer support, i'm a semi-noob myself.
standard disclaimer applies: Do it at your own risk & Backup your system before trying any of this.
What you will need:
• apk file compiler/decompiler: i will use apktool
• archive manager: winrar, 7zip
• Text editor : Notepad++ is recommended
• A way to manage files on the phone: ADB, Android Commander, Root Explorer
• an image editor (for some parts): Photoshop, Gimp, Paint.NET...
Part I. Decompiling
1. First you need to download and install apktool which allows you to decompile apk files and rebuild them. some people prefer APK Manager but i find apktool simpler to use.
Download these two files and export them to your Windows directory.
apktool-install-windows-r04-brut1.tar.bz2
apktool1.4.3.tar.bz2
2. Pull the file framework-res.apk from /system/framework/ on your phone and place it on your computer. for exemple under C:\lockscreen\
3. Now open a command prompt window and change the current directory to C:\lockscreen\ by entering the command
Code:
cd c:\lockscreen
Then decompile your apk file by entering the following command
Code:
apktool d framework-res.apk
This will create a new folder named framework-res within it are the decompiled contents of framework-res.apk
Part II. Editing files
Remove "Swipe screen to unlock"
1. Open \framework-res\res\values\strings.xml
2. Find lockscreen_unlock_guide_text
3. In that line, delete Swipe screen to unlock
Note: \res\values\strings.xml is for English language. if you're using a differnet language on your phone then you have to edit the corresponding strings.xml file in the proper values directory. for exemple if you're using French then you'll have to edit the strings.xml file under values-fr
Change the date format on the lock screen
1. Open \framework-res\res\values\strings.xml
2. Find mid_month_day_mid_wday_no_year
3. Replace E. d MMM. with the format you want.
Reference:
d numeric Day of the Month (1)
dd numeric Day of the Month (01)
EEE short Day of the week (Mon)
EEEE long Day of the week (Monday)
M numeric Month (1)
MM numeric Month (01)
MMM short Month (Jan)
MMMM long Month (January)
yy short year (09)
yyyy long year (2009)
exemple: yyyy MMMM d, EEEE to display 2012 March 12, Monday
Center the lockscreen clock and date
Explaining this mod step by step would take too long. All the editing is done in a single file \res\layout\zzz_keyguard_screen_clockwidget.xml
I uploaded the edited file (not compiled). All you have to do is replace you original file under framework-res\res\layout\ with this one before you compile. Advanced users can take a look at it, compare it with the original and edit it if they want/can.
I also replaced the charging icon that appears on the lockscreen. The png file is inluded with the xml file. To apply it, after you're done with Part III of this guide, open your modded apk file with winrar/7zip, browse to \res\drawable-mdpi\ then drag the png and drop it in the apk.
Part III. Creating the modded file
After we're done editing the xml files, we will recompile them and update the original apk with the modded ones.
1. Go back to that command prompt window and enter the following command to recompile the files
Code:
apktool b framework-res
(no .apk at the end)
when it's done, you will find a new folder under framework-res named build where the compiled files are placed.
2. Go to framework-res\build\apk\ copy the resources.arsc file
3. Open your original framework-res.apk file with an archive manager like winrar or 7zip (do not extratct, open with) and paste resources.arsc inside it.
4. If you used the edited zzz_keyguard_screen_clockwidget.xml file, then you have also to copy the compiled version from \buid\apk\layout\ and paste it under the same path inside your apk file.
Now your framework-res.apk is modded and ready to be installed.
5. Place the apk in your phone under /system/framework/ and set its permissions to rw-r--r--
Note: Some may prefer to copy the file to /system/ first, set the permissions and then move it to /system/framework
6. Reboot
Changing the font of the clock:
For some reason, this clock is not actual text, it does not use a font. Instead, the numbers are png files placed under /res/drawable-mdpi/
So to change the font, you will have to make new png files for each number, plus one for the column )
I uploaded the ones i made. you can take a look at them to note the dimensions and names of the files. you have to use those same names. also notice that there are two different files for the number one.
After you're done modding your framework-res.apk and just before you send it your phone, open it with winrar and browse to /res/drawable-mdpi/ then drag the png files you made and drop them inside the apk.
Flashable zips:
lockscreen_text_patch_DDKQ8.zip => remove "Swipe screen to unlock" text
LockscreenMod_Stock_DDKQ8.zip => Centered clock and mod with replaced clock font for stock DDKQ8
dali47 said:
This is a short guide explaining how to remove the "Swipe screen to unlock" text from the new galaxy-note-like lockscreen available in the new DDKQ8 rom.
i will add more details if asked for.
Click to expand...
Click to collapse
Maybe you know how to make the date display more "acceptable"? I hate how it looks in stock...
I would really appreciate a flashable zip to solve this problem.
Nice
FROM XDA APP
PRESS THNX IF I HELPED YOU
U can remove everything from lockscreen
herpderp © aint got money to pay to my fish
Thanks..!! was searching for this..!!
Will try this today or tomorrow...can anyone tell or make a guide on how to enable crt animation on stock 2.3.6 DDKQ8
Sent from my GT-S5830 using xda premium
iSxy said:
Will try this today or tomorrow...can anyone tell or make a guide on how to enable crt animation on stock 2.3.6 DDKQ8
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Same way as every other
herpderp © aint got money to pay to my fish
Hey Can u tell the way by wich i can use this lockscreen in lewa rom....
if i want to replace stock rom lockscreen, i need to replace framework-res.apk only, right?
1 Question..
Can we just replace that Swipe to unlock text to our own custom one?
wassupadi said:
Hey Can u tell the way by wich i can use this lockscreen in lewa rom....
Click to expand...
Click to collapse
i dont think u can
FROM XDA APP
PRESS THNX IF I HELPED YOU
iSxy said:
1 Question..
Can we just replace that Swipe to unlock text to our own custom one?
Click to expand...
Click to collapse
Yes
FROM XDA APP
PRESS THNX IF I HELPED YOU
Good guide.
Sent from my GT-S5830 using xda premium
kmarci said:
Maybe you know how to make the date display more "acceptable"? I hate how it looks in stock...
I would really appreciate a flashable zip to solve this problem.
Click to expand...
Click to collapse
how do you mean acceptable?
i can only make a flashable zip for specific roms and themes. maybe i will see what roms out there are based on DDKQ8 and make a couple of zips.
i usually prefer making guides than making falashable zips so anyone can apply the mod on it's own specific system.
wassupadi said:
Hey Can u tell the way by wich i can use this lockscreen in lewa rom....
Click to expand...
Click to collapse
the lockscreen it hard coded un the framework, maybe also some other files. i personally cnt do it. if you want to try to port it i can provide you with any files you need from stock DDKQ8
hanaxxaru said:
if i want to replace stock rom lockscreen, i need to replace framework-res.apk only, right?
Click to expand...
Click to collapse
not really. not all frameworks are compatible with all roms. it probably will not work. it needs to be ported. but you can try of you want. just make a backup of your system before.
iSxy said:
1 Question..
Can we just replace that Swipe to unlock text to our own custom one?
Click to expand...
Click to collapse
sure you can. just replace "swipe screen to unlock" with whatever you want. there might be some limitations for how much text you can fit. i didnt try it.
K ty..ill try tomorw for custom text.. Anyone tell me some good line to write?
Sent from my GT-S5830 using xda premium
dali47 said:
how do you mean acceptable?
i can only make a flashable zip for specific roms and themes. maybe i will see what roms out there are based on DDKQ8 and make a couple of zips.
i usually prefer making guides than making falashable zips so anyone can apply the mod on it's own specific system.
Click to expand...
Click to collapse
Something in this format: year. month day., name of the day. For today: 2012. march 12., monday
I'm on same rom as you are (stocklite v5). Would you please help me how to change the date display?
kmarci said:
Something in this format: year. month day., name of the day. For today: 2012. march 12., monday
I'm on same rom as you are (stocklite v5). Would you please help me how to change the date display?
Click to expand...
Click to collapse
ok, i figured it out
open \res\values\strings.xml
find mid_month_day_mid_wday_no_year
in that line, change E. d MMM. into yyyy. MMMM d., EEEEE
re-build and replace resources.arsc in original apk
posibilities
is it possible to move the framework thing to another stock rom using maybe titanium back up?
dali47 said:
ok, i figured it out
open \res\values\strings.xml
find mid_month_day_mid_wday_no_year
in that line, change E. d MMM. into yyyy. MMMM d., EEEEE
re-build and replace resources.arsc in original apk
Click to expand...
Click to collapse
Hey dude, you're unbeleivable! Thanks a lot! (Unfortunatelly I can only hit once the thanks button... )
torchwolfery said:
is it possible to move the framework thing to another stock rom using maybe titanium back up?
Click to expand...
Click to collapse
not sure what "thing" you mean. but no. Titanium Backup backs up apps and settings. the lockscreen is neither an app nor a setting.
kmarci said:
Hey dude, you're unbeleivable! Thanks a lot! (Unfortunatelly I can only hit once the thanks button... )
Click to expand...
Click to collapse
glad to help

[Q][DISCUSSION] Lockscreen Vol Media Skip

Hey guys, Seems like alot of users in the SGSIII scene can make this mod happen but refuse to explain how ?!
Im personally dying for the source for "lockscreen media skip with volume key hold" source.. although it seems no one is keen to share the source.
We all know and love CRT OFF & 4 way reboot guides source which are readily available for the community right here in this very section.
Could someone please man up and write a guide for media skip, or at least share the source.
My writing skills are awful so a guide from me wouldn't be any good, but as for the source: VolumeLongPressDiff.zip for the smali that can be applied to the relevant framework JAR files from http://forum.xda-developers.com/showthread.php?t=1770564.
For the original Java code (it's originally from CM, I believe) which is not what you want, but fun to read nevertheless, head here and follow the github link in the code.
I appreciate your reply, The diff is great but does it apply to the current 4.1.2 ? Also what methods are we using on windows to apply the diff ? What methods are we using to apply the diff at all, im assuming using linux ?!
I havnt had much luck myself to be honest.. would love someone to explain this further.
fOmey said:
I appreciate your reply, The diff is great but does it apply to the current 4.1.2 ?
Click to expand...
Click to collapse
There's only one way to find out. I'm running 4.1.1 with JKay's framework which already has the volume skip key feature, so I've never tried to apply the patch myself. I suspect it does since if you look at the diff, it only adds new lines of code.
Also what methods are we using on windows to apply the diff ? What methods are we using to apply the diff at all, im assuming using linux ?!
Click to expand...
Click to collapse
I use the tried and true patch program myself, but odds are the patch won't apply cleanly. You can go through the .rej files yourself and see what patch couldn't apply (look at the context of the rejected lines and find those lines in the smali file). When that happens, however, I just prefer to go through the diff myself and apply it manually.
You'll need to place the two smali files in the same folder as the patched PhoneWindowManager.smali. I don't know which JAR file you need to run through baksmali to get PhoneWindowManager.smali but you can look through Jakub's flashable ZIP files to see which JAR file he modified.
I have just unpacked the 4.1.2 android.policy.jar and inserted the Diff files and replaced the ones in the 4.1.2 jar. and it does not work. I am assuming as its for different JB versions. but My phone boots up with problems and FC . So no good
btemtd said:
I have just unpacked the 4.1.2 android.policy.jar and inserted the Diff files and replaced the ones in the 4.1.2 jar. and it does not work. I am assuming as its for different JB versions. but My phone boots up with problems and FC . So no good
Click to expand...
Click to collapse
I was afraid of that.. I had attempted to patch in linux using the diff file and it returned errors which I assume are the same cause of your bootloop..
Someone does have LK4 source, although is holding it very close to there chest and seem refuse to share..
qwerty12 said:
My writing skills are awful so a guide from me wouldn't be any good, but as for the source: VolumeLongPressDiff.zip for the smali that can be applied to the relevant framework JAR files from http://forum.xda-developers.com/showthread.php?t=1770564.
For the original Java code (it's originally from CM, I believe) which is not what you want, but fun to read nevertheless, head here and follow the github link in the code.
Click to expand...
Click to collapse
Maybe you can send me a sort-of guide, which I hopefully understand, and try to make a good tutorial out of it?

Quick settings theme/style

Hello
I'm using kitkat 4.4.4 and was wondering if there's any way to change the look of the quick settings panel - from image 1 to image 2?
I've tried using an xposed module called Flip Panels, or something like that, but after I reboot I get a systemui error.
Can anyone help, please?
Thanks
sconly said:
Hello
I'm using kitkat 4.4.4 and was wondering if there's any way to change the look of the quick settings panel - from image 1 to image 2?
I've tried using an xposed module called Flip Panels, or something like that, but after I reboot I get a systemui error.
Can anyone help, please?
Thanks
Click to expand...
Click to collapse
How did you do it for the screen shot?
levone1 said:
How did you do it for the screen shot?
Click to expand...
Click to collapse
I just used an image from google.
sconly said:
I just used an image from google.
Click to expand...
Click to collapse
My guess is that it is a custom rom. The dev probably just edited some xml files from systemui apk. I'm not on KK so can't look into it at the moment, but mess around a little with apktool, and see what you can figure out. Look for files in res/layout that seem to refer to quick settings, and also in res/values/dimens xml. It may also be a different version, like 4.3 vs 4.4 or something.

Categories

Resources