In an attempt to rid myself of all the minor issues I have with this phone, here's another one that irritated me. The music player refuses to play during a call, not that I can find any real use for wanting it to play during a call but being told "unable to do _____ while in call" is just annoying lol...anyway, NOT ANYMORE!
Decompile MusicPlayer or its classes.dex in baksmali
Navigate to \com\sec\android\app\music\MusicFeatures.smali and open in editor
LOOK FOR:
Code:
sput-boolean v0, Lcom/sec/android/app/music/MusicFeatures;->FLAG_SUPPORT_PLAYING_MUSIC_DURING_CALL:Z
CHANGE TO:
Code:
sput-boolean v1, Lcom/sec/android/app/music/MusicFeatures;->FLAG_SUPPORT_PLAYING_MUSIC_DURING_CALL:Z
Save & Close
Compile classes.dex with smali or compile MusicPlayer, push to phone and set perms to 0644 or create flashable for recovery.
Not to sound like a ****...well, ok, maybe a little...but these two things should be mutually exclusive. Like driving on the highway and riding a bike.
Either you will fail at talking on the phone or you will fail at listening to the music.
Why anyone would want to have music blaring out the speaker AND talk on the phone is stupid. Just like the morons that blast their music and play COD while trying to "rape me" and do other things to my mother.
ecapox said:
Not to sound like a ****...well, ok, maybe a little...but these two things should be mutually exclusive. Like driving on the highway and riding a bike.
Either you will fail at talking on the phone or you will fail at listening to the music.
Why anyone would want to have music blaring out the speaker AND talk on the phone is stupid. Just like the morons that blast their music and play COD while trying to "rape me" and do other things to my mother.
Click to expand...
Click to collapse
I agree but if you are browsing the web and are trying to listen to a ringtone or something while on hold, this would fix that
That's confusing as **** but fair enough. I retract my previous statement....except for the COD part.
Thats still true.
unfortunately.
ecapox said:
That's confusing as **** but fair enough. I retract my previous statement....except for the COD part.
Thats still true.
unfortunately.
Click to expand...
Click to collapse
agreed. thats what mute is for though
freeza said:
In an attempt to rid myself of all the minor issues I have with this phone, here's another one that irritated me. The music player refuses to play during a call, not that I can find any real use for wanting it to play during a call but being told "unable to do _____ while in call" is just annoying lol...anyway, NOT ANYMORE!
Decompile MusicPlayer or its classes.dex in baksmali
Navigate to \com\sec\android\app\music\MusicFeatures.smali and open in editor
LOOK FOR:
Code:
sput-boolean v0, Lcom/sec/android/app/music/MusicFeatures;->FLAG_SUPPORT_PLAYING_MUSIC_DURING_CALL:Z
CHANGE TO:
Code:
sput-boolean v1, Lcom/sec/android/app/music/MusicFeatures;->FLAG_SUPPORT_PLAYING_MUSIC_DURING_CALL:Z
Save & Close
Compile classes.dex with smali or compile MusicPlayer, push to phone and set perms to 0644 or create flashable for recovery.
Click to expand...
Click to collapse
Please i would like to know how u do that, would you please show how to decompile the music player and how to get to them codes, i would really appreciate that.
There are some threads on this for other models, but I am looking for info on how to remove wireless charging notification for my Sprint version. I assume this will require root and I have no problem with that.
Here's the scenario. I modified my Sprint phone to accept the Verizon wireless charging rear cover, while preserving NFC. (Email me if you want the link cuz I don't have sufficient privileges to post it).
Placing the phone on the charger gives a pop-up notification and tone that wireless charging has begun. Then wireless charging is complete (100%) and charging stops. Then the phone sits on the charger for a few minutes, drops to 99% full and wireless charging begins again, meaning another beep. This is an endless cycle and the constant beeps are driving me crazy.
I have turned off all volumes, all notifications, placed on silent, etc., but the "Starting Wireless Charging" tone and notification is still present.
Really would like to get this fixed as inductive charging is awesome, but not if the phone is gonna beep every few minutes.
Does it bulge the battery cover slightly?
Just look for the mod to remove full charge notification, I believe all the different charging notis are housed in the same location. The VZW disable mod *should* also work as long as you do it manually and don't flash any zips with their updater script included.
I like to break stuff!
@freeza: I did a 10 minute mod to the Sprint phone using cooper conductive tape, so no soldering or opening the phone. Now it accepts the Verizon Wireless Charging back cover. So the cover is stock, its just Verizon, not Sprint. I can't post the link to my how-to (XDA rules), but just Google for "How to EASILY Add Inductive/Wireless Charging to your Sprint Phone Using Verizon Cover & Keeping NFC" and it is the first link.
@EViL-KoNCEPTz: I just successfully rooted today, never had the motivation before now but I absolutely have to get rid of this notification.
In researching this, I found the post quoted below -- by Freeza coincidentally. So now I just need to learn how to: (1) Get to the /com directory (that directory doesn't seem to be listed in my root explorer app); (2) learn how to compile; (3) learn how to push the compiled file to the phone and (4) learn how to change permissions. Of course, I'll also have to locate the "wireless charging begin" file, which is hopefully in the same location as you predict.
Lots to learn. Sucks being such a noob.
7/17/12: Remove battery full notification:
Navigate to /com/android/systemui/power/PowerUI$1.smali
LOOK FOR:
Code:
iget v14, v14, Lcom/android/systemui/power/PowerUI;->mBatteryStatus:I
if-ne v13, v14, :cond_1b3
move-object/from16 v0, p0
iget-object v13, v0, Lcom/android/systemui/power/PowerUI$1;->this$0:Lcom/android/systemui/power/PowerUI;
invoke-virtual {v13}, Lcom/android/systemui/power/PowerUI;->notifyFullBatteryNotification()V
:cond_da
:goto_da
const/4 v13, 0x4
REMOVE:
Code:
invoke-virtual {v13}, Lcom/android/systemui/power/PowerUI;->notifyFullBatteryNotification()V
Save & Close
Compile, push to /system/app/ and change permissions to 644 and reboot or create flashable zip to flash in recovery.
Click to expand...
Click to collapse
Actually, I'm not overly concerned with the pop-up message (""WIRELESS CHARGING: You have placed the device within range. Now charging wirelessly."). I really just need to suppress the corresponding alert tone.
With my new found root access, I looked around (system/media/audio/ui) and found many audio files, but not the one that is triggered when wireless charging begins. Should I be looking somewhere else or does this tone not use an ogg sound file?
SOLVED
I feel a little stupid, but will post this anyway in case someone else has the same problem. The beep was coming from the wireless charging pad, not the phone. Who knew? Opened up the pad, pulled the tiny speaker, put it back together and problem solved.
Note that you do have to delete charger_connection.ogg from /system/media/audio/ui to get rid of the phone sounds, or simply turn down the volume on notifications.
Many thanks to freeza who helped me back channel; he was the one who figured this out. He also created a mod to suppress the "wireless charging has begun" pop-up.
I had the same problem
I recently came across the XPosed framework and have developed a module for it that:
Prevents the screen from turning on when a charger is connected
Disables the wireless charging popup
Disables the beep when a charger is connected
Prevents the screen from turning on when the battery is full
I will post a module once I've got past the min 10 post limit on dev threads
In the meantime I hope this helps...
Code:
public class DisableWirelessChargingPopup implements IXposedHookLoadPackage
{
volatile PowerManager mPowerMgr;
volatile boolean mWakeUpEnabled = true;
[user=439709]@override[/user]
public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable
{
if (lpparam.packageName.equals("android"))
{
XposedBridge.log("handleLoadPackage: " + lpparam.packageName);
try
{
Class localClass = XposedHelpers.findClass("com.android.server.PowerManagerService$BatteryReceiver", lpparam.classLoader);
Object[] parameterTypesAndCallbackPower = new Object[3];
parameterTypesAndCallbackPower[0] = Context.class;
parameterTypesAndCallbackPower[1] = Intent.class;
parameterTypesAndCallbackPower[2] = XC_MethodReplacement.DO_NOTHING;
XposedHelpers.findAndHookMethod(localClass, "onReceive", parameterTypesAndCallbackPower);
XposedBridge.log("Hooked: PowerManagerService$BatteryReceiver");
}
catch (Exception e)
{
XposedBridge.log(e.toString());
}
}
if (lpparam.packageName.equals("com.android.systemui"))
{
XposedBridge.log("handleLoadPackage: " + lpparam.packageName);
try
{
Object[] parameterTypesAndCallbackWireless = new Object[2];
parameterTypesAndCallbackWireless[0] = Integer.TYPE;
parameterTypesAndCallbackWireless[1] = XC_MethodReplacement.DO_NOTHING;
//XposedHelpers.findAndHookMethod("com.android.systemui.power.PowerUI", lpparam.classLoader, "showWirelessChargingNotice", arrayOfObject);
XposedHelpers.findAndHookMethod("com.android.systemui.power.PowerUI",
lpparam.classLoader, "showWirelessChargeDialog", parameterTypesAndCallbackWireless);
XposedBridge.log("Hooked: " + lpparam.packageName + " showWirelessChargeDialog");
}
catch (Exception e)
{
XposedBridge.log(e.toString());
}
try
{
Object[] parameterTypesAndCallbackPlaySound = new Object[2];
parameterTypesAndCallbackPlaySound[0] = Integer.TYPE;
parameterTypesAndCallbackPlaySound[1] = XC_MethodReplacement.DO_NOTHING;
XposedHelpers.findAndHookMethod("com.android.systemui.power.PowerUI",
lpparam.classLoader, "playSound", parameterTypesAndCallbackPlaySound);
XposedBridge.log("Hooked: " + lpparam.packageName + " playSound");
}
catch (Exception e)
{
XposedBridge.log(e.toString());
}
try
{
XposedHelpers.findAndHookMethod("com.android.systemui.power.PowerUI",
lpparam.classLoader, "notifyFullBatteryNotification",
XC_MethodReplacement.DO_NOTHING);
}
catch (Exception e)
{
XposedBridge.log(e.toString());
}
}
}
}
Okay, alot of dev's/themers been looking for this one...
If you use, please give credit, I spent many hours finding this Mod... Don't take credit for someone else's work...
This Mod will allow you to change the Samsung KeyBoard Swipe Color..(SamsungIME.apk)
Look for:
smali\com\diotek\ime\framework\view\AbstractKeyBoardView.smali
Search for -> .method private setTracePaintOptionsWithSettings()V
Click to see Org Code
Code:
.method private setTracePaintOptionsWithSettings()V
.locals 5
.prologue
const/16 v4, 0xff
const/4 v1, 0x1
const/4 v3, 0x0
.line 9829
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;
if-nez v0, :cond_0
.line 9830
new-instance v0, Landroid/graphics/Paint;
invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V
iput-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;
.line 9832
:cond_0
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePoint:Ljava/util/ArrayList;
if-eqz v0, :cond_1
.line 9833
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePoint:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
.line 9835
:cond_1
iput-short v3, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePointCount:S
.line 9836
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V
.line 9837
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setDither(Z)V
.line 9838
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;
const/16 v1, 0xa5
const/16 v2, 0xf3
invoke-static {v4, v3, v1, v2}, Landroid/graphics/Color;->argb(IIII)I
Click to see what to change:
Code:
.method private setTracePaintOptionsWithSettings()V
.locals 5
.prologue
const/16 v4, [B][U][COLOR="Blue"]0xff[/COLOR][/U][/B] [B][COLOR="seagreen"]Change for Alpha Value - "0xff" [/COLOR][/B]
const/4 v1, 0x1
const/4 v3, [B][U][COLOR="Blue"]0x0[/COLOR][/U][/B] [B][COLOR="seaGreen"] - Change for Red Value - "0x0"[/COLOR][/B]
.line 9829
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;
if-nez v0, :cond_0
.line 9830
new-instance v0, Landroid/graphics/Paint;
invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V
iput-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;
.line 9832
:cond_0
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePoint:Ljava/util/ArrayList;
if-eqz v0, :cond_1
.line 9833
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePoint:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
.line 9835
:cond_1
iput-short v3, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePointCount:S
.line 9836
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V
.line 9837
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setDither(Z)V
.line 9838
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;
const/16 v1, [B][U][COLOR="Blue"]0xa5[/COLOR][/U][/B] [COLOR="seagreen"]- Change for Green Value - "0xa5"[/COLOR]
const/16 v2, [B][U][COLOR="Blue"]0xf3[/COLOR][/U][/B] [COLOR="seagreen"] - Change for Blue Value - "0xf3"[/COLOR]
invoke-static {v4, v3, v1, v2}, Landroid/graphics/Color;->argb(IIII)I
So what it boils down to is that the Swipe Color is what we call RGB color coding. I suggest a site like this to see values you can use:
Hex to RGB Color converter
Thats it folks.. swipe color squashed!!!!
A Little clarification on Instructions.
I was swamped with questions on how to edit and such.. So with @strongsteve help we dug more and here is an easier way to get your colors instead of trying to use RGB values..
Note III - Edits
change code:
Code:
const/16 v1, 0xa5
const/16 v2, 0xf3
to
Code:
const v3, 0x33
const v1, 0x66
const v2, 0xcc
Note II - Edits
change code:
Code:
const/16 v1, 0xff
const/16 v2, 0xa5
const/16 v3, 0xf3
change to:
Code:
const/16 v1, 0xff
const v2, 0x66
const v3, 0xcc
const v4, 0x33
Then just use any normal Hex Color code you would normally use!!!
In the above example I used 3366cc which is DarkHorse Blue..
I hope that helps
Text Color in Text Editor(Second Screen Shot)
Note III
Search for
Code:
constructor <init>(Lcom/visionobjects/textwidget/e/a;Landroid/util/DisplayMetrics;)V
and then look for:
Code:
const/high16 v1, -0x100 <--- Black Text Color Previous Typed Word
const v2, -0xcc4a1b <--- Last Typed Word
Change Black Text to a Smali Color Code
Change Last Typed Word to Smali Color code (-0xcc4a1b)
For example:
3366cc converts to -0xCC9934 for smali color codes
Thx to @EMSpilot for pointing out the Black Text Line... Thank you!!!
This has been long sought after....thanks for this and great work my friend! :highfive::good:
ALL Users must be reminded to give credit for this share, as, unless I am mistaken, it is not too many other places!
Sick
Sent from my SM-N900V using Tapatalk
Naddict said:
This has been long sought after....thanks for this and great work my friend! :highfive::good:
ALL Users must be reminded to give credit for this share, as, unless I am mistaken, it is not too many other places!
Click to expand...
Click to collapse
Nice work on this!!
Sent from my SPH-L710 using xda app-developers app
Nice Job Michael!
Swipe Color
Nice work!!
Thanks Michael!!!
OP Updated with more edits
Congrats again michael, made it to the portal !
http://www.xda-developers.com/android/how-to-finally-alter-a-samsung-keyboards-swipe-trail-color/ :good:
sbreen94 said:
Congrats again michael, made it to the portal !
http://www.xda-developers.com/android/how-to-finally-alter-a-samsung-keyboards-swipe-trail-color/ :good:
Click to expand...
Click to collapse
Thank you very much sir
Sent from my SCH-I545 using Xparent BlueTapatalk 2
Little bit of an older thread, still a great job. I'll be adding these to the keyboards I make. And of course I'll throw you in my OP along with the rest of the great guys I've met.
Question about the second mod, what is that? It refers to a second screen shot and I only see one.
I'm not sure what color it's changing. It's my bad, I haven't tried it yet to see, just figured I'd ask if anyone has done it yet.
Sent from my SM-G900T using Tapatalk 2
cbucz24 said:
Little bit of an older thread, still a great job. I'll be adding these to the keyboards I make. And of course I'll throw you in my OP along with the rest of the great guys I've met.
Question about the second mod, what is that? It refers to a second screen shot and I only see one.
I'm not sure what color it's changing. It's my bad, I haven't tried it yet to see, just figured I'd ask if anyone has done it yet.
Sent from my SM-G900T using Tapatalk 2
Click to expand...
Click to collapse
Buc is the man
@Gunthermic
I wanted to thank you for this.
While your directions didnt exactly work for me, I was still able to get it to work on my Tmobile SamsungIME
On my N900t the info was here:
Look for:
smali\com\diotek\ime\framework\trace\KeyboardTrace.smali
Search for -> .method public initTracePaint()V
Code:
.method public initTracePaint()V
.locals 5
.prologue
const/16 v4, 0xff
const/4 v1, 0x1
const/4 v3, 0x0
.line 174
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardTraceLine;->mTracePaint:Landroid/graphics/Paint;
if-nez v0, :cond_0
.line 175
new-instance v0, Landroid/graphics/Paint;
invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V
iput-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardTraceLine;->mTracePaint:Landroid/graphics/Paint;
.line 177
:cond_0
iget-object v0, p0, Lcom/diotek/ime/framework/trace/KeyboardTrace;->mDrawingTracePoint:Ljava/util/ArrayList;
if-eqz v0, :cond_1
.line 178
iget-object v0, p0, Lcom/diotek/ime/framework/trace/KeyboardTrace;->mDrawingTracePoint:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
.line 180
iget-object v0, p0, Lcom/diotek/ime/framework/trace/KeyboardTrace;->mDrawingTracePointTimeStamp:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
.line 184
:cond_1
iput-short v3, p0, Lcom/diotek/ime/framework/trace/KeyboardTrace;->mDrawingTracePointCount:S
.line 185
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardTraceLine;->mTracePaint:Landroid/graphics/Paint;
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V
.line 186
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardTraceLine;->mTracePaint:Landroid/graphics/Paint;
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setDither(Z)V
.line 187
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardTraceLine;->mTracePaint:Landroid/graphics/Paint;
[COLOR="Blue"]const v3, 0xff
const v1, 0xff
const v2, 0xff[/COLOR]
invoke-static {v4, v3, v1, v2}, Landroid/graphics/Color;->argb(IIII)I
Using your second method, I changed mine to an easy white just to test.
Ok I got another related question, any idea on where to change the size or thickness of the swipe? I assume it's in the smali somewhere
Sent from my SM-N900T using Tapatalk 2
cbucz24 said:
Ok I got another related question, any idea on where to change the size or thickness of the swipe? I assume it's in the smali somewhere
Sent from my SM-N900T using Tapatalk 2
Click to expand...
Click to collapse
In that same method you could just call the setStrokeWidth method on the mTracePaint variable with the thickness you would like
http://developer.android.com/reference/android/graphics/Paint.html#setStrokeWidth(float)
Ok last question, I only ask this since I looked through every smali I could searching terms and couldn't find it.
http://forum.xda-developers.com/showthread.php?t=2768762
Its a new keyboard I found that lets devs create themes without flashing and has a thumb of the image.
The trace paint is a huge pink line. I can't seem to find it anywhere. I did find a reference to it, but LG must name things different.
Anyone care to take a look an see if they can find something I couldn't? Looks real promising for themers
Sent from my SM-N900T using Tapatalk 2
cbucz24 said:
Ok last question, I only ask this since I looked through every smali I could searching terms and couldn't find it.
http://forum.xda-developers.com/showthread.php?t=2768762
Its a new keyboard I found that lets devs create themes without flashing and has a thumb of the image.
The trace paint is a huge pink line. I can't seem to find it anywhere. I did find a reference to it, but LG must name things different.
Anyone care to take a look an see if they can find something I couldn't? Looks real promising for themers
Sent from my SM-N900T using Tapatalk 2
Click to expand...
Click to collapse
LG G3 keyboard? Uhh let me dig up my files but I found this one a while ago lol. Didn't see your post till now
CNexus said:
LG G3 keyboard? Uhh let me dig up my files but I found this one a while ago lol. Didn't see your post till now
Click to expand...
Click to collapse
Gearandroid said it was shape_writer_color but I didn't find it yet. Haven't seen where the file is yet either I guess for that matter. Lol
Sent from my SM-N900T using Tapatalk 2
cbucz24 said:
Gearandroid said it was shape_writer_color but I didn't find it yet. Haven't seen where the file is yet either I guess for that matter. Lol
Sent from my SM-N900T using Tapatalk 2
Click to expand...
Click to collapse
No, worries, I got it almost as soon as the keyboard was ported...
CNexus said:
No, worries, I got it almost as soon as the keyboard was ported...
Click to expand...
Click to collapse
Cool. Is that name I lists the name of the smali file itself?
I tried contacting another guy. He made the android L keyboard and somehow included the libs it needed. But he didn't answer me back.
If that's possible for this one, everyone could use it a lot easier
Sent from my SM-N900T using Tapatalk 2
cbucz24 said:
Cool. Is that name I lists the name of the smali file itself?
I tried contacting another guy. He made the android L keyboard and somehow included the libs it needed. But he didn't answer me back.
If that's possible for this one, everyone could use it a lot easier
Sent from my SM-N900T using Tapatalk 2
Click to expand...
Click to collapse
Sorry not sure if you made a typo or something but I'm not sure what you mean