[HOWTO] Disable Noise Reduction...For good! - Galaxy S II Themes and Apps

I'm one of those with the echo problem so I sent my phone to Samsung's service center, and all they did was re-install the stock ROM, and guess what, that didn't fix anything.
I searched a bit for a fix but couldn't fine a proper one, so I decided to do some digging of my own and found how to disable the Noise Reduction feature for good.
Assuming your ROM is deodexed, decompile Phone.apk and look for the PhoneUtils.smali file.
Inside it, search for:
Code:
.method static canEnableNoiseSuppression(Landroid/content/Context;)Z
Scroll down a bit till you find this part
Code:
move-result v3
if-eqz v3, :cond_2
.line 2367
const/4 v2, 0x1
Simply replace the last line above with const/4 v2, 0x0, and voila...No more annoying Noise Reduction or echo.
Notes:
- Make sure to delete the classes.dex in the keep folder during the recompiling process.
- Bear in mind that NR can't be re-enabled once the fix above is installed. You'll have to undo the changes if you want it back.

Thanks.
http://forum.xda-developers.com/showpost.php?p=19037756&postcount=1

The fix above works fine but it doesn't work for the first call after reboot, I wanted a set and forget solution.

Detailed Problem Description and Solutions
Thanks for another possible solution.
For detailed problem DESCRIPTION & possible SOLUTIONS, see THIS thread!

it's not working for me....
i'm running Villain Rom 3 ...
i decompiled and recompiled according to this:
http://forum.xda-developers.com/showpost.php?p=19048483&postcount=112
of course instead of part 5 there i did want you said here...
is it supposed to be ok?

I have tried it on VillianRom 3 as well as stock KJ2, worked fine on both.
If you have applied the fix in here:
http://forum.xda-developers.com/showthread.php?t=1332137
Undo all the changes. For some reason when I applied both fixes together, Noise Reduction came back.

first of all, thank you for the fast replay !
i took the original phone.apk from Villain Rom... so it doesn't contain the fix of drorsi.
i can't understand why this is not working for me
the instructions that i worked according to them are ok ? (without part 5 of course)
i'm using Apk_Manager_5.0.2 (is this version is fine?)
thanks again!

Before recompiling, make sure you delete the classes.dex in the keep folder.
If that doesn't work, I'm not sure what would be the problem to be honest. :/

i don't have resources.odex
i have the file resources.arsc
maybe this is part of the problem?

My bad, it's actually called classes.dex.

ok.
so delete classes.dex instead of resources.arsc ?
or delete both files?
i really appreciate your help!

No problem.
Doesn't matter if you delete or keep resources.arsc (That's for the res/XML files I assume, which we haven't touched). Just make sure classes.dex is gone.

thanks a lot!
its working!!
thanks again!

Hi,
I'm getting an force close after cancel the call, but the rest works fine.
First try was only delete the classes.dex and on the second i delete both of them classes.dex and resources.arsc, but still force close.
I'm using the CheckROM RevoHD™ V4 rom.

after you switch the Phone.apk its normal to have Force Close...
you need to reboot your phone and it will be ok

Thanks for the fast answer, i did already an reboot but same problem...

bazzag can you make a phone.apk works compatible with kk5? thanks

informatica182 said:
bazzag can you make a phone.apk works compatible with kk5? thanks
Click to expand...
Click to collapse
You have one here: http://forum.xda-developers.com/showpost.php?p=20287401&postcount=44

