yashsingh1/xdaforums huggingface dataset:
[Magisk] otonieru:
The Galaxy S8 logo always take sometimes, even in pre rooted condition. Thats what i noticed since buying this phone.

It takes around 50-60secs on that stage,

but once it enter samsung logo with blue led, it only takes like 10-15 seconds to fully boot the system.

EDIT :

Just did the stopwatch for the sake of being exact LoL

It takes 61 seconds in Galaxy S8 screen and 17 seconds in blinking samsung screen, total of 78.85 seconds until lockscreen displayed,

I think that quite fast. My OP3 take longer than that obviously
[Magisk] lahceneamine:
Just uninstalled the art module, the phone completely booted in 37,71 Seconds.
[Magisk] Jole7:
Woow this update is awesome i don't know what you've done but performance is definitely higher.

Also it booted normally awesome thanks a lot!!!
[Magisk] 24imelqui:
I thought slow boot time is device specific :). Mine takes exactly 60sec on asus logo and 15-20 seconds on RR boot animation. This also happen when I install Ainur (Sauron Sound MOD) w/o this module.
[Magisk] Shen Ron:
Boots up faster than i expected but i'm encountering the same problems as with version 0.8.2 the system ui crashes and i have to go back to 0.9.1
[Magisk] veez21:
Do you have any other modules? AudModLib?
[Magisk] Shen Ron:
I do but audmodlib never affected it before and i mever encounter the sim problem, only the system ui crash.
[Magisk] veez21:
Could you experiment? Like disabling either this module or audmodlib and see which causes which?
[Magisk] Shen Ron:
Ok but it will be a while since i'm working right now.
[Magisk] veez21:
Changelog can be viewed on readme.md (linked in the OP)
[Magisk] Shen Ron:
Tried disabling other modules and still didn't help at all.
[Magisk] veez21:
Try non-magisk version. It might be a magisk issue when audmodlib and this module is both installed...
[Magisk] Shen Ron:
Ok, thanks
[Magisk] Shen Ron:
Non magisk version working like a bugatti veyron in full racing mode:laugh::D:cool::svetius:
[Magisk] veez21:
So, it's a magisk problem..

Good thing that it works for you now :highfive:
[Magisk] veez21:
UPDATE TO v1.1!

This update includes the preservation of the saved compiler filter in Magisk version and Non-magisk (not tested, but it should work). I need to reassure if the saved setting is reapplied properly in Non-Magisk, so please confirm it if you're using non-magisk.

Changelog:

Logging Improved

Saved compiler filter now survives updates on both Magisk and Non-Magisk (unless something prevents it to)

Moved dalvik.vm.dex2oat-thread_count back to system.prop

Add dalvik.vm.dex2oat-threads

Add dalvik.vm.boot-dex2oat-threads

Download here or at Magisk Manager
[Magisk] :
[MENTION=7296895]veez21[/MENTION] I have some problems with this module now. I'm using Xiaomi Redmi Note 3 Pro with AquariOS (though I tried on few different roms) 7.1.2 and Magisk. The only other module that I use is sdcardfs enabler. After I install this module, either via magisk or twrp, after first reboot everything is okay. But if I try to change compiler to everything, it reboots itself and after that my camera and flashlight stop working and after less than a minute phone soft reboots itself. But everything was fine just few days earlier, when I was using it on version 0.7 also with sdcardfs enabler and sauron audio mod (which includes audiomodlib - now if I try to flash that mod with your module my sim card stops working too).
[Magisk] veez21:
How about changing it to speed?
[Magisk] :
It showed me that default is speed, would it do something regardless?
[Magisk] veez21:
Yeah, there are more properties included in the module (you can look in the OP )?
[Magisk] Shen Ron:
The free space now is beyond insane but xposed has stopped working because of the module
[Magisk] veez21:
Non magisk right? Try reflashing xposed
[Magisk] lahceneamine:
Hi Dev, first of all let me thank you on behalf of everybody for yout awesome work.

Yesterday I gave a try to your module and even if it takes me more than 2 Minutes to boot up, the results are still there.

