yashsingh1/xdaforums huggingface dataset:
[Magisk] GodKiller_222:
I made a little fact-checking for Android 6-7 props:

dalvik.vm.dex2oat-filter=*** - works.

dalvik.vm.checkjni=false - compatibility leftover debug code that cause tons of bugs in modern android versions.

dalvik.vm.heaptargetutilization - works, but usually presents in build.prop, should be 0.85 for 2+Gb ram devices but who cares?.

obsolate and non-existed props from Android 4.x or even 2.3:

dalvik.vm.execution-mode=int:jit (replaced with dalvik.vm.usejit boolean long time ago).

dalvik.vm.dexopt-flags

dalvik.vm.dex2oat-thread_count

dalvik.vm.dex2oat-swap
[Magisk] veez21:
Well, thanks :)

Those that you said are obsolete/non-existent, I got them from just googling so, thanks :laugh:

Though dalvik.vm.dex2oat-swap is documented here so it should be working.

dalvik.vm.dexopt-flags was still documented in lollipop (here) so it should be working at least in LP

I'll do some proper debloat in the next update :good:
[Magisk] Sam Nakamura:
I observed same issue, as soon as I apply the ART runtime module systemless xposed gets inactive, if I remove the module xposed works again... :confused:

Xposed logs showed no obvious error, nothing I could determine, on systemless supersu on previous setup I didn't had any issues with xposed, just as a short feedback
[Magisk] JRJ442:
I'm pretty certain Xposed has to modify some ART stuff or disable it. I remember reading that. It's probably gonna be one of those things where you can't have both
[Magisk] Sam Nakamura:
Yep, that would be guess too if it wasn't that only systemless has issues, when using xposed and module on system mode I haven't experienced this issues..
[Magisk] GodKiller_222:
Yeah, those famous 2 or 3 low-memory devices with 7.1 onboard without extended ISA control (dalvik.vm.isa.arm...). You can't save 'em. No one can. And no one compiles art with swap support just-for-fun. That tweak tweaks nothing.

That is a 5-years old commit named "Remove misleading and outdated documentation". You can't be serious:D
[Magisk] veez21:
Yeah, just noticed the last commit was 5 years ago

I'm just gonna leave it there for "fun's" sake :laugh:

Anyways thanks :good:

You gave me a fresh breathe of air :highfive:
[Magisk] veez21:
UPDATE TO v1.4!

A new nifty feature added for non-magisk users!

Open terminal emulator/adb shell

Then enter su and setfilter

It should present you with this message

ART Optimization by veez21

setfilter [--compiler-filter] [file]
compiler filters:
everything
speed
balanced
space
interpret-only
verify-none

Which is pretty much self-explanatory and easy to use

Changelog:

Code Optimization

Another attempt for Samsung

Added `setfilter` pseudo-binary for Non-Magisk

Minor debloat

Download here

or at Magisk Manager
[Magisk] justjr:
Hi! You seem to know a lot about dalvik optimizations. What do you recommend for 1GB devices regarding dalvik.vm.usejit (used in conjunction of AOT?), dalvik.vm.isa.arm, heapzises and heaptarget utilization, if applicable!

I try to research about it but I lack lot of knowledge to do so efficiently!

Thanks for your enlightening!
[Magisk] veez21:
Yeah, he seems to be a new guy in disguise :laugh:

Good to have such a guy who can give constructive criticism :highfive:
[Magisk] tsjanda:
Installed 1.4 but in magisk I am still on 1.3 and the log reports 1.3 and there is no update listed in downloads In magisk manager.

I flashed in recovery and rebooted.
[Magisk] atarek:
Magisk manager still shows version 1.3 so i can't update through magisk is this single user issue or general one.

PS: i didn't see previous post so it seems general one.
[Magisk] veez21:
Try reflashing..

If that still doesn't work, try mounting data first then flash
[Magisk] veez21:
Ok, I made a typo in updating in the repo. Wait a little while :)
[Magisk] veez21:
Try looking at magisk manager again
[Magisk] atarek:
Showed up now.

Installing.

