[MOD][ICS][XPOSED] Tweakbox: no-flashing tweaks collection (1.4.0)(23.01.2013)

Search This thread

rovo89

Senior Recognized Developer
Jan 4, 2012
2,585
81,353
Maybe you have read about my project called "Xposed", maybe not. In short, it is a framework that can be used to create modifications without touching the APKs, which in turn means that nothing needs to be flashed.

Tweakbox was the first module for Xposed and developed for a 4.0.3 stock ROM for of the Galaxy S2. While Xposed works with many different devices and ROMs, quite a few (or many?) of the tweaks below assume certain existing code in the ROM which can be patched and used. As a consequence, they might work or might not work for you. Especially if you have a non-Samsung phone, only few of the tweaks will work. It depends on your exact ROM what will work, I can't tell you because I don't have your ROM.

Please also note: I'm no longer using Tweakbox after my switch to CM10.1. Therefore this module is no longer actively maintained. You can try if it works for you, but it's unlikely that more features or support for more devices will be added. Patches are still welcome. So please don't be upset if it doesn't work for you - I had planned to remove it, but why should I if still lots of people are using it?



Now to the list of implemented tweaks:
  • Statusbar
    • Number of bars for signal strength indicator
    • Background color. Looks weird actually because most apps aren't made for this.
    • Clock color
    • Toggle "switch input method" notification while typing text
    [*]CRT (see below for requirements - will probably not work for you)
    • CRT off effect
    • CRT on effect
    • CRT landscape detection
  • Battery
    • Levels for critical/low battery warning
    • Disable Samsung's "100% charged, unplug me now" notification
  • Phone
    • Vibrate on Call Wait
    • Increasing Ringer Volume
    • Call Recording (see below for requirements - will probably not work for you)
    • Built-in SIP
  • Miscellaneous
    • Don't turn on the screen when unplugging from USB/AC
    • Choose long HOME key behaviour (do nothing, classical/icon-only, new/thumbnails). Just sets a switch, the implementation has to exist in the ROM.
    • Skip tracks with a long press on the volume up/down key, ported from here (only when screen is off)

    [*]Experimental
    • Fake 240 DPI for Play Store
The colors can be picked with an extended version of the color picker made by [email protected] This gives you the chance to select any RGB color plus the transparency - steplessly!

Requirements for CRT / call recording:
The CRT effect requires that /system/lib/libsurfaceflinger.so is prepared for this effect. Many phones produce flickering for the CRT off effect. The CRT on effect and rotation awareness is isn't included in the normal library.
Patching the library is much work and unfortunately the library cannot be transferred to other ROMs or phones in most cases.
If you have a stock-based ROM for your I9100, you can push the library from the attached zip to /system/lib at your own risk (if you don't know how to undo it if you get a bootloop, don't do it).
For the I9300, the library can be found here.
For other phones/ROMs/versions: Sorry, I'm not planning to patch more libraries.

Call recording will probably only work on I9100 ICS Stock and only if you have the libraries install from this post. Same game: Know what you're doing or don't do it. I don't know where these libraries originally came from, so I can't provide them for other ROMs.
You might also try this module, I believe it only works on Samsungs's JB ROMs though.

Changelog:
1.0: Initial version [126 downloads]
1.1: Fixed signal strength bars, added color picker for status bar background color (replacing the list) and clock color (added in this version) [543 downloads]
1.2: Some intermediate release, only some betas published
1.3: Lots of new things [3676 downloads]:
- Toggle "switch input method" notification while typing text
- CRT off (no flickering)/CRT on/landscape awareness for SGS2 (tested) and SGS3 (waiting for your feedback). Also triggers the CRT effect if the ROM doesn't (should fix SGS3).
- Phone tweaks: Vibrate on Call Wait, Increasing Ringer Volume, Call Recording, Built-in SIP
- (experimental) Play Store fix for non-standard densities
1.3.1: Compatibility with framework version 2.0
1.3.2: Minor changes for Xposed 2.1
1.4.0: Clock color tweak should now work for more ROMs. Removed (not working) market fix and hidden per-app DPI settings

Installation: See the first post in the Xposed framework thread. You need the framework AND the attached module.

Source code: at GitHub.

Credits to Tungstwenty for all the support and his many contributions, the CM9 project for the long press volume key mod, el_liberator for a hint about the statusbar color, attenzione for the color picker.
 

Attachments

  • libsurfaceflinger_CRT_I9100_4.0.3_Stock.zip
    60.5 KB · Views: 24,451
  • XposedTweakbox_1.4.0.apk
    67.9 KB · Views: 287,691