I uninstalled it though (because of the reboot time)

Today I told myself I'll try your v1.1, same problem, boot time over 3 minutes now :(, I ran art_magisk, choosed "everything" typed "y" to wipe, rebooted, and BAM, I lost nearly every data related to any samsung app (Contacts, SMS, Notes, Calendar ...etc)

I know you warned us about heavily modified OEM's roms, but I just want to know if it's a normal thing or not :-/ ??
[Magisk] :
Ok, tried speed and it works, thanks :)
[Magisk] veez21:
You have a backup? This is highly unusual. Sorry if you lost anything important...
[Magisk] psychoela:
non-magisk
[Magisk] lahceneamine:
Don't worry for that, I did a BackUp on Mai 10th, got back nearly everything but the sms (It doesn't Matter anyway).

I would like to ask you a question, I wanna try to use the NON-Magisk version even though I have Magisk, could you tell me which file I have to put in "Init.d" folder or any other folder ? Cause I'm nearly sure the long boot issue is related to Magisk postf.fs.data thing.
[Magisk] LuciferIII:
So about Magisk and non-magisk,is there actually a difference in optimization or something? And why is non-magisk not updated to the latest version,or does it not need to ?

Edit: Nevermind i am an idiot
[Magisk] Shen Ron:
Reflashing xposed doesnt work so i'm going to have to go back to the previous version
[Magisk] LuciferIII:
How do i change to "everything" in non magisk?
[Magisk] LuciferIII:
I kinda figured it out. But it didn't make any difference until i tried magisk,now my apps really do work faster, i am impressed and test further and report back.
[Magisk] Aguys:
Tried v1.1 with magisk and ended with bootloop. So, switched to non magisk, working fine.
[Magisk] veez21:
you've to put it in post-fs-data
[Magisk] xQuantum:
Any battery improvements with everything?
[Magisk] veez21:
I don't know. I haven't read anything about battery in the documentation, and I haven't been observing battery life with this. Try it and tell me, but there might or might not be any difference ;)
[Magisk] peped94:
On latest version, when i changed the filter to everything, it does not work because i cant see any logs inside magisk manager. It is ok if i reflash the module with default setting. So i dont know whether it is working or not if i changed to everything. Previous version v1 is working well for everything filter
[Magisk] smohanv:
It works fine. As usual I flashed in twrp to avoid running the script again in terminal emulator. Updating via magisk and running the script forces wiping dalvik cache which I don't like.
[Magisk] veez21:
Try looking at your filter, this update might override your previous setting
[Magisk] smohanv:
Yes. Correctly showing. See Screenshot.

Are you wiping dalvik/art cache in your flash script. I can see that my cache is wiped and took longer time to boot. Please make a warning that it will wipe cache so that user like me can re-odex some of the app that I do. Thanks. View attachment 4155667
[Magisk] veez21:
No, i mean in terminal emulator (art_magisk). I'll remove dalvik-cache wiping in the next version ?
[Magisk] smohanv:
Yes. It lists all the filters. Thanks. Have a nice day.
[Magisk] Ubimo:
[MENTION=7296895]veez21[/MENTION]

Please read about my problem here:

https://xdaforums.com/showpost.php?p=72363083&postcount=694
[Magisk] lahceneamine:
It's the same thing with my S8, I guess it's Samsung related.

Even if you put the NON-Magisk version in the post.fs.data.d folder, it takes a very long timpe to boot.

The only way I found against this, is to execute manually the NON-Magisk version.
[Magisk] veez21:
Any other modules? Or your only using this one?
[Magisk] lahceneamine:
A question sir :

Does the script need to be run on every boot or just once before the wipe of dalvik cache ?

Cause it is the fact that the script is present in the post.fs folder which give us long reboot.
[Magisk] veez21:
It needs to run every boot...

It's​ only in /magisk/runtime-optimization folder, not in post-fs-data ?

