Related
Some of maybe wonder how to enable overscroll glow in your theme..
since we have many ROM, and only some of them have similar framework structure..
Before that, thanks to Jun Hong and fla.sh for their [KPH & KPN] overscroll glow for SGA
don't forget to thanks him
This guide is for advanced user who have an experience in decompiling and compiling files using apkmanager..
So there it is, how to add overscroll glow manually..
1. Download overscrollglow source from HERE. Thanks to dhiru1602 for the source..
2. Decompile your framework-res.apk and framework.jar
3. Navigate to framework.jar.out\smali\android\widget
4. Backup Your AbsListView.smali and open it with notepad++
5. Copy everything inside overscrollglow source.
6. Open your newly copied AbsListView.smali
7. search for .local v1, layoutInflater:Landroid/view/LayoutInflater;, shortly after that you'll find something like const v3, 0x1090070 replace this with your values from original AbsListView.smali
8. Navigate to framework-res/res/values and open public.xml
9. Back to AbsListView.smali search for .line 666 and 2 lines below that you'll find similar value.
9.1. Now go to your public.xml and search for
Code:
<public type="drawable" name="overscroll_edge" id="
and then you'll find some value like 0x0108023d replace the one in AbsListView.smali with this one. DOn't forget to remove the 0 before 1 (example if you have 0x0108023d then replace it as 0x108023d so the line would look like this :
Code:
.line 666
.local v2, res:Landroid/content/res/Resources;
const v3, 0x108023d
9.2. Back to AbsListView.smali and look for .line 667 and 2 line below that you'll find same thing, replace it with overscroll_glow id in your public.xml
so the line would look like this :
Code:
.line 667
.local v0, edge:Landroid/graphics/drawable/Drawable;
const v3, 0x108023e
10. Save the file, and recompile your framework.jar.out, and then go to /framework.jar.out/build/apk/ and copy classes.dex from there inside your original framework.jar (you can open it using 7zip).
11. To change overscroll glow color, you can use UOT (I think), and modify them manually inside /framework-res/res/drawable-mdpi/ overscroll_edge.png and overscroll_glow.png
Yep, that's all
Let me know if you have hard time doing this..
this is very nice tutorial for everyone.
follow it and there shouldnt be any problems
Nicee tutorial bro ...
Good job
I've posted overscroll glow for KPN and KPH
Sent from my GT-S5830 using XDA App
Aadigoku13 said:
Nicee tutorial bro ...
Good job
Click to expand...
Click to collapse
Jun Hong said:
this is very nice tutorial for everyone.
follow it and there shouldnt be any problems
Click to expand...
Click to collapse
Thanks you both
fla.sh said:
I've posted overscroll glow for KPN and KPH
Sent from my GT-S5830 using XDA App
Click to expand...
Click to collapse
yeah, but this is the manual tutorial, so everyone can use it in every rom..
or do you want to be credited too..?
seilent said:
Thanks you both
yeah, but this is the manual tutorial, so everyone can use it in every rom..
or do you want to be credited too..?
Click to expand...
Click to collapse
i think we should credit him... i made overscroll glow for kph but he made overscroll glow for both kpn and kph.
Jun Hong said:
i think we should credit him... i made overscroll glow for kph but he made overscroll glow for both kpn and kph.
Click to expand...
Click to collapse
Thanks. I'm not the "youngest" developer now
fla.sh said:
Thanks. I'm not the "youngest" developer now
Click to expand...
Click to collapse
well, ur just a few months older than me
which decomplier did u use ?
It's not possible to do with the Brazilian FW, it has nothing inside the framework.jar
FMAranda said:
It's not possible to do with the Brazilian FW, it has nothing inside the framework.jar
Click to expand...
Click to collapse
well try deodexing it with this guide: http://androidguyz.blogspot.com/2011/04/howto-deodex-rom.html
you need to be deodexed to get that overscroll glow
Thanks, now my ROM is deodexed and I was able to get the effect to work, but now, all the system apps are having force close, I can open dialer, messages or any other system app, only user app like Gmail and Facebook. What can I do?
I also lost root =/
I fixed by reflashing the ROM, I'll not try to enable the effect or dedoex my ROM again.
Deodexing firmware should be did when your rom still fresh
seilent said:
Deodexing firmware should be did when your rom still fresh
Click to expand...
Click to collapse
But what's the difference between a fresh installed dialer app and a week old one? I was having fcs with system apps and not user apps. We can't modify system app.
FMAranda said:
But what's the difference between a fresh installed dialer app and a week old one? I was having fcs with system apps and not user apps. We can't modify system app.
Click to expand...
Click to collapse
It means the permission isnt fixed properly... i also had this problem. but when i fixed the permission properly it worked without any force close
Did you fixed using ClockWorkMod or you set manually?
Thanks, you were right, I set the permissions to rw-r--r-- and now everything is working, again thanks!
This is the framework.jar to use with the Brazilian FW KP2, replace using Root Explorer and remember to set the permissions to rw-r--r--, the same permission of framework-res.apk.
Jun Hong said:
It means the permission isnt fixed properly... i also had this problem. but when i fixed the permission properly it worked without any force close
Click to expand...
Click to collapse
ah thanks for explanation, I havent faced such problem before
FMAranda said:
Did you fixed using ClockWorkMod or you set manually?
Thanks, you were right, I set the permissions to rw-r--r-- and now everything is working, again thanks!
This is the framework.jar to use with the Brazilian FW KP2, replace using Root Explorer and remember to set the permissions to rw-r--r--, the same permission of framework-res.apk.
Click to expand...
Click to collapse
Glad it works, will post it later the apk of modded framework.jar
Thanks Dude! But, It s not working with my friend's Ace...It just crashes into bootloop!
thanks ...
your tutorial so much easy to be followed
nice work sir
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