Great effort :)
[Magisk] tsjanda:
All fixed thanks
[Magisk] GodKiller_222:
Well, in my humble opinion, there is no point in all that prop\sysctl tweaks nowadays. They worked great back in Android 2.x times, but modern Android systems handles memory pretty well with default values. You can speed up your phone for 2-3 % but may spend days experimenting, not worth it.

Much more reasonable way - debloat unneeded system apps, replace heavy default apps (launcher, keyboard, gallery, etc.) with lightweight ones. Tiny phone overclocking. With a bit of luck and practicing, you can repack apps removing useless languages and graphics to make them much more small and a bit faster. Thats what I tried and it works. I've never saw any noticeable effect (except obvious - like disabling buttons ledlight gives your phone more battery-life) with tweakers that adds garbage to build.prop, init.d and so on.

I still may be wrong, no harm in trying) There’s nothing we can’t face, except for bunnies (c).

You're welcome)) No conspracies though, I'm from Belarus, mostly spending time on a russian forums. Сan read, build sources and even write some creepy code, but express something comprehensible in english tooks me much more time, it should, so I prefer to be quiet here on XDA.
[Magisk] Shen Ron:
Magisk version still causes bootloop and non-magisk displaying wrong version number but overall it still performs well as it should, thank you.
[Magisk] veez21:
Yeah, I forgot to change the version number on both magisk and non-magisk. Been busy with school stuff
[Magisk] Shen Ron:
No rush.
[Magisk] filjusz:
Your module work like a charm but I have problem with SuperSU after activating it in magisk manager
[Magisk] veez21:
Yeah, magisk + supersu + this module has a prob too. Most likely because dex2oat and dalvikvm is causing some conflicts when supersu is installed with magisk, ( [MENTION=631273]Chainfire[/MENTION]? )

I advice you to use non-magisk (which is present in the zip)
[Magisk] smohanv:
Thanks. Your mod works (v1. 4) works like charm. As you have mentioned, because of version number not updated, it is showing in magisk as if an update is available. See screenshots.
[Magisk] LinuxPanda:
v1.3 caused bootloop in Redmi 4A but version 1.4 works fine. Thanks for the update.
[Magisk] Techie Android:
Question: So I've noticed that now the message is gone to wipe the cache, is that not something you're supposed to do anymore? Also when I update do I need to run the script and re-select the "everything" option?
[Magisk] :
There is no need to wipe if you are just updating so u won't see that message if it detects previous version already installed.
[Magisk] jmmigo:
Can I use (flash) your latest module on init.d?
[Magisk] Jithin0801:
Is this module compatible with Nougat 7.1.2.(custom ROM) and custom kernel installed??
[Magisk] edoardotavecchio:
It should. I'm on AICP 7.1.2 with RacerKernel and it works fine apart from the known issues (viper4android and audiomodlib) uncompatibility
[Magisk] KaMyKaSii:
Yes, use the non-magisk.sh script with 755 permissions. But it is recommended by the OP install on /su/su.d if available
[Magisk] jmmigo:
Thanks sir, I already use build in root.
[Magisk] veez21:
Use non-magisk
[Magisk] Jithin0801:
I installed using magisk and it removed my fingerprint completely and battery status showing randomly sometimes battery percent increases...!!

