[HowTo] Reduce Home Button Lag - Disable Home button double click - Galaxy S III Android Development

As i you know, a Double click feature was implemented for the Home button on Samsung Roms to launch Vlingo on SGS2 and S-Voice on SGS3.
This feature may be seen a useless Lag because most of us don't use these apps, so this is a small how to disable it, this mod was based on Oliwe and Jkay mods, thanks to them.
You need to decompile android.policy.jar (get Smali here ), Edit "androidpolicyjar\com\android\internal\policy\impl\PhoneWindowManager.smali" and make these changes :
Code:
.line 2282
:cond_236
[COLOR=SeaGreen]++goto :cond_24b[/COLOR]
[COLOR=Red]--if-eqz v26, :cond_24b[/COLOR]
.line 2283
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomeKeyDoubleClickConcept:Lcom/android/internal/policy/impl/PhoneWindowManager$HomeKeyDoubleClickConcept;
move-object/from16 v41, v0
invoke-virtual/range {p2 .. p2}, Landroid/view/KeyEvent;->getAction()I
Code:
.line 2289
const/16 v41, 0x0
move/from16 v0, v41
move-object/from16 v1, p0
iput-boolean v0, v1, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomePressed:Z
[COLOR=SeaGreen]++invoke-virtual/range {p0 .. p0}, Lcom/android/internal/policy/impl/PhoneWindowManager;->launchHomeFromHotKey()V[/COLOR]
.line 2291
if-nez v26, :cond_2a3
Code:
.line 2371
[COLOR=SeaGreen]++goto :cond_332[/COLOR]
[COLOR=Red]--if-eqz v26, :cond_332[/COLOR]
.line 2372
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomeKeyDoubleClickConcept:Lcom/android/internal/policy/impl/PhoneWindowManager$HomeKeyDoubleClickConcept;
move-object/from16 v41, v0
invoke-virtual/range {v41 .. v41}, Lcom/android/internal/policy/impl/PhoneWindowManager$HomeKeyDoubleClickConcept;->setHomeDownEventSent()V
You may get a different conditions Ids, track the methods name.
Compile & Enjoy!

Thanks Mate
As always

Is this already implemented in your WanamLite 1.4?
And as always: Thank you for your great work!
Sent from my GT-I9300 using xda app-developers app

mc-paulo said:
Is this already implemented in your WanamLite 1.4?
And as always: Thank you for your great work!
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Yes, it's implemented on my V1.4.

Is this any different to disabling it in S voice settings?
Edit: Well, actually it is different as rom developers can implent it in their roms.
Great work!
Sent from my GT-I9300 using xda premium

I don't suppose there is a flashable zip as opposed to all that decompiling mallarkey :good:

jonny68 said:
I don't suppose there is a flashable zip as opposed to all that decompiling mallarkey :good:
Click to expand...
Click to collapse
+1
Sent from my GT-I9300 using Tapatalk 2

It would be cool if we could somehow just minimize the wait for the second click, this would keep functionality and reduce the lag to a minimum.
–—–—–—–—–—–—–—–—
tapatalked from Galaxy SIII

jonny68 said:
I don't suppose there is a flashable zip as opposed to all that decompiling mallarkey :good:
Click to expand...
Click to collapse
+1 for that, please.
GT-I9300 cihazımdan Tapatalk 2 ile gönderildi

A flashable zip would be great
Sent from my GT-I9300

Why do not you turn off double click from s-voice application itself.
Just launch the application,press menu softkey.
Settings will popup.
Uncheck launch S voice below language. Very much more simple.
Cheers
Sent from my GT-I9300 using xda premium

mariosraptor said:
Why do not you turn off double click from s-voice application itself.
Just launch the application,press menu softkey.
Settings will popup.
Uncheck launch S voice below language. Very much more simple.
Cheers
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
This won't disable double click.

Just tried turning off double click in S-Voice settings, it halves the amount of time it takes to go back to the home screen.

Hi
Can someone make a flashable CWM Zip ?
Thanks a lot.