EDIT: You're using non-magisk right? If so, then you only need to execute it only once
[Magisk] lahceneamine:
Sorry for being not precise :(

Yes I do use the non - magisk version, when I put the script in the post.fs folder, I get the long reboot thing.

But when I put it in init.d, it boots fast (Normal).

I guess then it's an issue related to magisk + Samsung, maybe topjohnwu should investigate in it?
[Magisk] veez21:
I think it is a magisk + samsung prob... [MENTION=4470081]topjohnwu[/MENTION]

But you can still execute non-magisk script and leave it (until an update is released) since it writes directly to build.prop :good:
[Magisk] MrBrady:
Device: Nexus 6, CRDroid (LineageOS-based Android 7.1.2) with Magisk for root.

Installed the 1.1 zip in the OP. After changing from "Interpret" to "Balanced" to "Everything", upon boot the screen is black with a System UI keeps stopping message that comes up so fast it looks like it's flickering. Tried going into ADB shell to disable, but shell doesn't recognize art_magisk. Tried the uninstaller but it still has the constant System UI keeps stopping message. Tried dirty flashing the ROM - same issue.

Any other suggestions or am I hosed and need to wipe data?
[Magisk] lahceneamine:
Last question :

I can run the script from anywhere or it needs to be in init.d ??
[Magisk] veez21:
Try wiping dalvik-cache, then mount magisk.img and see if it's properly uninstalled

you can run it anywhere
[Magisk] jordirpz:
you can run it anywhere[/QUOTE]

Hi, how i can run script please? Thank you

(Non-magisk device)
[Magisk] veez21:
Hi, how i can run script please? Thank you

(Non-magisk device)

Put in a directory (ex. /cache/non-magisk.sh) then set permission to 755

or

if you've already installed it through flashing, it should exist in either /system/su.d, /su/su,d, or /system/etc/init.d

then run this command

sh /path/to/script
[Magisk] jordirpz:
Put in a directory (ex. /cache/non-magisk.sh) then set permission to 755

or

if you've already installed it through flashing, it should exist in either /system/su.d, /su/su,d, or /system/etc/init.d

then run this command

sh /path/to/script

[/QUOTE]

Doesn't work
[Magisk] veez21:
Doesn't work

View attachment 4155998View attachment 4155999

Doesn't work? What do you mean? Execute the script then view build.prop to see if the properties (at the OP) are there
[Magisk] Ubimo:
Only this module.

I'm on SGS7 edge, SuperMan ROM, custom kernel, latest TWRP, magisk v13 170415.
[Magisk] veez21:
It seems that it's a magisk + samsung problem when post-fs-data scripts are present :confused:
[Magisk] lahceneamine:
First of all you need tu run

su

To get root permissions, then in your case, this Code :

sh /path/to/script

Becomes :

sh /su/su.d/art-opt.sh
[Magisk] NDR_man:
Does anyone actually have some hard evidence this works on nougat, I'm just a bit skeptical, I'm on "everything" as of current but don't notice a speed difference
[Magisk] LuciferIII:
I am using it with magisk and "everything".

It does improve the loading times of apps greatly!

But the boot with the samsung logo or however its call(basically the first thing you see when booting) is Really slow.

LaOS14.1 latest build,boeffla kernel. I9300
[Magisk] NDR_man:
How does it actually affect the performance inside the apps? Or is that left unaffected
[Magisk] LuciferIII:
Apps startup faster,in youtube app i noticed it does open up videos slightly.
[Magisk] KaMyKaSii:
For those of you who use this mod on Nougat did you notice any difference between the speed and everything filter? I expected everything to use about three times more space, but here there was only 4MB increase. And for you who are on Lollipop or Marshmallow?

And [MENTION=7296895]veez21[/MENTION], I'm using the non-magisk script. Is there any difference between using "#!/system/bin/sh" or "#!/su/bin/sush" to run the script?
[Magisk] lahceneamine:
What if I tell you that on my S8, the SPEED filter takes more space (about 2Mb) than EVERYTHING ? XD
[Magisk] JRJ442:
I think it's greatly improved too. Facebook is a laggy POS recently for me. Running everything and it's way smoother.

This actually happened to me too last night​ after updating to 1.1, I also used app systemizer to make Greenify a system app around the same time so I wasn't sure what the culprit was. I ended up clean installing my ROM and everything and stuck with version 1.0 since that's what TiBu restored. Everything has been good today so far.
[Magisk] Techie Android:
Changelog doesn't work. Could you post an update for me with all changes please? Thanks!
[Magisk] zys52712:
I'm on Lineage OS 14.1 and after flashing the zip and wiping cache in recovery it gets stuck on bootlogo and won't boot properly.
[Magisk] Aguys:
I have the same issue. Try execute non-magisk script(inside the zip) it will write to build.prop, after that reboot to recovery and wipe dalvik+cache. It works for me.
[Magisk] veez21:
Not really, i think ?
[Magisk] zys52712:
Is there anyway to check to see if the script ran or not?
[Magisk] lahceneamine:
Run this code in terminal :

"getprop | grep dalvik" without the " "

And check if your chosen filter is there.
[Magisk] veez21:
Look at magisk manager or at the OP (linked at README)
[Magisk] android_htc:
[MENTION=7296895]veez21[/MENTION],

Please confirm if everything is working on my Samsung Note 4.

Not sure why it reads "unknown operand"?

Note: I have not changed any settings.
[Magisk] veez21:
Yes it's working. You can ignore unknown operand error for now :good: but it's gonna be fixed for the next update
[Magisk] veez21:
Need anybody on nougat

Need anybody on nougat!

Do this command in terminal emulator:

su
getprop dalvik.vm.dex2oat-very-large

If you have an output, post it and tell me your device's info: name/model, ram etc

Thanks in advance :)
[Magisk] cantenna:
hi op,