Last edited:
M

Mr_Bartek

Guest
Although th 5/6 signal bar mod works, it still has a maximum value of 4 signal bars with the last 1/2 bars always empty. Hope you can fix it. :)
 

rovo89

Senior Recognized Developer
Jan 4, 2012
2,585
81,353
Although th 5/6 signal bar mod works, it still has a maximum value of 4 signal bars with the last 1/2 bars always empty. Hope you can fix it. :)

Now that you're saying it.. I thought I just didn't have a full signal. :D

This setting actually just enables something built-in, but deactivated. And it seems that Samsung had just started to implement this, but has not finished it. The part where it calculates the signal strength to be displayed is still in the range from 0 to 4. I'll see what I can do. I think Jkay has activated the same function, so maybe he can tell me what he did to fix it. :)
 

rovo89

Senior Recognized Developer
Jan 4, 2012
2,585
81,353
The signal strength bars are fixed in the next version.. at least for GSM. For CDMA, EVDO and LTE, the signal strength will be interpolated (means that level 1 will be skipped, plus level 5 for the 6 bar version, to have a range from 0 to 6 instead of 0 to 4).

I have also started looking into the status bar icons. I think I found a good place to hide them, but haven't tried yet.
 
M

Mr_Bartek

Guest
Can't wait for the new version. I can test for you if you there's anything. :)
 

haasgo

Senior Member
May 22, 2011
1,050
463
Hamburg
thread bookmarked!

Things to consider implenting:

- ics lockscreen on/off
- sammy lockscreen on/off
- hide sms from call log
- no autoconvert of sms to mms
- toggles?
- clock color
- new notification bar in dropdown?
- brighness level/profile
- lockscreen switch
- density changer with market modder
- show/hide statusbar icons
- hardwarebutton for cam
- no low/full battery sound
- reboot options
- remove swipe to unlock text from ls
- tranparent ls
- ...

There is so much u could implement...i think, that is the problem jkay is struggling with. Samsung and google have left so many gaps to fill...i will try to help and find some tutorials to support this project.

Anyway ur idea and approach is brilliant!! Lots of thx for ur efforts mate! Cheers
 
Last edited:

rovo89

Senior Recognized Developer
Jan 4, 2012
2,585
81,353
I have just uploaded version 1.1. Additionally to the signal strength fix, I have added the possibility to change the status bar clock color.

Also I found a very nice color picker and added it to the settings. This makes it possible to select any color with any transparency.
 

rovo89

Senior Recognized Developer
Jan 4, 2012
2,585
81,353
@haasgo: Thanks for the big list of suggestions!

In general: I will concentrate on things I use myself. I have a full-time job, a girlfriend and don't want to spend *every* free minute developing, otherwise I will probably lose interest soon. As I use Go Launcher EX, WidgetLocker and exDialer, it's very unlikely that I will create mods for the launcher, lockscreen or dialer. Also you mentioned some SMS related things.. I write and get very few texts, so don't hope for these features too much. ;)

Anyway, here comes the good thing. In contrast to mods as we know them, where someone patched the framework-res, systemui etc. and published the files, you can combine different modules. Someone else can implement some lockscreen mods and you can use both, with the combined power. :)

And second, the project is open-source (see first post). If someone implements a new feature or a bugfix, they can send me a pull request so I can integrate it into the Tweakbox.

That said, some specific notes:

- ics lockscreen on/off
- sammy lockscreen on/off
Do you mean this? Sounds easy to implement.

- hide sms from call log => see above
- no autoconvert of sms to mms => see above
- toggles? => the quick settings? yes, definitely on my list!
- clock color => done
- new notification bar in dropdown? => not sure what you mean
- brighness level/profile => will look into it
- lockscreen switch => is this the same as above?
- density changer with market modder => what is the "market modder"? I used the "LCD Density Changer", which works fine
- show/hide statusbar icons => will look into it
- hardwarebutton for cam => maybe
- no low/full battery sound => already implemented (see menu "battery")
- reboot options => what would you like to see there?
- remove swipe to unlock text from ls => see above
- tranparent ls => see above
 

Tungstwenty

Senior Member
Nov 1, 2011
1,828
4,512
Totally agree with your approach on this.
You came up with an awesome concept, took the effort to actually make it real, and have now provided a great tool for modders / tweakers to use this framework to do the stuff they please.