My device is Honor 5x running on Resurrection remix 7.1.2. and custom kernel installed in it...!!
[Magisk] edoardotavecchio:
I don't know how to deal with that, maybe ask it to the dev. Anyway, do it in a polite way.
[Magisk] LoV432:
Same phone same rom and custom kernel....had the same problem...the non magisk version doesn't remove your fingerprint but the battery still there.
[Magisk] Jithin0801:
We have to wait for an update then..!
[Magisk] veez21:
I can't do anything about it since it's probably rom/source related
[Magisk] Jithin0801:
Not a problem besides yours work is great I felt the difference after installing this module.. I shall try some older versions or with some other ROMs..!!
[Magisk] pipyakas:
I tried to flash this via TWRP, but it still install the magisk version and after that almost all of my apps freeze, and I got memory leak/ram start filing up until the phone freeze completely :( how can I install the non-magisk version if I have magisk?
[Magisk] veez21:
extract non-magisk.sh from the zip then put it in /magisk/.core/post-fs-data then set permissions to 755 (rwx-rx-rx)

if you want to use setfilter, extract it from the zip too and put it in /sbin and set permissions to 755 (instructions on how to use it in the OP)

?
[Magisk] catalyst05:
which one will extract for setfilter and will we use terminal for excuting non-magisk script?
[Magisk] veez21:
It doesn't execute non magisk's script. It just changes your filter
[Magisk] Jole7:
V1.4 is great i use filter everything and phone is very fast thank you bud for this mod no magisk zip btw
[Magisk] iOrpheus06:
Has the slow boot up time for samsung been fixed in tge latest ver??
[Magisk] veez21:
Idk, i don't own one

Try it and tell me
[Magisk] iOrpheus06:
Ok ill try when i get home! ?
[Magisk] nreuge:
v1.4 (everything) works perfectly on my Xperia Z5 / stock based N rom

Thx :)
[Magisk] tidschi:
It is! Tested on S7 Edge with Helios Rom.
[Magisk] psychoela:
Expected useful addon v1.4(everything) non-magisk permissions 755 :D
[Magisk] iOrpheus06:
Is it thru magisk or is it non magisk installation?
[Magisk] tidschi:
Magisk
[Magisk] Recycool:
On S5 Plus (G901F) w\LineageOS 14.1 this module made load times longer on apps (I tested on YouTube for example, without about 1.5 sec, with 3 sec. Probably would do the trick in the official TW 6.0, but on LOS 14.1 it's way better without it.

WHOA, looks like I tested V0.2 (The one from the second post lol, didn't know where to download 1.4, now I see it is in the repo)
[Magisk] Sam Nakamura:
Also consider which filter you set, if you do nothing it's supposed to be "speed" which is likely default on your rom anyways...
[Magisk] hgoldner:
I don't think I've seen a response to this question: Does this add-on make any difference at all on Nougat?
[Magisk] angelus_kun:
I dont know why but sadly this module dosent work on my moto G4 play but in my Samsung galaxy tab A6 2016 after a couple of reboots works like steroids, weird but in both cases my sdcard installed apps just disappeared i dont know why :/

Edit: it seems to be a launcher problem when i'm reinstall The laucher my apps appeared again :3 yay! Thanks for this module
[Magisk] iOrpheus06:
Depends on what you choose. Theoretically, setting filter to Everything should make apps run smoother on your phone though boot up time will increase.

Speed, meanwhile is default and it has fast boot up time. No need to install module if you dont want to change it from Speed imo.
[Magisk] Jole7:
Yes a big difference choose filter to everything and enjoy
[Magisk] angelus_kun:
Soo sad but this module cause conflicts with safetynet :'( im unistalling it now :'(
[Magisk] atarek:
Not true I'm passing safetynet with this Module installed and enabled.

Give us more info about ur environment what changes u have did. Magisk log.
[Magisk] angelus_kun:
Im installed this module, then after reboot my apps on SD disappeared later i Go yo the terminal And enable the balanced mode, And reboot then my apps disappeared again And i reboot And my apps appeared but safetynet checks fails

I uninstalled the module And safetynet pass but o cant see the apps like fire emblem or Mario run on Playstore
[Magisk] XenRon:
Would this work with systemless xposed? I'm willing to test.
[Magisk] veez21:
Yeah, but if you're on a TW based rom, it might have problems
[Magisk] XenRon:
Still wanna test tho... Thanks!
[Magisk] rignfool:
Be careful...

everything compiler flag has been known to break Xposed due to ART modifications...
[Magisk] XenRon:
:( Since after rooting and tweaking my phone, I have been getting random reboots and long lags when powering on my device.
[Magisk] rignfool:
Then don't mess with this module... It's only going to make things worse... Either figure out what's causing your issue... Or wait for your ROM dev to sort it out...
[Magisk] huaiyue:
great！

When I see " setting everything for /su/su.d/art-opt.sh "

Is it ok?

Thx!
[Magisk] Shen Ron:
Tried the nonmagisk version again still cause the same problem as before after many atempts, even with the magisk module to enable init.d support and still didn't work
[Magisk] SimpTheChimp:
I just can't seem to get v1. 4 of this add on installed! I tried just flashing 1.4 over 1.3,bit after booting Majisk still shows it as 1.3. I even tried flashing the optimization Uninstaller then the 1.4 version, but again after reboot it's still showing 1.3!

So.... How can I get rid fully of 1.3 and install 1.4?

Droid Turbo running latest RR ROM.
[Magisk] veez21:
install from magisk manager (downloads section)
[Magisk] lahceneamine:
It seems that the long reboot issue is fixed in the Beta version of Magisk.

But I can't call the module in Terminal with "art_magisk", it tells me that the script isn't found.

Would you mind checking it ?
[Magisk] veez21:
Might be a magisk issue. I can't probably do anything about it until topjohnwu fixes it.
[Magisk] huaiyue:
How to use it? bro.

Thank you!
[Magisk] LazerL0rd:
It crashes after I wipe dalvik/art cache and reboot. It causes a failed magisk error.
[Magisk] veez21:
What crashes?
[Magisk] camapghe:
The download link of ver 1.4 seem to be 1.3, or it's just the label. I means, I downloaded the ver 1.4 and installed in Magisk, then the module in Magisk appeared to be ver 1.3... Can anyone confirm if it is the label error or not?
[Magisk] veez21:
Label error only;)
[Magisk] veez21:
UPDATE TO v1.4.1!

Changelog:

setfilter needs root access!

art_magisk needs root access!

Dynamic version comment for Non-Magisk!

Download here (** if you had problems flashing the zip from this link, redownload again **)

or at Magisk Manager
[Magisk] veez21:
TO ANYONE THAT'S HAVING TROUBLE WITH RIL, APPS CRASHING ETC AND IS IN MAGISK v12

Try this crash fix.

Flash it right after you've flashed the module.

It might or might not work tho!

Thanks to [MENTION=7836278]LazerL0rd[/MENTION] for the tip :)
[Magisk] Shen Ron:
Nonmagisk wont install even if i uninstall previous version or install over it and magisk version kills root and stops sim from working
[Magisk] veez21:
Try this

https://xdaforums.com/showpost.php?p=72680086&postcount=768
[Magisk] Shen Ron:
IT WORKED!!!!!!!!!!!:o
[Magisk] veez21:
?, thanks for confirming
[Magisk] LazerL0rd:
Great to hear it's working!!

---------- Post added at 08:52 PM ---------- Previous post was at 07:58 PM ----------

My phone is smoooootthhh with this set to everything.
[Magisk] psychoela:
for first time this magisk module work without bootloop:victory: thanks
[Magisk] veez21:
SLIGHT UPDATE TO CRASH FIX!

- Added setfilter support when flashed

- Removes art_magisk when flashed due to compatibility issues

- More messages when flashing

Download here
[Magisk] MM.626:
immediately typo as emediately, somehow triggering me ???

also after changing settings in terminal emulator restart doesn't take place after entering y
[Magisk] veez21:
Yeah, you can just reboot manually :good:
[Magisk] Dbzfan:
Does this really work?
[Magisk] kishd:
Running the latest beta but if I install this module it fails safety net. Got two other modules installed without problem.
[Magisk] Sam Nakamura:
Is this really your question? :cyclops:

Just read the thread you're posting in, especially the first post and some users comments, what's your impression, does it really work?

As long as you don't try this on a windows phone you should be fine, otherwise use the uninstaller, you guessed right :), it's also linked in post one (aka OP)... Good luck and happy flashing

---------- Post added at 05:56 PM ---------- Previous post was at 05:47 PM ----------

Same with Dolby, it reportatly let's SN check fail, magisk isn't really stable yet, at least when using modules, not necessarily the modules fault...

I think we have to give the transition from magisk v12 to v13 a little more time :) and letting the devs sort it out..
[Magisk] marvelljones:
Running this module after uninstalling and "clean" installing the latest beta. Passes Safetynet, but it is the only module I currently have running.
[Magisk] phoberus:
This breaks my mobile internet and other magisk modules on OOS (Oneplus 3T). Tried V 1.4 and and 1.4.1

Deleted the module and dirty flashed the stock rom to get my internet working again

logs attached
[Magisk] veez21:
Try this

https://xdaforums.com/apps/magisk/module-android-runtime-optimization-t3596559/post72680086
[Magisk] veez21:
Ok, what rom are you using?
[Magisk] rignfool:
Why are you using more than just the system.prop file to set this?

Didn't mean to quote...
[Magisk] veez21:
I don't know :o

Just utilizing the most in magisk i guess :cool:

Also for reassurance that the properties are set
[Magisk] :
Doesn't work on Extended AOSP 7.1.2 ROM, it caused Magisk to stop working and freeze the entire phone.
[Magisk] rignfool:
Well... I removed the post-fs-data.sh and services.sh... leaving the system.prop... it sets...

I set both flags to everything... Interesting, none of the dates on the files in /data/dalvik-cache change... I did lose about 40 meg in free space though...
[Magisk] veez21:
Well, if the dalvik-cache wiping in config.sh is not working. You can just try to wipe it manually. No problem with the wiping here though
[Magisk] rignfool:
I wonder if that's a nougat thing...
[Magisk] veez21:
What phone
[Magisk] yandreev3:
I am using stock Samsung 6.0.@ TouchWiz that is extremely debloated. Custom kernel but stock rom.
[Magisk] veez21:
Ok, try changing the filter to everything and report back.
[Magisk] :
Redmi Note 4 Snapdragon variant
[Magisk] veez21:
Try changing the filter to everything
[Magisk] yandreev3:
Changed it to everything by going in the terminal and typing magisk_iforgotthecommandfromtheop then selecting everything and selecting yes on the wipe. I then rebooted into recovery and wiped dalvik and art and rebooted. I got stuck in a bootloop so i wiped cache and dalvik again and rebooted and this time i booted no problem.

I ran the terminal command again and verified it was on everything still.

Facebook messenger still broken.
[Magisk] veez21:
Well, Did you try to uninstall and then reinstalling it?
[Magisk] yandreev3:
I tried clearing its data and cache and it doesn't help. Tried reinstalling the app after that and that did not help either. Only when I went into magisk and disabled the module and rebooted it ran. It seems like this is the only app with this issue.
[Magisk] veez21:
Ok, thanks for testing. Seems to be a good information. I'll add this at the OP :good:
[Magisk] yandreev3:
Awesome. let me know if I can test anymore or when/if it gets fixed haha
[Magisk] veez21:
NOW IN THE MAGISK REPO. YOU CAN NOW DOWNLOAD THIS IN MAGISK MANAGER :cool:
[Magisk] dacorsa:
on lieageos i have bootloop...

how solve it??

thanks
[Magisk] veez21:
Try rebooting back again. Most users got a bootloop and rebooting again solved their problem :good:
[Magisk] phoberus:
seems to work with crash fix v2, thank you :)
[Magisk] demonoidmaster:
People who don't know what this is for or don't take the time to read about how it works, what it does, etc make me giggle tbh
[Magisk] Refi150R:
well..., my phone(Zenfone 2 Z008) got stuck (Just black screen) after RR Logo, the home screen won't show up after flashing this

:eek::eek::eek::eek:
[Magisk] demonoidmaster:
Good thing it's a module eyy?

Don't worry you can fix your device by using twrp to remove the module

If not just flash the magisk uninstaller and reflash magisk and other modules you know work
[Magisk] Refi150R:
Yeah the problem is solved. Before I flash this ART, I do backup using twrp and restore it.

But, I really confused, what cause my phone stuck when flashing this ART?
[Magisk] demonoidmaster:
Idk, last time i tried to install it via Magisk it would say it's not a module, come to find out the zipped files are in a folder and not in the base of the zip (as all flashable zips should be done) so i modified the zip to be how it should be but when i installed it in Magisk and rebooted it had wiped my installed modules and ****ed up Magisk someway, so i had to reflash Magisk and my EmojiOne module

Haven't touched Art Opt since
[Magisk] veez21:
It did say flash in recovery...
[Magisk] demonoidmaster:
Twrp wouldn't flash it, Magisk either because it wasn't in the base of the zip, you had zipped up a folder containing the files, but when i tried with Magisk or TWRP idek remember it screwed up my Magisk install
[Magisk] veez21:
you must've downloaded from github right?
[Magisk] demonoidmaster:
No , from Magisk, it was v1.4

Either ways i could always flash 1.4.1 via TWRP but i don't need it because the HEBF app (comparable to Lspeed app) has Art Compiler option in it, making it do what your module does
[Magisk] voetbalremco:
The crash fix works, and fixes the RIL/Data issue.

However for me it completely breaks the Magisk install detection somehow.

Currently not in the possibility to share any logs related to it, thought to mention it atleast.
[Magisk] veez21:
What problem specifically? I don't clearly understand :)
[Magisk] voetbalremco:
After flashing the crash fix Magisk Manager reports Magisk as uninstalled.
[Magisk] veez21:
Odd. I don't know what caused that. Might be something else, have you tried reflashing magisk?
[Magisk] jmmigo:
Yes, my magisk crash too. Rooted but limited function and magisk not installed
[Magisk] ynuance:
Do I need to flash the zip after I flash an updated rom zip ?

Do I need to change setfilter again after rom updated ?
[Magisk] veez21:
Depends. As long as you don't wipe /data, you don't have to redo everything after a rom update
[Magisk] demonoidmaster:
Nope, just flash your rom update and reflash Magisk if the survival script doesn't kick in (survival script has been added to the recent v13 beta of Magisk, that way it autoreinstalls Magisk right after a rom gets flashed so you don't need to flash the beta zip anymore ..Unless there's a new version of v13 then yeah flash that lol)
[Magisk] Thebloodstomper:
Wonderfull

I il give it a try when my phone Will be rooted
[Magisk] dudzky:
Work well BEAST in crdroid G3D's art Opti is compatible and now everything is everything is much faster than before great work author .SuperSU user works well
[Magisk] c19932:
Hi

I tried the everything setting but it lags more on my phone/rom. I forgot to note what the default setting in my rom was. What is the best way to revert to original rom setting?
[Magisk] demonoidmaster:
You didn't read the op did you? Select Speed instead of Everything and test to see if it works better for you.
[Magisk] c19932:
I did, but I want to ensure that I am using the original setting in my rom. Just because most roms have the speed setting as default doesn't necessarily mean that my rom had the same default.
[Magisk] demonoidmaster:
uninstall this module, reflash your rom, reflash magisk.

For me by default before applying this it was on Interpret-only, but i hope you know what this module does, otherwise you should just remove it and not install it.
[Magisk] voetbalremco:
Might be Xiaomi/MIUI related, I got a Redmi Note 3.
[Magisk] anjel05:
Can anyone explain what is magisk and how to install magisk,?
[Magisk] rignfool:
No...

But if you hit the 'back' button out to where you found this thread... And look at the pinned threads... You'll see one where the title is strikingly similar to the question you just asked...
[Magisk] killerBRs:
art_magisk is not working in terminal emulator (su)

"Data/Magisk/Busybox"

Not Found.
[Magisk] Didgeridoohan:
Are you using Magisk v13.0 beta? Busybox is no longer bundled, so this module's gonna have to be updated to work with the next version of Magisk.
[Magisk] killerBRs:
Yes, latest v13.0 build.
[Magisk] veez21:
Forgot about this one ?, thanks for reminding

For the mean time, you can install [MENTION=4544860]osm0sis[/MENTION]' (google it) busybox and symlink the busybox to /data/magisk/busybox

ln -s /magisk/busybox-ndk/system/xbin/busybox /data/magisk/busybox