im interested in giving this a go, how much space are we talking avout here roughly for everything?
[Magisk] veez21:
I dunno, about a few MBs

Also, if you don't mind, try this: https://xdaforums.com/showpost.php?p=72377664&postcount=527
[Magisk] Aguys:
No output, device Nexus 5X (RR Rom 7.1.2)
[Magisk] k2065183s:
No output.

Samsung S7 SuperStock ROM,set filter to "everything",using NON-MAGISK version.
[Magisk] Face_Plant:
Device: Nexus 6P

Compiler filter: Everything

Things do seem a bit zippier with the everything filter, but on the other hand it takes about 90 seconds for my phone to boot. That's not really a big deal, but what does annoy me is how settings and Titanium Backup constantly crash. Disabling Substratum overlays for settings doesn't help and I have no overlays for Titanium Backup.

Wiping cache/dalvik fixed the issue for about a day, but this morning it's back in full force. I attached a logcat to this post.

Edit- switching back to speed seems to have fixed it for now.
[Magisk] ebrijesh:
No output.

Bacon using RR 7.1.2
[Magisk] MrBrady:
Interesting. I did exactly the same thing - used App Systemizer to make Greenfiy a system app aroudn the same time I changed the profile in ART Optimization. I figured it was this mod only because I wiped /System, which would have removed Greenify as a system app. But since you had the same issue, maybe that is the source.
[Magisk] JRJ442:
It's starting to sound like more than a coincidence now. Lol. Are you on AO 1.0 or 1.1 currently? I might update to 1.1 to see if it happens again.
[Magisk] MrBrady:
I was on 1.1 but then had to do a clean install. Haven't moved Greenify to System or installed AO yet.
[Magisk] JRJ442:
I didn't move Greenify this time either. I don't really see the difference it makes honestly. AO 1.0 has been good for me on everything for a couple days now. I think I'll guinea pig it and update to 1.1 anyway.
[Magisk] cantenna:
just experienced this myself but found a fix, disable the boot image!

you can do that from TWRP by mounting system and then in the filmanager rename /system/media/bootsamsung.qmg to something else. Then I was able to boot again rather rather quickly.

update:

su

getprop dalvik.vm.dex2oat-very-large

no output.
[Magisk] Sam Nakamura:
Using a ressurectionremix 5.7.4 (android 6.0.1) tablet with supersu in system mode, no magisk. When I flash the unified zip I get an "variable error" but installer script goes on (see screenshot), after checking the compiler filter on terminal emulator (getprop | greb dalvik) it shows default "speed" even I changed it to "everything" and on second attempt to "balanced" in system.prop before flashing (see screenshot)

