[How-To]Disable "Beep" sound on volume adjustment & ICS- like volume panel - Samsung Galaxy Gio GT-S5660

[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

Related

[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!

[HOWTO] Disable Noise Reduction...For good!

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!

[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 ? ^^

[GUIDE] Battery Percantage On Statusbar

Hey guys, I want to share some tutorial to show battery percentage on statusbar.
First, you have to know how to compile/decompile, and you need notepad++ too
1. Decompile your Settings.apk
2. Go to smali\com\android\settings, open DisplaySettings.smali with notepad++
3. Find
Code:
iget-object v0, v0, Lcom/android/settings/DisplaySettings;->mDisplayBatteryLevel:Landroid/preference/CheckBoxPreference;
4. You will see this code above
Code:
invoke-virtual/range {v17 .. v18}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
5. Replace with
Code:
# invoke-virtual/range {v17 .. v18}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
6. Save
7. Compile, and push to your phone
You can enable the percentage by check the setting in display setting
If you doesn't understand about compile/depompile you can download my Settings.apk here, and push it to system/app
Credits:
-C'imam Boedak Demy
-Naney for the Settings.apk
press thanks if I help you and sorry for my bad english
One question. We don't have settings.apk as far as I now. We have SecSettings.apk and the one you attached shows parsing error and is only 40kb. So should we make changes to SecSettings.apk?
Edit: Nevermind. I edited SecSettings.apk and it worked.
Regards
didije said:
One question. We don't have settings.apk as far as I now. We have SecSettings.apk and the one you attached shows parsing error and is only 40kb. So should we make changes to SecSettings.apk?
Edit: Nevermind. I edited SecSettings.apk and it worked.
Regards
Click to expand...
Click to collapse
yeah I forgot, if you in stock rom there will be SecSettings.apk if you in Corsifame Rom there will be Settings.apk
and the link are fixed, sorry about that
Unable to install
I was not able to push to /system/app.I'm using Samsung galaxy fame S6812 and rooted.I copied your settings.apk and pasted and overwrited in system/app but I get a msg SystemUI has stopped and settings has stopped.What is the solution for this?
manojnagendra said:
I was not able to push to /system/app.I'm using Samsung galaxy fame S6812 and rooted.I copied your settings.apk and pasted and overwrited in system/app but I get a msg SystemUI has stopped and settings has stopped.What is the solution for this?
Click to expand...
Click to collapse
try to redownload the settings.apk and set the permission to rw-r--r--
nice guide man :good:
now we can disable and enable battery precantage
thanks for the guide
ask:
i don't know how to change the permission to rw-r--r--
faizauthar12 said:
nice guide man :good:
now we can disable and enable battery precantage
thanks for the guide
ask:
i don't know how to change the permission to rw-r--r--
Click to expand...
Click to collapse
just see from the other .apk files in system/app, or check the read box for owner, group and other, also check write box for owner
dickys11 said:
try to redownload the settings.apk and set the permission to rw-r--r--
Click to expand...
Click to collapse
It did not work.pls tell me solution with pics if possible
Update:after reboot setting is there in app drawer but when opened it is crashed.solution pls?
manojnagendra said:
It did not work.pls tell me solution with pics if possible
Update:after reboot setting is there in app drawer but when opened it is crashed.solution pls?
Click to expand...
Click to collapse
have you set the permission to be like this?
and if u use my Settings.apk make sure u delete the SecSettings.apk and reboot
dickys11 said:
have you set the permission to be like this?
and if u use my Settings.apk make sure u delete the SecSettings.apk and reboot
Click to expand...
Click to collapse
I tried everything you told bro like setting permission to rw-r-r and I'm in corsifame there is no secsettings there is only settingsprovider.apk if I delete it the os crashes.I want your battery percentage app badly.pls help me in solving this issue.I also tried rebooting several times
manojnagendra said:
I tried everything you told bro like setting permission to rw-r-r and I'm in corsifame there is no secsettings there is only settingsprovider.apk if I delete it the os crashes.I want your battery percentage app badly.pls help me in solving this issue.I also tried rebooting several times
Click to expand...
Click to collapse
no matter secsttings.apk or settings.apk they are same. do u have ur original settings.apk? i can edit this for u
dickys11 said:
no matter secsttings.apk or settings.apk they are same. do u have ur original settings.apk? i can edit this for u
Click to expand...
Click to collapse
Thanks and I will attach the link for my settings.apk please do it for me.A thanks button will be clicked from my side for you
http://www.filedropper.com/settingsforediting
manojnagendra said:
Thanks and I will attach the link for my settings.apk please do it for me.A thanks button will be clicked from my side for you
http://www.filedropper.com/settingsforediting
Click to expand...
Click to collapse
im sorry but, can you upload to attachment or dropbox or somewhere, i can't download it from that web
dickys11 said:
im sorry but, can you upload to attachment or dropbox or somewhere, i can't download it from that web
Click to expand...
Click to collapse
Here you go pls do it for me at the earliest
Thanks
dickys11 said:
Hey guys, I want to share some tutorial to show battery percentage on statusbar.
First, you have to know how to compile/decompile, and you need notepad++ too
1. Decompile your Settings.apk
2. Go to smali\com\android\settings, open DisplaySettings.smali with notepad++
3. Find
Code:
iget-object v0, v0, Lcom/android/settings/DisplaySettings;->mDisplayBatteryLevel:Landroid/preference/CheckBoxPreference;
4. You will see this code above
Code:
invoke-virtual/range {v17 .. v18}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
5. Replace with
Code:
# invoke-virtual/range {v17 .. v18}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
6. Save
7. Compile, and push to your phone
You can enable the percentage by check the setting in display setting
If you doesn't understand about compile/depompile you can download my Settings.apk here, and push it to system/app
Credits:
-C'imam Boedak Demy
-Naney for the Settings.apk
press thanks if I help you and sorry for my bad english
Click to expand...
Click to collapse
plzzz make it for S6812 !!
link for my SecSetting.apk : https://drive.google.com/file/d/0B16n5KfPlMVfMDQ2am1BYWF3S0E/edit?usp=sharing
dickys11 said:
no matter secsttings.apk or settings.apk they are same. do u have ur original settings.apk? i can edit this for u
Click to expand...
Click to collapse
What about the apk?You told that u will do it for my phone?Any update regarding that?
Thank you
manojnagendra said:
What about the apk?You told that u will do it for my phone?Any update regarding that?
Thank you
Click to expand...
Click to collapse
hey im sorry, im so busy for few days bc my class activity. about ur apk, im so sorry but i don't know why i can't decompile it, sorry
dickys11 said:
hey im sorry, im so busy for few days bc my class activity. about ur apk, im so sorry but i don't know why i can't decompile it, sorry
Click to expand...
Click to collapse
it's ok leave it no problem
dickys11 said:
hey im sorry, im so busy for few days bc my class activity. about ur apk, im so sorry but i don't know why i can't decompile it, sorry
Click to expand...
Click to collapse
Uploaded settings are bad, that is why you cannot decompile it. It should be uploaded to an external source, like gdrive, since it is a fairly large file (more than 20mb).
I've downloaded my settings.apk and changed its name to Sec.Settings.apk because I use stock rom and I put the file in system / app and I change the permissions rw-rr and I restart my handpone and the results are not there please help me? ?

[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