yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] Tungstwenty:
Yes, the library defaults to portrait mode. It will only show in landscape if the "runtime.xposed.orientation" variable is set to "1" or "3", which correspond to 90º or 270º. If it's "0", "2" or empty it will show portrait as usual.

Therefore, I can only deduce that in XXLQ5 the event that is triggered whenever the proposed rotation changes, it's still happening (otherwise the variable would be empty and therefore you'd see always portrait) but the values for the different orientations are no longer 0,1,2,3 and now different mappings to the orientations (?).

@Brotuck, if you can run a terminal app in the phone and execute that "getprop runtime.xposed.orientation" to check out the values when under different orientations, that would help confirm this.

Nevertheless, I'll try to have a look at that ROM's code to see if the logic is different from all other previous ROMs. I find it vary strange that the codes for the orientations are now different. It would be much more normal that the event is now triggered elsewhere and it would always show in portrait mode.
[Galaxy S II Themes and Apps] Brotuck:
The getprop command gives:

In portrait 0

In landscape 1

But after going back to portrait it stays 1 (crt off is then locked in landscape)
[Galaxy S II Themes and Apps] Tungstwenty:
Thanks for the feedback, at least it helps to narrow down the problem.

The values are as expected, the problem seems to be that it doesn't go back to 0 as it should. But it does start at 0 in the initial orientation.

I'll try to fix this and will post an update when I have some news.
[Galaxy S II Themes and Apps] Brotuck:
The weird part of it is. That if i leave the phone for a while it returnes to 0.

So there is somekind of trigger. Only not at once.

Verstuurd van mijn GT-I9100 met Tapatalk
[Galaxy S II Themes and Apps] XT69:
i don't know why, but the crt on didn't work, and also, after the crt off, the whole screen flashed back for a sec...

tweaking the settings didn't help, the library was not pushed to its place... btw it's S2 with the latest 4.0.4 S2...

so I fixed it by manually pushing the library from this zip, to system/lib: http://xdaforums.com/showthread.php?t=1676378

now the flashing is gone, and also the crt on works :)

thx for this easy method btw, i was affraid of tweaking the framework, but this is superb :)
[Galaxy S II Themes and Apps] Tungstwenty:
There's currently a known issue which occasionally happens during the library copy at boot; we're trying to get it fixed so no permanent changes need to be performed on /system.

In the meantime yes, pushing the lib to the physical filesystem does solve it but when this is working flawlessly it will no longer be necessary to permanent overwrite files.
[Galaxy S II Themes and Apps] XT69:
nice job guys :) i backed up the original .so file, so until then i'm enjoying it this way :)
[Galaxy S II Themes and Apps] LawlietHD:
Version 1.3 Test on S3

Hi guys, great work on this so far just giving you some feedback, I installed it per your instructions and it installed fine. :good:

The CRT-Off effect works perfectly :victory: but after the effect there is a flash of the home screen for a second, also the CRT-On effect and the landscape CRT effect does not seem to work.

im running stock rom LE8 firmware rooted.

Keep up the good work :good:
[Galaxy S II Themes and Apps] rovo89:
This sounds like the native library wasn't replaced. Can you please verify that you have done the following steps to activate it?

1. Install the framework (you have obviously done this if other tweaks work)

2. Open Xposed Installer and go to the "Libraries" tab

3. For "libsurfaceflinger.so", select the library for I9300

4. Do either a) or b):

-- a) Reboot - library will be active as long as Xposed is installed

or

-- b) Select "test mode" and click the "Soft reboot" button on the first tab - library will be active only this one time; if something fails, you just reboot the phone and you have the original library again

If you did this, can you please verify that "/vendor/lib/libsurfaceflinger.so" exists after a reboot?

As Tungstwenty mentioned, he has experienced a bug where sometimes the replacement process wasn't completed, only the folders were created (I couldn't reproduce it though). If all steps were done correctly, this might be the cause.
[Galaxy S II Themes and Apps] LawlietHD:
thx for quick reply, i did thoses steps and i can confirm that "libsurfaceflinger.so" does not exist in that folder.

any ideas how i could remedy this?
[Galaxy S II Themes and Apps] haniennajjar:
I'm going to test.

thank you mate.
[Galaxy S II Themes and Apps] rovo89:
Can you get a log dump? You can use "adb logcat -sd Xposed:* > xposed.log" after a restart (if you have the SDK installed on your PC). There should be a line like this at the very beginning "I/Xposed ( 1849): Copying native libraries into /vendor/lib".