I also have a (more than) full-time job, a wife (which is worse than a girlfriend, time-wise :p), and definitely agree you should focus on stuff you actually use, which is the things that you're surely more motivated to work on when you do have some spare time for this hobby.
For the community, the great added value you can bring - in addition to the huge step already achieved - is perhaps improving the framework here and there in order to make easier and easier some of the tasks. One of the examples I recall is the recent discussion about the "pos-layout-inflated" hook so you easily have a way to programmatically apply a delta over an existing layout, minimizing collisions between mods or base stock changes that render invalid a mod one writes.

About the mods that could be written, and on a personal preference, the stuff I'm more eager to get (or implement when I get the chance :() are definitely the quick toggles and the additional entries for the power menu (which is what I believe haasgo was referring when mentioning "reboot options" ???).
Also, in the framework itself, I'm still not totally aware of the level of support for changes without reboot, meaning: activating/deactivating a mod (perhaps you can activate it but then must manually kill say "SystemUI process"), changing settings for some of the Tweakbox items and have them reflected immediately, etc.


In summary: you've done an awesome job so far ;). There are still some small things that might be helpful in the framework itself, but the definite quantum leap is about to happen as soon as this thing gains momentum and mods start appearing that use the framework, bringing more and more devs to this paradigm.
 
M

Mr_Bartek

Guest
Sorry to be picky but now the 5/6 signal bar mod always shows no bars at all. :p
 

rovo89

Senior Recognized Developer
Jan 4, 2012
2,585
81,353
I cannot reproduce that.. it has always been working fine for me since I fixed the problem a good week ago.

Anyone else having this problem? Did you restart your phone? I had some strange effects (e.g. battery icon gone) when I tried to just kill the SystemUI. And what does the phone status in the settings app say? For GSM, the number of bars is directly dependent on the "asu level", for others there should be a simple translation from the default (0 to 4) levels.
 
  • Like
Reactions: brolee93

rovo89

Senior Recognized Developer
Jan 4, 2012
2,585
81,353
Anyone using a non-standard density and being annoyed that some Samsung apps don't use the available space? For example like, I'm using 210 dpi. In the calculator, phone, calender etc., there is a big gap on the bottom right.

Well, I found a way to trick those apps into some kind of compatibility mode, which scales up the dimensions. Sometimes that's a bit blurry, but much better than before. And of course, it's looking like a baby phone again with those big buttons. I'm just wondering why it doesn't work well for some apps. Theoretically, this should make it possible to select different densities for all/most apps, but it works only partly.
 
  • Like
Reactions: brolee93

brolee93

Senior Member
Jan 1, 2009
1,975
524
38
XDA city
Your software work very good bro :)
Good job.
It is possible to add fonctionnality crt on ? For exemple and %battery.
Add most or change toggle it is possible?.
Why % battery bécause when i make this my systemui work when i put in uptdate rom but not work in full rom instal i lost my status bar grrr Lol.
Thanks for your very good job bro.
 

Tungstwenty

Senior Member
Nov 1, 2011
1,828
4,512
2 Phone tweaks

I finally took this baby for a spin and implemented 2 patches that I was missing.
This is very rudimentary for now, but just like rovo this is most of all to fulfill my personal needs :p

The 2 patches I implemented were:
  • Activate the phone call recording button. This requires manually replacing 2 library files, initially shared by rlorange in this post but that I know attach since the link is dead.
  • When calling someone and that person is in the middle of a call (outbound call waiting), in addition to the popup message also vibrate the device so you'll know you're on hold even if you're no longer looking at the screen.
Hope this might be useful to someone.

You'll need to have the Xposed framework v1.6+ installed and activate my module in there once the app is installed. Also, you'll need to activate the patches you want (both default to OFF).

Cheers!
 

Attachments

  • TungstwentyXposedMods.apk
    51.9 KB · Views: 748
  • Callrec_libs.zip
    66.4 KB · Views: 699

brolee93

Senior Member
Jan 1, 2009
1,975
524
38
XDA city
I finally took this baby for a spin and implemented 2 patches that I was missing.
This is very rudimentary for now, but just like rovo this is most of all to fulfill my personal needs :p

The 2 patches I implemented were:
  • Activate the phone call recording button. This requires manually replacing 2 library files, initially shared by rlorange in this post but that I know attach since the link is dead.
  • When calling someone and that person is in the middle of a call (outbound call waiting), in addition to the popup message also vibrate the device so you'll know you're on hold even if you're no longer looking at the screen.
Hope this might be useful to someone.

You'll need to have the Xposed framework v1.6+ installed and activate my module in there once the app is installed. Also, you'll need to activate the patches you want (both default to OFF).

Cheers!

thanks it is work very well with galaxy note ics ;) without libs ihihihihi
 
  • Haha
Reactions: bolo19692

rovo89