I'm I missing something here?

Search for the specific error output doesn't show anything, as far as I could read for the non-magisk version only system.prop needs to be edited accordingly before flashing, that's what I did...

Recovery log is attached

https://drive.google.com/file/d/0B0FpJqT1UCyaeFJ1T3BoMmZKeFE/view?usp=drivesdk
[Magisk] veez21:
The variable error means the "filter" variable in non-magisk is not found. It's not a big deal though, but I'll replace that in the next update ? to avoid confusion
[Magisk] Techie Android:
It doesn't output anything for me.
[Magisk] Sam Nakamura:
Okay, thanks for clarification :good: so if that's not related why changing the filter won't apply on this setup, did I missed here something too?
[Magisk] veez21:
Yeah, noticed that roms don't have it. It's better to not implement it

You can change the filter by editing the "art-opt.sh", there should be a part there that is commented that it can be edited.
[Magisk] Sam Nakamura:
Do you mean non-magisk.sh? Found no "art-opt.sh" inside the installer zip...
[Magisk] veez21:
No, i mean after installing non-magisk. Inside the zip is the non-magisk.sh which will be renamed to art-opt.sh after installing
[Magisk] Sam Nakamura:
That worked beautifully :highfive: thanks
[Magisk] veez21:
UPDATE TO v1.2!

Changelog:

Revert dalvik.vm.dex2oat-filter to speed

Removed dalvik-cache wiping during installation

Removed dalvik.vm.boot-dex2oat-threads

Tweaked Installation messages

Tweaked davik-cache wiping in art_magisk

Fixed "unknown operand" error in art_magisk

Download here or at Magisk Manager
[Magisk] smohanv:
My phone is flying on every touch. Because I am using the same filter (everything), I didn't do a wipe after flash with TWRP.

One fine day my phone will respond even before I just about to touch the screen.. (LOL) :p
[Magisk] justjr:
I would love to know reasons why. Thank you!

Enviado de meu MotoG3 usando Tapatalk
[Magisk] veez21:
Well, for a few experimentation and some stuff. I'll add a quick update shortly since I made a tiny mistake (with dalvik.vm.dex2oat-filter) :o

I removed dalvik.vm.boot-dex2oat-threads since boot time on my test device was consistently 6-7 seconds longer on about a few tests
[Magisk] veez21:
QUICK UPDATE TO v1.2.5!

Made a slight mistake when I updated to v1.2 :D

You need to re-update ;)

Changelog:

Moved workaround installtion to config.sh, making it easier for me

dalvik.vm.dex2oat-filter will also change when selection a filter, again

Download here or at Magisk Manager
[Magisk] k2065183s:
Can I extract the zip to get "non-magisk.sh" file and use https://xdaforums.com/showpost.php?p=72184915&postcount=239 this way to install it?
[Magisk] veez21:
You can, why not just flash it?
[Magisk] k2065183s:
Actually I don't know how to...^^"

I've never used Magisk before.

So I'm afraid that I could make mistakes.

Just flash the zip in TWRP?

Then how could I change the filter :confused:
[Magisk] peped94:
Is it working ?
[Magisk] veez21:
Magisk? or Non-Magisk? If magisk you can read the OP. If non-magisk, you can edit art-opt.sh which will be present in either /su/su.d, /system/su.d or /system/etc/init.d

Yes it is :good:
[Magisk] k2065183s:
Non-Magisk.

Old-way:Extract & edit non-magisk.sh to change filter -- Put the file to right place -- Reboot To TWRP & Wipe & Reboot to system

Flash-way:Reboot to TWRP & flash the zip -- Reboot to system & edit art-opt.sh to change filter -- Reboot To TWRP & Wipe & Reboot to system

Flash-way has to reboot thrice.

So,I think the old-way installing is more easier and quicker when there is a new version to update.

Or we don't have to edit art-opt.sh every update?After flashing the zip it'll keep the filter setting?