Another thing to check is that /data/xposed/lib exists and contains the library in one of the subfolders.

Thanks for taking the time to track this down, it really helps to improve Xposed!
[Galaxy S II Themes and Apps] LawlietHD:
Hi there mate glad i could be of help, first off i looked for that folder but could not locate it, so i guessing it doesnt exist.

the logcat shows:

I/Xposed (1913): Copying native libraries into /vendor/lib

I/Xposed (1997): ----------------

I/Xposed (1997) Added Xposed (/data/xposed/XposedBridge.jar) to CLASSPATH

but that is the weird part, i checked /vendor/lib and i cant see "libsurfaceflinger.so"
[Galaxy S II Themes and Apps] Tungstwenty:
Does it exist under /data/xposed/lib/always ?
[Galaxy S II Themes and Apps] LawlietHD:
that folder doesnt exist for me
[Galaxy S II Themes and Apps] Tungstwenty:
Nothing at all under /data/xposed/lib ?

Did you enable the surfaceflinger lib in Xposed Installer, in the 3rd tab?
[Galaxy S II Themes and Apps] rovo89:
Or doesn't /data/xposed/lib exist at all? If so, something went wrong during the installation of the framework. Could you just try and click the install/update button again and see if anything in the output sounds like "it didn't work"?
[Galaxy S II Themes and Apps] LawlietHD:
To Tungstwenty: yes i did enable it, and selected the i9300 rom option

To rovo89: I tried what you suggested, i also tried disabling all the mods and doin a clean up before doin a install/update. The "/data/xposed/lib" folder still does Not exist. Neither does the "libsurfaceflinger.so" in /vendor/lib.

I have included a screen capture of the install/update
[Galaxy S II Themes and Apps] rovo89:
:confused: So the problem is that /data/xposed/lib doesn't get created. This is very strange because it is the created in the same way as /data/xposed. Can you create the /data/xposed/lib directory yourself? This will not solve the problem as the permissions are incorrect, but it would at least show that there a no issue like file system full etc. Also, I assume that /data/xposed didn't exist after cleanup and that the line "Creating /data/xposed/lib..." appears again when you try to install the framework again, right?

Sorry for the many questions, but I'm really speechless how this situation can happen. For the next version, I think I could add some more tests if the commands were executed successfully, but in this case I cannot see any reason why the shouldn't be.
[Galaxy S II Themes and Apps] LawlietHD:
Okay so i tried to create the folder and it said it already exist however it wasnt showing up, i was using astro file manager at the time, so i used root explorer instead and now i could see the directory, "data/xposed/lib" inside is a folder called "always" and in that folder is "libsurfaceflinger.so"

i used root explorer to check the folder "/vendor/lib" but can only see "drm" folder and a "libwvm.so" file.

Now heres where it gets strange, if i am on home screen or any apps that does Not require root it does the crt-off effect but still have the flicker problem about 95% of the time. However if i am on a app that requires root ie, root explorer, superSU, CWM, or titanium backup, it works as design without flicker problem 99% of the time.

if i switch from a normal app to a app that requires root, and perform off and on test, it seems the first 5-10 test have flicker problems but then it starts to work almost flawlessly only occasionally having the flicker problem.

it is the same vice-versa, ie from root required app to normal app. so perfect crt-off for first few test then rest with flicker problem

i appreciate you taking time out to try and solve this problem :)

other mods i have installed: "directory bind"
[Galaxy S II Themes and Apps] gizzmoguy:
Double tapping menu button for recent apps

Can you please add double tapping menu button for recent apps there are a lot of broken home buttons out there. That would be nice If I could get the recent apps by double tapping the menu button.
[Galaxy S II Themes and Apps] :
How did you managed to fake 240 dpi on GPlay?
[Galaxy S II Themes and Apps] xtmp:
Don't working at Slim 4.2 with my captivate. SystemUI FCs after reboot when check in libs for call recording...
[Galaxy S II Themes and Apps] rovo89:
Ah, so /vendor/lib existed before, which is usally not the case. Maybe /vendor behaves differently with your ROM. Can you try the following in Root Explorer:

- Go to / (the root folder) and make it r/w

- Go to /vendor/lib and try to create a new file or folder

- Check if it still exists after a reboot (it shouldn't)

The command executed by Xposed when booting is "cp -a /data/xposed/lib/always/* /vendor/lib/". If you have adb or a terminal emulator, can you execute this command and see if it shows any error?

In general, I have now seen many things that should be checked and logged.. will try to integrate this into the next version.

Is there any existing implementation of this? I have so many other things to try out that I wouldn't find the time for researching how this can be achieved. Of course, if somebody wants to try this, they can write their own module or provide a patch for Tweakbox!

There is a function called "getScreenDensity()" in the class "com.google.android.vending.remoting.protos.DeviceConfigurationProto". If this tweak is enabled, this will always return 240.

This is working fine for me. You might need to clear the user data for the Play Store app and reboot. On the other hand, Google filters the apps on their servers, so we cannot completely control it. Tungstwenty reported that the tweak doesn't work for him - I don't know why, that's why I marked it as "experimental". Anyway, it shouldn't hurt to keep the setting turned on, so if they do some caching, maybe it will finally be effective.

Is this only when you enable the call recording libs? Or also if you just use a tweak like changing the clock color?
[Galaxy S II Themes and Apps] xtmp:
Now I just backup from nandroid.

Installed Xposed installer apk

Launch app

click Install/Update

Grant root access

reboot

Got SystemUI FC, then something like google.apps... FC, and phone rebooted by itself.

Im running with Slim ICS 4.2 & latest devil kernel.
[Galaxy S II Themes and Apps] rovo89:
Can you still use adb to connect to your phone? Then it would help if you could provide me the output of "adb logcat -d" so I can see where exactly the FC occurs.

Also, you can execute "adb touch /data/xposed/disabled" to disable Xposed without having to restore the backup. This will also work in recovery, provided you have mounted /data writable.
[Galaxy S II Themes and Apps] LawlietHD:
created a folder in /vendor/lib/ it still there after reboot

not sure about that adb stuff, but i gave it a shot

command line to platform folder, adb shell into phone then you used that command, but it says /system/bin/sh: cp: not found
[Galaxy S II Themes and Apps] xtmp:
View attachment logcat111.zip

Btw, is it works only for Galaxy S II ? I have Captivate :)
[Galaxy S II Themes and Apps] rovo89:
Oh, that doesn't sound good. Usually this is a temporary file system that is gone after a reboot. The whole approach is based on it. So maybe it's good that cp wasn't found (which itself is pretty strange, but ok). Don't worry, it won't destroy anything, but the original library won't be effective automatically when you disable the replacement in Xposed.

I have a nice idea how to work around this: It's possible to just mount "tmpfs" on any folder, which will overlay the original folder. And this will be definitely gone after a reboot. But this is only the idea so far, it will take some time to implement. If you urgently need the CRT effect, you can extract it from the Tweakbox apk (it's in the assets folder) and place it in /vendor/lib or /system/lib (it will exist there already, so I suggest you either create a backup or use /vendor/lib). I would be glad though if you could test again once the alternative approach is implemented.

I think you might be the first one to try. ;) But in general it seems to work. There are just some things I didn't consider. There are so many ROMs out there and while they are all similar, some have code parts that are slightly different. And in this specific case, this came together with a poorly chosen order of instructions.

I'm working on a fix for this.
[Galaxy S II Themes and Apps] xtmp:
Ok, it would be nice, if it'll work. I'll wait and test, because really want to record from the line. :)
[Galaxy S II Themes and Apps] LawlietHD:
yup thx for info, i will definitely test it for you once u implemented it, just hit me up
[Galaxy S II Themes and Apps] rovo89:
Can you try this one? It should fix the errors from the logcat you posted. It also includes two more checks for native library copying with additional logging if something is not as expected.

For the call recording, you need both a tweak on the Java side and two native libraries. I would like to ask you to first verfiy that your phone boots properly with Xposed installed and that for example setting a color for the status bar clock works. Then you can try if your phone already supports call recording by just enabling the toggle in Tweakbox. If it doesn't, you can try to enable the native libraries. There is also a test mode available, which will reset the libraries when you do a full reboot. I cannot promise that these libraries will work on other phones though as they have "exynos4" in their name.
[Galaxy S II Themes and Apps] xtmp:
Installed it, activated fremework by Install/Update button, reboot. Phone booted up ok.

Then I activated Xposed Tweakbox in Modules.

Launched Tweakbox and changed clock color in Statusbar, but nothing changed even after reboot.

Then I activated libraries 4 call recording.

Checked "Call Recording" in Tweakbox, soft rebooted, installed different call recordings apps from playmarket (Am I did all the things right?), but still nothing.
[Galaxy S II Themes and Apps] rovo89:
Good that it boots now. Can you provide a logcat again so I can see what the next problem is?

This has nothing to do with any call recording apps. If it works, it will work only by enabling it in Tweakbox and using the alternative native libraries. As even the simple clock color replacement doesn't work, I suppose that there is still something general not working on your phone. Once this is fixed, we will have to see if the libraries are used and supported by your phone.
[Galaxy S II Themes and Apps] xtmp:
View attachment logcat12.zip
[Galaxy S II Themes and Apps] rovo89:
Thanks, I checked what was going wrong. Here is what I found:

- The native libraries were not replaced because the file system of /vendor seems to be YAFFS. Is this correct? I'm not sure if it is a temporary file system which is reset after a reboot. Can you check whether a file that you create in /vendor still exists after a reboot? Anyway, even if this doesn't work, there would be the workaround to simply replace the libs in /system/lib.

- config_maxLevelOfSignalStrengthIndicator was not found - this is expected as you don't have a Samsung ROM

- com.android.systemui:layout/tw_status_bar was not found - this is why the status bar color doesn't work. I think I have this fixed locally now, the tw_status_bar is only valid for Samsung ROMs, whereas the original is called just status_bar

- method displaySSInfo was not found in com.android.phone.PhoneUtils - this would be needed for the "vibrate on call wait" function, but doesn't exist in AOSP and Slim

- class com.android.phone.PhoneFeature doesn't exist in AOSP/Slim. Not sure why they don't have it, but it should have a function "hasFeature", where Tweakbox answers "true" for the call recording feature. I haven't followed the way from this feature check to the implementation, but this looks like Samsung implemented something on their own here

So most of the errors are because some things are not in your ROM but only in stock. The clock color is easy to fix, the others aren't. Honestly, the chances that call recording will work for you are pretty low. Maybe a stock ROM would include the Java code required for this. But it's still questionable whether the native libraries are usable (this depends on the phone). On the S2, there are the files audio.primary.exynos4.so and audio_policy_exynos4.so in /system/lib/hw. If they are not there on your phone, the replacement will have no effect.

Something else - I have attached a screenshot how disabling complete code parts might look like in the UI. What do you think about it?
[Galaxy S II Themes and Apps] mehrzad1363:
CRT off on s3 goood working but CRT on/landscape not working.

thanks for this pack.
[Galaxy S II Themes and Apps] XT69:
Great stuff, but if applied, Instagram freezes so bad, that only reboot helps... any solution to this one? S2 XWLPO
[Galaxy S II Themes and Apps] Amin-GalaxyS2:
Hello I just downloaded tweakbox in #1 and installer in #84.

I turned crt effects. And the lib exists in vendor folder. I am now in test mood. But no crt effects.

Hellp please
[Galaxy S II Themes and Apps] Luppo9:
Is there any possibility to chance permanently noise reduction in call, especially in AOSP/AOKP-ROMs?

Thanks
[Galaxy S II Themes and Apps] TropicalEskiMo7:
I don't understand lingo yet, and am slow, lol. Your phone has to be rooted to use Tweakbox?
[Galaxy S II Themes and Apps] mehrzad1363:
when can i get update for JB 4.1.1 :)
[Galaxy S II Themes and Apps] rovo89:
It's been a long time since I've written something here.. and honestly, it might take some time until it will happen again. About two months back, Tungstwenty - who helped a lot to improve Xposed and Tweakbox - went on vacation and I used the time to work on other things. I guess at that time, I realized that the whole project had become mainly work, not so much fun anymore as I would expect to have in my spare time. It was great to explore the internals of Android and find ways to inject code during runtime. I'm still proud of this and also used the same techniques in another, short-term project to get more information about the behavior of a obfuscated app.

And despite all the, I currently don't feel any urge to continue with the development. As more people learned about Tweakbox, also more demands came up. The ROM landscape is more diverse than I thought, so while the general concepts and 80% of the code are compatible, some fine-tuning is still required to make features available on many different ROMs and phones. Furthermore, the focus seemed to be on the CRT effects, which are actually out-of-scope as they require a native library which can only be replaced as a whole and is only compatible between some ROMs. To quote myself:

Seems like the latter happened.

The source code is on GitHub, if anyone wants to build something upon it, feel free to do so. Tungstwenty seems to developed some great things which are more kernel-related, so I assume he doesn't have time for Xposed as well. He asked me how I was some time ago, but I didn't receive any further answer after my reply.
[Galaxy S II Themes and Apps] Phil3759:
Sad...

Call recording and framework tweaks were awesome

I never cared about that crt. After a while these cosmetic things get you bored

I can understand you. These things take ages to develop...

Good luck
[Galaxy S II Themes and Apps] RaymondPJR:
I totally understand. Nothing can last forever especially if it isn't on the Play Store and earning you something.

EDIT: I just tested and Tweakbox will not work properly with UVLAH2, T-Mobile although the CRT on worked pretty well under UVALEM. Had to uninstall both Tweakbox and Xsposed Installer.
[Galaxy S II Themes and Apps] style154:
i installed both apps and installed xposed updates then rebooted and activated tweakbox then rebooted then went to change the tweakbox setting and it seemed to have "broke" my power/ lock button and volume rocker and continuously soft booted had to reflash my rom. i am on jedi mind trick v8
[Galaxy S II Themes and Apps] benzo:
I've installed this mod before instagram, and instagram does not work, always crashes.

I have not tested but without this mod installed.

however, I do not care instagram, it was just to see how it was done: D
[Galaxy S II Themes and Apps] joseph230:
Call Recording

Hi,

First off, Thanks for the good work.

Secondly, I could not record a call!! whenever I press "Record" while in a call it prompts "Failed to save recording"!!!

Any help on how making this work will be great.

Thank you,
[Galaxy S II Themes and Apps] nik60:
firmware sammy lpx no work?
[Galaxy S II Themes and Apps] sikku99:
have the same problem. everything works fine except the call recording.
[Galaxy S II Themes and Apps] Tungstwenty:
For the recording to work, in addition to changing the app (so that the record button is visible), one or 2 libraries related with the audio policy must also be swapped. I don't know if such patched versions exist.

Previously, libraries from other s2 variants (I think) were being used but now I don't know if there's a solution.
[Galaxy S II Themes and Apps] vipa:
Normally if I would want to enable call rec on my Note (N7000) I would replace the following files (coming from S2 originally if am not mistaken):

system\lib\hw\audio.primary.exynos4.so

system\lib\hw\audio_policy.exynos4.so

system\lib\libaudioflinger.so

system\app\Phone.apk

system\app\Phone_Util.apk

My understanding is that Xposed "substitutes" the first two files in the list above.

The only remaining lib file is libaudioflinger.so.

I tried to replace this file manually, but still recording is not working when pressing the "rec" button in the phone app.
[Galaxy S II Themes and Apps] Tungstwenty:
Since you do have the patched libs, I suggest you manually replace all of then and do not activate any replacement since I doubt that the versions that come with Tweakbox are the files you need.
[Galaxy S II Themes and Apps] taylor_t:
JB update

Hi @all,

I like the Xposed Tweaks, but this software doesn't work with Jelly Bean on my S3.

My phone doesn't boot, if I install Xposed Tweaks.

Is there any solution for this problem?`

Thanks a lot.

Tim
[Galaxy S II Themes and Apps] smooth 123:
+1

Gesendet von meinem GT-I9100 mit Tapatalk 2
[Galaxy S II Themes and Apps] Tungstwenty:
The problem is likely on the Xposed Framework, rather than this specific mod. Right?

If so, please read my post here: http://xdaforums.com/showthread.php?p=31330671#post31330671

Xposed was published with the binaries for ICS, before JB was available. I don't think rovo is maintaining the framework any more, but I compiled the base binary for JB and it's working for me on JB (latest PA).

As for whether the Tweakbox options will work or not, that's another story. Depending on the launcher, version of the rom, etc., some of the options might be ignored, some others might cause compatibility problems, so you need to experiment.

But replacing the binary on JB should make the device boot fine even with the framework installed, before activating any modules.
[Galaxy S II Themes and Apps] taylor_t:
Hi Tungstwenty,

That's a pity! I'm using the Samsung Stock rom LI2. If I've time I'll check your binaries. In principle I only use the screen on/off- and call recording function.

If I have any problems I'll come back to you :)

PS: in opposite to the postive effects of JB for me, the negative aspects were to big - that's why I'm back to ICS for the moment.

Tim