This fix seems to work ok. The only issue I have is that the fix only seems to work a few seconds into the call. For example, when I call my girlfriend, she can still hear herself talking for the first 1-3 seconds. After that amount of time the echoing stops. This only happens when I use a case (Otterbox)....Any ideas???
(btw, I am currently using CheckROM's REVO V4, not sure if this is an issue but I thought I might mention it anyway)

hello
sorry for noobish question
i have the same problem of echo and want to disable NR permanently
unfortunatly i dont know how to edit codes and cant use apk manager.
i have official stock odex 2.3.5 kj2 rom and have root access.
in system/app i have phone.apk and phone.odex
please some one can help me and tell detailed instrunction that how can i disable NR ?
i like my rom dont want to use deodex roms. is there any way ?
i realy appriciate you . its my bigest problem till i may be force to sell my phone!

Related

[MOD][GUIDE] Mms.apk with Sent time/"Unlimited" Contacts adding//No MMS Convert

[MOD][GUIDE] Mms.apk with Sent time/"Unlimited" Contacts adding//No MMS Convert
MMS.apk mod for Samsung Galaxy S II by muveszur (me)
First of all, I have to say Thanks to montymintypie for his work on Galaxy S!!!
Attention! This mod is working only deodexed roms!
I tested on VillainROM 1.1!​
The Mms.apk has the following moddings:
Sent Time displayed instead of the Received Time
No AutoConverting messages to MMS after 4 SMS.
In my mod, it will be converted to MMS after 200 SMS.
Possible to add to the message 200 contacts instead of 20 contacts.
Click to expand...
Click to collapse
HOW TO - For Developers
Change the AutoConverting:
In /res/xml/mms_config.xml change the following values at line 19:
Code:
<int name="smsToMmsTextThreshold">4</int>
to:
Code:
<int name="smsToMmsTextThreshold">200</int>
Increase Contacts adding for the message
In /res/xml/mms_config.xml change the following values at line 19:
Code:
<int name="recipientLimit">10</int>
to:
Code:
<int name="recipientLimit">200</int>
Display Sent Time instead of the Received Time
In /smali/com/android/mms/transaction/SMSReceiverService.smali change the following values at line 589:
Code:
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
to:
Code:
invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J
And change the following values at line 2383:
Code:
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
to:
Code:
invoke-virtual {v0}, Landroid/telephony/gsm/CbMessage;->getTimestampMillis()J
Click to expand...
Click to collapse
Installing with RootExplorer- For Users
Download the Mms.apk from the attachment
//In /system/app rename the Mms.apk to Mms.apk.bak - It is a backup step
Copy the downloaded Mms.apk to the /system/app folder, and overwrite the original Mms.apk file
Reboot your phone
If you are using TouchWizLauncher, you have to erase the data of the launcher in the Settings
Click to expand...
Click to collapse
Installing from CWM- For Users
Download MMS_mod_cwm_by_muveszur.zip from the attachment
Go to the CWM
Select Install zip from sdcard--->Choose zip from sdcard, and select the MMS_mod_cwm.zip
After the installation done, reboot your phone
If you are using TouchWizLauncher, you have to erase the data of the launcher in the Settings
Click to expand...
Click to collapse
If you like my work, give me a beer, or just hit the the Thanks button
DONATE
AHA. So that's how you change the time to sent time, rather than received time... I had both these other features, but couldn't find that one.
Nice work
very nice thank u for this !
Thanks for share.
Do you think it is possible to create a mod who disable the 10 contacts limit on sms send ?
clecle69000 said:
Thanks for share.
Do you think it is possible to create a mod who disable the 10 contacts limit on sms send ?
Click to expand...
Click to collapse
This mod is contains too... now the limit is 200
"send time" not working
Hi!
for me it still does NOT show the real sent time.
can anybody confirm?
May I ask how you edit the .xml files? What method or program are you using.
If I am to change just the AutoConverting setting in my own mms.apk file, will this cause me issues as I am still on an odexed rom?
Excuse me, I modified my MMS.apk following your advises .
I still canno't add more than 10 contacts per message.
I have verified the MMS config . xml and the mod is set to 200.
What's wrong ?
Edit : need to clear data for Messaging
Works on Villian Rom 2.0.
hi,
I am trying to make those changes in the official froyo mms sources and another version of mms.apk for my zte blade.
In the file you mention (SmsReceiverService) there is only one match for currentTimeMillis. I cannot find the second reference anywhere.
Could you point the exact class name or part of code where the second change should be made?
Great work!
Noob question, where exactly in settings do i have to go in order to erase the TW Launcher settings?
Thanks in advance..
ammarselo said:
Great work!
Noob question, where exactly in settings do i have to go in order to erase the TW Launcher settings?
Thanks in advance..
Click to expand...
Click to collapse
settings>applications>manage applications , then go to tab "All" and find the TwLauncher.From there just hit the clear data.Hope to help
Why should this not work on stock roms? I'd say it should!
This is not Working on KG1
I have edit step by step exactly with your How to my Mms.apk from KG1.
After compiling and push back to phone, the mms.apk is working but:
this mod take no effect.
Still just 10 contacts to add
Still received time
Any advice how to get it working on KG1?
afilopou said:
settings>applications>manage applications , then go to tab "All" and find the TwLauncher.From there just hit the clear data.Hope to help
Click to expand...
Click to collapse
That's right!, silly me
Thanx!
Does anyone successfully get this work on KG1?
Sent from my GT-I9100 using Tapatalk
_JKay_ said:
Why should this not work on stock roms? I'd say it should!
Click to expand...
Click to collapse
with stock xwkf3 works just fine.no problem at all
Can anyone with the correct experience update this for the XXKG2 that recently came out, the 2.3.4 and not the 2.3.3
Can someone pick up this mod and prep it for XXKG2 and XXKG3 Odex and Deodex versions?
+1. Can someone please make this work on XXKG2 and odexed? Deodexing messes with browser hardware acceleration

[HOWTO] Remove vibrate icon on 2.3.5

FOR DEODEXED ROM ONLY
2.3.5 has vibrate icon that many people found annoying
here is little guide that explains how to remove it.
1. Decompile SystemUI.apk with APK Manager
2. Open the file res/vaules/public.xml and search for the ID of stat_sys_ringer_vibrate
Code:
<public type="drawable" name="stat_sys_ringer_silent" id="0x7f020086" />
<public type="drawable" name="stat_sys_ringer_vibrate" id="[b]0x7f020087[/b]" />
<public type="drawable" name="stat_sys_roaming_cdma_0" id="0x7f020088" />
3. Edit the file smali/com/android/systemui/statusbar/policy/StatusBarPolicy.smali
Look for these lines and delete them:*
Code:
const-string v5, "volume"
const v6, [b]0x7f020087[/b]
invoke-virtual {v4, v5, v6, v7}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;II)V
Look for these lines and delete them:*
Code:
const-string v3, "volume"
const v3, [b]0x7f020087[/b]
invoke-virtual {v2, v6, v3, v4}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;II)V
* Pay attention! Replace the bolded text with the ID you found on step 2
the v5 and v3 can be other numbers its depend on your firmware
4. Compile the file and replace classes.dex from place-apk-here-for-modding/unsignedSystemUI.apk to your SystemUI.apk
5. Have fun ;]
Or just use the system UI apk with all the work done floating around somewhere on the forum probably in themes section .
jje
JJEgan said:
Or just use the system UI apk with all the work done floating around somewhere on the forum probably in themes section .
jje
Click to expand...
Click to collapse
Have you tried this way? I overwrote with a systemUI.apk that I took from a KH3 ROM, and I just got stuck in continual force closes...
Sent from my GT-I9100 using XDA App
I think he mean to take modded apk from KI3 and not from previous versions
Duh, you're right, that would probably be what he meant...
Sent from my GT-I9100 using XDA App
i dont really want to delete it can you be more specific. i want it to work the way it used to in older roms. where it only comes up when you have the phone in vibrate only mode.. ie silent but vibrate turned on...
thanks
What I find most funny is that with every new firmware, Samsung do something worse...
first it was remove the SMS theming, so we're stuck with the crap iPhone-esque one (no wonder Apple has a problem with you), then something else, and now this!
Just tried this on KI8 but it is still there... must have done something wrong?
ephumuris said:
Just tried this on KI8 but it is still there... must have done something wrong?
Click to expand...
Click to collapse
its working for me...
instead of const-string v5 its was const-string v1
be sure you delete it and update the classes.dex to your file
Can you post your file, please...
Sent from my GT-I9100 using XDA App
k1sr said:
Can you post your file, please...
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
here is my file:
http://www.multiupload.com/4LK7W8RNZY
tripc1 said:
its working for me...
instead of const-string v5 its was const-string v1
be sure you delete it and update the classes.dex to your file
Click to expand...
Click to collapse
Yeah I saw that it was v1 but still... I'll try again later if you say it does work. Thanks
Ephumuris
tripc1 said:
here is my file:
http://www.multiupload.com/4LK7W8RNZY
Click to expand...
Click to collapse
Hm... That left me with a vansihed statusbar on KI8 I took a backup though, so no problem.
I tried to follow your instructions in OP, but I fall off at step 3... Where the hell is that file located?
Edit: I'm on stock odexed firmware btw.
you need to use baksamli with SystemUI.odex
Sadly way too advanced for me, but thanks anyway
Alternatively you can use S-MOD - look in the themes section... There are other enhancements you might or might not want, but certainly gave me the fix I needed...
You could probably just extract SystemUI from the package and only use that, but I haven't tried it...
Sent from my GT-I9100 using XDA App
Somehow, after decompiling and editing the changes above, I get errors while recompiling it through APK manager.
Anyways, I found a "raw method" to fix this prob for the time being. Opened up the SystemUI.apk from my phone using WinRAR (no apk tools needed).
Browse to: res\drawable-hdpi\
Drag my png attachment into this location, overwriting the vibrate icon file.
Close winRAR (systemUI.apk) and force it back into the phone (I used RootExplorer for this).
This png file is simply a transparent file (looks black to you). You will never see this on your status bar ever again (regardless your vibrate is on or off).
One disadvantage is that the icon is physically on your status bar, so a blank space is always reserved.
Thanks tripc1 for the inspiration.
Cheers.
*edit* The image attached is invisible. just right-click and save image as
just wanted to verbally say thanks to OP for showing me where to look for this stuff. i knew it was in SystemUI but had no clue as to what was changed. smali files just have so many lines of code. cheers!
Little help plz
I followed your instructions, but the vibrate icon is still there. Here is my system.apk from Smabergs KI8, can you do it for me tripc1 ??
Hi, there!
It worked fine, thank you!
Best regards!

