• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[GUIDE] Bringing buttons "only once / always" to select when the task application "Op

yash92duster

Elite Member
Jan 31, 2015
13,137
15,816
0
Chennai
Decompile framework.jar using Batch apktool
and locate to
frameworksmali_classes2comsamsungandroidshare SShareCommon.smali

Use notepad++ for editing

Quote:

.method private setAlwaysUseFeature()V
.registers 2

.prologue
.line 139
const/4 v0, 0x1 change const/4 v0, 0x0

sput-boolean v0, Lcom/samsung/android/share/SShareCommon;->mIsSupportSetAlwaysUse:Z

.line 140
return-void
.end method



Recompile framework.jar



I have tested it on my S5 G900H Deodexed MM 6.0.1
I should work in all MM based devices

Original thread: http://forum.xda-developers.com/gal...velopment/devs-helpingd-devs-t3321679/page123
credits to @grzegorz354 for his awsome mod

XDA:DevDB Information
[GUIDE] Bringing buttons "only once / always" to select when the task application "Op, ROM for the Samsung Galaxy S5

Contributors
yash92duster
ROM OS Version: 6.0.x Marshmallow

Version Information
Status: Stable

Created 2017-05-11
Last Updated 2017-05-11
 

Attachments

Last edited:
  • Like
Reactions: hamed334 and nunein

yash92duster

Elite Member
Jan 31, 2015
13,137
15,816
0
Chennai
Can you please guide me hoe to decompile jar file for my Note 4 N910G..
I tried but it failed..
I don't know if it has same lines in note 4 jar

Install latest jre n jdk in Computer then using Batch apktool or Tickle my Android apktool
Decompile n check again


There is original guide in touchwiz unified mods thread
You can find two methods there
 

kushal.arora16

Senior Member
May 10, 2013
168
20
0
Nagpur
I tried decompiling framework.jar..
but there is no such smali_classes2\com\samsung\android\share folders in it.. I have attached snap shot..
I am on Marshmallow 6.0.1
 

Attachments

Last edited:

kushal.arora16

Senior Member
May 10, 2013
168
20
0
Nagpur
You are on stock Rom so there won't be smali

First you must deodex your Rom then only you can customise
Can I decompile, sign & zipalinged the jar..? Will signing & zipalinging create any problem.?

I am now on a custom stock rom which is deodexed & zipalinged...

---------- Post added at 09:29 PM ---------- Previous post was at 09:29 PM ----------

You are on stock Rom so there won't be smali

First you must deodex your Rom then only you can customise
Can I decompile, sign & zipalinged the jar..? Will signing & zipalinging create any problem.?

I am now on a custom stock rom which is deodexed & zipalinged...
 

yash92duster

Elite Member
Jan 31, 2015
13,137
15,816
0
Chennai
Can I decompile, sign & zipalinged the jar..? Will signing & zipalinging create any problem.?

I am now on a custom stock rom which is deodexed & zipalinged...

---------- Post added at 09:29 PM ---------- Previous post was at 09:29 PM ----------


Can I decompile, sign & zipalinged the jar..? Will signing & zipalinging create any problem.?

I am now on a custom stock rom which is deodexed & zipalinged...
Yes if you are on Deodex rom
it will work

Take backup and test it:)
 

RyuukenZenkou

Senior Member
May 14, 2016
201
20
0
Santiago
Decompile framework.jar using Batch apktool
and locate to
framework\smali_classes2\com\samsung\android\share \SShareCommon.smali

Use notepad++ for editing

Quote:

.method private setAlwaysUseFeature()V
.registers 2

.prologue
.line 139
const/4 v0, 0x1 change const/4 v0, 0x0

sput-boolean v0, Lcom/samsung/android/share/SShareCommon;->mIsSupportSetAlwaysUse:Z

.line 140
return-void
.end method



Recompile framework.jar



I have tested it on my S5 G900H Deodexed MM 6.0.1
I should work in all MM based devices

Original thread: http://forum.xda-developers.com/gal...velopment/devs-helpingd-devs-t3321679/page123
credits to @grzegorz354 for his awsome mod


Hoola now we can have the just once / always option back
hi. i arrived here looking for a fix to an issue on lollipop touchwiz 5.1.1 on galaxy j1 ace. when im going to pick a new ringtone, it does ask me what app to use, but it doesnt show the buttons just once or always, it just set it as default.
so i saw this and tough that it could work.
can u help me?
 

yash92duster

Elite Member
Jan 31, 2015
13,137
15,816
0
Chennai
hi. i arrived here looking for a fix to an issue on lollipop touchwiz 5.1.1 on galaxy j1 ace. when im going to pick a new ringtone, it does ask me what app to use, but it doesnt show the buttons just once or always, it just set it as default.
so i saw this and tough that it could work.
can u help me?
did u try this guide
is it same smali for you?
 

RyuukenZenkou

Senior Member
May 14, 2016
201
20
0
Santiago
did u try this guide
is it same smali for you?
First than anything, I'll explain what I want to do.
I'm currently owning a galaxy j1 ace LTE (sm-j111m) and all was fine except that the system doesn't ask me if I want to select an app just once. It automatically selects it as the default app for X action. I'll attach some screenshots.
But on my old galaxy pocket+ I was able to select just once or always and I have seen on cm ROMs based on lollipop that the option is still there. So it's a TouchWiz Samsung lollipop ROM issue.
So what I want to to is to fix this that annoys me. In example, when I want to pick a new ringtone, I use both es file explorer and Android media manager. So I need the just once option to browse files with es and preview with Android.

Can u guide me on how to do it?
Where is that framework.jar located?
Is there some risk when modding the system?
Will this work on my device?
Hope u reply me soon :fingers-crossed:
Forgot to mention that I'm on a stock ROM since there are no custom yet for this device.
 

Attachments

Last edited:

yash92duster

Elite Member
Jan 31, 2015
13,137
15,816
0
Chennai
First than anything, I'll explain what I want to do.
I'm currently owning a galaxy j1 ace LTE (sm-j111m) and all was fine except that the system doesn't ask me if I want to select an app just once. It automatically selects it as the default app for X action. I'll attach some screenshots.
But on my old galaxy pocket+ I was able to select just once or always and I have seen on cm ROMs based on lollipop that the option is still there. So it's a TouchWiz Samsung lollipop ROM issue.
So what I want to to is to fix this that annoys me. In example, when I want to pick a new ringtone, I use both es file explorer and Android media manager. So I need the just once option to browse files with es and preview with Android.

Can u guide me on how to do it?
Where is that framework.jar located?
Is there some risk when modding the system?
Will this work on my device?
Hope u reply me soon :fingers-crossed:
Forgot to mention that I'm on a stock ROM since there are no custom yet for this device.
first make a deodex rom using Assayyed kitchen
in system/framework/framework.jar
check for the lines i told in the above guide

or else send me your deodex framework.jar
i will chk and tell

no promises
 

RyuukenZenkou

Senior Member
May 14, 2016
201
20
0
Santiago
first make a deodex rom using Assayyed kitchen
in system/framework/framework.jar
check for the lines i told in the above guide

or else send me your deodex framework.jar
i will chk and tell

no promises
Thank you for replying. So I have to deodex my framework.jar located on /system/framework and send it to you?
OK I'll do it. Hope u can help me. Btw, I noticed that the galaxy j7 does have those buttons. So it's weird.
Greetings,
Riven:fingers-crossed::cowboy: