[MOD][FIX] Audio Bitrate Increase For Poco X3 NFC - Xiaomi Poco X3 NFC Themes, Apps, and Mods

Disclaimer :
Code:
I am not responsible for any damage to your device!
Use this mod at your own risk!
What's this?
This mod increases the audio bitrate on video recording from a disgraceful 96kbps to a respectable 320kbps. Thus, giving a richer, more pleasing audio quality.
Still confused? Click here for a better explanation
Requirements :
- A rooted phone with magisk installed
- An opened mind (important!)
Contributors :
@Jt380p
@Slim K
* NOTES * (READ) :
- Not all ROMs are compatible with this mod, you might end up in a bootloop. YOU HAVE BEEN WARNED!
Download :
https://drive.google.com/file/d/1wr-p7puOL8nYb1wj1AyVbh9XmMp5kRKI/view?usp=sharing (Flash with magisk manager)
Source :
https://forum.xda-developers.com/Mi-9/themes/magisk-audio-bitrate-increase-t3927810
Audio files provided by @Slim K
Thanks to :
@Slim K
@topjohnwu for Magisk
Created : 7/11/2020
Last updated : 7/11/2020

reserved

Just tried it on stock MIUI with stock camera and Gcam. Works like a charm. Ty :good:

Slim K said:
Just tried it on stock MIUI with stock camera and Gcam. Works like a charm. Ty :good:
Click to expand...
Click to collapse
For me it works on Stock, but not on Urnyx05 GCam. Thanks Dev.

Lineage android 11 will benefit from it, or that is already implemented in them?

So which ROMs are not compatible?

Aki-to said:
So which ROMs are not compatible?
Click to expand...
Click to collapse
This mod uses magisk module template to replace a file in vendor folder. A tip for beginners using such a mod is to inspect it to know what it does. For example in the root of the module zip you will find the folder system, which has the needed folders/files path for replacement. If you open install.sh in text viewer, you would read the line :
Bash:
set_perm $MODPATH/system/vendor/etc/media_profiles_vendor.xml 0 0 0644
That should tell you which file it is and their permissions. Now open the same path on your ROM and look for that file, if it exists, then it should work. Although not every camera app (e.g gcam) uses that file.

Slim K said:
This mod uses magisk module template to replace a file in vendor folder. A tip for beginners using such a mod is to inspect it to know what it does. For example in the root of the module zip you will find the folder system, which has the needed folders/files path for replacement. If you open install.sh in text viewer, you would read the line :
Bash:
set_perm $MODPATH/system/vendor/etc/media_profiles_vendor.xml 0 0 0644
That should tell you which file it is and their permissions. Now open the same path on your ROM and look for that file, if it exists, then it should work. Although not every camera app (e.g gcam) uses that file.
Click to expand...
Click to collapse
Thanks, this was very helpful.
Indeed, it seems like a very easy set of scripts, did not expect that. However, the only thing I could not find is where the default functions are actually called, though I assume these are generic functions that are always called by Magisk, no matter which module is being installed.
This mod is also so extremely tiny, you could pretty much make these changes manually. Just take care of permissions and replace the file, that's it. It's even less complicated than working with /etc/fstab, it seems.
Perhaps I should release a couple of mods myself, if mod devs are getting such a Magisk Module template thing, anyway, which pretty much does all the work, already.

Aki-to said:
Thanks, this was very helpful.
Indeed, it seems like a very easy set of scripts, did not expect that. However, the only thing I could not find is where the default functions are actually called, though I assume these are generic functions that are always called by Magisk, no matter which module is being installed.
Click to expand...
Click to collapse
You assume correctly. The path to the functions can be usually found in /data/adb/magisk/util_functions.sh on your device.
Perhaps I should release a couple of mods myself, if mod devs are getting such a Magisk Module template thing, anyway, which pretty much does all the work, already.
Click to expand...
Click to collapse
Why write code twice when it already exists and works for everyone.

Hello, could someone please confirm if it works on firmware xiaomi eu 12.0.4. stable, thank you very much.

nike1973 said:
Hello, could someone please confirm if it works on firmware xiaomi eu 12.0.4. stable, thank you very much.
Click to expand...
Click to collapse
Yes it works

Thank you. Works on MIUI EU 12.0.6.

Eu 12.0.6, super stabilization (on stock camera) crashes when module is active.

I flashed it to the phone. The stock camera app still records audio at 127kbps. Does not save with 320kbps!.I use Indonesian stable miui 12/android 10. please Help!

Anyone tried on Xiaomi.eu rom?
Running 12.0.8.

Hi!
gkhnkaanyrtc said:
I flashed it to the phone. The stock camera app still records audio at 127kbps. Does not save with 320kbps!.I use Indonesian stable miui 12/android 10. please Help!
View attachment 5272691View attachment 5272693
Click to expand...
Click to collapse
Hi! I have the same problem ... Did you fix it? I use Miui 12.0.1 with Android 11

320kbps should be the default, I wonder why the f**k Xiaomi gives us 96kbps.

Does it work in Pixel Experience rom on Surya?

Related

[Module][v4.1] ViPER-FX **Discontinue**

COLOR="Red"]This thread will discontinue, Now I'm published my new mod's thread under Magisk, that mod includes Whole new ViPERFX app and many other mods and upcomings so From now everybody please follow this thread below:
[Module] ViPERFX
https://forum.xda-developers.com/apps/magisk/viperfx-t3667145[/COLOR][/SIZE][/B]
Introduction:
ViPER4Android is very popular audio mod around the world of Android and probably the best audio mod ever made. But there is so many complexity ViPER4Android couldn't go further through, so I wish "ViPER-FX" could be a project to let our beloved ViPER4Android step in advance. Original V4A details at ViPER4Android Official forum.
Modifications:
+ Based on ViPER4Android v2.5.0.5
+ New Material UI and Icon
+ App rotation enabled.
+ Default install as system app to prevent task kill.
in MIUI or some rom could be installed as user-app
for IRS compatibility [Experimental]
+ The zip edition includes apk.
Recommendation:
* Magisk Manager, Framework installed.
* Android 5.0+
* To update from ViPER-FX v4.0 (v4.0 only) first remove it.
How to install?
* Flash the zip using Magisk Manager or Custome recovery.
# Track this thread using the URL below.
URL: [url]http://forum.xda-developers.com/showthread.php?t=3535401[/URL]
Thanks To:
Code:
[user=4470081]@topjohnwu[/user] for Magisk Framework.
[user=3901724]@zhuhang[/user] and ViPER520 (Founders of ViPER4Android).
[user=4445176]@guitardedhero[/user] | [user=5704037]@repey6[/user] | [user=5210243]@exodius48[/user] | [user=6118476]@#mrk[/user]
for helping/support/testing.
...and those I forgot to mention.
I spend dedicated time, made pressure on brain and did hard work to make this perfect
If you like my post please hit Thanks and give a rate....
~~ Feel The power of ViPER-FX ~~
Contributors
metaspook
Version Information
Status: Stable
Current Stable Version: 4.1
Stable Release Date: 2017-01-13
The long waited finally come, will try this out.
the title is a bit misleading:
-this is not [Magisk], this is a [Module]
-it's not 100% clear if you packed the Magisk module or if you also offer a modded App (in thread description)
-it also has the same id as @topjohnwu 's module...
id=v4a
name=ViPER-FX
version=Base v2.5.0.5 | MKM v4.0
versionCode=3
author=ViPER’s Audio | Mod by Metaspook
description=ViPER-FX is a system wide audio enhancing software, modified edition of ViPER4Android.
support=https://www.androidfilehost.com/?w=files&flid=143525
donate=http://vipersaudio.com/blog/?page_id=95
Click to expand...
Click to collapse
@metaspook
Can you delete V4A app inside "\system\priv-app\ViPERFX" in next release? Because if V4A app installed inside /system/ there will be no sound improvement by IRS. Tested on my device running MIUI rom, dunno on other rom.
I use sepaker & many times change the IRS, but no sound improvement.
crusader727 said:
the title is a bit misleading:
-this is not [Magisk], this is a [Module]
-it's not 100% clear if you packed the Magisk module or if you also offer a modded App (in thread description)
-it also has the same id as @topjohnwu 's module...
Click to expand...
Click to collapse
Got it... actually I had to make this thread in short time making this of thread n sort it as well as possible is a bit hard something could be missing, but this thread will be more informative, well sorted soon...
Thank you.
exodius48 said:
@metaspook
Can you delete V4A app inside "\system\priv-app\ViPERFX" in next release? Because if V4A app installed inside /system/ there will be no sound improvement by IRS. Tested on my device running MIUI rom, dunno on other rom.
I use sepaker & many times change the IRS, but no sound improvement.
Click to expand...
Click to collapse
Do u'v installed Magisk n flash the zip through it?
B'cz this is a whole new way to dealing with system.
If u did but after that also don't work let me know.
metaspook said:
Do u'v installed Magisk n flash the zip through it?
B'cz this is a whole new way to dealing with system.
If u did but after that also don't work let me know.
Click to expand...
Click to collapse
Yes bro, i already used magisk long time ago.
Recently compared with V4A original (installed as user app /data/app/) & V4A module by topjohnwu, my device can read IRS and has sound improvement.
I don't know this issue is MIUI related or not, but I always get that issue if V4A app installed as system app (/system/app or /system/priv-app).
exodius48 said:
Yes bro, i already used magisk long time ago.
Recently compared with V4A original (installed as user app /data/app/) & V4A module by topjohnwu, my device can read IRS and has sound improvement.
I don't know this issue is MIUI related or not, but I always get that issue if V4A app installed as system app (/system/app or /system/priv-app).
Click to expand...
Click to collapse
OK I'll release next update separately..
I can't tell whether or how this differs from the existing V4A module offered by topjohnwu.
Cool. I'd like to try this out. I just had some questions:
1. What do these commands do:
Code:
/data/magisk/sepolicy-inject --live -s mediaserver -t mediaserver_tmpfs -c file -p read,write,execute
/data/magisk/sepolicy-inject --live -s audioserver -t audioserver_tmpfs -c file -p read,write,execute
2. Why are the following folders blank?
Code:
system/etc
system/lib/soundfx
system/vendor/etc
oreo27 said:
Cool. I'd like to try this out. I just had some questions:
1. What do these commands do:
2. Why are the following folders blank?
Click to expand...
Click to collapse
1. It helps to keep Viper FX alive in SELinux enforcement.
2. Into these directories necessary files will be extracted or pulled from original /system.
Thanks to wanna know. :good:
metaspook said:
1. It helps to keep Viper FX alive in SELinux enforcement.
2. Into these directories necessary files will be extracted or pulled from original /system.
Thanks to wanna know. :good:
Click to expand...
Click to collapse
Oh. I didn't think to check in the update-binary. It feels like this is a complicated script for sure:
Code:
# Push files
unzip -oq $ZIP "system/*" -d $MODPATH
unzip -pq $MODPATH/system/priv-app/ViPERFX/ViPERFX.apk assets/libv4a_fx_jb_$DRVARCH.so > $MODPATH/system/lib/soundfx/libv4a_fx_ics.so
ui_print "[OK] Pushing files."
# Config files modification.
for X in /system/etc/audio_effects.conf /system/etc/htc_audio_effects.conf /system/vendor/etc/audio_effects.conf; do
cp -af $X $MODPATH$X
sed -i '/v4a_fx {/,/}/d' $MODPATH$X
sed -i '/v4a_standard_fx {/,/}/d' $MODPATH$X
sed -i 's/^libraries {/libraries {\n v4a_fx {\n path \/system\/lib\/soundfx\/libv4a_fx_ics.so\n }/g' $MODPATH$X
sed -i 's/^effects {/effects {\n v4a_standard_fx {\n library v4a_fx\n uuid 41d3c987-e6cf-11e3-a88a-11aba5d5c51b\n }/g' $MODPATH$X
done; ui_print "[OK] Config modification."
Does this mean that if I uninstall this mod, Viper is completely uninstalled without any changes present in my entire device? If so, it's a pretty good implementation.
Nice! Works just fine on my Nexus 6. Will this be submitted to the Magisk repo? Would be useful to have it in the manager...
oreo27 said:
Oh. I didn't think to check in the update-binary. It feels like this is a complicated script for sure:
Code:
# Push files
unzip -oq $ZIP "system/*" -d $MODPATH
unzip -pq $MODPATH/system/priv-app/ViPERFX/ViPERFX.apk assets/libv4a_fx_jb_$DRVARCH.so > $MODPATH/system/lib/soundfx/libv4a_fx_ics.so
ui_print "[OK] Pushing files."
# Config files modification.
for X in /system/etc/audio_effects.conf /system/etc/htc_audio_effects.conf /system/vendor/etc/audio_effects.conf; do
cp -af $X $MODPATH$X
sed -i '/v4a_fx {/,/}/d' $MODPATH$X
sed -i '/v4a_standard_fx {/,/}/d' $MODPATH$X
sed -i 's/^libraries {/libraries {\n v4a_fx {\n path \/system\/lib\/soundfx\/libv4a_fx_ics.so\n }/g' $MODPATH$X
sed -i 's/^effects {/effects {\n v4a_standard_fx {\n library v4a_fx\n uuid 41d3c987-e6cf-11e3-a88a-11aba5d5c51b\n }/g' $MODPATH$X
done; ui_print "[OK] Config modification."
Does this mean that if I uninstall this mod, Viper is completely uninstalled without any changes present in my entire device? If so, it's a pretty good implementation.
Click to expand...
Click to collapse
1. The code I wrote looks a bit complicated but its for to reduce the size of the module (you can see I didn't packed the driver separately, codes are extracts those from the apk) and for more task will be done in less lines.
2. Yes.. obviously that's why using Magisk framework is so useful. It wont change anything in /system while installing nor in uninstalling your /system would be intact.
Didgeridoohan said:
Nice! Works just fine on my Nexus 6. Will this be submitted to the Magisk repo? Would be useful to have it in the manager...
Click to expand...
Click to collapse
Thanks... yes I wish also soon.
exodius48 said:
Yes bro, i already used magisk long time ago.
Recently compared with V4A original (installed as user app /data/app/) & V4A module by topjohnwu, my device can read IRS and has sound improvement.
I don't know this issue is MIUI related or not, but I always get that issue if V4A app installed as system app (/system/app or /system/priv-app).
Click to expand...
Click to collapse
Actually I pushing the apk into the system cause if Viper install as user app in data, 3rd party or internal app killer kill it and Viper looses to output the effect even also when remove from recent list. but I have an idea if its just happens with your MIUI rom... can you give me your ROM's 'build.prop" file ???
Is not working for me, IS activated on Magisk Modules Install,
But V4A say "Install/Update now?", Samsung S5 G900m, Is rooted using SuperSU 2.79, Latest Magisk Manager/Installer,
I Installed this V4A why magisk "Refuses" to open Modules download page "No Modules Found", And i have to download manually from internet. (SafetyNet says RED, Root and Magisk is green in Magisk Manager)
V4A is installed as System App, And SELINUX is Permissive,
I Try to change V4A to user APP, But not working;
metaspook said:
Actually I pushing the apk into the system cause if Viper install as user app in data, 3rd party or internal app killer kill it and Viper looses to output the effect even also when remove from recent list. but I have an idea if its just happens with your MIUI rom... can you give me your ROM's 'build.prop" file ???
Click to expand...
Click to collapse
Yes you're right. But on MIUI (especially MIUI 8 on my device) i can control it. We can lock app into taskbar and turn off MIUI optimization for selected app by turn off background restriction. Those will prevent MIUI kill running app.
build.prop file attached. :good:
metaspook said:
1. The code I wrote looks a bit complicated but its for to reduce the size of the module (you can see I didn't packed the driver separately, codes are extracts those from the apk) and for more task will be done in less lines.
2. Yes.. obviously that's why using Magisk framework is so useful. It wont change anything in /system while installing nor in uninstalling your /system would be intact.
Click to expand...
Click to collapse
This is pretty good. I installed this and it's working great. Just a quick question, I don't suppose it can work on phone calls as well? I was looking to get my bluetooth volume increased.
oreo27 said:
This is pretty good. I installed this and it's working great. Just a quick question, I don't suppose it can work on phone calls as well? I was looking to get my bluetooth volume increased.
Click to expand...
Click to collapse
Not sure about it... Test urself, look can work or not

[MODULE] DisableMultiUserMod (build.props) v1.3 (for Magisk 14.0)

Thats my first productive creation for XDA, so dont be to hard to me
I don't like to have features, which I never use, so I always disable or remove everythink i dont need.
On my custom roms I always diable the multi user mode by adding the following line to the build.prop:
Code:
fw.max_users=1
I was annoyed to edit this file after each ROM update.
So I created this module. It just adds the above mentioned line to the build.prop.
It is really simple, but now I don't need to edit the build.prop.
Maybe for someone this can be useful.
It works with:
- Android 6.x (Tested on OnePlus X and OnePlus 3 with CM13)
- Android 7.x (Tested on LOS 14.1 and OxygenOS 4.5.x)
v1.3: Update to Magisk Template 1400 (14.0).
Looks good but I would change the modid to something other than template. This is in the config.sh file and defines the folder it uses under /magisk. Anyways I used your zip as a template for my own build.prop edits that I will post shortly. I'll throw a little credit your way too.
Sorry, I was on vacation and than really busy...
@shinji257: Thank you for the hint. I changed it and uploaded the mod as v 1.1.
And actually I found already a similar magisk module created by user @FHC1998:
https://forum.xda-developers.com/apps/magisk/magisk-multiuser-enable-disable-t3552643
dima-82 said:
Sorry, I was on vacation and than really busy...
@shinji257: Thank you for the hint. I changed it and uploaded the mod as v 1.1.
And actually I found already a similar magisk module created by user @FHC1998:
https://forum.xda-developers.com/apps/magisk/magisk-multiuser-enable-disable-t3552643
Click to expand...
Click to collapse
That module probably still works (haven't updated it since posted) but the Magisk template is not updated.
My module does pretty much the same thing as yours, there is only one more line on the prop that I add.
fw.show_multiuserui=0
This disable all the UI and configurations sections for multiuser. Its not obligatory, but for me it makes sense to disable the interface aswell if you are disabling the function.
You can add that if the multiuser options keep showing even after disabling multiuser.
FHC1998 said:
That module probably still works (haven't updated it since posted) but the Magisk template is not updated.
My module does pretty much the same thing as yours, there is only one more line on the prop that I add.
fw.show_multiuserui=0
This disable all the UI and configurations sections for multiuser. Its not obligatory, but for me it makes sense to disable the interface aswell if you are disabling the function.
You can add that if the multiuser options keep showing even after disabling multiuser.
Click to expand...
Click to collapse
When I looked for the build.prop settings to disable multi user functionality I found the mentioned line as well.
But I cannot see any difference if I add it. At least it has not effect on my phone (OnePlus 3, CM13).
dima-82 said:
When I looked for the build.prop settings to disable multi user functionality I found the mentioned line as well.
But I cannot see any difference if I add it. At least it has not effect on my phone (OnePlus 3, CM13).
Click to expand...
Click to collapse
It depends on the device, I originally tested on a few, and some needed this line.
For instance, I tested your module on my device (ZenFone 2 laser) and it worked perfectly without the line, but on my friend's ZenFone 2 it kept showing the UI even though not allowing creating more users.
@dima-82 Module works great for me. I'm running a OP3T on offical LineageOS. All the multiuser stuff is gone from the settings and notification shade.
Sent from my ONEPLUS A3000 using Tapatalk
mp3deviant721 said:
@dima-82 Module works great for me. I'm running a OP3T on offical LineageOS. All the multiuser stuff is gone from the settings and notification shade.
Sent from my ONEPLUS A3000 using Tapatalk
Click to expand...
Click to collapse
Thanks for the feedback.
The official LineageOS for OP3T is Android 7.x? Nightly builds?
dima-82 said:
Thanks for the feedback.
The official LineageOS for OP3T is Android 7.x? Nightly builds?
Click to expand...
Click to collapse
The build I'm running is 7.1.1. Haven't tried 7.1.2 yet. Yes on the "nightly" build.
Sent from my ONEPLUS A3000 using Tapatalk
@dima-82,
Hello, I used your module to enable multi user mode, all I did is edited the file inside the .zip where the string to disable the multi user mode is located, and replaced it with the two strings to enable it.
Now I was wondering since this works, could I make a thread with the mod?
I would obviously credit You, and link to Your profile and this thread.
Here is the module on my device :silly:
dariomrk said:
@dima-82,
Hello, I used your module to enable multi user mode, all I did is edited the file inside the .zip where the string to disable the multi user mode is located, and replaced it with the two strings to enable it.
Now I was wondering since this works, could I make a thread with the mod?
I would obviously credit You, and link to Your profile and this thread.
Click to expand...
Click to collapse
Of course you can do.
But as mentioned in post #3 there was already a similar module. I think it does exactly what you need.
dima-82 said:
Of course you can do.
But as mentioned in post #3 there was already a similar module. I think it does exactly what you need.
Click to expand...
Click to collapse
Oh, I didn't see that, I will check if it does the exactly same thing (probably yes)...
---------- Post added at 03:06 PM ---------- Previous post was at 03:05 PM ----------
Just checked it out, and yes it does the exactly same thing
Please I need multiuser enable magisk module​ for Android 6
dima-82 said:
And actually I found already a similar magisk module created by user @FHC1998:
https://forum.xda-developers.com/apps/magisk/magisk-multiuser-enable-disable-t3552643
Click to expand...
Click to collapse
Here
Got bootloop after the install of this module.
Device: Zuk Z2
ROM: AEX 4.4
Unofficial Magisk 13.2 (170716)
I am running it on official Magisk 13.2 without any issues.
Did you also install other modules?
dima-82 said:
I am running it on official Magisk 13.2 without any issues.
Did you also install other modules?
Click to expand...
Click to collapse
Yes have other 5 modules
You installed / activated only this very one module and got a bootloop?
Before I created this module I edited the build.prop manually. And if you make a mistake there, you will get a bootloop as well.
May be your OS does not support this property.
I tested on my devices only, and it worked always.
Eventually you can try an other module from @FHC1998, which should do the same:
https://forum.xda-developers.com/showpost.php?p=71936097&postcount=3
jhobc said:
Got bootloop after the install of this module.
Device: Zuk Z2
ROM: AEX 4.4
Unofficial Magisk 13.2 (170716)
Click to expand...
Click to collapse
You could eventually try this mod:
https://forum.xda-developers.com/apps/magisk/module-single-user-mod-t3639486#post73160966 by @seebz

[MODULE][SD820/1|OP3/T + SD835/1|OP5] AKT Profiles for Magisk

AKT Profile for Magisk​
AKT Profile by Asiier & Senthil360 for Magisk in order to use service.sh(late_start).
Why?
I can't fully mount the /system partition and so /system/etc/init.d/99AKT is not editable.
The result is that at each boot/reboot I have to go through the whole procedure to apply the setting.
This module should make things easier: instead of rely on init.d, it uses the built-in function of magisk.
Profiles/Project Credits:
// Nameless by @Senthil360 | Fusion by @patalao | Burnout PR3 by @Mostafa Wael \ // Project Zhana & X.A.N.A by @Asiier | GhostPepper, HawkPepper and FairPark by @Asiier \
OP5 SupportMostafa Wael | @Funk Wizard
[AKT] Advanced Kernel Tweaks v1.0 For OP5 & S835 devices
I have just editet the /system/bin/AKT file to make it compatible with Magisk
Original Project:
https://forum.xda-developers.com/oneplus-3/how-to/advanced-interactive-governor-tweaks-t3476589
Change Log
v1.0 - Initial release
v1.1 - Fixed apply profile on boot
v1.2 - OP5 Support + Magisk Template v15
Requeriment
Magisk 15.0
Installation
-Uninstall the original AKT package through terminal
-Download the module from the Download section below(different zip for SD835|OP5 and SD820/1|OP3/T)
-Flash the zip package from Magisk Mangaer and reboot
-Apply the desired profile like you do with the default package from the Terminal emulator:
Code:
su
AKT
Download:
SD820/1 | OP3/T: https://github.com/Razorphyn/AKT_Pr...2/AKT_Profiles_Magisk-1.2.SD820.821-OP3.T.zip
SD835 | OP5: https://github.com/Razorphyn/AKT_Pr...oad/1.2/AKT_Profiles_Magisk-1.2.SD835-OP5.zip
Source:
Repository: https://github.com/Razorphyn/AKT_Profiles_Magisk
cool, do i need to uninstall the original atk?
What's the advantages of this module over AKT app provided in AKT thread?
well i think this will apply auto at boot.
How i verify if profile is activated ?
gatalon said:
cool, do i need to uninstall the original atk?
Click to expand...
Click to collapse
I am not sure that magisk will overwrite the already exixtant bin file, so I would say yes.
Just remember to apply the profile once you have installed the module.
pinoholo said:
What's the advantages of this module over AKT app provided in AKT thread?
Click to expand...
Click to collapse
Theoretically:
-No files are added directly to/system
-Do not need additional mod to enable init.d and potentially break SafetyNet
Practically:
I am not able to mount /system in rw, but only ro, this means that I can't edit the file inside the init.d folder, especially 99AKT which stores the profile info to apply on boot.
Also the removal of the bin file is a pain(only through TWRP)
Basically what happens is that instead of editing
Code:
/system/etc/init.d(su.d)/99AKT
, this module save the profile to apply on boot in
Code:
/magisk/mymodule/post-fs-data.sh
mmm273 said:
well i think this will apply auto at boot.
How i verify if profile is activated ?
Click to expand...
Click to collapse
I have never thought about it, but in principle, from the Terminal you should see the active profile.
To be sure I think you need to check the real value with some app and compare them with the profile file.
Probably an easier way is to use an app that display the value(I think Kernel Auditor does this, you can check the CPU freq and other value) and compare those value with te profile enabled and the profile disabled(once you have rebooted)
Well because when I apply it (Zhana / XANA whatever it doesn't matter), swipe to appdrawer lags. When I restart phone it doesn't lags. So I suppose it's not activated auto?
mmm273 said:
Well because when I apply it (Zhana / XANA whatever it doesn't matter), swipe to appdrawer lags. When I restart phone it doesn't lags. So I suppose it's not activated auto?
Click to expand...
Click to collapse
You know why? Because it doesn't work, but I have fixed it: now the module runs the script at late_start instead of post-fs-data, the stage is NON-BLOCKING, it will run in parallel with other processes (by documentation)[Basically it can take "few" seconds to show the results]
I have just checked and it should works: it edits the files in /sys/ with the value of the selected profile.
I will be grateful if you can test it again.
Tried but don't know feel still same like not fully loaded.
mmm273 said:
Tried but don't know feel still same like not fully loaded.
Click to expand...
Click to collapse
I have done few more tests and it looks like the value shown in Kernel Adiutor corresponds to the one of the selected profile...have you applied the profile as a "fresh installation"(not the "Reapply" option)?
Yeah sure I deleted all AKT files and module. Restart phone. Apply your new module. Restart phone. In terminal selected profile. All seems slower but that's ok, restarted phone and yet it was smooth. When I applied it again, again it became slower.
Something isn't right there.
mmm273 said:
Yeah sure I deleted all AKT files and module. Restart phone. Apply your new module. Restart phone. In terminal selected profile. All seems slower but that's ok, restarted phone and yet it was smooth. When I applied it again, again it became slower.
Something isn't right there.
Click to expand...
Click to collapse
My two-cents is tat since the profile is applied during boot you don't feel any slowing down/adjustment of the performance.
I reality I'm not sure, because as I can see the values displayed by Kernel Adiutor(and by the relative involved files) are the same of the profile and they change respect the default one.
I don't know if Nougat behaves differently respect the previous OS or Magisk "init.d" does not process as the "real" one, I have just adapted the module, maybe someone that has more knowledge respect me can solve this doubt.
I would say that it works, however I think that the important thing is that you notice a battery/performance increase.
I am sorry I cannot help you more...but at least the module now doesn't put any file in /system directly...
Razorphyn said:
AKT Profile for Magisk​
AKT Profile by Asiier & Senthil360 for Magisk in order to use service.sh(late_start).
Why?
I can't fully mount the /system partition and so /system/etc/init.d/99AKT is not editable.
The result is that at each boot/reboot I have to go through the whole procedure to apply the setting.
This module should make things easier: instead of rely on init.d, it uses the built-in function of magisk.
Profiles/Project Credits:
// Nameless by @Senthil360 | Fusion by @patalao | Burnout PR3 by @Mostafa Wael \ // Project Zhana & X.A.N.A by @Asiier | GhostPepper, HawkPepper and FairPark by @Asiier \
I have just editet the /system/bin/AKT file to make it compatible with Magisk
Original Project:
https://forum.xda-developers.com/oneplus-3/how-to/advanced-interactive-governor-tweaks-t3476589
Change Log
v1.0 - Initial release
v1.1 - Fixed apply profile on boot
Requeriment
Magisk 14.0
Installation
-Uninstall the original AKT package through terminal
-Download the module from the Download section below
-Flash the zip package from Magisk Mangaer and reboot
-Apply the desired profile like you do with the default package from the Terminal emulator:
Code:
su
AKT
Download:
Module: https://github.com/Razorphyn/AKT_Profiles_Magisk/files/1447769/AKT_Profiles_Magisk-1.1.zip
Source:
Repository: https://github.com/Razorphyn/AKT_Profiles_Magisk
Click to expand...
Click to collapse
can it be for Lenovo zuk z2 plus sd 820 device
will it work on that as well?????
Any chance of you doing this for the OP5 version, I have the 5T and AKT for 5 works well on it... Thanks.
It would be great if someone did this for the SD 835.
yung40oz84 said:
Any chance of you doing this for the OP5 version, I have the 5T and AKT for 5 works well on it... Thanks.
Click to expand...
Click to collapse
tech_head said:
It would be great if someone did this for the SD 835.
Click to expand...
Click to collapse
Sorry for the delay, I have adapted the code for OP5, but I am not able to test it. If you want to try, then let me know.
Razorphyn said:
Sorry for the delay, I have adapted the code for OP5, but I am not able to test it. If you want to try, then let me know.
Click to expand...
Click to collapse
I have the OP5T, it should work for that and I would be willing to test. Thanks bud!!! Just let me know and pass along the module, I will flash
I have an Essential. I'm willing to try it.
I have Magisk installed and I know how to back anything out if it doesn't work correctly.
tech_head said:
I have an Essential. I'm willing to try it.
I have Magisk installed and I know how to back anything out if it doesn't work correctly.
Click to expand...
Click to collapse
He said he adapted code for OP5, lol. U can try on Essential but it's a long shot.
yung40oz84 said:
I have the OP5T, it should work for that and I would be willing to test. Thanks bud!!! Just let me know and pass along the module, I will flash
Click to expand...
Click to collapse
I have misspoken, I have adapted the code and updated the first post, you can find the attached module at the end of it.
yung40oz84 said:
He said he adapted code for OP5, lol. U can try on Essential but it's a long shot.
Click to expand...
Click to collapse
tech_head said:
I have an Essential. I'm willing to try it.
I have Magisk installed and I know how to back anything out if it doesn't work correctly.
Click to expand...
Click to collapse
He is not fully wrong, it should support every SD835, but the result is not guaranteed.
Anyway, the module zip is attached at the edn of the first post, in principle nothing or irreparable should occurs

[MODULE] PNG patch for OP5T OPLongshot

This module patches OPLongshot's code so that it produces PNG screenshots, as it should, instead of JPEG screenshots (ew!). It patches only the VDEX/ODEX files, which have no signature on them — only the APK is signed, which we do not modify, so OPLongshot still retains system signature privileges. The original APK is included to avoid version mismatches (although I don't think there will be much issue even if it isn't includd).
Note that the OPLongshot was taken from the OnePlus 5T's system image. YMMV for other devices on OxygenOS (or even HydrogenOS?).
The current version uses the version of OPLongshot from OnePlus 5T OxygenOS 5.1.0/5.1.1 (same), with version 1.1.0.180328153957.6a699c8.
Remember to clear Dalvik/ART cache after installing this.
GitHub repository (also details of how the patch is done).
Download zip (temporary until the Magisk repo bot refreshes)
any plan for OP5?
h20ray said:
any plan for OP5?
Click to expand...
Click to collapse
Could you upload the APK and odex/vdex files?
Are you going to port it to OnePlus 3/3T devices?
Does it works with the OP5 ?
angelsel said:
Could you upload the APK and odex/vdex files?
Click to expand...
Click to collapse
I've attached the latest the OPLongshot folder (taken from the latest OB14 for the OP5 and zipped). Looking forward to the modifications for this version as well for the OP5, whenever you get the time. Thank you!
shadowstep said:
I've attached the latest the OPLongshot folder (taken from the latest OB14 for the OP5 and zipped). Looking forward to the modifications for this version as well for the OP5, whenever you get the time. Thank you!
Click to expand...
Click to collapse
Do you plan to compile from OB15?
V5 doesn't work on the last OB 14(5T)
Nemo Aeternam said:
V5 doesn't work on the last OB 14(5T)
Click to expand...
Click to collapse
Same here
We will no longer update this great module
We? Hope for an update! jpg must die..
Sent with much love & Android. OnePlus 5T
Would be great to see an update, no longer works on Pie for OP6.
This was meant for the OnePlus 5T stable builds only (as the title states); I don't use the beta builds, nor do I own a OnePlus 6. That the modified vdex even worked on the beta builds and non-5T builds was not intentional.
Someone else can follow the method I have detailed to create modules for the OnePlus 6 and the 5T open betas.
The current version works on OxygenOS 5.1.5 for OnePlus 5T (the APK did not change from 5.1.4 to 5.1.5).
angelsel said:
This was meant for the OnePlus 5T stable builds only (as the title states); I don't use the beta builds, nor do I own a OnePlus 6. That the modified vdex even worked on the beta builds and non-5T builds was not intentional.
Someone else can follow the method I have detailed to create modules for the OnePlus 6 and the 5T open betas.
The current version works on OxygenOS 5.1.5 for OnePlus 5T (the APK did not change from 5.1.4 to 5.1.5).
Click to expand...
Click to collapse
About vdex2dex, did you use it with the entire AOSP tree or do you have a standalone version with dependencies?
If you do have a standalone version (which I couldn't find) can you provide it?
tanish2k09 said:
About vdex2dex, did you use it with the entire AOSP tree or do you have a standalone version with dependencies?
If you do have a standalone version (which I couldn't find) can you provide it?
Click to expand...
Click to collapse
I used it with the entire AOSP tree. Sorry.
Can i just use it in Oneplus 3??
Sent from my OnePlus3 using XDA Labs
Is there any timeframe on when Pie support for this module will be implemented? It worked fine for me in the previous beta version, and now I can only take screenshots with the module disabled since I updated my OP5T today.
zland said:
Is there any timeframe on when Pie support for this module will be implemented? It worked fine for me in the previous beta version, and now I can only take screenshots with the module disabled since I updated my OP5T today.
Click to expand...
Click to collapse
Yes, we need this mod. Sadly I can't do it myself.. but maybe I can help you out with the needed files, OP?
OP Longshot seem to still be at ver. 1.1.0...
but there is a new folder inside the path of OP Longshot called "lib". Inside that folder is a folder called arm64, and inside arm64 are two files calling "libencryptjni.so" and "op_encrypt.so" maybe these are the reasons the old magisk module won't work? i don't know for sure, but i know that these folders and files aren't present in the magisk module.
I would buy you a beer OP, for updating this mod. :good:
moeq123 said:
Yes, we need this mod. Sadly I can't do it myself.. but maybe I can help you out with the needed files, OP?
OP Longshot seem to still be at ver. 1.1.0...
but there is a new folder inside the path of OP Longshot called "lib". Inside that folder is a folder called arm64, and inside arm64 are two files calling "libencryptjni.so" and "op_encrypt.so" maybe these are the reasons the old magisk module won't work? i don't know for sure, but i know that these folders and files aren't present in the magisk module.
I would buy you a beer OP, for updating this mod. :good:
Click to expand...
Click to collapse
I followed the instructions as mentioned in the GitHub readme, and I ended up successfully getting a modified version.
Sadly though, it doesn't seem to work on android P
I have updated the module, based on OOS OB20 (OP5T) but should also work for OB22 (OP5). Cheers.

[GCam][Ultrawide] trCamera for Mi A3 + basic XML file

After some testing I finally found a GCam that supports the Ultrawide Lense without needing to root/flash a module/disabling SELinux
How to install
1) Allow Unknown sources
2) Install the APK
3) Copy the XML file to Internal Storage/trCamera/XMLConfigs
4) Apply it within the app by double pressing on the black space below the shutter button​
APK download: https://f.celsoazevedo.com/file/cfiles/gcm1/trCamera_V7_FINAL.apk
XML Download: (see attached file)
Note: The XML provided is a basic one I made that ensures a good experience, I highly recommend you look at the settings yourself and make changes if necessary
Credits: GCam by tigr, XML by Muda42 (me)
They have a newer version of the tigerCamera: V7.1.
How does your config file differs from the one provided on the https://www.celsoazevedo.com/files/android/google-camera/dev-tigr/ page?
Thanks a lot for sharing this, but I can't figure out how to bring up the aux lens.
Config file has been saved under \trCamera\XMLCongfig.
And the toggles are set as the attached screen shots.
What have I missed?
Also, I found quite some toggles under "Control of viewfinder buttons" are not working properly....
CLS_phone said:
Also, I found quite some toggles under "Control of viewfinder buttons" are not working properly....
Click to expand...
Click to collapse
CLS_phone said:
Thanks a lot for sharing this, but I can't figure out how to bring up the aux lens.
Config file has been saved under \trCamera\XMLCongfig.
And the toggles are set as the attached screen shots.
What have I missed?
Click to expand...
Click to collapse
Hmm are you running stock or custom ROM ?
Stock. Global version.
CLS_phone said:
Stock. Global version.
Click to expand...
Click to collapse
Try running adb shell getprop vendor.camera.aux.packagelist in ADB and send me the result
Still the same, no camera button on the viewfinder.
Oh, there's nothing after the adb command. I redo several times, still the same.
Is this what you need?
https://photos.app.goo.gl/xtoDV6nRwuSNm4xU6
CLS_phone said:
Still the same, no camera button on the viewfinder.
Click to expand...
Click to collapse
Can you send me the output of the aforementioned command ?
CLS_phone said:
Oh, there's nothing after the adb command. I redo several times, still the same.
Is this what you need?
https://photos.app.goo.gl/xtoDV6nRwuSNm4xU6
Click to expand...
Click to collapse
Hmm I probably sent you a non working command. It looks like the stock ROM doesn't allow trCameras package name (org.codeaurora.snapcam) to use auxiliary cameras (which is strange because normally every Android OS should allow it). This is only a theory and an inspection of the build properties is required to prove this.
Sorry, there's no output. You may see in the attached photo of post #8.
That's my laptop's screen in the viewfinder. You may see there's nothing after the last two lines.
THREAD CLOSED
@Muda42 A thread for GCam already exists. Creating a new thread for the same topic is against the Forum Rules. Kindly continue the discussion in the existing thread itself, if needed.
Link to existing thread: https://forum.xda-developers.com/mi-a3/themes/google-camera-7-0-mia3-t3968317
Regards,
shadowstep
Forum Moderator

Categories

Resources