Hello guys!
As you probably noticed, few changes have been introduced in the newest FWs that prevent Increasing the number of available apps for displaying toolbox feature. We used to be able to introduce a simple change in one smali in SecSettings and all was good. Or use an amazing app by @xperiacle. Unfortunately, a few things have changed and now we need to tweak things some more to make them alright again.
So let's get crackin':
You're gonna need:
SecSettings.apk
framework2.jar
Knowledge to decompile/baksmali/compile/smali apks/jars
Text/code editor
About 5 minutes of your time
So:
1. Decompile SecSettings.apk or just baksmali the classes.dex
Navigate to smali/com/android/settings/toolbox/ToolboxList.smali
Find the following line in code:
Code:
const/4 v0, 0x5
Basically this is creates an integer that is being used as our maximal toolbox apps number. In this (default stock) case, the number is 5. We are gonna increase that. That is so the settings allow us to CHOOSE more than 5 apps from the list. Now, if we want to have up to 7 apps, we're gonna change the code to this:
Code:
const/4 v0, 0x[COLOR="Blue"]7[/COLOR]
or any number between 5-7 you want...
BUT! if we want more than 7, we need to increase the size of the register (which is now 4 bit). So if we want between 7-9 apps (f.e. for max 8 apps) we change to this :
Code:
const/[COLOR="Blue"]16[/COLOR] v0, 0x[COLOR="Blue"]8[/COLOR]
Now, we know that we're actualy using hexadecimal numbers, so after 9 we're going to switch to a,b,c... and so on. f.e., to increase to max 12 apps we're oging to use 0xc.
How many apps we can add? Well, it's abit tricky, since the feature is dpi dependant. I have managed well with 12 apps on default dpi (480). So I am going to limit my users to that. The reason is double folded:
More than 12 apps on default dpi is gonna cause a crash. Now since it's a framework based feature, the crash is gonna manifest as hot boot.
It's a toolbox, not an app drawer. More than 7-8 apps sounds to me like it defies the purpose. Not to mention more than 12.
There is a way to increase the ammount of apps by reducing the size of app icons and gaps in framework-res.apk dimens. If someone is interested I will append a guide for that. Personally, I am not doing that.
Click to expand...
Click to collapse
So from now on we will talk about increasing the number of apps to 12 max. meaning we inputed const/16 v0, 0xc into our smali.
Next step - still in this smali - about two lines below you will see the following:
Code:
.line 83
sput v0, Lcom/android/settings/toolbox/ToolboxList;->MAX_DEFAULT_APPS:I
Line number may differ or you might not have it id you decompiled without debugging... But what we're going to do is add a line (in blue) above that sput v0, Lcom/android/settings/toolbox/ToolboxList;->MAX_TOOLBOX_APPS:I... so our code will look like this (you add the line in blue):
Code:
const/16 v0, 0xc
.line 82
sput v0, Lcom/android/settings/toolbox/ToolboxList;->MAX_TOOLBOX_APPS:I
[COLOR="Blue"]const/4 v0, 0x5[/COLOR]
.line 83
sput v0, Lcom/android/settings/toolbox/ToolboxList;->MAX_DEFAULT_APPS:I
Now the reason we're doing that, is that by default the same max number of apps is being transfered to the max number of default apps (new addition by samsung). But if we do that, the first 7 apps after the default 5 (in our case) are going to be "considered" as "default" and that causes them to be displayed wrongly inside the list where you choose the apps and also causes settings crash upon repeated entry to the apps editing.
We need to feed a different integer to the max default apps. And since it's 5, we are adding an integer of 5 between max apps and max default apps.
Now you can recompile SecSettings.apk and push back into your phone.
At this point you will notice that even though you can shoose more than 5 apps, the toolbox is still showing only 5. It becomes short and cut at the bottom.
To fix that we dive into the framework.
2. Baksmali framework2.jar
Navigate to smali/com/samsung/android/toolbox/TWToolBoxFloatingViewer.smali
Find the following code:
Code:
iget v2, p0, Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer;->FIXED_SHORTCUT_ITEM_GAP:I
iget v4, p0, Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer;->FIXED_SHORTCUT_ITEM_SIZE:I
add-int/2addr v2, v4
mul-int/lit8 v2, v2, 0x4
add-int/2addr v0, v2
iget v2, p0, Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer;->FIXED_ROUND_TAIL_SIZE:I
add-int/2addr v0, v2
iput v0, p0, Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer;->TOTAL_HEIGHT:I
Note the following line mul-int/lit8 v2, v2, 0x4!!! Basically Samsing introdused a new object in this fragment that's called TOTAL_HEIGHT. That objects takes a value that's a result of multiplying FIXED_SHORTCUT_ITEM_GAP+FIXED_SHORTCUT_ITEM_SIZE by 4. Plus a little round tail but it doesn't concern us...
So let us multiply the FIXED_SHORTCUT_ITEM_GAP+FIXED_SHORTCUT_ITEM_SIZE by 12!!! This is the max height that we need. The feature will resize itself according to the ammount of chosen apps up to that total height.
So our code will become this:
Code:
iget v2, p0, Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer;->FIXED_SHORTCUT_ITEM_GAP:I
iget v4, p0, Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer;->FIXED_SHORTCUT_ITEM_SIZE:I
add-int/2addr v2, v4
[COLOR="Blue"]mul-int/lit8 v2, v2, 0xc[/COLOR]
add-int/2addr v0, v2
iget v2, p0, Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer;->FIXED_ROUND_TAIL_SIZE:I
add-int/2addr v0, v2
iput v0, p0, Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer;->TOTAL_HEIGHT:I
That's it, guys! Smali/recompile framework2.jar and install into your device.
I hope this help those of you who were interested in fixing that annoying "innovation" and I hope it explains the logic behind it.
No credits needed, no asking for permission. If this helps you - use and enjoy!!! We're all in open source and sharing knowledge business after all.
I would like to thank my beloved family... that tolerates me AND android, god knows how, but they still love and always support me
And my dear friend @Wuby986 for always being there for me, never letting go and never letting me let go of my little crazy ideas. For loving this feature and fighting for it. Thank you!!!
And special thanks to @DaOldMan for being my mentor once and teaching me how to decompile my first app. And for listening to me when I have crazy ideas
Mineeee
perfect guide as usual well done
Wonderful !
Wuby986 said:
perfect guide as usual well done
Click to expand...
Click to collapse
Your guides are the light for others. Instead of making this a cookbook guide for parrots your explanations are wonderful and make me feel I am not just a parrot, but someone with a brain
Thomas
increase toolbox apps
SWEET!!!
thx for this guide!!!
always happy to learn something new.
:highfive:
You can simply install S5 Toolbox Addon.
http://forum.xda-developers.com/showthread.php?t=2774569
buddy66 said:
You can simply install S5 Toolbox Addon.
http://forum.xda-developers.com/showthread.php?t=2774569
Click to expand...
Click to collapse
Sure mate! Only that on the new firmwares it doesn't work. It states so at the top of the guide [emoji106] [emoji106] [emoji106]
Read the last pages of the thread you're referring us to
Sent from my SM-G900F using Tapatalk
Nice. Really well written
Sent from my SM-G900F using Tapatalk
Goldie said:
Nice. Really well written
Sent from my SM-G900F using Tapatalk
Click to expand...
Click to collapse
Thanks, master! Coming from you its a huge compliment! Highly appreciated!!!
Sent from my SM-G900F using Tapatalk
This thread has been added as a great addition to my GALAXY S5 UNIFIED MODS THREAD - GUIDES & LINKS thread.
Thank you for the great work!
sorry, I'm kinda new to this, can I do this on an ODEXED ROM?or does it have to be DOEDEXED? Thank you for this and thank you for your input
Mandirigma said:
sorry, I'm kinda new to this, can I do this on an ODEXED ROM?or does it have to be DOEDEXED? Thank you for this and thank you for your input
Click to expand...
Click to collapse
Hey there.. Yeah it has to be deodexed in order to follow this guide
@daxgirl @Wuby986 This one is confusing me too. In my framework2.jar there is no FIXED_SHORTCUT_ITEM_GAP or FIXED_SHORTCUT_ITEM_SIZE. instead it has FIXED_ITEM_SIZE, FIXED_MAIN_ITEM_SIZE, FIXED_MAIN_ITEM_GAP and FIXED_ITEM_GAP. Also it doesn't have the multiply part added into the code. This is what I believe needs changed instead. And here is the smali file http://pastebin.com/9VsFhAN3
Code:
iget v0, v0, Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer;->FIXED_MAIN_ITEM_WIDTH:I
move/from16 v23, v0
div-int/lit8 v11, v23, 0x2
move-object/from16 v0, p0
iget v0, v0, Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer;->FIXED_MAIN_ITEM_HEIGHT:I
move/from16 v23, v0
div-int/lit8 v10, v23, 0x2
iget-object v0, v14, Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer$ToolBoxMenu;->bounds:Landroid/graphics/Rect;
Code:
iget v0, v0, Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer;->FIXED_ITEM_SIZE:I
move/from16 v23, v0
div-int/lit8 v11, v23, 0x2
move-object/from16 v0, p0
iget v0, v0, Lcom/samsung/android/toolbox/TwToolBoxFloatingViewer;->FIXED_ITEM_SIZE:I
move/from16 v23, v0
div-int/lit8 v10, v23, 0x2
iget-object v0, v14,
Question
@daxgirl @Wuby986
Hi, I am using Note 3 N9005 Lollipop.
Poland firmware.
I can't find framework2.jar file in framework.
And I guess my framework is odexed.
amk19 said:
@daxgirl @Wuby986
Hi, I am using Note 3 N9005 Lollipop.
Poland firmware.
I can't find framework2.jar file in framework.
And I guess my framework is odexed.
Click to expand...
Click to collapse
All the relevant files are on framework.jar, my friend. The mod works exactly the same. It has been used in numerous roms on note 3.
Sent from my SM-G900F using Tapatalk
amk19 said:
@daxgirl @Wuby986
Hi, I am using Note 3 N9005 Lollipop.
Poland firmware.
I can't find framework2.jar file in framework.
And I guess my framework is odexed.
Click to expand...
Click to collapse
yeah it could be.. !! as long as you didn't deodexed it is odex... it is odex if you see the boot.oat file ( or at least that's how it should, based on s5 i have).. anyway it is most likely that you don't have the framework2.jar.. there isn't anymore on L
Wuby986 said:
yeah it could be.. !! as long as you didn't deodexed it is odex... it is odex if you see the boot.oat file ( or at least that's how it should, based on s5 i have).. anyway it is most likely that you don't have the framework2.jar.. there isn't anymore on L
Click to expand...
Click to collapse
In order to make it odex there should be framework.odex file. But I can't find any.
All I can see is framework.jar which is around 300 bytes...
How can make required changes to obtain 12 Apps in Toolbox?
amk19 said:
In order to make it odex there should be framework.odex file. But I can't find any.
All I can see is framework.jar which is around 300 bytes...
How can make required changes to obtain 12 Apps in Toolbox?
Click to expand...
Click to collapse
As i told you, you have the boot.oat, which now contains the old odex files for framework..
Try searching google for guides on how to deodex roms
amk19 said:
In order to make it odex there should be framework.odex file. But I can't find any.
All I can see is framework.jar which is around 300 bytes...
How can make required changes to obtain 12 Apps in Toolbox?
Click to expand...
Click to collapse
You can use this tool http://forum.xda-developers.com/galaxy-s5/general/tool-deodex-tool-android-l-t2972025
To deodex your entire rom and then you need to flash it ALL in recovery. I suggest taking a dev base by @_alexndr for n900, replacing app priv-app and framework folders in system of his zip and flashing. You will have a flashable deodex with correct permissions and aroma.
Hey @daxgirl how about guide to port/enable toolbox? Can you share it ?? Thanks.
Related
Alright, here's my first "release": an ugly "hack" (more like "skript kidding", but that's a different story) enabling trackpad-to-wake and trackpad-to-unlock on new Sense (based on 1.72) ROMs.
Credits to muhhhh and b1oh4zard for extracting the htclockscreen.apk from the Virtuous 0.9.0 (thread http://forum.xda-developers.com/showthread.php?t=929182) and to a very old (pre-1.72) update.zip for the same I had lying around on my drive - I'm sorry, but I don't remember who built that in the first place (if the author recognizes it, please step forward and I'll be glad to provide a link or something).
Basically, all I did was unzip the old update.zip - replace the apk file - zip back.
How to install: download the file below to your SD card and flash from recovery.
Tested and working fine with Baadnewz v1.8c -> first click on trackpad wakes the device, the second click unlocks it. Enjoy and please report back if any trouble.
If your ROM is based on 1.84, do NOT flash my file, but use the one by poorhatsoap instead: http://forum.xda-developers.com/showpost.php?p=11325344&postcount=4825 .
Reserved (just in case).
Sorry, I am not sure what's the prupose of this function ? Is this for LOCK and UNLOCK the DESIRE by using the trackpad instead of the power button ? Thanks
Fantastic - thanks for this!
chihliouma said:
Sorry, I am not sure what's the prupose of this function ? Is this for LOCK and UNLOCK the DESIRE by using the trackpad instead of the power button ? Thanks
Click to expand...
Click to collapse
Just for waking/unlocking - the locking is still done by the Power button or automatically following the screen timeout.
thank you very much
works with my baadnwz 1.8c
Great! Works on coolexe HD v2. Just the thing I missed.
Sent from my HTC Desire using XDA App
Glad to hear it's working, it's one functionality I can't live without... the power button is in an impossible position for one-handed operation.
airwave88 said:
Alright, here's my first "release": an ugly "hack" (more like "skript kidding", but that's a different story) enabling trackpad-to-wake and trackpad-to-unlock on new Sense (based on 1.72) ROMs.
Credits to muhhhh and b1oh4zard for extracting the htclockscreen.apk from the Virtuous 0.9.0 (thread http://forum.xda-developers.com/showthread.php?t=929182) and to a very old (pre-1.72) update.zip for the same I had lying around on my drive - I'm sorry, but I don't remember who built that in the first place (if the author recognizes it, please step forward and I'll be glad to provide a link or something).
Basically, all I did was unzip the old update.zip - replace the apk file - zip back.
How to install: download the file below to your SD card and flash from recovery.
Tested and working fine with Baadnewz v1.8c -> first click on trackpad wakes the device, the second click unlocks it. Enjoy and please report back if any trouble.
Click to expand...
Click to collapse
Great...thanks a lot!!!
OMG, thank you som much. was thinking to start a thread about this earlier today.
Thank you so much. I was going crazy without this.
Trackpad wake & unlock only (no power button wake)
Any chance someone can do this without power button wake; my phone keeps turning on in my pocket. there used to be options with MCR roms so that you could have trackpad wake only.
Thanks
one question... doesn't roms like RCMixHD got that already for longer than 3 months?
Flashmaniac said:
one question... doesn't roms like RCMixHD got that already for longer than 3 months?
Click to expand...
Click to collapse
No idea to be honest, I've only been using baadnewz's HD ROM (and some 2.3 flavors) for quite a while how.
However, I believe the 1.72 base may be a little bit newer than three months.
Flashmaniac said:
one question... doesn't roms like RCMixHD got that already for longer than 3 months?
Click to expand...
Click to collapse
I had it for the older base, i never patched the newbase lockscreen
So thanks man, spared chefs some job!
robocik said:
I had it for the older base, i never patched the newbase lockscreen
So thanks man, spared chefs some job!
Click to expand...
Click to collapse
Not my work, the patched apk is coming from Virtuous 0.9.0, I only repacked it to a flashable-friendly format.
tinker2000 said:
Any chance someone can do this without power button wake; my phone keeps turning on in my pocket. there used to be options with MCR roms so that you could have trackpad wake only.
Thanks
Click to expand...
Click to collapse
I looked into it, but I'm quite a newbie in this field; if someone can point me in the right direction, would be glad to create several different setups (with/without power button active, with/without menu button for unlock etc).
So far, I managed to unpack the apk, deodex the classes.dex using baksmali and compare the patched/non-patched files. The only differences are in the htclockscreen.smali file (the 342 KB one), but can't make out where the correct button is actually declared (the main suspect is line 801, but can't tell for sure):
Code:
E:\Desire\smali>fc htclockscreen.smali htclockscreen_orig.smali
Comparing files HtcLockScreen.smali and HTCLOCKSCREEN_ORIG.SMALI
***** HtcLockScreen.smali
.line 801
.local v0, msg:Landroid/os/Message;
const v1, 0x17
if-ne p1, v1, :cond_2d
invoke-virtual {p0}, Lcom/htc/lockscreen/HtcLockScreen;->goToUnlockScreen()V
:cond_2d
const/16 v1, 0x14
***** HTCLOCKSCREEN_ORIG.SMALI
.line 800
.local v0, msg:Landroid/os/Message;
const/16 v1, 0x14
*****
***** HtcLockScreen.smali
if-eq p1, v1, :cond_46
***** HTCLOCKSCREEN_ORIG.SMALI
if-eq p1, v1, :cond_3e
*****
***** HtcLockScreen.smali
if-eq p1, v1, :cond_46
***** HTCLOCKSCREEN_ORIG.SMALI
if-eq p1, v1, :cond_3e
*****
***** HtcLockScreen.smali
if-eq p1, v1, :cond_46
***** HTCLOCKSCREEN_ORIG.SMALI
if-eq p1, v1, :cond_3e
*****
***** HtcLockScreen.smali
if-eq p1, v1, :cond_46
.line 805
iget-object v1, p0, Lcom/htc/lockscreen/HtcLockScreen;->mReminderView:Lcom/h
tc/lockscreen/HtcLSViewInterface;
***** HTCLOCKSCREEN_ORIG.SMALI
if-eq p1, v1, :cond_3e
.line 804
iget-object v1, p0, Lcom/htc/lockscreen/HtcLockScreen;->mReminderView:Lcom/h
tc/lockscreen/HtcLSViewInterface;
*****
***** HtcLockScreen.smali
if-eqz v1, :cond_46
.line 806
iget-object v1, p0, Lcom/htc/lockscreen/HtcLockScreen;->mReminderView:Lcom/h
tc/lockscreen/HtcLSViewInterface;
***** HTCLOCKSCREEN_ORIG.SMALI
if-eqz v1, :cond_3e
.line 805
iget-object v1, p0, Lcom/htc/lockscreen/HtcLockScreen;->mReminderView:Lcom/h
tc/lockscreen/HtcLSViewInterface;
*****
***** HtcLockScreen.smali
:cond_46
move v1, v4
***** HTCLOCKSCREEN_ORIG.SMALI
:cond_3e
move v1, v4
*****
***** HtcLockScreen.smali
.line 810
goto :goto_20
***** HTCLOCKSCREEN_ORIG.SMALI
.line 809
goto :goto_20
*****
E:\Desire\smali>
yah, made my life easier
baadnewz said:
yah, made my life easier
Click to expand...
Click to collapse
Thanks for the link mate.
Now just pray people bother reading the post before asking in your thread "is it possible to have a new version of the ROM with trackpad-to-unlock?"
OMG Finally the one working on ReflexTSense 1.6.1. Thanks man
airwave88 said:
Thanks for the link mate.
Now just pray people bother reading the post before asking in your thread "is it possible to have a new version of the ROM with trackpad-to-unlock?"
Click to expand...
Click to collapse
there will be a couple that wont read, why would they do that it's easier to ask and demand, then read a little
Isn't my work all credits to @kin201303
original thread: http://forum.xda-developers.com/showthread.php?t=2729438
Root and deodexed framework2.jar recommended.
Needed tools:
Backsmali/Smali
Notepad++
7Zip
1.) Baksmali framework2.jar
2.) Navigate to com/samsung/android/multiwindow folder
3.) Open MultiWindowApplicationInfos.smali
find: .field private static final SUPPORTEDSCALE_ALL_APPLICATIONS:Z
add blue
Code:
# static fields
[COLOR="Blue"].field private static final CONFIG_FILE:Ljava/lang/String; = "/system/etc/mw_blacklist.txt"[/COLOR]
[COLOR="DarkGreen"].field private static final SUPPORTEDSCALE_ALL_APPLICATIONS:Z[/COLOR]
find: .field mNotSupportScaleAppList:Ljava/util/ArrayList;
add blue
Code:
.end field
[COLOR="Blue"].field mMaxPenWindowCount:I
.field private mMultiWindowBlackList:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field [/COLOR]
[COLOR="DarkGreen"].field mNotSupportScaleAppList:Ljava/util/ArrayList;[/COLOR]
find: .method public isSupportApp(Ljava/lang/StringZ
overwrite the whole method with this new one:
Code:
[COLOR="DarkGreen"].method public isSupportApp(Ljava/lang/String;)Z[/COLOR]
.registers 6
iget-object v2, p0, Lcom/samsung/android/multiwindow/MultiWindowApplicationInfos;->mMultiWindowBlackList:Ljava/util/List;
if-nez v2, :cond_3b
new-instance v2, Ljava/util/ArrayList;
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
iput-object v2, p0, Lcom/samsung/android/multiwindow/MultiWindowApplicationInfos;->mMultiWindowBlackList:Ljava/util/List;
new-instance v2, Ljava/io/File;
const-string v3, "/system/etc/mw_blacklist.txt"
invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V
invoke-virtual {v2}, Ljava/io/File;->exists()Z
move-result v2
if-eqz v2, :cond_3b
:try_start_18
new-instance v1, Ljava/io/BufferedReader;
new-instance v2, Ljava/io/FileReader;
const-string v3, "/system/etc/mw_blacklist.txt"
invoke-direct {v2, v3}, Ljava/io/FileReader;-><init>(Ljava/lang/String;)V
invoke-direct {v1, v2}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
:cond_24
:goto_24
invoke-virtual {v1}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_3b
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v2
if-lez v2, :cond_24
iget-object v2, p0, Lcom/samsung/android/multiwindow/MultiWindowApplicationInfos;->mMultiWindowBlackList:Ljava/util/List;
invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:try_end_39
.catch Ljava/lang/Exception; {:try_start_18 .. :try_end_39} :catch_3a
goto :goto_24
:catch_3a
move-exception v2
:cond_3b
iget-object v2, p0, Lcom/samsung/android/multiwindow/MultiWindowApplicationInfos;->mMultiWindowBlackList:Ljava/util/List;
invoke-interface {v2, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_45
const/4 v2, 0x1
:goto_44
return v2
:cond_45
const/4 v2, 0x0
goto :goto_44
.end method
find: .method public isSupportScaleApp(Landroid/content/pm/ActivityInfoZ
overwrite the whole method with this new one:
Code:
[COLOR="DarkGreen"].method public isSupportScaleApp(Landroid/content/pm/ActivityInfo;)Z[/COLOR]
.registers 2
const/4 p0, 0x1
return p0
.end method
4.) Save your changes
5.) Smali classout folder
6.) Add the new classes.dex file to framework2.jar with 7Zip
7.) Push to your Phone
8.) Copy the attached mw_backlist.txt to system/etc folder set permissions. (rw-r--r--)
9.) Reboot
4.4.2 Multi Instance & Quad view
Optional: Multi instance
find: .method public isSupporMultiInstance(Landroid/content/pm/ActivityInfoZ
Delete red
Add blue
Code:
[COLOR="DarkGreen"].method public isSupporMultiInstance(Landroid/content/pm/ActivityInfo;)Z[/COLOR]
.registers 5
.parameter "activityInfo"
.prologue
[COLOR="red"]const/4 v0, 0x0[/COLOR]
[COLOR="blue"]const/4 v0, 0x1[/COLOR]
.line 217
if-eqz p1, :cond_7
iget-object v1, p1, Landroid/content/pm/ComponentInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;
if-nez v1, :cond_8
Optional: Quad view
Thanks to @unclefab for sharing!
Original thread: http://forum.xda-developers.com/showthread.php?t=2770531
Whit this mod you can see 4 app in multi window. (second & third screen shot in the attachment)
Download the attached rar file and copy com.sec.feature.multiwindow.quadview.xml from it to:
/ system / etc / permissions folder
Set permissions to rw-r--r--
Reboot.
good good good. Thanks for sharing
Very cool! Good job
Sent from my SM-N900T using Tapatalk 2
tkari4 said:
Optional: Multi instance
...
Click to expand...
Click to collapse
Just saw this one and I am just like a Woohoo! Thanks buddy...
Thank you tkari4. It also works great in the S5 port (why not ).
Thanks man!!!!
:good:
Nice job!! Really great thing..
Ancient phones: Nokia 3310, 5210, 6610, 6600, Samsung E700, Samsung D410, Nokia N73, Siemens SL55, Iphone 2G, Nokia E5, Samsung galaxy S2, S3, Galaxy grand duos.
Sent from my samsung note III N9005.
Rooting needed?
Do i need to root to use it? My N3 still under warranty and i dont wanna void it...yet
Netpreneur said:
Do i need to root to use it? My N3 still under warranty and i dont wanna void it...yet
Click to expand...
Click to collapse
Yes, root needed.
Can someone mod the files and make a flashable zip for the stock Tmo NE6 rom for us noobs please. Thank you
Sent from my SM-N900T using Tapatalk
Post your file framework2.jar and twframework2.odex in dropbox, mega or other service and I mod and make a flashable zip file for you.
Sent from my SM-N9005 using xda premium
framework file
technoyama said:
Post your file framework2.jar and twframework2.odex in dropbox, mega or other service and I mod and make a flashable zip file for you.
Sent from my SM-N9005 using xda premium
Click to expand...
Click to collapse
Hi. I attached the files you asked for. Thank you
Good work
Enviado desde mi SM-N9005 mediante Tapatalk
Is this mod for odex rom? Im getting an android upgrading message after every reboot. An im sure thats what happens with odex mods......could be wrong tho lol
Sent from my SM-N9005 using XDA Premium 4 mobile app
maskerwsk said:
Is this mod for odex rom? Im getting an android upgrading message after every reboot. An im sure thats what happens with odex mods......could be wrong tho lol
Sent from my SM-N9005 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thanks added to OP.
Only for deodexed jar.
Great Job...
Even works with my Note2....
Thanks..
Hi man! Thanks for sharing your guide. I am having problems in making it working for N8000. I have done all those changes to smali but no luck. Do you have an hint ?
Vish.N said:
Hi. I attached the files you asked for. Thank you
Click to expand...
Click to collapse
Hi Vish.N
I access the XDA's Forum just today. I found a problem when trying to deodex your framework2.jar and I'll check what might be going wrong in the process. I'm a bit out of time because final exams here at the college where I teach. But by the end of the week I send you the modified file.
Sorry for answering just now
Mikyno said:
Hi man! Thanks for sharing your guide. I am having problems in making it working for N8000. I have done all those changes to smali but no luck. Do you have an hint ?
Click to expand...
Click to collapse
Sorry! Can't help without the N8000.
Hello guys!
Little guide for your use. We will increase the maximum number of quick setting items to... (well I prefer 15, but really - to whatever).
This mod will work on any device with quicksettings. It will work from android 4.4.2 to android 5 no problem.
You will need:
1. SecSettings.apk
2. Knowledge in how to decompile/baksmali
3. Any text editor (using Kate here, yay kubuntu)
4. About like... 5 minutes for the entire mod
Let's get crackin':
1. Decompile SecSettings.apk and navigato to smali/com/android/settings/Utils.smali
2. Find the following method:
Code:
.method public static getMaxFavoriteItemNumber()I
.locals 1
.prologue
.line 4459
invoke-static {}, Lcom/android/settings/Utils;->isGridListUIEnabeld()Z
move-result v0
if-eqz v0, :cond_0
.line 4460
const/16 v0, [COLOR="SeaGreen"]0x9[/COLOR]
.line 4462
:goto_0
return v0
:cond_0
const/16 v0, [COLOR="Red"]0xc[/COLOR]
goto :goto_0
.end method
As you can see it's pretty straight forward: if grid is enabled (in boolean, not by default), set max number to 9 (in green). if it's disabled, set max number to 12 (in red). That's why on s5 it's set to 12 (comes by default with grid, boolean set to false) and on note 4 it's set to 9.
Basically you can just change both numbers to what you want or just the one that fits your needs. Or you can just remove the entire "innerts" of the method and write const/16 v0, 0xf return v0 and be done with it.
No matter what you do, just keep the register 16 bit large (for number greater than 7, which it is already) and stick to hexadecimal format (you can find conversion online).
I personally like the 15 Quick Settings items best (most comfortable for me).
So I just do this (on s5) (in blue is what I change to set the max number to 15):
Code:
.method public static getMaxFavoriteItemNumber()I
.locals 1
.prologue
.line 4459
invoke-static {}, Lcom/android/settings/Utils;->isGridListUIEnabeld()Z
move-result v0
if-eqz v0, :cond_0
.line 4460
const/16 v0, 0x9
.line 4462
:goto_0
return v0
:cond_0
const/16 v0, [COLOR="Blue"]0xf[/COLOR]
goto :goto_0
.end method
That's it, recompile and push back (duh!)
Cheers guys, if you find this helpful, use and enjoy!
Your guides are always the best. Unlike others you don't keep the knowledge just to yourself. Thanks for helping us to mod our roms !
Sent from my SM-N9005 using Tapatalk
DaOldMan said:
Your guides are always the best. Unlike others you don't keep the knowledge just to yourself. Thanks for helping us to mod our roms !
Sent from my SM-N9005 using Tapatalk
Click to expand...
Click to collapse
It's always my pleasure, my friend!!! Use and enjoy! Although I don't remember, in the end you guys have the quicksettings on note 3 lolli?
daxgirl said:
It's always my pleasure, my friend!!! Use and enjoy! Although I don't remember, in the end you guys have the quicksettings on note 3 lolli?
Click to expand...
Click to collapse
In the leaked lp the note 3 settings are terrible. We have only the Tab view and no quick settings whose I terribly miss. I hope the final rom will have more settings then this.
Thomas
Sent from my SM-N9005 using Tapatalk
daxgirl said:
.....
We will increase the maximum number of quick setting items to... (well I prefer 15, but really - to whatever).
Click to expand...
Click to collapse
you quick setting weirdo
nice guide
Wuby986 said:
you quick setting weirdo [emoji14]
nice guide
Click to expand...
Click to collapse
Sure! At least I have SYSTEM! ??? ALL THE TIME! (Well most if the time...)
daxgirl said:
Hello guys!
Little guide for your use. We will increase the maximum number of quick setting items to... (well I prefer 15, but really - to whatever).
This mod will work on any device with quicksettings. It will work from android 4.4.2 to android 5 no problem.
You will need:
1. SecSettings.apk
2. Knowledge in how to decompile/baksmali
3. Any text editor (using Kate here, yay kubuntu)
4. About like... 5 minutes for the entire mod
Let's get crackin':
1. Decompile SecSettings.apk and navigato to smali/com/android/settings/Utils.smali
2. Find the following method:
Code:
.method public static getMaxFavoriteItemNumber()I
.locals 1
.prologue
.line 4459
invoke-static {}, Lcom/android/settings/Utils;->isGridListUIEnabeld()Z
move-result v0
if-eqz v0, :cond_0
.line 4460
const/16 v0, [COLOR="SeaGreen"]0x9[/COLOR]
.line 4462
:goto_0
return v0
:cond_0
const/16 v0, [COLOR="Red"]0xc[/COLOR]
goto :goto_0
.end method
As you can see it's pretty straight forward: if grid is enabled (in boolean, not by default), set max number to 9 (in green). if it's disabled, set max number to 12 (in red). That's why on s5 it's set to 12 (comes by default with grid, boolean set to false) and on note 4 it's set to 9.
Basically you can just change both numbers to what you want or just the one that fits your needs. Or you can just remove the entire "innerts" of the method and write const/16 v0, 0xf return v0 and be done with it.
No matter what you do, just keep the register 16 bit large (for number greater than 7, which it is already) and stick to hexadecimal format (you can find conversion online).
I personally like the 15 Quick Settings items best (most comfortable for me).
So I just do this (on s5) (in blue is what I change to set the max number to 15):
Code:
.method public static getMaxFavoriteItemNumber()I
.locals 1
.prologue
.line 4459
invoke-static {}, Lcom/android/settings/Utils;->isGridListUIEnabeld()Z
move-result v0
if-eqz v0, :cond_0
.line 4460
const/16 v0, 0x9
.line 4462
:goto_0
return v0
:cond_0
const/16 v0, [COLOR="Blue"]0xf[/COLOR]
goto :goto_0
.end method
That's it, recompile and push back (duh!)
Cheers guys, if you find this helpful, use and enjoy!
Click to expand...
Click to collapse
but what about 4.2.2 can you please say how to enable them just give instructions..
manikar said:
but what about 4.2.2 can you please say how to enable them just give instructions..
Click to expand...
Click to collapse
The quick settings in Secsettings.apk is a new function first introduced in samsung galaxy s5 on android 4.4.2. So there is absolutely no way you can have that on 4.2.2.
Cheers!
as you put the settings with white background Note4 style?
FelipeGG said:
as you put the settings with white background Note4 style?
Click to expand...
Click to collapse
Hey, this is not note 4 style. This is s5 with official lollipop
It's true ... I did not see well, thank Friend
daxgirl said:
The quick settings in Secsettings.apk is a new function first introduced in samsung galaxy s5 on android 4.4.2. So there is absolutely no way you can have that on 4.2.2.
Cheers!
Click to expand...
Click to collapse
no bro , i mean that how to increase quick toggles in notification panel please help me out in 4.2.2
manikar said:
no bro , i mean that how to increase quick toggles in notification panel please help me out in 4.2.2
Click to expand...
Click to collapse
I am not sure I understand what you mean. If you mean to have more than 5 in a row, you need to change it in integers.xml in systemui
I know that's how it works now. I am not sure that was the case in 4.2.2. It's been awhile.
I hope this helps.
daxgirl said:
I am not sure I understand what you mean. If you mean to have more than 5 in a row, you need to change it in integers.xml in systemui
I know that's how it works now. I am not sure that was the case in 4.2.2. It's been awhile.
I hope this helps.
Click to expand...
Click to collapse
no bro what i meant is to enable hidden notification toggles in 4.2.2 ..please help me how to enable them , i found all the png files but they are hidden in notification drawer
manikar said:
no bro what i meant is to enable hidden notification toggles in 4.2.2 ..please help me how to enable them , i found all the png files but they are hidden in notification drawer
Click to expand...
Click to collapse
If those are existing toggles, you can edit sql database for setting storage and add them manually (if that's just for you) or (if you're building a rom) and if it's samsung device, you can open them using a csc feature. I will find the exact tag for you as I don't remember it by heart.
daxgirl said:
If those are existing toggles, you can edit sql database for setting storage and add them manually (if that's just for you) or (if you're building a rom) and if it's samsung device, you can open them using a csc feature. I will find the exact tag for you as I don't remember it by heart.
Click to expand...
Click to collapse
As far as I know that CSC feature is not working anymore on adding quick toggles in lollipop(or am doing it wrong?).That's the case on my Note3 by the way. I always do that on kitkat but now I can't on lollipop. .As usual your guides are one of the most easy to understand and easy to follow guides around. Thanks and nice job again Miss daxgirl.:good:
---------- Post added at 02:46 PM ---------- Previous post was at 02:39 PM ----------
daxgirl said:
It's always my pleasure, my friend!!! Use and enjoy! Although I don't remember, in the end you guys have the quicksettings on note 3 lolli?
Click to expand...
Click to collapse
We have one lollipop rom on Note 3 here which has that quick settings. Its a port of the S5 secsettings.apk I think. That I extracted and use it on another rom,which work quite well. http://forum.xda-developers.com/gal...t/n9005-lollipop-5-0-s5-note3-stable-t2994680
filchi756 said:
As far as I know that CSC feature is not working anymore on adding quick toggles in lollipop(or am doing it wrong?).That's the case on my Note3 by the way. I always do that on kitkat but now I can't on lollipop. .As usual your guides are one of the most easy to understand and easy to follow guides around. Thanks and nice job again Miss daxgirl.:good:
---------- Post added at 02:46 PM ---------- Previous post was at 02:39 PM ----------
We have one lollipop rom on Note 3 here which has that quick settings. Its a port of the S5 secsettings.apk I think. That I extracted and use it on another rom,which work quite well. http://forum.xda-developers.com/gal...t/n9005-lollipop-5-0-s5-note3-stable-t2994680
Click to expand...
Click to collapse
I have no idea about csc feature on Lollipop whether will work or not. But I have to say that the guy was asking for 4.2.2... sooooo... looolllllll that will work for sure ?
Thanks for the secsettings reference! I don't have the note 3 anymore, but I did 'give you up' to @DaOldMan since he was looking for s5 settings for lollipop! !!
Cheers, my friend, and thank you for EVERYTHING!!!
Sent from my SM-G900F using Tapatalk
daxgirl said:
I have no idea about csc feature on Lollipop whether will work or not. But I have to say that the guy was asking for 4.2.2... sooooo... looolllllll that will work for sure
Thanks for the secsettings reference! I don't have the note 3 anymore, but I did 'give you up' to @DaOldMan since he was looking for s5 settings for lollipop! !!
Cheers, my friend, and thank you for EVERYTHING!!!
Sent from my SM-G900F using Tapatalk
Click to expand...
Click to collapse
I know that Norma rom. That's the one only rom with Toolbox working 100%. I worked a lot on it's settings for Toolbox but couldn't find what's wrong with ours. So it's just better to use the whole apk heheh @filchi756. Will try it , I love Norma's settings much more then the horrible Note3 stock LP crap
Thomas
DaOldMan said:
I know that Norma rom. That's the one only rom with Toolbox working 100%. I worked a lot on it's settings for Toolbox but couldn't find what's wrong with ours. So it's just better to use the whole apk heheh @filchi756. Will try it , I love Norma's settings much more then the horrible Note3 stock LP crap
Thomas
Click to expand...
Click to collapse
We are the same mate .I love Norma setting layout.That's why I use it on another rom.Mate try the new release version (0120). It like a mix of note4 and S5.
---------- Post added at 09:05 PM ---------- Previous post was at 08:59 PM ----------
daxgirl said:
I have no idea about csc feature on Lollipop whether will work or not. But I have to say that the guy was asking for 4.2.2... sooooo... looolllllll that will work for sure ?
Thanks for the secsettings reference! I don't have the note 3 anymore, but I did 'give you up' to @DaOldMan since he was looking for s5 settings for lollipop! !!
Cheers, my friend, and thank you for EVERYTHING!!!
Sent from my SM-G900F using Tapatalk
Click to expand...
Click to collapse
I already told him before about it.Hope you do more guides like this eventhough your on Note4 already. It me who have to thank you Miss Daxgirl.Thanks for all the guides.:good::good::good:
I am on note 4 but s5 is my all times favourite. I am not giving it up ???
Sent from my SM-G900F using Tapatalk
9/22 UPDATE: Now includes support for Magisk as well as supporting SuperSU systemless and phh Superuser/seSuperuser. To do this the system root paths were edited, thus these apps no longer support root options embedded in system. Since this primarily affects Cyanogenmod users the download page now includes copies of ES File Explorer 3.2.5.5 and 4.0.2.2 without any modifications at all, except for being re-signed with my app signature to prevent them from updating.
---------------------------------------------------------
Something I've been noticing sitewide is that users of ES File Explorer were having difficulty with systemless root. Current versions of ES File Explorer do have systemless support, however they still are a bloated, ruined mess with the potential of adding malware in the future. The versions available in this thread are the last version offered by EStrongs before selling the app to ESGlobal (v. 3.2.5.5) and the last version by ESGlobal (v. 4.0.2.2) that allowed the end user to delete the accursed home page, didn't have any app advertisements, needless bloat, or malware.
The entire problem stems from the fact that the various paths to the superuser binary are hard-coded as an array in the java code. While temporary solutions have been proposed, such as copying the su binary and its support files to the /system partition, or enabling SuperSU's app compatibility function, the best fix is to decompile the app, edit the m.smali file in /smali/com/estrongs/fs/impl/local, and add in the systemless paths.
If you want to read the brief tutorial, hit the button below. Otherwise, read on.
Find the array in m.smali. The code snippet is below.
Code:
const/4 v0, 0x5
new-array v4, v0, [Ljava/lang/String;
const-string/jumbo v0, "/system/xbin/su"
aput-object v0, v4, v1
const-string/jumbo v0, "/system/sbin/su"
aput-object v0, v4, v2
const-string/jumbo v0, "/system/bin/su"
aput-object v0, v4, v3
const-string/jumbo v0, "/vendor/bin/su"
aput-object v0, v4, v6
const-string/jumbo v0, "/sbin/su"
aput-object v0, v4, v7
const/4 v0, 0x5
new-array v5, v0, [Ljava/lang/String;
const-string/jumbo v0, "/system/xbin/daemonsu"
aput-object v0, v5, v1
const-string/jumbo v0, "/system/sbin/daemonsu"
aput-object v0, v5, v2
const-string/jumbo v0, "/system/bin/daemonsu"
aput-object v0, v5, v3
const-string/jumbo v0, "/vendor/bin/daemonsu"
aput-object v0, v5, v6
const-string/jumbo v0, "/sbin/daemonsu"
aput-object v0, v5, v7
move v0, v1
Replace the entire array with the following code.
Code:
const/4 v0, 0x5
new-array v4, v0, [Ljava/lang/String;
const-string/jumbo v0, "/su/bin/su"
aput-object v0, v4, v1
const-string/jumbo v0, "/magisk/.core/bin/su"
aput-object v0, v4, v2
const-string/jumbo v0, "/magisk/phh/bin/su"
aput-object v0, v4, v3
const-string/jumbo v0, "/vendor/bin/su"
aput-object v0, v4, v6
const-string/jumbo v0, "/sbin/su"
aput-object v0, v4, v7
const/4 v0, 0x5
new-array v5, v0, [Ljava/lang/String;
const-string/jumbo v0, "/su/bin/daemonsu"
aput-object v0, v5, v1
const-string/jumbo v0, "/magisk/.core/bin/daemonsu"
aput-object v0, v5, v2
const-string/jumbo v0, "/magisk/phh/bin/daemonsu"
aput-object v0, v5, v3
const-string/jumbo v0, "/vendor/bin/daemonsu"
aput-object v0, v5, v6
const-string/jumbo v0, "/sbin/daemonsu"
aput-object v0, v5, v7
move v0, v1
Testing on my Nexus 6 using SuperSU was successful. Testing on a Galaxy Note 4 running Magisk was also successful. seSuperuser/phh Superuser should function but it is untested. Device owners with seSuperuser/phh Superuser are more than welcome to post their results here.
I did this because I need the app backup feature. While other apps are out there that can backup apps and data, none of them work as well in my mind as ES File Explorer. So after modifying the smali code, I re-signed the apps using my personal certificate. I don't know about anyone else, but with the new owner throwing malware into the app I don't want the app automatically upgrading itself. Re-signing the app should take care of that.
To distinguish the systemless apps from the originals, when recompiling the apps I appended an "s" to the version number, with "s" standing for "systemless". While I personally use version 4.0.2.2, I know a lot of people still prefer version 3.2.5.5, so I have provided links to both. Please keep in mind however the following.
Due to the smali code editing as well as the version number change and the replaced signature, anti-malware apps on devices will flag these apps as a false positive. Both versions were flagged on my Nexus 6 and my Galaxy S4, both of which were running Avast. These versions of the app predates ESGlobal adding app advertisements and malware to the app, thus the warning can be safely ignored.
It's required to uninstall any other version of ES File Explorer (except Pro) before installing a copy of the apps provided here. This is because the changed app signature will prevent the app from successfully installing.
Should you wish to make the edits yourself, either because of a lack of trust or a desire to use a different version than what is available in this thread, untouched versions can be found at apkmirror.com.
Downloads
ES File Explorer 4.0.2.2 Systemless
ES File Explorer 4.0.2.2
ES File Explorer 3.2.5.5 Systemless
ES File Explorer 3.2.5.5
XDA:DevDB Information
ES File Explorer Systemless, App for the Apps & Games
Contributors
Strephon Alkhalikoi
Version Information
Status: No Longer Updated
Created 2016-07-02
Last Updated 2016-09-23
Awesome! Thanks for your work and insight! I'll use your v4.0.2.2 apk even though I was previously using v4.0.2.3 on my old device with traditional system root. That was the last version before ES "sold" the app.
I'll have to try this decompile, edit smali, recompile, and sign myself one day because your solution does seem to be the best method. It means we don't have to fake SuperSU compatiblity mode "BINDSYSTEMXBIN=true" which would break Android Pay.
@Silly22: 4.0.2.3 has a "suggested apps" bar in the app backup feature not found in 4.0.2.2. 3.2.5.5 was the last version by EStrongs.
Not breaking Android Pay is a nice side effect.
9/16 Update: The method used to enable systemless root support has changed from simply adding the requisite entries, which apparently renders the /sbin/su path unusable, to replacing the entire hard-coded array with the updated version used in the later apps. See the tutorial for particulars. The APK files themselves have been updated.
*Gives the thread a hip check into the boards*
9/22 Update: APKs updated with Magisk support. The app should now support all three systemless superuser implementations. System root is no longer supported in the modified apps, so untouched versions of the original apps - re-signed of course - are available in the Download tab.
Download tab?
Sent from my SM-N920P using Tapatalk
dark jedi66 said:
Download tab?
Sent from my SM-N920P using Tapatalk
Click to expand...
Click to collapse
Gotta use your browser at the top of OP you'll see a black header with 4 different tabs
Sent from my SM-N915P using XDA-Developers mobile app
I seen it thanks
Sent from my SM-N920P using Tapatalk
@dark jedi66: Sorry about that. I neglected to take mobile apps into account when I updated the apps for this thread. I added in links so hopefully this doesn't happen again in the future.
Great, thank you.
Thanks for refreshing a once great app and making it relevant and usable. Do you have any suggestions for updating the app for use with Android 7.1? Both of your versions work well, but crash when "sending" files from one device to another. I believe this to be the case with released recent versions too.
Would be great to have a fixed version working on nougat.
Thanks again.
t3ch42 said:
Thanks for refreshing a once great app and making it relevant and usable. Do you have any suggestions for updating the app for use with Android 7.1? Both of your versions work well, but crash when "sending" files from one device to another. I believe this to be the case with released recent versions too.
Would be great to have a fixed version working on nougat.
Thanks again.
Click to expand...
Click to collapse
I don't use those features so I can't provide any suggestions. I'm inclined to believe it is something ES App Group hasn't bothered to fix in their push to bloat the thing and turn it into malware.
Thanks for responding. The app is a lot more useful and trustworthy on these versions. I truly commend you for the modifications.
I find the "send" function useful as I can set up a new device pretty quickly or send something between devices or the firetv pretty easily. Unfortunately, this is broken for the Nougat version. Just from looking at some logs and bug fix requests, it seems that this is still broken in the latest bloated malware release that the ES app group have submitted.
I don't know anything about modifying apps, but it seems like a trust issue with the new is version.
Thanks again for the apps, they give hope for useful and relevant tools.
Strephon Alkhalikoi said:
[*]It's required to uninstall any other version of ES File Explorer (except Pro) before installing a copy of the apps provided here. This is because the changed app signature will prevent the app from successfully installing.
Click to expand...
Click to collapse
Thanks for this. Can you explain why Pro is excluded from the uninstall requirement?
Mesmurized said:
Thanks for this. Can you explain why Pro is excluded from the uninstall requirement?
Click to expand...
Click to collapse
Two reasons.
1. This version and the pro version can be installed at the same time due to differing package names.
2. The pro app is supposedly malware free.
If you have the pro app and want to uninstall it, no one will object.
I stumbled on this topic very late, but you, sir, are my hero!!
I was working with a re-signed version myself but was working with the echo bind thingy, but this is so much cleaner!
I found this topic with google as I decompiled es file explorer myself and found the m.smali direct links to the su directory, but didn't knew which paths to set to fix the issue. Thank you so much for your work!
@Strephon Alkhalikoi Request: Is it possible to remove the 'call home' activity from the latest 3.2.5.5 versions? Note: All potential network activity options were disabled in Settings before testing (I hope )
My testing (using AFWall blocking all internet activity) shows: 16 attempts in 5 min to access/contact Baidu Netcom and China Unicom IP's on ports 80-http and 5353-multicast. IP addresses: 103.235.46.149 and .156, 104.193.88.79, 123.125.114.8, 239.2.0.251 and .252
Thanks for your support,
Mes
You may or may not know this, but on Reddit this was discussed in 2015. According to the official response to the question on HowardForums, "Thank you for your feedback. We use a third party Statistic module provided by Baidu it just counts user numbers anonymously and won't collect any user info. You might read our privacy policy from settings." (Source: HowardForums)
Now, while I can understand the concern given the latest versions of ES are the pits, I personally wouldn't lose too much sleep over this. In the meantime, if you wish to prevent ES from phoning home, your options are to block ES File Explorer in a firewall, or if rooted, install AdAway and add Baidu to its blacklist. When I have a spare moment, I will look at the code and see what I can do to eliminate the issue.
Strephon Alkhalikoi said:
You may or may not know this, but on Reddit this was discussed in 2015. ...
Now, while I can understand the concern given the latest versions of ES are the pits, I personally wouldn't lose too much sleep over this. In the meantime, if you wish to prevent ES from phoning home, your options are to block ES File Explorer in a firewall, or if rooted, install AdAway and add Baidu to its blacklist. When I have a spare moment, I will look at the code and see what I can do to eliminate the issue.
Click to expand...
Click to collapse
I searched XDA but forgot reddit. Oops. I'm using AFWall now to block. That's how I noticed the activity.
No pressure or hurry. Look around when you get time.
Thanks,
Mes
Thanks alot
*This thread is for dev, Rom maintainer.
Do not flash the attached file without services.jar editing.
*Don't send pm to me with your service.jar anymore. you never get my reply.
.
.
.
.
.
.
Hi all,
This is first mod by NX team
We decide to share our mod with XDA members.
Any dev can use this mod to their own rom with proper credits
This mod will be working with any kernel(selinux permissive) / any variant if you are on Note7 ported rom.
Features are below.
1.Bluelight filter fix
2.AOD notification alarm touch / Music control
(Note7 original behavior)
3.AOD brightness control
(Rooted/Reboot required to take effect)
Credits :
@Patrick.H (NX Team)
@karkasss (NX Team)
@develoid ALT and F4 (AOD touch / Bluelight filter fix)
@asc1977, @DaOldMan (AOD brightness control)
(Please copy & paste when you add our credits)
We say again.
All credits should be mentioned on your OP when you add this mod to your rom.
All codes are not original note7 code but their code written by themselves.
So anybody can notice when you steal our work without credits
Attached file is for AryaMOD note7 users we already modded to show you before & after.
I'm sure you can mod by comparing code for services.jar. (both classes.dex / classes2.dex are modded)
And rest files should be added/replaced.
Do not forget to give proper permission for each file if you try to flash add-on or OTA
(Please see the updater-script)
You can add AOD Brightness control menu to your rom control instead of AODsettings.apk
http://forum.xda-developers.com/showthread.php?p=69653504
Download :
https://drive.google.com/open?id=0ByMmvUc7IhtmbkVEYkI0eklBNW8
Video review :
https://youtu.be/7CsFPvf3vls
Caution :
1. If you do data reset(Factory reset), Bluelight filter will not be working.
Because some files are located in \data\bluelight\
=> Flashing mod file again.
2. Only English string is supported on notification panel when Blulight filter is activating.
If you want to translate to your language, open then edit the string /data/bluelight/filter.cfg
3.Selinux policy should be permissive by kernel to work bluelight filter.
4. http://forum.xda-developers.com/showthread.php?p=69933565
5.Bluelight filter is not working on exynos device. Sorry to late inform you.
Below files from zip are only for AryaMOD note7 users,
because @Kamy (Rom maintainer) deleted quickpanel toggle and setting menu of bluelight filter
-csc/aryamod.xml
-priv-app/SecSettings2
We are considering if we upload our rom which is all these mod included to XDA.
This rom has just pure function of Note7 without any mod.
Let you know our decision soon.
How to edit your services.jar
classes.dex part
1.AOD brightness control
com\android\server\display\DisplayPowerController.smali
For this smali edit, follow the below instruction.
http://forum.xda-developers.com/showthread.php?p=69653504
But only different string for "eragon_brightness" instead of "aod_brightness"
Because, AODsettings.apk file was aligned with this string "eragon_brightness" already.
2. AOD Touch & Bluelight filter
com\android\server\power\PowerManagerService$BinderService.smali
1)Go to the
.method public setDozeOverrideFromAod(IIILandroid/os/IBinderV
2)Search
const-string v0, "PowerManagerService"
2)Add below line
invoke-static {p2}, Lcom/samsung/android/aod/AODTouchDaemon;->call(I)V
like this.
Code:
const/16 v0, 0xff
if-le p3, v0, :cond_2d
:cond_2c
const/4 p3, -0x1
:cond_2d
[COLOR="Blue"]invoke-static {p2}, Lcom/samsung/android/aod/AODTouchDaemon;->call(I)V[/COLOR]
const-string v0, "PowerManagerService"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;->()V
com\samsung\android\mdnie\MdnieManagerService.smali
1)Search
.field private mDisplayOn:Z
2)Add below line
.field private mDaemon:Lcom/samsung/android/bluelightfilter/KPPDaemon;
like this
Code:
.field private final mContext:Landroid/content/Context;
.field private mCurtainModeIsRunning:Z
[COLOR="blue"].field private mDaemon:Lcom/samsung/android/bluelightfilter/KPPDaemon;[/COLOR]
.field private mDisplayOn:Z
.field private mEbookScenarioEnabled:Z
3)Search
const-string/jumbo v2, "lcd_curtain" or "lcd_curtain"
4)Add below line
invoke-virtual {p0}, Lcom/samsung/android/mdnie/MdnieManagerService;->addFilter()V
like this
Code:
:cond_fa
invoke-direct {p0}, Lcom/samsung/android/mdnie/MdnieManagerService;->setting_is_changed()V
[COLOR="blue"]invoke-virtual {p0}, Lcom/samsung/android/mdnie/MdnieManagerService;->addFilter()V[/COLOR]
return-void
:cond_101
const-string/jumbo v2, "lcd_curtain"
5)Search
# virtual methods
6)Add blue lines
Code:
# virtual methods
[COLOR="blue"].method public addFilter()V
.locals 2
new-instance v0, Lnxteam/craftingmod/bluelightfilter/KPPDaemon;
iget-object v1, p0, Lcom/samsung/android/mdnie/MdnieManagerService;->mContext:Landroid/content/Context;
invoke-direct {v0, v1}, Lnxteam/craftingmod/bluelightfilter/KPPDaemon;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lcom/samsung/android/mdnie/MdnieManagerService;->mDaemon:Lnxteam/craftingmod/bluelightfilter/KPPDaemon;
return-void
.end method[/COLOR]
.method public getContentMode()I
7)Search
.method public setmDNIeEmergencyMode(Z)Z
See the above lines.
8)Replaced Red lines by Blue lines
Code:
const-string v2, "/sys/class/mdnie/mdnie/accessibility"
if-eqz p1, :cond_4a
[COLOR="red"] const/4 v1, 0x6[/COLOR]
:cond_4a
[COLOR="Red"] invoke-static {v2, v1, p2}, Lcom/samsung/android/mdnie/MdnieManagerService;->sysfsWrite_CB_HBM(Ljava/lang/String;I[I)Z[/COLOR]
move-result v1
goto :goto_44
.end method
Code:
const-string v2, "/sys/class/mdnie/mdnie/accessibility"
if-eqz p1, :cond_4a
[COLOR="blue"] const/4 v1, 0x2[/COLOR]
:cond_4a
[COLOR="Blue"] invoke-static {v2, v1, p2}, Lcom/samsung/android/mdnie/MdnieManagerService;->sysfsWrite_CB(Ljava/lang/String;I[I)Z[/COLOR]
move-result v1
goto :goto_44
.end method
classes2.dex part
1)Add below smali to /root folder
https://drive.google.com/open?id=0ByMmvUc7IhtmY3JBNzJJUUNMMUE
Important
Don't forget add below permissions to your updater-script
set_perm(0, 2000, 0755, "/system/bin/kppd");
set_perm(0, 2000, 0666, "/data/bluelight/filter.cfg");
set_perm(0, 2000, 0666, "/data/bluelight/kppd.cfg");
This is wonderful [emoji120]
Sent from my SM-G935F using Tapatalk
Kamy said:
This is wonderful ?
Sent from my SM-G935F using Tapatalk
Click to expand...
Click to collapse
Why not [emoji12]
Nice job mate but in the title it's for all Note7 ported ROM however in the downloaded file it's for Aryamod only.
Second point, is the file flashable in any N7 ROM to fix AOD and blue filter.
Thnxx
Sent from my SM-N9005 using Tapatalk
amour9999 said:
Nice job mate but in the title it's for all Note7 ported ROM however in the downloaded file it's for Aryamod only.
Second point, is the file flashable in any N7 ROM to fix AOD and blue filter.
Thnxx
Sent from my SM-N9005 using Tapatalk
Click to expand...
Click to collapse
You do not flash this zip file if you are not on AryaMOD Note7 rom.
This thread is for Dev, Rom maintainer.
So you should wait until they mod.
karkasss said:
You do not flash this zip file if you are not on AryaMOD Note7 rom.
This thread is for Dev, Rom maintainer.
So you should wait until they mod.
Click to expand...
Click to collapse
Mate mind u shared exactly what u do it for aod ? , for other roms based on s7 , ?
Wow this is awesome!!! :good:
karkasss said:
Why not [emoji12]
Click to expand...
Click to collapse
Sorry I used emoji switch on keyboard and showed up as question mark. I meant this IS wonderful indeed thank you for sharing.
Sent from my SM-G935F using Tapatalk
Kamy said:
Sorry I used emoji switch on keyboard and showed up as question mark. I meant this IS wonderful indeed thank you for sharing.
Sent from my SM-G935F using Tapatalk
Click to expand...
Click to collapse
@Kamy
I sent pm you. could you ckeck please?
Thanks dude.. can you make also a settings without fingerprint and iris menu.thanks again.waiting for your instruction how to removed the korean in the notification panel.
examiner said:
Thanks dude.. can you make also a settings without fingerprint and iris menu.thanks again.waiting for your instruction how to removed the korean in the notification panel.
Click to expand...
Click to collapse
Wait until I update bluelightfilter.apk for the multi language. I'm not available at this moment.
Other request should be asked via original rom thread.
for the fingerprint, you can delete easily.
etc/permissions/ search *fingerprint~.xml
just delete all.
File updated.
Korean translated to English on notification panel.
Only english is supported.
If you want translate your language, edit string /data/bluelight/filter.cfg
OP updated. (Caution)
Here I am, I could not miss (under invitation) my great friend as well as great DEV @karkass
karkasss said:
File updated.
Korean translated to English on notification panel.
Only english is supported.
If you want translate your language, edit string /data/bluelight/filter.cfg
Click to expand...
Click to collapse
Is the notification strings supposed to be like this, i.e. mixed Korean and English?
kopitalk said:
Is the notification strings suppose to be like this, i.e. mixed Korean and English?
Click to expand...
Click to collapse
You can only change english to your language. ignore the written Korean. that is just reference.
I think you made a mistake with credits...
Tamerlan didn't do the mod for AOD brightness on RC but @asc1977 made it with [MENTION=3026895]DaOldMan[/MENTION help here]:
http://forum.xda-developers.com/showthread.php?p=69653504
Regards
karkasss said:
You can only change english to your language. ignore the written Korean. that is just reference.
Click to expand...
Click to collapse
Forgive friend @karkass are messed up with 100 things open, and I understood little. Just a simple flash in recovery? And since in the zip I see services.jar but is universal? ...Sorry, but I did not understand
Ufo71 said:
Forgive friend @karkass are messed up with 100 things open, and I understood little. Just a simple flash in recovery? And since in the zip I see services.jar but is universal? ...Sorry, but I did not understand
Click to expand...
Click to collapse
you need to edit your services.jar comparing both file after baksmali.
one is before.zip
the other one is from NXteamMOD_for_AryaMOD_Note7.zip