wanam said:
This won't disable double click.
Click to expand...
Click to collapse
Yes it does. Just try it.
Sent from my GT-I9300 using xda premium

mariosraptor said:
Yes it does. Just try it.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
I can't test it as i don't use this app, but i think you are right, i just checked the sources, and Yes it's supported :
Code:
.line 2269
.local v4, attrs:Landroid/view/WindowManager$LayoutParams;
:goto_1f8
move-object/from16 v0, p0
iget-boolean v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomeDoubleClickBehavior:Z
move/from16 v41, v0
if-eqz v41, :cond_22f
if-eqz v18, :cond_22f
const/16 v26, 0x1
.line 2271
.local v26, mSupportDoubleClick:Z
Anyway this mod will still useful if your Rom don't include S-voice .

It would be great if you could also implement long press volume to skip songs mod from sgs2. It's also a android.policy mod.

aydc said:
It would be great if you could also implement long press volume to skip songs mod from sgs2. It's also a android.policy mod.
Click to expand...
Click to collapse
+1
Sent from my GT-I9300 using xda app-developers app

wanam said:
I can't test it as i don't use this app, but i think you are right, i just checked the sources, and Yes it's supported
Anyway this mod will still useful if your Rom don't include S-voice .
Click to expand...
Click to collapse
I do not know much about coding. But i am glad that Sammy left us the choice like Apple has.
In the end i just want to say Thank you for your work. I have been using your roms on my S2 also. Now i have your stock deodexed one
Cheers m8!!!
Sent from my GT-I9300 using xda premium

aydc said:
It would be great if you could also implement long press volume to skip songs mod from sgs2. It's also a android.policy mod.
Click to expand...
Click to collapse
I'm missing this feature big time

Related

Marketv2.2.11 for Froyo

This is tested on Kaoscinatev2.
Flash in CWM.
http://www.megaupload.com/?d=BMOBGPL7
V3?
Sent from my SCH-I500
aes55 said:
This is tested on Kaoscinatev3.
Flash in CWM.
http://www.megaupload.com/?d=BMOBGPL7
Click to expand...
Click to collapse
True, there are 3 versions of kaosinate, but V2 is the most current at this point.
Kaosinate V2 CyanogenMod6
aolander said:
True, there are 3 versions of kaosinate, but V2 is the most current at this point.
Kaosinate V2 CyanogenMod6
Click to expand...
Click to collapse
I believe v3 was released in irc
What's the irc chat
Sent from my SCH-I500 using XDA App
What was fixed in V3?
Sent from my DROIDX using XDA App
iifuzz said:
What's the irc chat
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
Its the fascinate irc room....its been around since the phone came out.......
V3 was supposed to fix bt....but i don't think it did
so now that v3 is officially out, the zip in the op is NOT working for me... starts an fc loop.
anyone have market 2.2.11 working on v3?

[MOD][JB][ICS]FM Radio app working without headset