Senior Recognized Developer
Jan 4, 2012
2,585
81,353
Your software work very good bro :)
Good job.
It is possible to add fonctionnality crt on ? For exemple and %battery.
Add most or change toggle it is possible?.
Why % battery bécause when i make this my systemui work when i put in uptdate rom but not work in full rom instal i lost my status bar grrr Lol.
Thanks for your very good job bro.

I don't think it's possible from Java side to enable CRT On... the CRT Off is already there (although buggy on some ROMs), I just had to set the switch.
Battery percentage.. maybe. I actually prefer battery icons that already include the percentage.
And what do you mean with "Add most or change toggle"? Those quick settings? I will implement more toggles, but I didn't find the time yet.

thanks it is work very well with galaxy note ics ;) without libs ihihihihi

So you successfully tried Xposed on a Galaxy Note?
 
  • Like
Reactions: brolee93

Top Liked Posts

  • There are no posts matching your filters.
  • 239
    Maybe you have read about my project called "Xposed", maybe not. In short, it is a framework that can be used to create modifications without touching the APKs, which in turn means that nothing needs to be flashed.

    Tweakbox was the first module for Xposed and developed for a 4.0.3 stock ROM for of the Galaxy S2. While Xposed works with many different devices and ROMs, quite a few (or many?) of the tweaks below assume certain existing code in the ROM which can be patched and used. As a consequence, they might work or might not work for you. Especially if you have a non-Samsung phone, only few of the tweaks will work. It depends on your exact ROM what will work, I can't tell you because I don't have your ROM.

    Please also note: I'm no longer using Tweakbox after my switch to CM10.1. Therefore this module is no longer actively maintained. You can try if it works for you, but it's unlikely that more features or support for more devices will be added. Patches are still welcome. So please don't be upset if it doesn't work for you - I had planned to remove it, but why should I if still lots of people are using it?



    Now to the list of implemented tweaks:
    • Statusbar
      • Number of bars for signal strength indicator
      • Background color. Looks weird actually because most apps aren't made for this.
      • Clock color
      • Toggle "switch input method" notification while typing text
      [*]CRT (see below for requirements - will probably not work for you)
      • CRT off effect
      • CRT on effect
      • CRT landscape detection
    • Battery
      • Levels for critical/low battery warning
      • Disable Samsung's "100% charged, unplug me now" notification
    • Phone
      • Vibrate on Call Wait
      • Increasing Ringer Volume
      • Call Recording (see below for requirements - will probably not work for you)
      • Built-in SIP
    • Miscellaneous
      • Don't turn on the screen when unplugging from USB/AC
      • Choose long HOME key behaviour (do nothing, classical/icon-only, new/thumbnails). Just sets a switch, the implementation has to exist in the ROM.
      • Skip tracks with a long press on the volume up/down key, ported from here (only when screen is off)

      [*]Experimental
      • Fake 240 DPI for Play Store
    The colors can be picked with an extended version of the color picker made by [email protected] This gives you the chance to select any RGB color plus the transparency - steplessly!

    Requirements for CRT / call recording:
    The CRT effect requires that /system/lib/libsurfaceflinger.so is prepared for this effect. Many phones produce flickering for the CRT off effect. The CRT on effect and rotation awareness is isn't included in the normal library.
    Patching the library is much work and unfortunately the library cannot be transferred to other ROMs or phones in most cases.
    If you have a stock-based ROM for your I9100, you can push the library from the attached zip to /system/lib at your own risk (if you don't know how to undo it if you get a bootloop, don't do it).
    For the I9300, the library can be found here.
    For other phones/ROMs/versions: Sorry, I'm not planning to patch more libraries.

    Call recording will probably only work on I9100 ICS Stock and only if you have the libraries install from this post. Same game: Know what you're doing or don't do it. I don't know where these libraries originally came from, so I can't provide them for other ROMs.
    You might also try this module, I believe it only works on Samsungs's JB ROMs though.

    Changelog:
    1.0: Initial version [126 downloads]
    1.1: Fixed signal strength bars, added color picker for status bar background color (replacing the list) and clock color (added in this version) [543 downloads]
    1.2: Some intermediate release, only some betas published
    1.3: Lots of new things [3676 downloads]:
    - Toggle "switch input method" notification while typing text
    - CRT off (no flickering)/CRT on/landscape awareness for SGS2 (tested) and SGS3 (waiting for your feedback). Also triggers the CRT effect if the ROM doesn't (should fix SGS3).
    - Phone tweaks: Vibrate on Call Wait, Increasing Ringer Volume, Call Recording, Built-in SIP
    - (experimental) Play Store fix for non-standard densities
    1.3.1: Compatibility with framework version 2.0
    1.3.2: Minor changes for Xposed 2.1
    1.4.0: Clock color tweak should now work for more ROMs. Removed (not working) market fix and hidden per-app DPI settings

    Installation: See the first post in the Xposed framework thread. You need the framework AND the attached module.

    Source code: at GitHub.

    Credits to Tungstwenty for all the support and his many contributions, the CM9 project for the long press volume key mod, el_liberator for a hint about the statusbar color, attenzione for the color picker.
    8
    I commented because the OP goes on about how this app will solve all of our moding needs (never tweak an apk again, just use this app), when in fact it does little. Even the font scaling does little; the apps I tried it with it only changed the apps "Settings UI font" and did nothing for the actual UI font. Then in another post the OP goes on to tell how he is not going to make tweaks for anything his is not interested in. Then apparently his app isn't the answer to very much and he should keep his pie hole shut. Or at least say this is a little app I wrote to tweak a few things I like.

    But to make matters worse, some twit(s) at Liquid Smooth chose to merge this junk into their ROM. Why? If I want it I can install it myself. The way it is now unless you enable it you get error messages.

    Does that answer your question.

    Please read more carefully. The first paragraph tells you that the Xposed framework can be used for lots of things. It requires modules that make use of it. You cannot do much with Android if you don't install any apps. So is Android crap? Of course not. Maybe the apps you want don't exist. Does this mean Android is rubbish? Of course not, it just means that nobody invested the time yet to write the apps you want (or you didn't discover them). So wait for someone to write them, if you really want it pay someone to write them or even learn how to write apps yourself.

    I have already a lot to do with maintaining the framework, giving support etc. The description for Tweakbox in the first post says: "Here comes a collection of small to medium tweaks that make use of this framework". Where does this say it is the answer to all your problems? I can still decide myself what I do and what I won't do, therefore I have every right to deny requests for new features. Google didn't write all the Android apps, did they? Tutorials and the source code are available, so other people can develop modules themselves, they don't depend on me. In fact, quite a few people already developed their own modules.

    There is no font scaling option in Tweakbox. You probably mean the App Settings module. If you want to report this as a bug, do so in friendly language, with the exact you tried etc. Simply complaining or insulting the author does not fix it.

    I already told you that I have no influence on ROMs. It seems that your post and my answer has been removed meanwhile, but it's still readable here: http://forum.xda-developers.com/showpost.php?p=41903748&postcount=1129

    And now stop insulting people who offer things for free. Thanks.
    6
    Although th 5/6 signal bar mod works, it still has a maximum value of 4 signal bars with the last 1/2 bars always empty. Hope you can fix it. :)

    Now that you're saying it.. I thought I just didn't have a full signal. :D

    This setting actually just enables something built-in, but deactivated. And it seems that Samsung had just started to implement this, but has not finished it. The part where it calculates the signal strength to be displayed is still in the range from 0 to 4. I'll see what I can do. I think Jkay has activated the same function, so maybe he can tell me what he did to fix it. :)
    6
    thread bookmarked!

    Things to consider implenting:

    - ics lockscreen on/off
    - sammy lockscreen on/off
    - hide sms from call log
    - no autoconvert of sms to mms
    - toggles?
    - clock color
    - new notification bar in dropdown?
    - brighness level/profile
    - lockscreen switch
    - density changer with market modder
    - show/hide statusbar icons
    - hardwarebutton for cam
    - no low/full battery sound
    - reboot options
    - remove swipe to unlock text from ls
    - tranparent ls
    - ...

    There is so much u could implement...i think, that is the problem jkay is struggling with. Samsung and google have left so many gaps to fill...i will try to help and find some tutorials to support this project.

    Anyway ur idea and approach is brilliant!! Lots of thx for ur efforts mate! Cheers
    5
    2 Phone tweaks

    I finally took this baby for a spin and implemented 2 patches that I was missing.
    This is very rudimentary for now, but just like rovo this is most of all to fulfill my personal needs :p

    The 2 patches I implemented were:
    • Activate the phone call recording button. This requires manually replacing 2 library files, initially shared by rlorange in this post but that I know attach since the link is dead.
    • When calling someone and that person is in the middle of a call (outbound call waiting), in addition to the popup message also vibrate the device so you'll know you're on hold even if you're no longer looking at the screen.
    Hope this might be useful to someone.

    You'll need to have the Xposed framework v1.6+ installed and activate my module in there once the app is installed. Also, you'll need to activate the patches you want (both default to OFF).

    Cheers!