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
Related
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!
[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 ResourcesYou 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 ? ^^
How to enable water ripple effect and ripple effect toggle.
android.policy.jar
com/android/internal/policy/impl/sec/CircleLockScreen.smali
Find around line 1536
Before:
Code:
.line 543
.local v20, isRippleEffect:Z
:goto_306
if-nez v18, :cond_61f
if-eqz v22, :cond_61f
if-eqz v20, :cond_61f
const/4 v3, 0x1
:goto_30d
After:
Code:
.line 543
.local v20, isRippleEffect:Z
:goto_306
if-nez v18, :cond_61f
[COLOR="Red"]# if-eqz v22, :cond_61f[/COLOR]
if-eqz v20, :cond_61f
const/4 v3, 0x1
:goto_30d
Secsettings.apk - smali edit
com/android/settings/LockScreenSettings.smali
Find around line 1373:
Code:
.line 253
:cond_28b
invoke-virtual {p0}, Lcom/android/settings/LockScreenSettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v9
iget-object v10, p0, Lcom/android/settings/LockScreenSettings;->mRippleEffect:Landroid/preference/CheckBoxPreference;
invoke-virtual {v9, v10}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
After:
Code:
.line 253
:cond_28b
invoke-virtual {p0}, Lcom/android/settings/LockScreenSettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v9
iget-object v10, p0, Lcom/android/settings/LockScreenSettings;->mRippleEffect:Landroid/preference/CheckBoxPreference;
[COLOR="Red"]# invoke-virtual {v9, v10}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
[/COLOR]
It would be helpful if the change between the two scripts was highlighted by a different color, it would be easier to spot.
Not a lot to ask-------? You have to keep it simple for some of us
TIA.
Pp. :beer::thumbup:
Transmitted from another galaxy with a Jellybean infused P-5113 full of Unicorn porn.
PanchoPlanet said:
It would be helpful if the change between the two scripts was highlighted by a different color, it would be easier to spot.
Not a lot to ask-------? You have to keep it simple for some of us
Click to expand...
Click to collapse
Sorry about that. I missed highlighting the first change. The second one is already there but you have to scroll down a little in the code box to see it.
The only change I see in the after scripts is the number symbol is that correct?
Sent from my SPH-D710 using xda premium
prguzman1978 said:
The only change I see in the after scripts is the number symbol is that correct?
Click to expand...
Click to collapse
That is correct.
The # symbol is the same as commenting out or deleting the entire line. It is my personal preference to comment out the code rather than delete it so I can find the code later in case I need to see or reverse changes. You will see this in other places that I have written guides for.
tdunham said:
That is correct.
The # symbol is the same as commenting out or deleting the entire line. It is my personal preference to comment out the code rather than delete it so I can find the code later in case I need to see or reverse changes. You will see this in other places that I have written guides for.
Click to expand...
Click to collapse
So do we enable the symbol or delete that whole script?
Sent from my SPH-D710 using xda premium
Thanks Td for clarifying that for us. :thumbup::beer:
Pp. :thumbup::beer:
Transmitted from another galaxy with a Jellybean infused P-5113 full of Unicorn porn.
prguzman1978 said:
So do we enable the symbol or delete that whole script?
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Don't delete the whole script, either comment out or remove the lines that are highligted in the OP. Effectively, using a" # " at the beginning of the line and deleting the line are the same, but one is easily reversible.
bigj231 said:
Don't delete the whole script, either comment out or remove the lines that are highligted in the OP. Effectively, using a" # " at the beginning of the line and deleting the line are the same, but one is easily reversible.
Click to expand...
Click to collapse
Do apply this with root explorer or adb if with root explorer where's the path can't find.
Sent from my SPH-D710 using xda premium
prguzman1978 said:
Do apply this with root explorer or adb if with root explorer where's the path can't find.
Click to expand...
Click to collapse
This requires a working knowledge of decompiling/compiling and editing the smali classes.dex files contained in android.policy.jar file. It also requires that the full Java suite be installed. Also required for further apk editing is the full android SDK suite and another tool/software to decompile/compile the apk portion of apps.
These guides were written for developers to add these mods themselves so they can see how the source code is modified to make the changes. It's harder than it sounds but you can see it involves more than just a text editor and root/adb explorer method.
tdunham said:
This requires a working knowledge of decompiling/compiling and editing the smali classes.dex files contained in android.policy.jar file. It also requires that the full Java suite be installed. Also required for further apk editing is the full android SDK suite and another tool/software to decompile/compile the apk portion of apps.
These guides were written for developers to add these mods themselves so they can see how the source code is modified to make the changes. It's harder than it sounds but you can see it involves more than just a text editor and root/adb explorer method.
Click to expand...
Click to collapse
Okay I have java androidSDK and apktool I'm going to do some research. And it does require work. Would it be easy if someone upload a modified secsettings apk and replace it.
Sent from my SPH-D710 using xda premium
prguzman1978 said:
Okay I have java androidSDK and apktool I'm going to do some research.
Click to expand...
Click to collapse
Ok good. You also need to add Java to the environment variables in computer/properties/advanced settings. Let me get some screenshots. Also, I have a very easy method to decompile/compile classes.dex I will zip up for you to try.
You need to edit the path to where java installs if yours is different than the screenshots. The 'Class' I think is added manually I can't remember if it is there before the edit. The environment variable path for java is added to the end of the existing path. This is windows 7 screenshots.
Attached is what I use to decompile classes.dex. I put classes.dex in the same folder as the files, run the decompile batch file and it creates a folder called 'classes' with the decompiled code. Make my changes and run the compile batch file and it creates a new file (if there are no errors) called new-classes.dex that you have to rename to classes.dex before reinserting into the jar or apk file.
Also, you know this mod is already included in most custom roms and also in my all in one mod for GA10/FL16.
tdunham said:
Ok good. You also need to add Java to the environment variables in computer/properties/advanced settings. Let me get some screenshots. Also, I have a very easy method to decompile/compile classes.dex I will zip up for you to try.
You need to edit the path to where java installs if yours is different than the screenshots. The 'Class' I think is added manually I can't remember if it is there before the edit. The environment variable path for java is added to the end of the existing path. This is windows 7 screenshots.
Attached is what I use to decompile classes.dex. I put classes.dex in the same folder as the files, run the decompile batch file and it creates a folder called 'classes' with the decompiled code. Make my changes and run the compile batch file and it creates a new file (if there are no errors) called new-classes.dex that you have to rename to classes.dex before reinserting into the jar or apk file.
Also, you know this mod is already included in most custom roms and also in my all in one mod for GA10/FL16.
Click to expand...
Click to collapse
Wow Tdunham thanks homey, you came through.
Sent from my SPH-D710 using xda premium
prguzman1978 said:
Wow Tdunham thanks homey, you came through.
Click to expand...
Click to collapse
Sure no problem. I usually stay out of offering programming or flashing advice but you said you already had Java and SDK so I thought I'd shove you in the proper direction. Also, I use Winrar to extract or insert files into the apk and jar files. Winrar will not know what a jar file is but you can right click and 'open-as' (every time unfortunately, because .jar file extension needs to stay associated with java). The apk files you can associate the .apk filetype with winrar when you first open it and it asks you what you want to open the file with. From then on, any .apk you open will open just like a normal zip file.
tdunham said:
Sure no problem. I usually stay out of offering programming or flashing advice but you said you already had Java and SDK so I thought I'd shove you in the proper direction. Also, I use Winrar to extract or insert files into the apk and jar files. Winrar will not know what a jar file is but you can right click and 'open-as' (every time unfortunately, because .jar file extension needs to stay associated with java). The apk files you can associate the .apk filetype with winrar when you first open it and it asks you what you want to open the file with. From then on, any .apk you open will open just like a normal zip file.[/QUOTE\]
Nice i already set my path and im good to go homey!
---------- Post added at 10:48 PM ---------- Previous post was at 10:18 PM ----------
It Creates a folder name classout should i rename it to classes?
Click to expand...
Click to collapse
prguzman1978 said:
It Creates a folder name classout should i rename it to classes?
Click to expand...
Click to collapse
No, then you won't be able to recompile it later.
Sent from my SPH-D710 using xda premium
tdunham said:
No, then you won't be able to recompile it later.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Okay one mistake i associated the circlelockscreen.smaili with winrar and i cant return it back to its original file format any idea how to?
prguzman1978 said:
Okay one mistake i associated the circlelockscreen.smaili with winrar and i cant return it back to its original file format any idea how to?
Click to expand...
Click to collapse
Right/click open with, choose default program or Shift right/click same thing.
Something along those lines. And you should be using Notepad+ to edit anything in android too.
tdunham said:
Right/click open with, choose default program or Shift right/click same thing.
Something along those lines. And you should be using Notepad+ to edit anything in android too.
Click to expand...
Click to collapse
Im finished just rebooting!!! Its done and all thanks to you homey!!!
So can we just search for the code then delete and past new one? or should we delete highlighted red line?
[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
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