JB 4.3 version - http://d-h.st/wjj
JB version from XZ 4.2 - http://d-h.st/4cM
JB version from XZ - http://d-h.st/KKs
JB version - http://d-h.st/Y49
ICS version - http://d-h.st/fty
Just replace the original one with Root Explorer in /system/app, change permissions, owner and delete Radio3.odex (if your rom is not deodexed).
It's working! Thank You!
Sent from Xperia T - Tapatalk2
And the sound is good enough? Interferences?
Try It takes one minute
Sent from Xperia T - Tapatalk2
Just have to ask:
Are you, the owner of peetr_, the same person as the owner of peterkoo1?
Hi
Can you make it for Xperia S please ? or tell what value must change
here is Xperia S apk
Thanks for your work!
only works with root permissions?
xVenator said:
Just have to ask:
Are you, the owner of peetr_, the same person as the owner of peterkoo1?
Click to expand...
Click to collapse
No, I'm other person
Sent from Xperia T - Tapatalk2
pajva said:
only works with root permissions?
Click to expand...
Click to collapse
Only works with root permissions? Can i try with no root phone?
Sent from my LT30p using xda premium
If you want to copy radio3.apk with root explorer you must have root...
Sent from Xperia T - Tapatalk2
grazie!
can you modified for xperia s? or giving us the values to do it ourselves?
Sent from my LT26i using xda premium
com/sonyericsson/fmradio/service/PhfHandler.smali
.method public isPhfConnected()Z - there is line "if-eqz v0", so delete it
sorry for my noobish question but where is Located? i havent found that directory ,i have found twoo folders but both are not contein the values above
Sent from my LT26i using xda premium
peetr_ said:
com/sonyericsson/fmradio/service/PhfHandler.smali
.method public isPhfConnected()Z - there is line "if-eqz v0", so delete it
Click to expand...
Click to collapse
Thank You
peetr_ said:
com/sonyericsson/fmradio/service/PhfHandler.smali
.method public isPhfConnected()Z - there is line "if-eqz v0", so delete it
Click to expand...
Click to collapse
I wanted to ask if you could kindly make the same changes to the FM radio for the Xperia series since 2011 I experienced a change as you mentioned above but I can not find the directory you indicated.
Could you change it?
I am attaching. Xperia apk FM Radio 2011
Thank you very much
So, I looked at this Radio.apk and I found this in FMRadioActivity.smali -
.line 901
invoke-virtual {v0}, Lcom/sonyericsson/fmradio/model/ChipModel;->isPhfInserted()Z
move-result v1
if-eqz v1, :cond_1 "try to delete this line and you will see"
Works perfect on the v too! Good job man..
peetr_ said:
So, I looked at this Radio.apk and I found this in FMRadioActivity.smali -
.line 901
invoke-virtual {v0}, Lcom/sonyericsson/fmradio/model/ChipModel;->isPhfInserted()Z
move-result v1
if-eqz v1, :cond_1 "try to delete this line and you will see"
Click to expand...
Click to collapse
i tried it ,Not working
decompile
re-compile
by x-tools by gagan

[req] Power Button next to Notification bar

How to make a power button on the status bar?
From my Xperia V via xda premium
NoobTW said:
How to make a power button on the status bar?
From my Xperia V via xda premium
Click to expand...
Click to collapse
http://www.fshare.vn/file/IQ8VSLRI8F/
Flash CWM
henry chip said:
http://www.fshare.vn/file/IQ8VSLRI8F/
Flash CWM
Click to expand...
Click to collapse
It works, but I want only one row(5 toggles), not Docomo style(10 toggles).
And I want the button in the statusbar not on the statusbar, like this:
http://forum.xda-developers.com/showthread.php?p=42720750
Thanks in advanced
From my Xperia V via xda premium
you can do like that
http://vnsony.vn/threads/4011/
ps: use google translate
you can do like that<br />
<br />
http://vnsony.vn/threads/4011/<br />
<br />
ps: use google translate
Click to expand...
Click to collapse
It's really difficult. (Both recompile apk and read the post )
But I'll try it. Thanks!
From my Xperia V via xda premium
NoobTW said:
It's really difficult. (Both recompile apk and read the post )
But I'll try it. Thanks!
From my Xperia V via xda premium
Click to expand...
Click to collapse
here it is...it is made of Xperia T SystemUI.apk, so i do not know, if it works on V...works great on T
just flash attached zip in Recovery and make nandroid backup first
EDIT: you need to be on deodexed ROM to have it working!!!
eybee1970 said:
here it is...it is made of Xperia T SystemUI.apk, so i do not know, if it works on V...works great on T
just flash attached zip in Recovery and make nandroid backup first
EDIT: you need to be on deodexed ROM to have it working!!!
Click to expand...
Click to collapse
Yes, it works. But the button becomes too big because I have a modded statusbar...
Can you make one with this SystemUI.apk?
http://db.tt/oMFnwKZj
From my Xperia V via xda premium
NoobTW said:
Yes, it works. But the button becomes too big because I have a modded statusbar...
Can you make one with this SystemUI.apk?
http://db.tt/oMFnwKZj
From my Xperia V via xda premium
Click to expand...
Click to collapse
attached...I did not test it....maybe you also have to change size of the lockbutton...you can do that in layout/status_bar_expanded_header.xml....in the line:
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/screen_lock_button" android:layout_width="50.0dip" android:layout_height="50.0dip" android:layout_marginTop="1.0dip" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" systemui:keyCode="26" />
you can see, that width and height are both set to 50dip....change them to lower...test around a bit
eybee1970 said:
attached...I did not test it....maybe you also have to change size of the lockbutton...you can do that in layout/status_bar_expanded_header.xml....in the line:
Code:
you can see, that width and height are both set to 50dip....change them to lower...test around a bit
Click to expand...
Click to collapse
Sorry for bad expression. The size id the power button is good! What I meant was the nav button...
My nav button was small (like the home button, 29 dpi), but my BACK button become too big after this mod.
From my Xperia V via xda premium
NoobTW said:
Sorry for bad expression. The size id the power button is good! What I meant was the nav button...
My nav button was small (like the home button, 29 dpi), but my BACK button become too big after this mod.
From my Xperia V via xda premium
Click to expand...
Click to collapse
above you last post is the version I made based on YOUR SystemUI.apk....so it should work now
eybee1970 said:
above you last post is the version I made based on YOUR SystemUI.apk....so it should work now
Click to expand...
Click to collapse
Thank you, it is working now!
From my Xperia V via xda premium
http://www.fshare.vn/file/TCAB1PBWTA/
I think it work...
try this
http://sonyviet.vn/diendan/threads/22125/