Maybe I'm wrong...Just thinking:)
[Magisk] veez21:
Well, after installing for the first time and setting your filter, you don't need to edit it again since it'll save your previous filter to be applied again after updating. So, flashing is much easier when you're updating ;)

It's also easier for me to manage stuff
[Magisk] k2065183s:
I get it :highfive:

I'll try flashing next update.

Thank you for explaining so much :good:

Have a nice day
[Magisk] smohanv:
Flashed in TWRP and wiped as well. As usual it flies...
[Magisk] heri1978:
Already install using magisk, run good so far........

---------- Post added at 04:00 PM ---------- Previous post was at 03:52 PM ----------

Remixed with fera droid engine.....no issue or conflict, blend well both tweaks.....

GT-I9205 RROS 7.1.2 Official.
[Magisk] michał79:
can I flash new version with supersu?
[Magisk] twoxa:
Getting error flashing... Magisk 12 OnePlus 3T.
[Magisk] veez21:
Use non-magisk ? (if you don't have magisk installed with supersu then you can just flash the zip)

what error? more details please
[Magisk] Shen Ron:
Tried my luck with magisk version and it literally just killed xposed and magisk together, so now i want to try the non-magisk version but i'm afraid.
[Magisk] veez21:
Try it, maybe it'll work :fingers-crossed:
[Magisk] Shen Ron:
It didn't work, got stuck in bootloop
[Magisk] veez21:
Ok, is it installed in Magisk or non-magisk?
[Magisk] Shen Ron:
Tried both
[Magisk] veez21:
What rom? You can just uninstall this mod ;)
[Magisk] Shen Ron:
Samsung stock touchwiz 6.0.1
[Magisk] veez21:
Ah! Samsung...

That explains it :highfive:
[Magisk] Shen Ron:
Please doctor, you have to save my phone, i'm desperate.
[Magisk] veez21:
Try this. Extract the .sh file and put it in /system/su.d, /su/su.d or post-fs-data (in magisk)

Set permissions to 755 and execute then reboot

You can't use the filter variable since I removed some props
[Magisk] Shen Ron:
Ok i'll do it

---------- Post added at 06:35 AM ---------- Previous post was at 06:03 AM ----------

It didn't work, magisk and xposed got killed again just like last time
[Magisk] veez21:
Ok, nothing I can do for this :(
[Magisk] bmark240:
[MENTION=7799143]Shen Ron[/MENTION]:

Did any version of Optimizer work?

If so have you still got the version?

Flash the older version over the newer version,

It may stop the bootloop.

There is definitely something in the newest build that is causing issues.
[Magisk] veez21:
Hmmm...

Ok, I'll try looking into it. Would you guys mind testing some stuff :)
[Magisk] atarek:
Thanks.

Hello [MENTION=7296895]veez21[/MENTION],

thanks for ur great effort.

i'm using latest version with samsung note3 running adroid 6.0.1 with magisk manager .

i downloaded through magisk then installed after that restart. I would confirm everything worked flawlessly with no issue.

Attatched screen shoots.

PS: i'm using default filter. "speed".

Keep it up :)
[Magisk] veez21:
It's good that you have it working :good:

One question, do you have xposed installed?
[Magisk] atarek:
No i don't have xposed framework installed either system or systemless. I only use magisk manager and magisk SU v12.0. I've not tested latest snapshot from magisk v13 cause current one is stable with me "passing everything smoothly"

Ps: if u want me to test anything it's ok feel free to ask. :)
[Magisk] veez21:
One question, did you change the compiler filter and rebooted? If not then try wiping dalvik-cache :good:
[Magisk] aleasto:
I had already done all. What actually fixed it was a mere second reboot :confused:
[Magisk] umeshbluezzz:
Working good.. but now i cant open magisk manager and supersu. Now how can i disable or uninstall this module?

I m on lineage os 13.0 6.01
[Magisk] veez21:
Try rebooting twice, seemed to have fixed the other guy's problem
[Magisk] guma77:
Hello

Can i install without problem on kangvip v386 android 6.0.1?