[How-To]Disable "Beep" sound on volume adjustment & ICS- like volume panel

[How-To]Disable "Beep" sound on volume adjustment & ICS- like volume panel
First of all - sorry for my English:silly:
Today I have a little holiday
I was able to remove that annoying sound when changing volume (some guys gave me information about that)
Was tested on android 2.3.x and 4.x.x
Lets start
All changes will be in framework.jar
So pull it from system/framework/ and decompile with any backsmali tool
Than go to decompiled folder >>>> framework\android\view\ and search the file VolumePanel.smali
In VolumePanel.smali go search for StartTone
You will see something like this
Code:
.line 373
.local v0, toneGen:Landroid/media/ToneGenerator;
const/16 v1, 0x18
invoke-virtual {v0, v1}, Landroid/media/ToneGenerator;->startTone(I)Z
Then delete that line completely
Code:
invoke-virtual {v0, v1}, Landroid/media/ToneGenerator;->startTone(I)Z
Save. Compile. Push back to system/framework/
Thats all...It's really work, as for me
Hope I helped someone
Addition:
If you are using androd 4.x or higher and can't find VolumePanel.smali in framework.jar, go search for it in secondary_framework.jar (or find similar to that file)
_______________________________________________________________________________________________________________________________________
Addition #2: How to mod volume adjust panel to look like in ICS
Hi pal, i see your message about the anoying BIP in the volume key!!
VavanL said:
Addition:
If you are using androd 4.x or higher and can't find VolumePannel.smali in framework.jar, go search for it in secondary_framework.jar (or find similar to that file)
Click to expand...
Click to collapse
Im from Spain, and i was looking some kind of solution about this subject. Ill just try all the ways to do what you wrote in your post,but fail. Please, can you explain the process a little further? Step by Step MODE ON!
I will be in debt with you, the fu...beep is driving me crazy.
Thanks in advance.
Maybe it would be easier , if you send me you're "framework" file, and i'll try figure out, what's wrong
P.S. And tell me, whitch phone and rom you use
VavanL said:
Maybe it would be easier , if you send me you're "framework" file, and i'll try figure out, what's wrong
P.S. And tell me, whitch phone and rom you use
Click to expand...
Click to collapse
Hey, thanks, my phone is a huawei ascend Y300. ...(baseband B190, the last one), is rooted, Huawei original launcher
......
Ill attach my framework at this msj, and i hope to have luck (sorry about my english too, im spaniard).
In fact, in our forum, we are talking about your work and we could manage to do the MOD, and it works as you say, but in my phone give me some FC, and some apps like the web browser, root wrowser, and root uninstaller, dont start, well, they start but shows a blank screen and crash (and some of the forum partners are trying to solve the issue and they dont have a clue)
Ill attack my framework so we can study it...
Here is the link, but is in spanish...
h t t p://w w w. htcmania .com/showthread.php?t=653352&page=2
Many thanks! and keep your good work.
Ill see the thread with attention waiting for your reply...
Ok...Backup your original file and try this...if you still has problem(99% that will have) -let me know (i've got some idea, after seen code of your file)
VavanL said:
Ok...Backup your original file and try this...if you still has problem(99% that will have) -let me know (i've got some idea, after seen code of your file)
Click to expand...
Click to collapse
WOOOOOOOWWWWWWWWWWWW
Many thanksssss its works like a charmmmmm!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Just for curiosity, where are you from pal?
Many many many thanks at last i get rid of that anoying BEEEEEEP
I dont know what they was thinking about at the moment of put that sound.
I'm glad to read, that all works :good: If you notice some bugs - write me PM.. I'm from Ukraine
can u mod volume slider (look like ICS) !?
Thanks!
Hey partner!
One week and ZERO BUGS.
The phone is quite normally, various charges and recharges and everything just fine.
Thanks again, and good luck!
How to mod volume adjust panel to look like in ICS
x-dira said:
can u mod volume slider (look like ICS) !?
Click to expand...
Click to collapse
Ok. It's quite easy....but tested only on Gio
Take framework-res.apk from your system/framework folder, and decompile it.
Take all files from attached archive and put them into same places in decompiled framework-res folder with replacement
Compile now and push back to system. That's all
Should have something like this
oh man! you saved my life!
i hate "beep" sound :highfive:
tested on CM9 final 3 Maclaw
VavanL said:
First of all - sorry for my English:silly:
Today I have a little holiday
I was able to remove that annoying sound when changing volume (some guys gave me information about that)
Was tested on android 2.3.x and 4.x.x
Lets start
All changes will be in framework.jar
So pull it from system/framework/ and decompile with any backsmali tool
Than go to decompiled folder >>>> framework\android\view\ and search the file VolumePanel.smali
In VolumePanel.smali go search for StartTone
You will see something like this
Code:
.line 373
.local v0, toneGen:Landroid/media/ToneGenerator;
const/16 v1, 0x18
invoke-virtual {v0, v1}, Landroid/media/ToneGenerator;->startTone(I)Z
Then delete that line completely
Code:
invoke-virtual {v0, v1}, Landroid/media/ToneGenerator;->startTone(I)Z
Save. Compile. Push back to system/framework/
Thats all...It's really work, as for me
Hope I helped someone
Click to expand...
Click to collapse
I tried this trick on cm7.2 but i always ended up with system not booting up(not the case of bootloop). Here's what I did, correct me if I miss;
1. I opened framework.jar with winrar/7zip and extracted classes.dex . I noticed one file more preloadedclasses file in the framework.jar. Hope it doesn't matter
2. I quick-baksmali the classes.dex with tool Apktool & baksmali/smali + Signer for all GB/ICS/JB ROM v2 provided from http://forum.xda-developers.com/showthread.php?t=2251719
3. I found your mentioned string in the VolumePanel.smali int the classout folder and saved after changing.
4. I compile the classout folder with quick-smali
5. I reopen the framework.jar and replace the original classes.dex with new-classes.dex
6. I push the framework.jar file to /system/framework/
7. I set the permission and took ownership of the file to 644 and root respectively.
8. I rebooted my android phone .
Unfortunately, It couldn't boot to the android homescreen. I even searched and set the compression to 'store' in winrar but to no avail. Pls, help if I miss anything. Or here is mine original framework.jar file in case if you want to mod the jar for me ,
View attachment framework.jar
Here you go...Maybe this time will boot to system
View attachment framework.jar
Hey there,
So this beeping thing is also driving me crazy, but i dont know how to use backsmali :crying:
I was wondering if you could mod my framework.jar file for me, i would be really really grateful if you did!
My phone is Samsung Galaxy Gio GT-S5660, and i havent added any ROMS to my phone. Heres the .jar file:
[WWW].mediafire.com/download/fqfke6vwyl4y4m1/framework.jar
Thanks!
Advark96 said:
Hey there,
So this beeping thing is also driving me crazy, but i dont know how to use backsmali :crying:
I was wondering if you could mod my framework.jar file for me, i would be really really grateful if you did!
My phone is Samsung Galaxy Gio GT-S5660, and i havent added any ROMS to my phone. Heres the .jar file:
[WWW].mediafire.com/download/fqfke6vwyl4y4m1/framework.jar
Thanks!
Click to expand...
Click to collapse
Sorry, but you must deodex your rom first, and after that - doing all changes
I just wanted to say thank you, thit tutorial worked on my Xperia U.
))
evildev said:
I just wanted to say thank you, thit tutorial worked on my Xperia U.
Click to expand...
Click to collapse
You're welcome I'm not exclude that this tutorial may work on every phone and every rom
And also must say that the source of my guide was found in Xperia forums
Help me to disbale volume adjustment sound.
http://forum.xda-developers.com/showthread.php?t=2185476
Hi VavanL!
I using LG Optimus GK (F220K) (this is LG's smartphone). Some info about this phone: http://msmobile.vn/658-lg-optimus-gk-f220k.html
I fiding some way to disable "Beep" sound on volume adjustment, but still not find out , I tryed some method but not working. To day I saw your thread, if you have time, please help me .
This is folder "framework" in my phone: https://www.mediafire.com/?497an8a1kbmb1va
and this is the link Rom Cook of my phone (if it helpful): https://docs.google.com/uc?id=0B73WbUvOwFmodFZaVVpIblM5cEU&export=download
I know files system of other products is different, but I still hope you can help me turn on the Beep sound .
Oh, I forget. do you know how to turn off vibrate when the phone connected with pc ??? . I think must change something in system files, but I'm not enough knowledge to do that . So can you help me ???
You are my last hope.
Thank you so much!
My e-mail: [email protected]
up

[R&D] Deodexed ATT S4 APK's

Thanks to Dare{D}evil and the thread here : http://forum.xda-developers.com/showthread.php?t=2252434 for the system.tar
Deodexed APK for those who may find them useful:
MD5: e3c91b50a63ebe0898c441455eb9c710
Download HERE
Deodexed JAR
MD5: 02e76d995ea3096c21ff71f9d7a55bc1
Download HERE
cjk2010 said:
Thanks to Dare{D}evil and the thread here : http://forum.xda-developers.com/showthread.php?t=2252434 for the system.tar
Deodexed APK for those who may find them useful:
MD5: e3c91b50a63ebe0898c441455eb9c710
Download HERE
Deodexed JAR
MD5: 02e76d995ea3096c21ff71f9d7a55bc1
Download HERE
Click to expand...
Click to collapse
have u successfully pushed these to ur system?
if so method and i can get working on several mods that i already have done...
I would not push these to the system until there is a way to restore the phone. Any alterations to the system could result in a soft brick. Besides you would still have to remove the odex file for them to work properly. Thanks for posting the Deodexed app OP
XsMagical said:
I would not push these to the system until there is a way to restore the phone. Any alterations to the system could result in a soft brick. Besides you would still have to remove the odex file for them to work properly. Thanks for posting the Deodexed app OP
Click to expand...
Click to collapse
I am on my Note II until the S4 is delivered. So I have just basically installed Polaris Office 5 off the archive and checked for diffs on the app and also wthin the emulator.
cjk2010 said:
I am on my Note II until the S4 is delivered. So I have just basically installed Polaris Office 5 off the archive and checked for diffs on the app and also wthin the emulator.
Click to expand...
Click to collapse
yea had to restore from a brick yesterday i wont do that again ;D i suggest putting a big red DONT flash in OP lol or dont ADB push i guess
I was able to remove the Ongoing WiFi Connected Notification by modifying SecSettings.apk.
I used my deodexed system apks and have replaces a few system/apks without issue.
So far SecSettings and TetheringProvision.
I'm still working out a tethering mod but here's the mod info for the WiFi notification.
SECSETTINGS.APK
Remove Wifi Connected Notification:
com/android/settings/wifi/WifiStatusReceiver.smali
Add
Code:
return-void
at beginning of
Code:
.method private showConnectedNotification(Landroid/content/Context;ZLjava/lang/String;)V
for
Code:
.method private showConnectedNotification(Landroid/content/Context;ZLjava/lang/String;)V
.locals 8
.parameter "context"
.parameter "connected"
.parameter "ssid"
.prologue
const v7, 0x2df96b
const/4 v6, 0x0
.line 620
[COLOR=Red]return-void[/COLOR]
const-string v3, "WifiStatusReceiver"
Click to expand...
Click to collapse
no secmms.apk?
Nottach said:
I was able to remove the Ongoing WiFi Connected Notification by modifying SecSettings.apk.
I used my deodexed system apks and have replaces a few system/apks without issue.
So far SecSettings and TetheringProvision.
I'm still working out a tethering mod but here's the mod info for the WiFi notification.
Click to expand...
Click to collapse
also had this done with a different method in smali but this is simpler...
wrong thread
I'm going to take a whack at this so I can mess around with some smali edits to mini-theme my S4 (now that we have a stock restore option), but I'm a little ashamed to admit that I've never had to deal with an odexed system + "converting" the apps and framework to being deodexed.
Obviously I'd like to avoid having to restore the stock image if possible, so can anyone confirm the best method of doing this? Is it as easy as booting to download mode, using adb to delete all the current system apps and related .odex files, then pushing the deodexed apps to my device?
I did Google this to try and figure it out myself, but I couldn't find much more than "odexed vs deodexed" comparisons.
I believe this package is missing some files. Check out the deodexed system in my DevResources thread. Its good to go.
Also youwouldn't have to delete the original apks or jars since you will overwrite them. Just the odex files.
Nottach said:
I believe this package is missing some files. Check out the deodexed system in my DevResources thread. Its good to go.
Also youwouldn't have to delete the original apks or jars since you will overwrite them. Just the odex files.
Click to expand...
Click to collapse
Great - exactly what I needed to know.
Thanks!
nice job. thanks
Sent from my Deadly Venom SS 3.0 S4 ~ 20GB free cloud https://copy.com?r=vtiraF

[MOD][GUIDE] Disable Google Location consent dialog when enabling network location

Hi, i find so annoying having to always tap "agree" when enabling Network location checkbox (i automatically enable it with a task together with GPS, when i need it) so I managed to obtain the same result of this Xposed module http://forum.xda-developers.com/xposed/modules/mod-disable-google-location-consent-t2449926, modifing directly the involved file system/app/NetworkLocation.apk of my JB 4.2.2 AOKP based rom (as in AOKP, CM roms you can't install Xposed Framework). tested 3 days on my JB 4.2.2 and using the app "Location test" from Google Play store. I'm sharing my knowledge.
---Always: test it yourself, at your own risk. I don't know if there are memory leaks (don't know exactly what they are but read about them ) or something else like unpredictable crashes. I'm not a developer and i just make small changes to smali code usually---
Instructions:
I took some hints from the source code of this Module and made changes to NetworkLocation.apk (thanks to the authors)
I used the tool dex2jar (https://code.google.com/p/dex2jar/downloads/list) (i find it useful for editing system apks).
Extract it in a folder.
It contains some batch files, you drag and drop files/folders into them and they make their work.
You can also use Apktool, if you prefer (be sure that the file decompiles without errors).
First of all: open NetworkLocation.apk taken from your rom and extract classes.dex (use 7-zip)
Drag and drop classes.dex into d2j-dex2jar.bat, a .jar file will be created. Then drag and drop the created .jar file into d2j-jar2jasmin.bat, a new jasmin folder will be created. Now open this folder and go to com-google-android-location and find 2 files: ConfirmAlertActivity.j and NetworkLocationProvider.j
These jasmin (.j) files are similar to .smali files,
Open them as text and edit as below (be sure to find and edit the correct pieces of code)(edit only the green numbers) :
A) ConfirmAlertActivity.j
1)
(.....)
iconst_1 (instead of iconst_0)
putfield com/google/android/location/ConfirmAlertActivity/mAgreed Z
(.....)
[smali code for those who are using apktool:
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/google/android/location/ConfirmAlertActivity;->mAgreed:Z ]
2)
(.....)
L0:
iconst_1 (instead of iconst_0)
istore 3
goto L1
.limit locals 4
(.....)
[corresponding smali code:
.line 67
:cond_0
const/4 v0, 0x1 ]
B) NetworkLocationProvider.j
(....)
L0:
aload 0
iconst_1 (instead of iconst_0)
invokespecial com/google/android/location/NetworkLocationProvider/setUserConfirmedPreference(Z)V
return
(....)
[in smali:
.line 206
:cond_2
const/4 vX, 0x1 (where X is a number not used elesewhere in the method, for example: v10, v11, ...)
invoke-direct {p0, v6}, Lcom/google/android/location/NetworkLocationProvider;->setUserConfirmedPreference(Z)V ]
Finished!
Now do the inverse process: drag and drop the modified jasmin folder into d2j-jasmin2jar.bat, then the new .jar file into jar2dex.bat.
You will obtain a new classes-jar-blablabla-jasmin.dex file. Rename it classes.dex and use it to replace the classes.dex in the original NetworkLocation.apk (use 7-zip to open the.apk, Winrar might give problems).
Now you have your new NetworkLocation.apk without location consent dialog (automatically agreed). When you replace the old .apk, be sure that the new one has the same permissions of the old one.
I'm attaching the modified NetworkLocation.apk (version 1.1.10) of my android version: Rootbox JellyBean 4.2.2
These instructions won't work with Kitkat but should work at least with android 4.3.
Hope this is useful to someone that can't install this Xposed Module but want the same result!
Would you mind adding the .method headers where the 3 edits are located?
Or please provide stock apk so that I may diff the changes.
The code I am trying to adapt this to is for 4.4.2 and it is very different.
Tnx - TD
Nevermind, I figured it out. Here is the guide I did for 4.4.2 TW for the Galaxy S5.
http://forum.xda-developers.com/showthread.php?t=2798995
tdunham said:
Nevermind, I figured it out. Here is the guide I did for 4.4.2 TW for the Galaxy S5.
http://forum.xda-developers.com/showthread.php?t=2798995
Click to expand...
Click to collapse
:good: Sorry for the delay, happy you solved it for kitkat!
Any more info on how to do this on 4.4, the thread was deleted.
Sent from my One X using XDA Free mobile app
budbay said:
Any more info on how to do this on 4.4, the thread was deleted.
Click to expand...
Click to collapse
All of my 4.4.2 guide were moved here:
GALAXY S5 UNIFIED MODS THREAD - GUIDES & LINKS
Thanks for the info. I am trying to reapply to HTC one x but I don't think I have the GmsCore.apk. I guess I'll keep searching.
Edit- I actually found PrebuiltGmsCore.apk that might be the equivalent
Sent from my One X using XDA Free mobile app
Disable Google Location consent on Lollipop
tdunham said:
Nevermind, I figured it out. Here is the guide I did for 4.4.2 TW for the Galaxy S5.
Click to expand...
Click to collapse
Has there been any method for those of us on the Galaxy S 5 lollipop 5.0? I did download an Xposed module, but it didn't work since it was only for 4.2.2. Thanks!
Ed Janx
edjanx said:
Has there been any method for those of us on the Galaxy S 5 lollipop 5.0? I did download an Xposed module, but it didn't work since it was only for 4.2.2. Thanks!
Ed Janx
Click to expand...
Click to collapse
Not that I know of. You could try the method in my guides thread for kitkat but I haven't even bothered since then since I think its a google play services edit and that updates now and then which means you'd have to keep doing the hack everytime it takes an update.
tdunham said:
Nevermind, I figured it out. Here is the guide I did for 4.4.2 TW for the Galaxy S5.
http://forum.xda-developers.com/showthread.php?t=2798995
Click to expand...
Click to collapse
tdunham said:
Not that I know of. You could try the method in my guides thread for kitkat but I haven't even bothered since then since I think its a google play services edit and that updates now and then which means you'd have to keep doing the hack everytime it takes an update.
Click to expand...
Click to collapse
Thanks for the info tdunham, as it helps to understand the mechanics behind it. It sounds like this could be an ideal Xposed module, especially if it could detect the play services update, then 're-disable' the warning.
Ed Janx

Categories

Resources