[MOD][Deodex][Odex][MDL][MF9]No Volume Warning Mod - Updated

This will remove the Raise volume above safe level? warning.
Thanks to elesbb for the smali tutorial located here http://forum.xda-developers.com/showthread.php?t=2226069
DO NOT USE THIS IF YOU ARE USING A ROM, MOD OR WHATEVER THAT MODIFIES FRAMEWORK.JAR
YOU WILL EITHER SOFT BRICK THE PHONE OR REMOVE THE OTHER MODS/THEMES INCLUDED IN THOSE FILES
THIS CAN BE USED IN CONJUNCTION WITH ANY OF MY OTHER MODS
I am not responsible for anything that happens to your phone. You do this at your own risk.
Downloads:
Download MF9 Deodexed No Volume Warning: http://www.androidfilehost.com/?fid=23060877489998462
MD5: bd99d8b98c7e725485d033dba3fdf666
Download MF9 Odexed No Volume Warning: http://www.androidfilehost.com/?fid=23060877489998461
MD5: 9d582285b11e2c4606c7d671912a4708
Download MDL Deodexed No Volume Warning: http://www.androidfilehost.com/?fid=23060877489998464
MD5: 8d5f6d1641c2aa7dfb7fc9ecbe82ea18
Download MDL Odexed No Volume Warning: http://www.androidfilehost.com/?fid=23060877489998463
MD5: 531a092043dd0ff2eaafb230c900b089
Mirrors:
Skydrive
Copy
Installation Instructions:
Make sure you install the right version for your phone. Go to settings| More| About device. Look at build number. Match that with the zip. If you are odexed flash odex and vice versa. If you aren't sure use a root file explorer and check in system/app. If you see .odex files you are odexed. If not you are deodexed.
Installing Custom Recovery
How To Use Odin
How To Use ADB To Install A Custom Recovery
Custom Recovery Method
How To Install A Zip With CWM
How To Install A Zip With TWRP
File Manager Method
How To Use A Root File Manager To Install A Mod
ADB Method
How To Use ADB To Install A Mod
Here is the modification to framework.jar. This is for people to use to build upon.
Code:
Change From
2123 :goto_3a5
2124 #calls: Landroid/media/AudioService;->onConfigureSafeVolume(Z)V
2125 invoke-static {v2, v1}, Landroid/media/AudioService;->access$8100(Landroid/media/AudioService;Z)V
Code:
Change To
2123 :goto_3a5
2124 #calls: Landroid/media/AudioService;->onConfigureSafeVolume(Z)V
2125 #invoke-static {v2, v1}, Landroid/media/AudioService;->access$8100(Landroid/media/AudioService;Z)V
If you decompile my attached framework.jar you will find several more changes. That is just a result of the recompile. Ignore the other changes.
Roy, mind if I include this in my next update? This is the #1 thing that annoys me the most about this phone. I listen to my podcasts all day at work, and during breaks, meetings and such, I unplug my headphones and each time I plug em back n, i get that stupid popup. So for me, this is awesome thanks alot man
Sent from my SPH-L720 using Tapatalk 2
reverepats said:
Roy, mind if I include this in my next update? This is the #1 thing that annoys me the most about this phone. I listen to my podcasts all day at work, and during breaks, meetings and such, I unplug my headphones and each time I plug em back n, i get that stupid popup. So for me, this is awesome thanks alot man
Sent from my SPH-L720 using Tapatalk 2
Click to expand...
Click to collapse
No problem at all. Yeah it bugs the heck out of me too.
Sent from my SPH-L720 using Tapatalk 4 Beta
Will this work on MDL?
Sent from my SPH-L720 using Tapatalk 4
irock1985 said:
Will this work on MDL?
Sent from my SPH-L720 using Tapatalk 4
Click to expand...
Click to collapse
Deodexed might work but I wouldn't advise it. Odexed definitely won't work.
Sent from my SPH-L720 using Tapatalk 4
I flashed the odex version on odexed mf9 and it worked but it broke some vibration features. The vibration still worked for incoming calls when on silent. The problem occurs or rather didn't when you turn vibration on. Normally the phone would vibrate when selecting vibrate mode from quick settings or when turning the ringer volume all the way down to let you know it's in vibrate mode. Flashing this mod broke that feature. I ended up reflashing the Rom to remove the mod. Is there anyway to fix this so it only disables the volume warning and has no effect on the vibration notification when setting that mode? Thanks!
Sent from my SPH-L720 using Tapatalk 4
pdoroba said:
I flashed the odex version on odexed mf9 and it worked but it broke some vibration features. The vibration still worked for incoming calls when on silent. The problem occurs or rather didn't when you turn vibration on. Normally the phone would vibrate when selecting vibrate mode from quick settings or when turning the ringer volume all the way down to let you know it's in vibrate mode. Flashing this mod broke that feature. I ended up reflashing the Rom to remove the mod. Is there anyway to fix this so it only disables the volume warning and has no effect on the vibration notification when setting that mode? Thanks!
Sent from my SPH-L720 using Tapatalk 4
Click to expand...
Click to collapse
OK this has been fixed. New versions are up.
irock1985 said:
Will this work on MDL?
Sent from my SPH-L720 using Tapatalk 4
Click to expand...
Click to collapse
OK I now have a version for MDL also.
crawrj said:
OK I now have a version for MDL also.
Click to expand...
Click to collapse
Thanks!
Sent from my SPH-L720 using Tapatalk 4
crawrj said:
OK this has been fixed. New versions are up.
Click to expand...
Click to collapse
Awesome! Thanks!
Sent from my SPH-L720 using Tapatalk 4
is there a mod that prevents the volume level from
resetting back to 75% every single time i plug in the headphones! I want the volume level to stay static because i use headphones a lot and it would be nice if i didn't have to keep raising the volume every time i plug in. thanks.
ericc2728 said:
resetting back to 75% every single time i plug in the headphones! I want the volume level to stay static because i use headphones a lot and it would be nice if i didn't have to keep raising the volume every time i plug in. thanks.
Click to expand...
Click to collapse
Good idea. I knew it was doing it but it never really registered. I just turned it up and went on. I'll look into this when I get some time.
Sent from my SPH-L720 using Tapatalk 4
crawrj said:
Good idea. I knew it was doing it but it never really registered. I just turned it up and went on. I'll look into this when I get some time.
Sent from my SPH-L720 using Tapatalk 4
Click to expand...
Click to collapse
it's a safe headset thing so you don't blast your ears. i know cyanogen and a couple other roms give you the option to disable this feature and have the volume stay where it you last set it, but those roms cause other problems so i haven't installed. I just found a couple apps that "lock the volume" but this means that even though it doesn't reset, it also locks in so you can't change the levels.
crawrj said:
This will remove the Raise volume above safe level? warning.
Thanks to elesbb for the smali tutorial located here http://forum.xda-developers.com/showthread.php?t=2226069
DO NOT USE THIS IF YOU ARE USING A ROM, MOD OR WHATEVER THAT MODIFIES FRAMEWORK.JAR
YOU WILL EITHER SOFT BRICK THE PHONE OR REMOVE THE OTHER MODS/THEMES INCLUDED IN THOSE FILES
THIS CAN BE USED IN CONJUNCTION WITH ANY OF MY OTHER MODS
I am not responsible for anything that happens to your phone. You do this at your own risk.
Downloads:
Download MF9 Deodexed No Volume Warning: http://www.androidfilehost.com/?fid=23060877489998462
MD5: bd99d8b98c7e725485d033dba3fdf666
Download MF9 Odexed No Volume Warning: http://www.androidfilehost.com/?fid=23060877489998461
MD5: 9d582285b11e2c4606c7d671912a4708
Download MDL Deodexed No Volume Warning: http://www.androidfilehost.com/?fid=23060877489998464
MD5: 8d5f6d1641c2aa7dfb7fc9ecbe82ea18
Download MDL Odexed No Volume Warning: http://www.androidfilehost.com/?fid=23060877489998463
MD5: 531a092043dd0ff2eaafb230c900b089
Mirrors:
Skydrive
Copy
Click to expand...
Click to collapse
I'm running MF9 stock rom odexed, will be ok?
eyecon82 said:
I'm running MF9 stock rom odexed, will be ok?
Click to expand...
Click to collapse
Yeah that is what I am running.
Sent from my Galaxy S4
eyecon82 said:
I'm running MF9 stock rom odexed, will be ok?
Click to expand...
Click to collapse
I should also mention I have the hotspot mod on top of it and have edited some CSC files
eyecon82 said:
I should also mention I have the hotspot mod on top of it and have edited some CSC files
Click to expand...
Click to collapse
Same here As well as my other mods.
Sent from my Galaxy S4
crawrj said:
Same here As well as my other mods.
Sent from my Galaxy S4
Click to expand...
Click to collapse
i forgot to mention I also have the hotspot mod...will I be ok?

