[oreo] WifiDisplay fix - Sony Xperia XZ Premium ROMs, Kernels, Recoveries,

[oreo] WifiDisplay fix
WfdService.apk
smali\com\sonymobile\wifidisplay\WFDSessionHelper.smali
Remove red
.method public monitorForegroundApp()V
.locals 3
.prologue
.line 107
const-string/jumbo v0, "user"
sget-object v1, Landroid/os/Build;->TYPE:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/ObjectZ
move-result v0
if-nez v0, :cond_0
.line 108
const-string/jumbo v0, "1"
const-string/jumbo v1, "persist.debug.wfd.appmonitoring"
const-string/jumbo v2, "0"
invoke-static {v1, v2}, Landroid/os/SystemProperties;->get(Ljava/lang/String;Ljava/lang/StringLjava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/ObjectZ
move-result v0
.line 107
if-eqz v0, :cond_0
.line 109
const-string/jumbo v0, "WFDSessionHelper"
const-string/jumbo v1, "Disable foreground application monitoring"
invoke-static {v0, v1}, Lcom/qualcomm/wfd/Log;->d(Ljava/lang/String;Ljava/lang/StringV
.line 110
return-void
.line 113
:cond_0
new-instance v0, Ljava/lang/Thread;
new-instance v1, Lcom/sonymobile/wifidisplay/WFDSessionHelper$1;
invoke-direct {v1, p0}, Lcom/sonymobile/wifidisplay/WFDSessionHelper$1;-><init>(Lcom/sonymobile/wifidisplay/WFDSessionHelperV
invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/RunnableV
invoke-virtual {v0}, Ljava/lang/Thread;->start()V
.line 140
return-void
.end method
Click to expand...
Click to collapse
system\etc\wfdconfig.xml
Modify 1 to 0
<!-- enable HDCP by default -->
<ContentProtection>
<Valid>1</Valid>
<!--
Valid values WFD_HDCP_2_0,
WFD_HDCP_2_1 and WFD_HDCP_2_2
-->
<Version>WFD_HDCP_2_2</Version>
<CPPort>6789</CPPort>
<!--
turn on/off audio encryption
-->
<EncryptAudio>1</EncryptAudio>
</ContentProtection>
Click to expand...
Click to collapse
system\build.prop
Delete persist.debug.wfd.enable=1
Add persist.debug.wfd.appmonitoring=1

M-Rom said:
[oreo] WifiDisplay fix
WfdService.apk
smali\com\sonymobile\wifidisplay\WFDSessionHelper.smali
Remove red
system\etc\wfdconfig.xml
Modify 1 to 0
system\build.prop
Delete persist.debug.wfd.enable=1
Add persist.debug.wfd.appmonitoring=1
Click to expand...
Click to collapse
Awesome! I'll try this out later. Finally a fix for screen mirroring!

M-Rom said:
[oreo] WifiDisplay fix
WfdService.apk
smali\com\sonymobile\wifidisplay\WFDSessionHelper.smali
Remove red
system\etc\wfdconfig.xml
Modify 1 to 0
system\build.prop
Delete persist.debug.wfd.enable=1
Add persist.debug.wfd.appmonitoring=1
Click to expand...
Click to collapse
Good job man, it fixes several problems in particular screen mirroring

Confirming that it works! The message still pops up, but you can mirror any app like normal.

Hi how do I edit the apk?

Any chance we could get more instructions to doing this?
Cheers!

pikeylfc said:
Hi how do I edit the apk?
Click to expand...
Click to collapse
jicks said:
Any chance we could get more instructions to doing this?
Cheers!
Click to expand...
Click to collapse
You have to deodex the wfdservice.apk, then decompile it to get the smali files.
You can deodex and decompile it using Tickle My Android (Windows). Once you decompile the apk, edit the smali file using Notepad++ or something similar. From there, recompile using the original signature, then either flash it on your phone or just delete the contents of the WFDservice (including the oat folder since its deodexed), and paste it there. Don't forget to set the permissions!
I'm thinking of releasing a deodex patch for the G8412 since there isn't one yet. Might get around to it when I have the time.

iArvee said:
You have to deodex the wfdservice.apk, then decompile it to get the smali files.
You can deodex and decompile it using Tickle My Android (Windows). Once you decompile the apk, edit the smali file using Notepad++ or something similar. From there, recompile using the original signature, then either flash it on your phone or just delete the contents of the WFDservice (including the oat folder since its deodexed), and paste it there. Don't forget to set the permissions!
I'm thinking of releasing a deodex patch for the G8412 since there isn't one yet. Might get around to it when I have the time.
Click to expand...
Click to collapse
Thanks for the reply, but unfortunately no luck for me. I've followed your instructions and flashed it but getting a "Could not turn on Screen Mirroring. Please try again later" message.

jicks said:
Thanks for the reply, but unfortunately no luck for me. I've followed your instructions and flashed it but getting a "Could not turn on Screen Mirroring. Please try again later" message.
Click to expand...
Click to collapse
Did you do the other things stated on the post? Like edit the wfdconfig and build.prop? Also double check that you flashed it properly. The only thing inside the WfdService folder should be just the edited, deodexed apk. Delete the oat folder.

iArvee said:
Did you do the other things stated on the post? Like edit the wfdconfig and build.prop? Also double check that you flashed it properly. The only thing inside the WfdService folder should be just the edited, deodexed apk. Delete the oat folder.
Click to expand...
Click to collapse
Yeah, I've checked the numbers and they are the same. Any chance you could share your apk because I think I'm not deodex/decompiling/recompiling it properly.

jicks said:
Yeah, I've checked the numbers and they are the same. Any chance you could share your apk because I think I'm not deodex/decompiling/recompiling it properly.
Click to expand...
Click to collapse
Sure, here you go. Hoping it works!

iArvee said:
Sure, here you go. Hoping it works!
Click to expand...
Click to collapse
Thanks! You're a lifesaver!! I can get it to mirror to my PC now but the graphics is pixelated/choppy

jicks said:
Thanks! You're a lifesaver!! I can get it to mirror to my PC now but the graphics is pixelated/choppy
Click to expand...
Click to collapse
Glad to know it works! Can't help you with the pixelated thing though. Quality seems fine on my TV.

iArvee said:
Glad to know it works! Can't help you with the pixelated thing though. Quality seems fine on my TV.
Click to expand...
Click to collapse
Just tried it with my TV downstairs and it works flawlessly. The lag issue on PC is probably a separate issue. Thanks again!

iArvee said:
Sure, here you go. Hoping it works!
Click to expand...
Click to collapse
Any apk to go back to stock settings. If your apk does not work on my phone?? Have same. Problem I cant mirror. My phone image. It pixels and freezes. A lot
---------- Post added at 07:33 PM ---------- Previous post was at 07:30 PM ----------
timetraveler said:
Any apk to go back to stock settings. If your apk does not work on my phone?? Have same. Problem I cant mirror. My phone image. It pixels and freezes. A lot
Click to expand...
Click to collapse
You just flash the zip from recovery. Or open zip file to get apk
To install it???
---------- Post added at 07:54 PM ---------- Previous post was at 07:33 PM ----------
And your apk it's all that is needed. To fix the mirror. Wifi issue??? Do I need root to be able to install. Apk or stock will work I have not unlocked. My phone????

timetraveler said:
Any apk to go back to stock settings. If your apk does not work on my phone?? Have same. Problem I cant mirror. My phone image. It pixels and freezes. A lot
---------- Post added at 07:33 PM ---------- Previous post was at 07:30 PM ----------
You just flash the zip from recovery. Or open zip file to get apk
To install it???
---------- Post added at 07:54 PM ---------- Previous post was at 07:33 PM ----------
And your apk it's all that is needed. To fix the mirror. Wifi issue??? Do I need root to be able to install. Apk or stock will work I have not unlocked. My phone????
Click to expand...
Click to collapse
You need to manually copy this apk in system/etc. This is not a flashable zip.
This apk is for rooted phones, or phones with unlocked bootloaders. If your bootloader is not unlocked, this will not fix it. Since you stated that it freezes a lot and is pixelated, try doing a factory reset, or perhaps a software repair.

iArvee said:
You need to manually copy this apk in system/etc. This is not a flashable zip.
This apk is for rooted phones, or phones with unlocked bootloaders. If your bootloader is not unlocked, this will not fix it. Since you stated that it freezes a lot and is pixelated, try doing a factory reset, or perhaps a software repair.
Click to expand...
Click to collapse
Software repair. How please. Explain more details

timetraveler said:
Software repair. How please. Explain more details
Click to expand...
Click to collapse
Download and install Xperia PC Companion. From there, you can perform a software repair which basically is the same thing as performing a full wipe using Flashtool. A factory reset only deletes the internal data, but not restore the system files.

iArvee said:
Download and install Xperia PC Companion. From there, you can perform a software repair which basically is the same thing as performing a full wipe using Flashtool. A factory reset only deletes the internal data, but not restore the system files.
Click to expand...
Click to collapse
Thanks for guide and information I appreciate it greatly k

After doing this mod I get reboots sometimes I installed modded apk from here wfd and deleted oats folder

Related

[HOWTO] Finally! a REAL solution to disable noise reduction

I searched a solution to disable NR in the beginning of the call. I had an echo problem in my phone, and the only way to fix it was to disable the NR.
The problem - each time you place or answer a call we need to go to menu and disable it.
All the codes that posted here didn't disable the NR. they only disabled the menu.
After digging for a few days in the smali of the Phone.apk I found the solution -
You need to edit CallNotifier.smali -
Search for - turnOnNoiseSuppression and rem the line
In my case it looks like this.
Code:
.line 957
.local v3, noise_reduction:Z
iget-object v8, p0, Lcom/android/phone/CallNotifier;->mApplication:Lcom/android/phone/PhoneApp;
const/4 v9, 0x1
[COLOR="Red"]# [/COLOR]invoke-static {v8, v3, v9}, Lcom/android/phone/PhoneUtils;->turnOnNoiseSuppression(Landroid/content/Context;ZZ)V
And in PhoneApp$PhoneAppBroadcastReceiver.smali (not all APk's needs it)-
Code:
.line 1930
sget-object v1, Lcom/android/phone/PhoneUtils$AMRState;->WB:Lcom/android/phone/PhoneUtils$AMRState;
invoke-static {v1}, Lcom/android/phone/PhoneUtils;->setAMRCodec(Lcom/android/phone/PhoneUtils$AMRState;)V
.line 1940
:goto_9
iget-object v1, p0, Lcom/android/phone/PhoneApp$PhoneAppBroadcastReceiver;->this$0:Lcom/android/phone/PhoneApp;
invoke-virtual {v1}, Lcom/android/phone/PhoneApp;->getApplicationContext()Landroid/content/Context;
move-result-object v1
invoke-static {v1}, Lcom/android/phone/PhoneUtils;->isSupportedNoiseReductionInWBMode(Landroid/content/Context;)Z
move-result v1
if-nez v1, :cond_21
if-ne v0, v5, :cond_21
iget-object v0, p0, Lcom/android/phone/PhoneApp$PhoneAppBroadcastReceiver;->this$0:Lcom/android/phone/PhoneApp;
invoke-virtual {v0}, Lcom/android/phone/PhoneApp;->getApplicationContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Lcom/android/phone/PhoneUtils;->isNoiseSuppressionOn(Landroid/content/Context;)Z
move-result v0
if-ne v0, v5, :cond_21
.line 1943
iget-object v0, p0, Lcom/android/phone/PhoneApp$PhoneAppBroadcastReceiver;->this$0:Lcom/android/phone/PhoneApp;
invoke-virtual {v0}, Lcom/android/phone/PhoneApp;->getApplicationContext()Landroid/content/Context;
move-result-object v0
[COLOR="Red"]# [/COLOR]invoke-static {v0, v4, v4}, Lcom/android/phone/PhoneUtils;->turnOnNoiseSuppression(Landroid/content/Context;ZZ)V
Different apk's versions may have different line number and variables numbers.
This change will make the phone starts calls with NR off. (may not work in the first call after the phone boots up - looking for a fix)
you can still turn it on if you want, during the call
Enjoy!
This is driving me insane.
I cannot, for the life of me, get a smali folder when I decompile Phone.apk. I've tried using APKManager 4.9, and directly using APKTool.
Using APKManager, I set my project, decompile with dependencies, drag twframework-res.apk when asked.
Using APKTool, I type:
apktool d Phone.apk
Both methods, all I get are a res folder, AndroidManifest.xml, and apktool.yml.
Is there something I am missing?
ctomgee said:
This is driving me insane.
I cannot, for the life of me, get a smali folder when I decompile Phone.apk. I've tried using APKManager 4.9, and directly using APKTool.
Using APKManager, I set my project, decompile with dependencies, drag twframework-res.apk when asked.
Using APKTool, I type:
apktool d Phone.apk
Both methods, all I get are a res folder, AndroidManifest.xml, and apktool.yml.
Is there something I am missing?
Click to expand...
Click to collapse
Yeah, you're missing the fact that your ROM is probably odexed and not deodexed.
petsasj said:
Yeah, you're missing the fact that your ROM is probably odexed and not deodexed.
Click to expand...
Click to collapse
Such a simple answer... *sigh*
You are correct. So how can I edit the .smali file of an odexed Phone.apk?
EDIT: Nevermind... I supposed I can just find a deodexed Phone.apk to make the change on, yeah?
ctomgee said:
Such a simple answer... *sigh*
You are correct. So how can I edit the .smali file of an odexed Phone.apk?
EDIT: Nevermind... I supposed I can just find a deodexed Phone.apk to make the change on, yeah?
Click to expand...
Click to collapse
Finding a deodexed Phone.apk is probably easiest fo you. I don't think you're accustomed to smali/baksmali deodexing procedures? There's a nice How-To by sicopat, but still, get a deodexed Phone.apk
petsasj said:
Finding a deodexed Phone.apk is probably easiest fo you. I don't think you're accustomed to smali/baksmali deodexing procedures? There's a nice How-To by sicopat, but still, get a deodexed Phone.apk
Click to expand...
Click to collapse
Just started learning about deodexing, yeah. I think I've found a deodexed Phone.apk for my ROM version, thanks for your help.
thanks but what about MIUI and CM7 roms?
i have echo problem in these roms!
cheers,
SX
SignalX said:
thanks but what about MIUI and CM7 roms?
i have echo problem in these roms!
cheers,
SX
Click to expand...
Click to collapse
Have you looked to see if that same line is in the file?
Anyone can confirm it really works?
Thank you for the solution but can anyone post deodexed phone.apk with this solution here (xxki4 or xwkj3)?
yay1974 said:
Thank you for the solution but can anyone post deodexed phone.apk with this solution here (xxki4 or xwkj3)?
Click to expand...
Click to collapse
I can confirm that it DOES work. I was able to edit a deodexed Phone.apk from XXKI3, and now it defaults NR to being OFF during calls. (though, as drorsi states in the OP, it is still on for the first call after the phone boots). You still have the option of turning it on during the call if you wish.
You can find what you need to know on how to decompile/recompile .apk files at http://forum.xda-developers.com/showthread.php?t=695701.
i try to do this fix into the phone.apk from checkrom with call record but i didn´t find the CallNotifier.smali so i give up ;( maybe someone can help me please `
Greetz Marcel
knightnz said:
Have you looked to see if that same line is in the file?
Click to expand...
Click to collapse
no
you think its same?
can you please check mate?
cheers,
SX
maybe someone can help me please so i upload the phone.apk
http://www.megaupload.com/?d=GEEHBN37
thx in advice
v0dKa
Guys, could somebody be so kindly and share with us Phone.apk with NR off as default for last software KJ3 please?
ps
v0dKa, that the apk is it? from what version, why, could you explain please?
Sorry its the apk from the checkrom rom with call record
When someone have a patched apk without record but with non increasing ringtone for the kj3 please upload it
Sent from my GT-I9100 using Tapatalk
SignalX said:
thanks but what about MIUI and CM7 roms?
i have echo problem in these roms!
cheers,
SX
Click to expand...
Click to collapse
Same here on CM7, solution would be welcome! (BTW there is a disable noise reduction tweak in VillainROM's VRTweaks)
I've got the same problem with CM7 (and other ROM's btw).
Driving me insane as well.
Is there anyone kind enough to help me with this problem?
I tried the villain rom as well, with the villain tweak. But that doesnt seem to work either....
Help
A question:
i used apkmanager and followed 1st post instructions for .smali files but when i recompile apk it asks to delete modified files from "keep" folder, what must i do?
code72 said:
A question:
i used apkmanager and followed 1st post instructions for .smali files but when i recompile apk it asks to delete modified files from "keep" folder, what must i do?
Click to expand...
Click to collapse
When recompiling, there will be a "keep" folder at some point. (you will be prompted on this step) Delete any file you might have edited from this folder at this step. If you edited any xml files, you'll need to delete the resources.arsc file.
Sent from my GT-I9100 using XDA App
ctomgee said:
When recompiling, there will be a "keep" folder at some point. (you will be prompted on this step) Delete any file you might have edited from this folder at this step. If you edited any xml files, you'll need to delete the resources.arsc file.
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Ok, but in "keep" folder there aren't .smali file so how can i delete them?

[MOD][DEV][LP3/LP2]Remove "Swipe Screen to Unlock"(Multilanguage)(Noob-proof)

[MOD][DEV][LP3/LP2]Remove "Swipe Screen to Unlock"(Multilanguage)(Noob-proof)
Intro​
Okay I heard a lot of people want to disable this text from the Lockscreen, first time it may be useful! But then it just becomes plain Ugly..
So with a little of research, I have come to see where this text comes from, and with the knowledge that the lockscreen is built from classes inside the android.policy.jar I searched there a little and found what I was looking for.
So let's do it! First of all, if you don't know about smali and baksmali this tutorial contains the commands, but it will still be a little hard for beginners so I included a ZIP for flashing.
Needed Resources​You need the JRE to run the jars, found here
You will also need the smali and baksmali jars.
Smali: here
Baksmali: here
[This is for Windows, Although I use Ubuntu] I'll also make things easier for you, here download my simple scripts to make the usage of smali and baksmali easier: here
The Process​
*Now we will use baksmali to revive the code to a low-level language (hard to understand, not like java which is a high-level language) called smali.
*So once you have all resources extract Smali.jar/Baksmali.jar/Smali.bat/Baksmali.bat to any folder you like.
*Extract the android.policy.jar found in the system/framework directory inside the ROM, to the same folder.
*Now we need to open a cmd (or terminal for linux) window pointing to the folder, an easy way to do this in windows if I remember correctly, was Hold Shift and then press right button on the folder, and select Open command window here.
*Once you do this, let's get to work. In your cmd type this command:
Code:
baksmali android.policy.jar -o extracted
and don't close the cmd, just minimize it as we will need it later on.
NOTE: Basically, this command extracts the classes.dex (which is the code) found inside android.policy.jar and then reverses it to the smali language, then moves the resulting code to the directory named extracted.
NOTE 2: This is the same as extracting the classes.dex using an archiver (like 7-zip) and using this command: baksmali classes.dex -o extracted. The one above is a faster way to do it.
*Now you will notice the newly created folder called extracted. Open it then go to: com/android/internal/policy/impl. You'll see a lot of files (Don't freak out ).
*Now find the file named CircleLockScreen.smali and open it using any text editor, I prefer notepad++ for windows. (Don't mind other files sharing the same name with a $ and a number at the end, these are called sub-classes)
*Now we need to find the chunk of code which sets the text to "Swipe screen to unlock" and delete it completely.
So using the find functionality (CTRL + F) find this code
Code:
.line 178
iget-object v5, p0, Lcom/android/internal/policy/impl/CircleLockScreen;->mHelpText:Landroid/widget/TextView;
const v6, 0x10405f6
invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(I)V
And Simply Delete it!
*We're done so now we should compile the code to classes.dex again. To do this go back to your cmd you had before and type this code
Code:
smali extracted -o classes.dex
*A new classes.dex file will be created (will overwrite the old one if you had an old classes.dex), so Simply open android.policy.jar with an archiver (like winrar) and drag the classes.dex and drop it inside.
NOTE: If it asks you to overwrite the classes.dex choose yes.
And we are ready to go, now you have your android.policy.jar you can try it by pushing it to /system/framework and rebooting.
You can also use it inside your ROMs
For LP3 ZIP Click here! Many thanks to Krendelrus!
Happy Modding!
does it work on LPQ?
readon1 said:
does it work on LPQ?
Click to expand...
Click to collapse
The method works on LPQ
Sorry, i had to be more specific x). I mean does the zipfile work on LPQ?
Many thanks in advance!
Sent from my GT-I9100 using XDA
readon1 said:
Sorry, i had to be more specific x). I mean does the zipfile work on LPQ?
Many thanks in advance!
Sent from my GT-I9100 using XDA
Click to expand...
Click to collapse
Probably not. Public number must match with the one in framework-res assigned to the string "swipe screen to unlock"
The guide is very clear, just need to follow it ;-)
As soon as i get home i will attach the one for LPQ
To do this I will need 1minute ;-)
By the way LK95, great stuff ;-)
---------- Post added at 08:55 PM ---------- Previous post was at 08:45 PM ----------
Done
Easy enjoy
here is the flashable zip
Sweeet thanks man!!!
Sent from my GT-I9100 using XDA
Unfortunatly it did not work...
Sent from my GT-I9100 using XDA
readon1 said:
Unfortunatly it did not work...
Sent from my GT-I9100 using XDA
Click to expand...
Click to collapse
works on stock deodexed LPQ, just attach you android.policy.jar and i make it 4u
Man, you are great! I'm having a lot of troubles making my own tests and i can't make the things happen but now, everything looks perfect. Really, thanks a lot!
Enviado desde mi GT-I9100 usando Tapatalk
Mirko ddd said:
works on stock deodexed LPQ, just attach you android.policy.jar and i make it 4u
Click to expand...
Click to collapse
Mirko, please make attached android.policy.jar? Thanks
Thx for the work but i am on lp2 and after flash your zip file with cwm, nothing happens.
Any idea ? Thx
Use this method to modify stock ZSLPE ROM , and it worked.
Thanks a lot.
Qwerty__- said:
Thx for the work but i am on lp2 and after flash your zip file with cwm, nothing happens.
Any idea ? Thx
Click to expand...
Click to collapse
Are you sure? The text should be removed after flashing.
hsupi said:
Use this method to modify stock ZSLPE ROM , and it worked.
Thanks a lot.
Click to expand...
Click to collapse
No problem
Yes =\
I think i will try manuel method.
(may be ICS domination theme make a problem ?)
Did it. Works like a charm
Thanks
liamR said:
Did it. Works like a charm
Thanks
Click to expand...
Click to collapse
No problem Glad it worked
Does this method work on unrooted phone?
kyzla said:
Does this method work on unrooted phone?
Click to expand...
Click to collapse
If you can find a way to push the edited android.policy.jar to /system/framework
then yes.
Thanks to the LegendK95 for the great manual
Here I attached LP3 modified android.policy.jar - enjoy (don't forget to rename this file to android.policy.jar before pushing to system)
i try manual method for see what happens but i haven't the ".line 178..." so the .zip which i flash do the job, but nothing happens on my lockScreen...
Here the code line 177 to 179
Code:
.line 177
new-instance v5, Landroid/widget/TextView;
invoke-direct {v5, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
iput-object v5, p0, Lcom/android/internal/policy/impl/CircleLockScreen;->mHelpText:Landroid/widget/TextView;
.line 179
iget-object v5, p0, Lcom/android/internal/policy/impl/CircleLockScreen;->mHelpText:Landroid/widget/TextView;
const/high16 v6, 0x3f80
const/high16 v7, 0x3f80
const/high16 v8, 0x3f80
const/high16 v9, -0x100
invoke-virtual {v5, v6, v7, v8, v9}, Landroid/widget/TextView;->setShadowLayer(FFFI)V
any idea ? ^^

[MOD] [HOW-TO] Remove / Restore keyboard icon in status bar

My company recently switched over to Verizon so I will not be able to post up (verify) zips for the sprint model GS3 any longer but I will definately be lurking. I still have the GS3 but its a Verizon carrier now so I will be bouncing between this forum and the Verizon one.
This will remove the keyboard notification icon in the status bar. For some (like me) its annoying.
Decompile: services.jar in framework.
Browse to: smali/com/android/server/InputMethodManagerService.smali
Scroll down to line (aprox) 8755 and look for the code:
Code:
iget-object v12, v0, Lcom/android/server/InputMethodManagerService;->mCurToken:Landroid/os/IBinder;
move-object/from16 v0, p1
[COLOR="Red"] if-eq v12, v0, :cond_1
[/COLOR]
.line 1369
:cond_0
const-string v12, "InputManagerService"
new-instance v13, Ljava/lang/StringBuilder;
Comment out or delete the line above in red. (Your code may show a jump to a different condition so your basically looking for the "if-eq v12, v0, :cond"). Then delete or comment out that entire line.
Recompile
Chmod 644 and push to /system/framework
Enjoy!
Can we get a flashable zip....i need this in my life
Didact74 said:
My company recently switched over to Verizon so I will not be able to post up (verify) zips for the sprint model GS3 any longer but I will definately be lurking. I still have the GS3 but its a Verizon carrier now so I will be bouncing between this forum and the Verizon one.
This will remove the keyboard notification icon in the status bar. For some (like me) its annoying.
Decompile: services.jar in framework.
Browse to: smali/com/android/server/InputMethodManagerService.smali
Scroll down to line (aprox) 8755 and look for the code:
Code:
iget-object v12, v0, Lcom/android/server/InputMethodManagerService;->mCurToken:Landroid/os/IBinder;
move-object/from16 v0, p1
[COLOR="Red"] if-eq v12, v0, :cond_1
[/COLOR]
.line 1369
:cond_0
const-string v12, "InputManagerService"
new-instance v13, Ljava/lang/StringBuilder;
Comment out or delete the line above in red. (Your code may show a jump to a different condition so your basically looking for the "if-eq v12, v0, :cond"). Then delete or comment out that entire line.
Recompile
Chmod 644 and push to /system/framework
Enjoy!
Click to expand...
Click to collapse
This is a flash able zip to add the notification back. Hopefully this helps. You just need to alter the zip http://d-h.st/2I7
Otherwise, pm clark44 or Freeza. They will help you out
Sent from my Jelly Bombed SGS3
mnhertz26 said:
This is a flash able zip to add the notification back. Hopefully this helps. You just need to alter the zip http://d-h.st/2I7
Otherwise, pm clark44 or Freeza. They will help you out
Sent from my Jelly Bombed SGS3
Click to expand...
Click to collapse
cant get this to work.
i pulled the services.jar file from the FreeGS3 mods for the no keyboard notication and i actually push the file to all touchwiz roms i've flashed since, if they don't already have the file in the rom. just copy the file to \system\framework and change permissions on the file to rw-r-r, then reboot. never had any problems doing this.
edit: try the one that's attached now, it might be the same one, but not sure if i uploaded the one that turns the notification ON before...
jwigley24 said:
i pulled the services.jar file from the FreeGS3 mods for the no keyboard notication and i actually push the file to all touchwiz roms i've flashed since, if they don't already have the file in the rom. just copy the file to \system\framework and change permissions on the file to rw-r-r, then reboot. never had any problems doing this.
Click to expand...
Click to collapse
downloaded the file, renamed the original file that was in the phone and placed this downloaded file in there. still get the icon.
stas333 said:
downloaded the file, renamed the original file that was in the phone and placed this downloaded file in there. still get the icon.
Click to expand...
Click to collapse
no go. i still get the notification. I have noticed that even i uncheck good voice typing from the language menu, restart the phone to see that its checked again. i uninstalled google search in TI backup and downloaded one from the market. The google voice now stays unchecked, but the phone freezes and acts stupid.
Hard reset the phone and now Google voice typing stays unchecked

videowiz port for htc one updated June 28

Hi I have ported this app from lg Optimus g pro it's something I missed from my lg escape so give it a try but beware I advise you to make a backup of your the 3 lib files before installing this zip I put together which are libomxcore. so libomxvenc.so an libomxdvec.so this is beta testing only if all goes well I will continue to try and fix any problems that may still be enjoy
download
http://db.tt/GcmKZD7U
reserved
Just tried it and here's what I got
Sent from my HTC One using xda app-developers app
has anyone else had any luck getting this to install?
Do you have a deodexed version of the APK? I might mod it to work with our phone but I can't for now because it's odexed and I don't have the framework files to deodex it.
Riyal said:
Do you have a deodexed version of the APK? I might mod it to work with our phone but I can't for now because it's odexed and I don't have the framework files to deodex it.
Click to expand...
Click to collapse
here you go the files are here deodexed both the app and framework files just go the link http://web.djodjo.org/?a=download:android:misc:LGgeehrc_4.1.2_JZO54K
lordboo03 said:
here you go the files are here deodexed both the app and framework files just go the link http://web.djodjo.org/?a=download:android:misc:LGgeehrc_4.1.2_JZO54K
Click to expand...
Click to collapse
seems like the site hosting the file is unstable. It keeps disconnecting me when I download it. Only manage to reach up to 5mb. Download managers also won't work. Could you post it on a different filehost? Or maybe just extract the apk for me. I don't need the framework files as long as it's already deodexed.
Riyal said:
seems like the site hosting the file is unstable. It keeps disconnecting me when I download it. Only manage to reach up to 5mb. Download managers also won't work. Could you post it on a different filehost? Or maybe just extract the apk for me. I don't need the framework files as long as it's already deodexed.
Click to expand...
Click to collapse
here you go http://www.mediafire.com/download/1isq6qlpds2twrd/VideoWiz.rar
Hi! Try installing these
http://www.mediafire.com/?fomnbm2gpxjqraa
By the way I'm not expecting VideoEditorbin.apk & Videosbin.apk to work... Seems like it's depending some of it's element on the framework-res.
Anyways VideoWiz should work and Videosbin.apk is not necessary since it's just a movie player. What worries me is that Video Wiz might be depending on VideoEditorbin.apk
Riyal said:
Hi! Try installing these
http://www.mediafire.com/?fomnbm2gpxjqraa
By the way I'm not expecting VideoEditorbin.apk & Videosbin.apk to work... Seems like it's depending some of it's element on the framework-res.
Anyways VideoWiz should work and Videosbin.apk is not necessary since it's just a movie player. What worries me is that Video Wiz might be depending on VideoEditorbin.apk
Click to expand...
Click to collapse
just tried it i saw the shortcut in menu but as soon as i tried to run it it just force closed
Could you provide a logcat? Can't get one at the moment I'm still at the office and debugging thru phone is so hard.
Riyal said:
Could you provide a logcat? Can't get one at the moment I'm still at the office and debugging thru phone is so hard.
Click to expand...
Click to collapse
here you go
ok so far I got the app working now I need help with the package not being able to use the proper music player it needs the lg music player at least thats what it tries to load everytime when i open up the program to select music so now does anyone have any idea on how to map that part to use the htc music player or play music player to select music for the background in the app? here is a update u will need to install this to files that goes in the system lib folder on your phone i used es file explore to transfer the files an of course the videowiz app the app folder of the file system any help to get this work would be appreciated
http://www.mediafire.com/download/q1y5u8lzatxfet1/VideoWiz.rar
Hi! Pardon I forgot to come back to this thread and haven't noticed it because it was buried by other threads from this forum... Anyways since I'm back could you post also the lg music player app? I could know it's package name then I could search the callback function.
Thanks for your work here. Would be great to get this Wiz working
push
Riyal said:
Hi! Pardon I forgot to come back to this thread and haven't noticed it because it was buried by other threads from this forum... Anyways since I'm back could you post also the lg music player app? I could know it's package name then I could search the callback function.
Click to expand...
Click to collapse
I'm at work right now I will upload a flashable zip later so maybe you can try to figure out why the music player wont load
here is the flashable zip http://www.mediafire.com/download/uzmyuombgurdwb6/videowiz12.zip
Wow 108mb Anyways is the music player here? Downloading now
---------- Post added at 08:31 AM ---------- Previous post was at 08:12 AM ----------
lordboo03 said:
ok so far I got the app working now I need help with the package not being able to use the proper music player it needs the lg music player at least thats what it tries to load everytime when i open up the program to select music so now does anyone have any idea on how to map that part to use the htc music player or play music player to select music for the background in the app? here is a update u will need to install this to files that goes in the system lib folder on your phone i used es file explore to transfer the files an of course the videowiz app the app folder of the file system any help to get this work would be appreciated
http://www.mediafire.com/download/q1y5u8lzatxfet1/VideoWiz.rar
Click to expand...
Click to collapse
Hi again! The link to the modified app is down now... Could you reup it again? I already found the issue...
Anyways if you're familiar with decompiling and recompiling APKs/smali here's what you should do...
replace all the com.lge.music with com.htc.music here are the locations where you can find them...
1. VideoWiz3\smali\com\muvee\smhd30\activity\SMHD30MainActivity$10.smali
Code:
Line 128: const-string v1, "com.lge.music"
Line 130: const-string v2, "com.lge.music.MusicPicker"
2. VideoWiz3\smali\com\muvee\smhd30\activity\SMHD30MainActivity$33.smali
Code:
Line 53: const-string v2, "package:com.lge.music"
3. VideoWiz3\smali\com\muvee\smhd30\activity\SMHD30MainActivity$48.smali
Code:
Line 112: const-string v1, "com.lge.music"
Line 114: const-string v2, "com.lge.music.MusicPicker"
4. VideoWiz3\smali\com\muvee\smhd30\activity\SMHD30MainActivity$49.smali
Code:
Line 119: const-string v1, "com.lge.music"
Line 121: const-string v2, "com.lge.music.MusicPicker"
5. VideoWiz3\smali\com\muvee\smhd30\activity\SMHD30MainActivity.smali
Code:
Line 2758: const-string v4, "com.lge.music"
Line 2810: const-string v4, "com.lge.music"
Line 2812: const-string v5, "com.lge.music.MusicPicker"
Line 5951: const-string v1, "com.lge.music"
Line 5953: const-string v2, "com.lge.music.MusicPicker"
I put the line number at the beginning so you won't have any problems location the codes when you open it in a text editor. Just replace them with com.htc.music or upload your modified version and I'll remodify it for you.
Riyal said:
Wow 108mb Anyways is the music player here? Downloading now
---------- Post added at 08:31 AM ---------- Previous post was at 08:12 AM ----------
Hi again! The link to the modified app is down now... Could you reup it again? I already found the issue...
Anyways if you're familiar with decompiling and recompiling APKs/smali here's what you should do...
replace all the com.lge.music with com.htc.music here are the locations where you can find them...
1. VideoWiz3\smali\com\muvee\smhd30\activity\SMHD30MainActivity$10.smali
Code:
Line 128: const-string v1, "com.lge.music"
Line 130: const-string v2, "com.lge.music.MusicPicker"
2. VideoWiz3\smali\com\muvee\smhd30\activity\SMHD30MainActivity$33.smali
Code:
Line 53: const-string v2, "package:com.lge.music"
3. VideoWiz3\smali\com\muvee\smhd30\activity\SMHD30MainActivity$48.smali
Code:
Line 112: const-string v1, "com.lge.music"
Line 114: const-string v2, "com.lge.music.MusicPicker"
4. VideoWiz3\smali\com\muvee\smhd30\activity\SMHD30MainActivity$49.smali
Code:
Line 119: const-string v1, "com.lge.music"
Line 121: const-string v2, "com.lge.music.MusicPicker"
5. VideoWiz3\smali\com\muvee\smhd30\activity\SMHD30MainActivity.smali
Code:
Line 2758: const-string v4, "com.lge.music"
Line 2810: const-string v4, "com.lge.music"
Line 2812: const-string v5, "com.lge.music.MusicPicker"
Line 5951: const-string v1, "com.lge.music"
Line 5953: const-string v2, "com.lge.music.MusicPicker"
I put the line number at the beginning so you won't have any problems location the codes when you open it in a text editor. Just replace them with com.htc.music or upload your modified version and I'll remodify it for you.
Click to expand...
Click to collapse
I'm at work right now but you can get the videowiz file from this link http://web.djodjo.org/?a=download:android:misc:LGgeehrc_4.1.2_JZO54K just scroll down to the app section and you will see the videowiz3 file its only 13mb once you modfiled that file can u then upload it for me and then once I get home in the moring I will upload with my modified zip

How to make reduce 4 dots for pattern lock to 3 dots required as minimium to unlock.

4 dots are minimium to use for pattern lock. I want to reduce it to 3 or even 2. Not talking about 3x3 pattern grid but the number of dots used to unlock.
Sent from my Moto G using xda app-developers app
jatanshah said:
4 dots are minimium to use for pattern lock. I want to reduce it to 3 or even 2. Not talking about 3x3 pattern grid but the number of dots used to unlock.
Sent from my Moto G using xda app-developers app
Click to expand...
Click to collapse
interesting idea.
I'll look at it and hopefully will find a solution
a small how-to
Keyguard\smali\com\android\keyguard\KeyguardPatternView$UnlockPatternListener.smali
Code:
.line 279
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v8
const/4 v9, 0x4
if-lt v8, v9, :cond_3
move v5, v6
where const/4 v9 sets minimum number of dots.
So, I changed it to 2.
And the same thing with Settings\smali\com\android\settings\ChooseLockPattern$ChooseLockPatternFragment$1.smali
Code:
.line 165
:cond_4
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
const/4 v1, 0x4
if-ge v0, v1, :cond_5
Here is my modified Keyguard.apk and Settings.apk from 4.4.4 retail.en.US
Can u please give me for 4.4.2 as soon as possible
Thank u
G 2nd gen??
S0bes said:
a small how-to
Keyguard\smali\com\android\keyguard\KeyguardPatternView$UnlockPatternListener.smali
Code:
.line 279
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v8
const/4 v9, 0x4
if-lt v8, v9, :cond_3
move v5, v6
where const/4 v9 sets minimum number of dots.
So, I changed it to 2.
And the same thing with Settings\smali\com\android\settings\ChooseLockPattern$ChooseLockPatternFragment$1.smali
Code:
.line 165
:cond_4
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
const/4 v1, 0x4
if-ge v0, v1, :cond_5
Here is my modified Keyguard.apk and Settings.apk from 4.4.4 retail.en.US
Click to expand...
Click to collapse
@S0bes
will this same thing work on moto g 2nd gen xt 1068 running stock 4.4.4 retaildsdsallen?
TIA
Harsh.gundecha said:
@S0bes
will this same thing work on moto g 2nd gen xt 1068 running stock 4.4.4 retaildsdsallen?
TIA
Click to expand...
Click to collapse
only if you'll edit your files. btw no need for keyguard.apk. you should edit only settings.apk.
if you take my .apk file from moto G 1st gen 90% that you will see settings FC
S0bes said:
only if you'll edit your files. btw no need for keyguard.apk. you should edit only settings.apk.
if you take my .apk file from moto G 1st gen 90% that you will see settings FC
Click to expand...
Click to collapse
@S0bes
1) i also assumed that putting the apk would not work and that's why i didn't even tries that way of doing it.
so now i will have to do it manually (of course with YOUR help).
2) here by info. that i have what i mean by smali is that classes.dex file(correct me if i am wrong) and FYI let me tell you that there's no "Settings\smali\com\android" instead i have google folder in place of android folder.
i hope we will be still do it anyhow.
TIA
sorry as my 8 thanks of today are over will thank you later ☺
=============================================================================================================
EDIT:-
my bad, got till the code and also to the 165th line now just please help me to clearly understand what i exactly need to change? and also let me know that the code above is ORIGINAL or MODIFIED ??
TIA
below is code of settings apk in case you need a look ☺
Code:
.line 165
:cond_50
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
const/4 v1, 0x4
if-ge v0, v1, :cond_5f
Harsh.gundecha said:
@S0bes
1) i also assumed that putting the apk would not work and that's why i didn't even tries that way of doing it.
so now i will have to do it manually (of course with YOUR help).
2) here by info. that i have what i mean by smali is that classes.dex file(correct me if i am wrong) and FYI let me tell you that there's no "Settings\smali\com\android" instead i have google folder in place of android folder.
i hope we will be still do it anyhow.
TIA
sorry as my 8 thanks of today are over will thank you later ☺
=============================================================================================================
EDIT:-
my bad, got till the code and also to the 165th line now just please help me to clearly understand what i exactly need to change? and also let me know that the code above is ORIGINAL or MODIFIED ??
TIA
below is code of settings apk in case you need a look ☺
Code:
.line 165
:cond_50
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
const/4 v1, 0x4
if-ge v0, v1, :cond_5f
Click to expand...
Click to collapse
Change 0x4 to 0x1
S0bes said:
Change 0x4 to 0x1
Click to expand...
Click to collapse
@S0bes & @jatanshah
thanks man you made my day
gonna try it and will let you know later
Thanks once again to you and also to the one who asked this question
I have Galaxy S3 mini i8200N. How can i do this? What tools i need and that stuff? Thank You!
I have APK Studio but in my SecSettings.apk (theres no Settings.apk on my phone) i can't find smali. I tried Your Settings.apk and smali is there. How can i do it then? Thank You!
iMessa said:
I have APK Studio but in my SecSettings.apk (theres no Settings.apk on my phone) i can't find smali. I tried Your Settings.apk and smali is there. How can i do it then? Thank You!
Click to expand...
Click to collapse
smali - app is deodexed
no smali - there's an .odex file of .apk should be
to get smali folder inside apk you should deodex it. there're a lot of guides for different android versions available on xda
S0bes said:
smali - app is deodexed
no smali - there's an .odex file of .apk should be
to get smali folder inside apk you should deodex it. there're a lot of guides for different android versions available on xda
Click to expand...
Click to collapse
So i should deodex .apk, edit it and then install it?
Edit: When i try to deodex with Quick Deodex Tool it says "Framework not found" and framework is there i pasted it from phone.
When i use Universal Deodexer V5, everything is done but finished app is same like original (no smali) and log says:
Everything is Ok
1 file(s) copied.
DEODEXING COMPLETE!
================COMPLETED DEODEXING===============
===================DEODEXED 1 of 1===============
Done checking 100%
FAILED : SecSettings.apk
I did it with Ultimate Deodexer but i don't have line 165. I edited 187 coz it looks like yours but still asks for minimal 4 dots..What should i do? I need this very bad.
S0bes said:
smali - app is deodexed
no smali - there's an .odex file of .apk should be
to get smali folder inside apk you should deodex it. there're a lot of guides for different android versions available on xda
Click to expand...
Click to collapse
@S0bes
It still requires 4 dots to be joined any idea why?
do i have to clear cache or edit odex file?
TIA
Harsh.gundecha said:
@S0bes
It still requires 4 dots to be joined any idea why?
do i have to clear cache or edit odex file?
TIA
Click to expand...
Click to collapse
1)if your firmware is odexed then you have to replace odexed .apk with deodexed one and delete standalone .odex file from this folder (or even completely delete arm folder if you're on LL)
may be you should clear dalvik cache as well.
2)if you've completely deodexed your firmware and all apk and jar files on your phone have .dex file inside you should delete all standalone odex files from entire system. It means that you should delete .odex files from each folder inside /system/app and /system/priv-app/ and also delete boot.oat and boot.(forgot how to name it may be boot.art) from /system/framework or system/framework/arm because .oat file consist of .dex files.
if it still requires 4 dots, then pull out settings.apk from the phone and decompile it so you will see if the changes that you've made are still here cause may be you did smth wrong when you were building modified .apk file
S0bes said:
1)if your firmware is odexed then you have to replace odexed .apk with deodexed one and delete standalone .odex file from this folder (or even completely delete arm folder if you're on LL)
may be you should clear dalvik cache as well.
2)if you've completely deodexed your firmware and all apk and jar files on your phone have .dex file inside you should delete all standalone odex files from entire system. It means that you should delete .odex files from each folder inside /system/app and /system/priv-app/ and also delete boot.oat and boot.(forgot how to name it may be boot.art) from /system/framework or system/framework/arm because .oat file consist of .dex files.
if it still requires 4 dots, then pull out settings.apk from the phone and decompile it so you will see if the changes that you've made are still here cause may be you did smth wrong when you were building modified .apk file
Click to expand...
Click to collapse
@S0bes
i am on stock kk and as there also exists .odex files for all system apps so i guess its odexed (its moto g2 xt1068) stock ROM??(correct me if i am wrong)
so does it mean i will have to do all this deleting odex and some cleanup from system??
sorry if such noobish question irritates. xd
TIA
Harsh.gundecha said:
@S0bes
i am on stock kk and as there also exists .odex files for all system apps so i guess its odexed (its moto g2 xt1068) stock ROM??(correct me if i am wrong)
so does it mean i will have to do all this deleting odex and some cleanup from system??
sorry if such noobish question irritates. xd
TIA
Click to expand...
Click to collapse
yep, your rom is odexed and all you need is to delete settings.odex, replace settings.apk with modified !deodexed! one and may be clear dalvik cache (also set perm-s to the file after replacing).
if still system requires 4 dots then pull out your settings.apk, decompile it and share
Working
Can confirm that this still works on 5.1.1 Lollipop.
Tried this on Note 5 and it works.:good:

Categories

Resources