[Q] Swipe + PIN/Pattern

There any way to use swipe with pin/pattern at the same time..? On my XU running ICS, there's mod available for that but i don't see it on SP..
No way right now. That is, until someone makes a mod for it which works with SP.
Till then you can use a third party lockscreen app (eg. widgetlocker) if u need the feature really bad.
Sent from my C5302
Ok.. Thx for the info...
Sent from my C5302 using xda premium
No need to reply. Just press tge thanks button.
Sent from my C5302
DeathCzar said:
No way right now. That is, until someone makes a mod for it which works with SP.
Till then you can use a third party lockscreen app (eg. widgetlocker) if u need the feature really bad.
Sent from my C5302
Click to expand...
Click to collapse
I try to edit android.policy.jar and it's work.. now i can use lockscreen with pattren..
just copy to /system/framework and change permission to rw-r--r-- , owner to root and reboot..
n/b: work on fw 284... not sure about other fw.
ozz_y said:
I try to edit android.policy.jar and it's work.. now i can use lockscreen with pattren..
just copy to /system/framework and change permission to rw-r--r-- , owner to root and reboot..
n/b: work on fw 284... not sure about other fw.
Click to expand...
Click to collapse
Awesome! Can u tell me what u edited??? I'm on .211, and I dnt have a pc nearby to flash 284 and check...
Sent from my C5302
DeathCzar said:
Awesome! Can u tell me what u edited??? I'm on .211, and I dnt have a pc nearby to flash 284 and check...
Sent from my C5302
Click to expand...
Click to collapse
1. decompile u'r android.policy.jar (i'm using apktool), u'll get folder android.policy.jar.out... find file LockPatternKeyguardView.smali,
2. open with text editor (i'm using notepad ++) and find line like this:
.prologue
const/4 v1, 0x0
...
...
.line 120
iput-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mShowLockBeforeUnlock:Z
change to:
.prologue
const/4 v0, 0x1
const/4 v1, 0x0
...
...
.line 120
iput-boolean v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mShowLockBeforeUnlock:Z
3. build (compile) android.policy.jar.out and u'll get file named: classes.dex in folder "android.policy.jar.out\build\apk".
4. open u'r original android.policy.jar with 7zip or winrar (u'll see META-INF and classes.dex), and delete classes.dex.
5 drag file classes.dex from u'r "android.policy.jar.out\build\apk" folder to 7zip or winrar window.
u'r done... just copy to /system/framework and change permission.. but it's a good idea to backup u'r rom fist...
ozz_y said:
1. decompile u'r android.policy.jar (i'm using apktool), u'll get folder android.policy.jar.out... find file LockPatternKeyguardView.smali,
2. open with text editor (i'm using notepad ++) and find line like this:
.prologue
const/4 v1, 0x0
...
...
.line 120
iput-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mShowLockBeforeUnlock:Z
change to:
.prologue
const/4 v0, 0x1
const/4 v1, 0x0
...
...
.line 120
iput-boolean v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mShowLockBeforeUnlock:Z
3. build (compile) android.policy.jar.out and u'll get file named: classes.dex in folder "android.policy.jar.out\build\apk".
4. open u'r original android.policy.jar with 7zip or winrar (u'll see META-INF and classes.dex), and delete classes.dex.
5 drag file classes.dex from u'r "android.policy.jar.out\build\apk" folder to 7zip or winrar window.
u'r done... just copy to /system/framework and change permission.. but it's a good idea to backup u'r rom fist...
Click to expand...
Click to collapse
That means it needs a computer.
Anyways, i'll try it as soon as I get my hands on one.
Sent from my C5302
ozz_y said:
I try to edit android.policy.jar and it's work.. now i can use lockscreen with pattren..
just copy to /system/framework and change permission to rw-r--r-- , owner to root and reboot..
n/b: work on fw 284... not sure about other fw.
Click to expand...
Click to collapse
It has not worked here. I tried using the attachment and also manually edit the file. Both had no results. :/
C5302 (.284)
Alvars said:
It has not worked here. I tried using the attachment and also manually edit the file. Both had no results. :/
C5302 (.284)
Click to expand...
Click to collapse
mm.. it's work fine on me (i'm using pattern).... did u change permission correctly..? are u using odex or deodex..? coz i'm using deodexd 284 fw and i'm not sure it will work on odex fw.
ozz_y said:
mm.. it's work fine on me (i'm using pattern).... did u change permission correctly..? are u using odex or deodex..? coz i'm using deodexd 284 fw and i'm not sure it will work on odex fw.
Click to expand...
Click to collapse
Sorry, but I don't know. :/
How can i find out?
---------- Post added at 07:49 AM ---------- Previous post was at 07:42 AM ----------
Alvars said:
Sorry, but I don't know. :/
How can i find out?
Click to expand...
Click to collapse
I found several files .odex in my "framework" folder, so my build is odex?
Alvars said:
Sorry, but I don't know. :/
How can i find out?
---------- Post added at 07:49 AM ---------- Previous post was at 07:42 AM ----------
I found several files .odex in my "framework" folder, so my build is odex?
Click to expand...
Click to collapse
Yes, u'r fw is odex.. Try to deodex first. Just download from this: http://forum.xda-developers.com/showthread.php?t=2336453
Flash via cwm.. And try again. Hope that it will solve u'r problm :thumbup:
Sent from my C5302 using XDA Premium 4 mobile app
ozz_y said:
Yes, u'r fw is odex.. Try to deodex first. Just download from this: http://forum.xda-developers.com/showthread.php?t=2336453
Flash via cwm.. And try again. Hope that it will solve u'r problm :thumbup:
Sent from my C5302 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Solved.
Thanks for the help!

Categories

Resources