DISCLAIMER:
I am not responsible to anything going wrong with your device.
You are responsible to what you are doing with your phone, not me.
If you blame me, I will laugh in your face and I'll go grab a beer.
SELinux is set to Enforcing by default on CM 13. Using an app to change the policy one is able to change it to Permissive, but on reboot, it is changed back to Enforcing. Permissive SELinux policy is need if one wants to install ViPER4Android for example.
With a few simple steps, we are able to change it so on boot the policy will be set to Permissive:
Step 1:
SuperSU needs to be installed in order for this to work. This means replacing the stock root that comes with CM 13.
1. Download and the latest systemless SuperSU from HERE.
2. Flash the ZIP file from your recovery and reboot to system. Booting might take a while.
3. Remember to disable the built in root in developers options.
Step 2:
Use a terminal emulator or ADB to type these commands:
su
mount -o remount,rw /system
mkdir /system/su.d
echo "#!/system/bin/sh" > /system/su.d/permissive.sh
echo "setenforce 0" > /system/su.d/permissive.sh
echo "0" > /sys/fs/selinux/enforce
chmod 755 /system/su.d/permissive.sh
Click to expand...
Click to collapse
NOTE: each line needs to be entered separately by pressing enter after each line.
Step 3:
REBOOT
Now that you have completed the above steps, the SELinux policy should be set to Permissive and stay like that after any reboots.
Thank you @Chainfire for the amazing SuperSU app.
I modified the IRRC file a bit and i made this flashable zip that changes SELinux to permissive... You can try it, or someone with more skills or Nikita itself can check this if it's something wrong with that!
On my phone worked perfect though.. :good:
I installed ViPER4Android with SELinux set on Enforcing...
Enigma. said:
I installed ViPER4Android with SELinux set on Enforcing...
Click to expand...
Click to collapse
Installing is easy, but does it work for you? And are you sure you are on an Enforcing system?
mobiusm said:
Installing is easy, but does it work for you? And are you sure you are on an Enforcing system?
Click to expand...
Click to collapse
Absolutely, and I'm sure I'm on an Enforcing. I just want to ask if there is any particular reason I should set selinux on permissive, maybe some app like viper or something...?
Enigma. said:
Absolutely, and I'm sure I'm on an Enforcing. I just want to ask if there is any particular reason I should set selinux on permissive, maybe some app like viper or something...?
Click to expand...
Click to collapse
You told me you already installed viper
mobiusm said:
You told me you already installed viper
Click to expand...
Click to collapse
I did, but I'm just interested in what else I can do with permissive mode... But nvm, thanks for help anyway
Whenever I type this into my terminal after I type the last line (I did it correctly) its pop up with a bunch of text telling me how to use chmod755 and that I can't change something I don't own and I have to change the permissions of something? What do I do? I'm on LG G2 ls980 on CM13 and I can't flash superSU because apparently I have SU setting in my developer mode options so I can only use that or if I flash a supersu latest version my device soft bricks and I have to restore from a backup or completely restore the phone using windows software? Thanks please help
Paentherax said:
Whenever I type this into my terminal after I type the last line (I did it correctly) its pop up with a bunch of text telling me how to use chmod755 and that I can't change something I don't own and I have to change the permissions of something? What do I do? I'm on LG G2 ls980 on CM13 and I can't flash superSU because apparently I have SU setting in my developer mode options so I can only use that or if I flash a supersu latest version my device soft bricks and I have to restore from a backup or completely restore the phone using windows software? Thanks please help
Click to expand...
Click to collapse
Well as I'm sure you've read, you need to flash SuperSU to use this method.. but a quick search on Google should yield other methods of changing SELinux to Permissive...
i have a CM13 based custom Rom but my Selinux is disabled by default ... please tell me how i can enable it ???
Sent from my Lenovo a6000 using XDA-Developers mobile app
zishukkc said:
i have a CM13 based custom Rom but my Selinux is disabled by default ... please tell me how i can enable it ???
Click to expand...
Click to collapse
Is it "Permissive" or "Disabled"?
There is a huge difference.
Sent from my LG G2 Mini using XDA Labs
Vagelis1608 said:
Is it "Permissive" or "Disabled"
There is a huge difference.
Sent from my LG G2 Mini using XDA Labs
Click to expand...
Click to collapse
as i said... it is "Disabled" ... how can i enbale it?
Sent from my Lenovo a6000 using XDA-Developers mobile app
zishukkc said:
as i said... it is "Disabled" ... how can i enbale it?
Click to expand...
Click to collapse
Grab the CM13 kernel sources, enable SELinux, build the kernel and flash it.
Or you could ask at the CM13 thread.
Sent from my LG G2 Mini using XDA Labs
AntonPanos said:
I modified the IRRC file a bit and i made this flashable zip that changes SELinux to permissive... You can try it, or someone with more skills or Nikita itself can check this if it's something wrong with that!
On my phone worked perfect though.. :good:
Click to expand...
Click to collapse
I think you should warn people this is a kernel, I just installed this thinking it was only a script to disable selinux not to overwrite my kernel.
chrcol said:
I think you should warn people this is a kernel, I just installed this thinking it was only a script to disable selinux not to overwrite my kernel.
Click to expand...
Click to collapse
It doesn't overwrite the whole kernel, only cmdline
Sent from my LG G2 Mini using XDA Labs
how can you undo this? On my LG G5 viper isn't working.
Perpatoura said:
how can you undo this? On my LG G5 viper isn't working.
Click to expand...
Click to collapse
Weird. It's Enforcing SELinux that breaks Viper4Android, not Permissive.
Are you sure that SELinux broke it?
Sent from my LG G2 Mini using XDA Labs
Vagelis1608 said:
Weird. It's Enforcing SELinux that breaks Viper4Android, not Permissive.
Are you sure that SELinux broke it?
Sent from my LG G2 Mini using XDA Labs
Click to expand...
Click to collapse
Viper wasn't working before, so SELinux didn't broke anything. But it won't work neither, that's why I'm asking how to undo this, no reason to have permissive then.
Perpatoura said:
Viper wasn't working before, so SELinux didn't broke anything. But it won't work neither, that's why I'm asking how to undo this, no reason to have permissive then.
Click to expand...
Click to collapse
Hi there.
Delete the /system/su.d/permissive.sh file and then go to /sys/fs/selinux/enforce , open the file and replace the 0 with a 1 .
Thank you AntonPanos~
i'm flash your permissive zip!it's working on viper 2.4.0.1
my phone is Note Edge 5.1.1 on Stock Rom!
Related
wp_mod: Module to disable system write protection
This is a kernel module that disables write protection on the system partition while running the stock kernel.
HTC changed the MMC_MUST_PREVENT_WP_VIOLATION code to make it much harder to crack. I had to redo the module completely, so this is experimental. In the past, it was a simple matter of changing a variable, now we have to replace a function in the kernel so it returns something different, causing the kernel to skip over the write protection code.
I would caution against loading the module after attempting to make changes to the system partition. It could end up corrupting the filesystem. If the module is loaded at boot, there should be no worries.
This module will probably need to be updated to load with future kernels when they are released.
Please consider a donation to support ongoing development
Many thanks to those who have donated!
Download:
wp_mod for GPE Marshmallow 6.0 can be found here:
http://forum.xda-developers.com/htc-one-m8/general/root-root-marshmallow-gpe-supersu-t3242210
Sense 4.4.4 (thanks @migascalp):
http://www.mediafire.com/download/4vyqslnc4crsnto/wp_mod_3.28.401.6.zip
Sense 4.4.3 (2.22 base):
wp_mod.ko
Sense 4.4.2:
wp_mod.ko
GPE 4.4.4 (thanks to @italyforever):
wp_mod.ko
GPE 4.4.2:
wp_mod.ko
Installation:
Wait for it to be implemented in your favourite ROM
* or *
Copy the module to your device, and type
Code:
su
insmod /location-where-you-copied-it/wp_mod.ko
Changes:
April 2, 2014 - wp_mod 4.1
-only return non-existing partition number if called by generic_make_request_checks
-remove exit from module (we don't want to be able to unload it)
-clean up code
March 31, 2014 - wp_mod 4.0
-new method for HTC One m8
Source:
https://github.com/flar2/wp_mod
Module was compiled against m8 Google Play Edition source. Some symbol CRC checks had to be hexedited in the compiled module to match the stock kernel. Thanks to Michael Coppola for example of function hooking on arm: http://poppopret.org/2013/01/07/suterusu-rootkit-inline-kernel-function-hooking-on-x86-and-arm/#arm
Nice Job!!!! this is awesome
AWESOME! Thank you! Will test and see
Sent from my HTC One_M8 using XDA Premium 4 mobile app
Confirmed working here. I was able to delete stuff with titanium backup and it stuck after reboot. Thanks so much!
Sent from my M8 via XDA Premium app
So as an end user, before it gets baked into ROMs, we need to load this after each boot?
Worked here as well on the AT&T variant. I added the line to the install recovery script that chainfire uses for SuperSU and it loads it on boot now
what i did was run the insmod command in terminal emulator, made the system rw/ edited /system/etc/install-recovery.sh and added the insmod line in there Sure it would be easier if I had init.d support but I'm on stock and am too lazy to change to a custom rom
You guys are awesome.
Awesome work....Can now scratch my theming itch
Sent from my unknown using Tapatalk
gjlowe said:
So as an end user, before it gets baked into ROMs, we need to load this after each boot?
Click to expand...
Click to collapse
Nope. It'll get rolled into the kernel/scripts that are loaded at boot automagically.
M.
mattman83 said:
Nope. It'll get rolled into the kernel/scripts that are loaded at boot automagically.
M.
Click to expand...
Click to collapse
Hmmm..I ran the command in the OP and rebooted and when I try to create a directory in / it says that it is a read only file system.
graffixnyc said:
Worked here as well on the AT&T variant. I added the line to the install recovery script that chainfire uses for SuperSU and it loads it on boot now
what i did was run the insmod command in terminal emulator, made the system rw/ edited /system/etc/install-recovery.sh and added the insmod line in there Sure it would be easier if I had init.d support but I'm on stock and am too lazy to change to a custom rom
Click to expand...
Click to collapse
Can you share your zip please
Sent from my HTC One_M8 using Tapatalk
gjlowe said:
Hmmm..I ran the command in the OP and rebooted and when I try to create a directory in / it says that it is a read only file system.
Click to expand...
Click to collapse
You need to run it each time you boot, until it is correctly working as init.
mattman83 said:
Nope. It'll get rolled into the kernel/scripts that are loaded at boot automagically.
M.
Click to expand...
Click to collapse
Electronic Punk said:
You need to run it each time you boot, until it is correctly working as init.
Click to expand...
Click to collapse
Ok then, I guess @mattman83 was referring to when we have this in custom ROMs?
gjlowe said:
Ok then, I guess @mattman83 was referring to when we have this in custom ROMs?
Click to expand...
Click to collapse
Yup, I have already added it to my copy of ARHD 3.x and it is working great, so look for a release as soon as Mikes connection allows!
im on the vzw m8. we have temp 'root access' to /system/xbin. is it ok to do this as well? which will make /system writable?
-4ndr01d- said:
im on the vzw m8. we have temp 'root access' to /system/xbin. is it ok to do this as well? which will make /system writable?
Click to expand...
Click to collapse
I don't know what method they use to get root access to /system/xbin. This is probably compatible, if it loads with the Verizon kernel. Backup all your data and try it.
flar2 said:
I don't know what method they use to get root access to /system/xbin. This is probably compatible, if it loads with the Verizon kernel. Backup all your data and try it.
Click to expand...
Click to collapse
jcase has got us root access ...its only writable to /system/xbin and has to run on every boot. the app used is called WeakSauce
but i was thinking. once my phone boots up, i wait til i have root access, then download the file, place it in the correct directory, download terminal emulator and run the commands. then /system becomes writable until next reboot?
@flar2 nice job as always man!! :good:
awesome awesome awesome
looking forward to elementalx on the m8!
For users who have init.d support in their ROM. Flash this and your good to go
https://mega.co.nz/#!XINyDIrB!QcdP3sZJjgKAivkEa7iN8Jusx0e78T1rpA5PT7VGAxQ
Sent from my Note 3
Samsung Galaxy Tab A 7.0 LTE/WIFI 2016 TINKER EDITION ROM (DEOXED/ROOT/XPOSED)
============================================
Update 01/04/2017
-----------------------
Tinker Edition V5.1 is now out.
* Re-added Samsung stock camera and gallery
* revert back to stock vold to fix issues people are having with micro sdcards
Now available for the SM-T285, SM-T280 to follow
Update 10/29/2016
------------------------
TWRP for the SM-T285 here
Early Build of TWRP for the T285 (see post by @ashyx will update this if an official version is released. The T280 version should be available not far behind I believe
Update 09/21/2016
-----------------------
V5 now out (root, deodexed, xposed) for the SM-T280/T285, still working on the SM-T280
Update 09/20/2016
------------------------
Turns out this device is not as locked as we all thought it too be. See thread below for my ordeal and more details:
http://forum.xda-developers.com/galaxy-tab-a/help/resources-samsung-galaxy-tab-7-0-2016-t3431022
Modifications:
===========
* Based on LMY47V.T285XXU0APCN
* Stock Boot and Recovery (Not much choice since the bootloader is locked)
* Busybox
* Hijacked Vold (using CM 12.1 sources) to run shell scripts stored in /data/scripts/vold.init
* Removed Touchwiz launcher and redundant samsung apps (Hancom office, Kidzone), replaced with Trebuchet
* Enabled r/w to the external SD Card
* Dolby Atmos mod (09/11/2016) (thanks to @Nando14sunny)
* Deodexed/Xposed (09/13/2016) (thanks to @wanam and @rovo89)
* soft linked /etc/hosts to /data/scripts/hosts and can be edited using adb shell (09/13/2016) (thanks to @venomrat)
* V5: root chainfire's SuperSu 2.78 (09/21/2016) (thanks to @Chainfire)
* stock boot animation
Special thanks also to @ashyx for initially taking a look at this device , I haven't given up on rooting this device yet.
Special thanks to @klemen241 for helping me try out the SM-T280 build
Haven't done extensive testing on Xposed modules, but the pokemon go iv mod/hacked worked and that was good enough for me (Before pokemon Go was patched). If you use this ROM feedback is highly appreciated
NOTES: To be safe, perform a cache wipe using recovery. I didn't need to do this personally but I haven't tested all use cases
NOTES: Since this rom is deodexed, the first boot will take quite a while, so please be patient .
NOTES: if you are coming from V2 and are using the mount_ext4 apps2sd scripts please update it for additional support for the V3 ROM HERE:
https://github.com/jedld/smt285_data_scripts
NOTES: (09/13/2016) Unfortunately, the V3 build fails the Google SafetyNet check, will be a problem if you play Pokemon Go
Other Notes: Removed support for zygote.init scripts in V3 as I am now using the app_process32_xposed binary, will work to get this back soon. I haven't had a need for zygote scripts though. The vold.init scripts shoud still work as before if you are using the apps2sd script
Installation Instructions:
Odin or Heimdall Required. I you are coming from the Stock Rom please wipe/factory reset to be sure. If you are upgrading from V1 or V2 you are not required to wipe unless there are problems. If you are upgrading to V3 cache wipe is recommended using recovery.
--FLASH AT YOUR OWN RISK--
1. Make sure to backup of your data and have a copy of your stock Rom in case something goes wrong.
2. Make sure your device is OEM unlocked. (Enable Developer settings and Enable the OEM unlock settings)
3. Extract ZIP file below and flash the tar.md5 file using ODIN, for details on this kindly look for instructions in the xda site.
4. For Heimdall you can use 7zip to extract the system.img from the tar.md5 and just flash the system.img itself.
Choose the appropriate download for the model (wifi only T280/ lte T285) that you have:
WIFI ONLY Download (SM-T280)
==========================
Link (V5 Deodexed, Rooted and Xposed):
https://mega.nz/#!0Jdg0a4D!XWLES1BwCPrkBlUzqNhRfRi_91LOdawYHydQ_scV2dI
Link (V3 Deodexed and Xposed - with special thanks to wanam with his custom Xposed build (86.0), and credits also to rovo89):
Download from Mega (v3 09/13/2016)
LTE Version Downloads (SM-T285)
===========================
Link (V5.1 Deodexed, Rooted and Xposed):
https://mega.nz/#!ZFFTFKYZ!NAeajNUjIgYI7zOslpWoJ2AeJ-NCKG0Ut8Buz_6eCgU
Link (V3 Deodexed and Xposed - with special thanks to wanam with his custom Xposed build (86.0), and credits also to rovo89):
Download from Mega (v3 09/13/2016)
Link (Original V2 odexed version):
Download from Mega (V2 09/11/2016)
If you have suggestions, send me a PM.
Other Notes (So people don't have to ask):
* I've tried to run superuser daemonsu, but unfortunately the sepolicy scopes for vold and zygote are too narrow in this device for supersu to use despite being root. In theory a version of daemonsu can be made specifically to run on this device with a somewhat castrated functionality though I don't have access to the source code to figure it out. Navigating the sepolicy landmine is hard.
WIFI ISSUES
=========
There are reports of wifi problems with the latest build due to wrong permissions with dhcp hooks, if so you can do the following (big thanks to @_mone):
Using adb shell:
Code:
su
mount -o rw,remount,rw /system
chmod 755 /system/etc/dhcpcd/dhcpcd-run-hooks
mount -o ro,remount,ro /system
/system is readonly by default, which is why you need the remount commands. Reboot your device after just to make sure.
Hi,
The mount_ext4_sdcard.sh script moves all apps to SD card on reboot?
Edit: did not read till the end. System apps are not move.
venomrat said:
Hi,
The mount_ext4_sdcard.sh script moves all apps to SD card on reboot?
Edit: did not read till the end. System apps are not move.
Click to expand...
Click to collapse
It won't by default for safety purposes, however you are welcome to edit the script and try to move them all
jedld said:
It won't by default for safety purposes, however you are welcome to edit the script and try to move them all
Click to expand...
Click to collapse
Thanks for your hard work. It's a pity this device is not as popular as their other models or more people would have already signed the petition.
I regret not doing more research before buying this tablet.
Hello there
At first i want to thank you for your hard work so far
Then i've got a question,
I just built this Tablet (LTE version) in my car. Now i'm on to configure it with Tasker to "act more like a car radio". It was really hard, because of the non rooted device.. But i did it so far
I used a sound mod, called Dolby Atmos (i think it's from lenovo?) on allmost every of my rooted devices to improve its sound.
I'm wondering if it would be possible that you could build in this mod inside a rom for me?
Normally i flash it as a zip file via a custom recovery so it's in the system files. but maybe you could edit it in there before the rom get flashed via odin? I could give you the zip, if u dont find it. It would be really nice!
Greetings from germany
Nando14sunny said:
Hello there
At first i want to thank you for your hard work so far
Then i've got a question,
I just built this Tablet (LTE version) in my car. Now i'm on to configure it with Tasker to "act more like a car radio". It was really hard, because of the non rooted device.. But i did it so far
I used a sound mod, called Dolby Atmos (i think it's from lenovo?) on allmost every of my rooted devices to improve its sound.
I'm wondering if it would be possible that you could build in this mod inside a rom for me?
Normally i flash it as a zip file via a custom recovery so it's in the system files. but maybe you could edit it in there before the rom get flashed via odin? I could give you the zip, if u dont find it. It would be really nice!
Greetings from germany
Click to expand...
Click to collapse
we could try, could you point me to a rom that has the specified libraries for Dolby?
Thank you, for the fast answer!
Here is the flashable zip of the Dolby Atmos, mod i used successfully on my other devices:
Mega
Greetings
Nando14sunny said:
Thank you, for the fast answer!
Here is the flashable zip of the Dolby Atmos, mod i used successfully on my other devices:
Mega
Greetings
Click to expand...
Click to collapse
Ok, wish granted, updated the ROM to include Dolby ATMOs, just redownload the ROM from the link in the main post.
jedld said:
Ok, wish granted, updated the ROM to include Dolby ATMOs, just redownload the ROM from the link in the main post.
Click to expand...
Click to collapse
Wow thank you! I'll test it right now
Edit:
It works like a charm! You really improved my devie with it!
Hi,
If it's not too troublesome, perhaps the next version can symlink the host file to a r/w folder so that ads can be blocked.
Thanks.
venomrat said:
Hi,
If it's not too troublesome, perhaps the next version can symlink the host file to a r/w folder so that ads can be blocked.
Thanks.
Click to expand...
Click to collapse
Possible, though the only r/w partition is data and cache, and it may potentially cause problems when you suddenly try to do a wipe. I'm working on deodexing and porting xposed framework for now. Either that if you've got some IP addresses that need to be blocked I can create an edition that has those entries. I'll see what I can do though there might be away to do it without breaking factory reset/wipe cache.
jedld said:
Possible, though the only r/w partition is data and cache, and it may potentially cause problems when you suddenly try to do a wipe. I'm working on deodexing and porting xposed framework for now. Either that if you've got some IP addresses that need to be blocked I can create an edition that has those entries. I'll see what I can do though there might be away to do it without breaking factory reset/wipe cache.
Click to expand...
Click to collapse
No hurry. I can wait. What you are doing now is more important. :good:
venomrat said:
No hurry. I can wait. What you are doing now is more important. :good:
Click to expand...
Click to collapse
Wish Granted. As a bonus, the latest version of the ROM is now deodexed and Xposed, please refer to the main post for the updates.
Feedback is appreciated.
How can i change the dpi?
Sent from my SM-T285 using XDA-Developers mobile app
corzradio said:
How can i change the dpi?
Sent from my SM-T285 using XDA-Developers mobile app
Click to expand...
Click to collapse
May need to modify build.prop, you may do this yourself here:
http://forum.xda-developers.com/galaxy-tab-a/how-to/guide-samsung-galaxy-tab-7-0-sm-t285-t3438296
Also there may be an Xposed framework modules that do that. Not sure though since I'm ok with the stock DPI
jedld said:
Wish Granted. As a bonus, the latest version of the ROM is now deodexed and Xposed, please refer to the main post for the updates.
Feedback is appreciated.
Click to expand...
Click to collapse
Thanks. Will need to find time to re-flash this weekend.
Regarding xposed have you actually tested any other modules that need root?
I already built a rom with xposed but it was all but useless because pretty much all the modules I use need root.
most of those I tried don't need root so far (youtube adaway, pokemon go iv). Haven't tried those that need root but I suppose those wouldn't work.
I use app settings and it works for dpi change, and you are welcome. I am glad to test stuff, its fun haha. If anyone has questions about t280 you can ask me
how can i boost the volume? since its not rooted i cant find the mixer.xml
hello guys and girls,
I am quite sure everyone knows and feels that our pixels are already super smooth. However few of us are never completely satisfied and are looking for ways to make the device even more smoother.
Some of you might be aware, that the sched governor, which is bound to eas, isn´t as customizable as the old interactive governor. This is the main reason we don´t have any scripts or tweaks touching the governor.
So I did some digging and finally found a tunable that allows the cpu to be even more aggressive. This will result (at least for me) in a tremendous effect on overall smoothness. Battery life will take only a slight or a grave hit, depending on the boost you choose. @Alcolawl you are free to do benchmarks
The schedtune.boost (s) reside in the directories /dev/stune, dev/stunde/foreground and dev/stune/background
You can apply values from 0 to 100.
When setting it to 100 your device will run constantly with all cores maxed out.
I found values from 2 to 10 to have the most efficient effect.
I am currently using a boost value of 8. Battery life is still awesome. But oh my god how smooth the device runs now.
Remember: you can also set the values higher yourself
For your convenience I made scripts that you can either put in system/etc/init.d or system/su.d. I am planning to refine and maybe add more tweaks to our pixels. So stay tuned and lets all work together. The script does not look like much, but try it before you judge.
Download links will be in the second post.
Instructions:
1. Download the desired file. sched2 means a boost value of 2 will be applied. sched6 means a boost value of 6 will be applied. I think you get the concept.
2. Extract the script from the download
3. Copy the script to either system/etc/init.d or system/su.d
4. set permissions to 0755 (rwxr-xr-x) via terminal or your preferred root explorer.
5. reboot and wait a minute (there is a sleep timer)
6. profit
7. to check if the script got applied correctly do in terminal on your phone
su
cat dev/stune/schedtune.boost
Attention:
su.d only works when you have working root via supersu from chainfire.
Credits:
google for integrating eas to our pixels
@Alcolawl for letting me use his scripts on the HTC 10 and inspiring me greatly in the process. If he did not exist I probably wouldn´t have looked into finding this
Downloads:
init.d and su.d:
https://www.androidfilehost.com/?w=files&flid=140794
01.07.2017
I added an all in one package. The all-in-one package has all scripts with boost values including 2,4,6,8 and 10. So you do not have to start multiple downloads.
09.01.2017
v1:
- decreased the default boost value for top app from 50 to 25
- foreground-app has a boost of 15
- schedtune.boost for all other activities (that are not getting categorized) is set to 10
v2:
- decreased the default boost value for top app from 50 to 25
- foreground-app has a boost of 12
- schedtune.boost for all other activities (that are not getting categorized) is set to 8
Freak07 said:
Downloads:
init.d:
https://www.androidfilehost.com/?w=files&flid=140135
su.d:
https://www.androidfilehost.com/?w=files&flid=140130
Click to expand...
Click to collapse
Trying to execute it through root browser and get this: http://i.imgur.com/WbUsV6g.png
Put it in su.d directory. Not sure if it is applying on boot.
XtraArrow said:
Trying to execute it through root browser and get this: http://i.imgur.com/WbUsV6g.png
Put it in su.d directory. Not sure if it is applying on boot.
Click to expand...
Click to collapse
What kernel are you on?
Did You run it from sdcard or su.d?
did you set the right permissions?
Freak07 said:
What kernel are you on?
Did You run it from sdcard or su.d?
did you set the right permissions?
Click to expand...
Click to collapse
On elemental kernel. I tried running from both SD card and su.d directory mate. Upon trying to change permissions it says it cannot be changed.
i like this.
just great!
XtraArrow said:
On elemental kernel. I tried running from both SD card and su.d directory mate. Upon trying to change permissions it says it cannot be changed.[/QUOTE
Also unable to get this working says error some file system do not allow permission changes. ....? Using Root Browser.
Click to expand...
Click to collapse
XtraArrow said:
On elemental kernel. I tried running from both SD card and su.d directory mate. Upon trying to change permissions it says it cannot be changed.
Click to expand...
Click to collapse
kirschdog1 said:
XtraArrow said:
On elemental kernel. I tried running from both SD card and su.d directory mate. Upon trying to change permissions it says it cannot be changed.[/QUOTE
Also unable to get this working says error some file system do not allow permission changes. ....? Using Root Browser.
Click to expand...
Click to collapse
Could you please try this file?
Edit: see new link in second post!
Put it in system/etc/init.d
Permissions to rw-r--r-- (644)
Reboot
Navigate to dev/stune/schedtune.boost and see if the value gets changed to the one your script should set.
It seems like the the scripts did not like the laptop at my Patents home
Click to expand...
Click to collapse
kirschdog1 said:
XtraArrow said:
On elemental kernel. I tried running from both SD card and su.d directory mate. Upon trying to change permissions it says it cannot be changed.[/QUOTE
Also unable to get this working says error some file system do not allow permission changes. ....? Using Root Browser.
Click to expand...
Click to collapse
make sure there are two lines
for some reason there must be a space below the text. this worked for me.
Click to expand...
Click to collapse
kirschdog1 said:
Also unable to get this working says error some file system do not allow permission changes. ....? Using Root Browser.
Click to expand...
Click to collapse
Try it with one of these and copy them to system/etc/init.d please. Permission 644 for the script and reboot.
https://drive.google.com/folderview?id=0BxbxiBXaZVu-d3NOQlFqd3QzMVU
Hello all
I updated the second post. The scripts should work now please report back! Also regarding smoothness.
sorry for any inconvenience.
Have a nice day.
Freak07 said:
kirschdog1 said:
Could you please try this file?
Edit: see new link in second post!
Put it in system/etc/init.d
Permissions to rw-r--r-- (644)
Reboot
Navigate to dev/stune/schedtune.boost and see if the value gets changed to the one your script should set.
It seems like the the scripts did not like the laptop at my Patents home
Click to expand...
Click to collapse
In system/etc I do not have an init.d folder, just init.
I'm using Elemental X kernel.
Click to expand...
Click to collapse
Freak07 said:
Hello all
I updated the second post. The scripts should work now please report back! Also regarding smoothness.
sorry for any inconvenience.
Have a nice day.
Click to expand...
Click to collapse
Same issue unable to change permissions
airmaxx23 said:
Freak07 said:
In system/etc I do not have an init.d folder, just init.
I'm using Elemental X kernel.
Click to expand...
Click to collapse
I have the same structure i found su.d in root but not the other.
Also how would i go about determining if it has taken effect?
Click to expand...
Click to collapse
Jerreth said:
I have the same structure i found su.d in root but not the other.
Also how would i go about determining if it has taken effect?
Click to expand...
Click to collapse
The value in dev/stune/schedtune.boost and /dev/stune/foreground/schedtune.boost should be changed to the value of the script you picked. You can probably change them manually without the script.
airmaxx23 said:
Freak07 said:
In system/etc I do not have an init.d folder, just init.
I'm using Elemental X kernel.
Click to expand...
Click to collapse
Did you Flash Elemental X kernel Prior or after rooting your device. I am not entirely sure but elex should have init.d Support.
can you install the app universal init.d from playstore, open it, scroll down and do the test to determine if init.d is supported or not?
airmaxx23 said:
The value in dev/stune/schedtune.boost and /dev/stune/foreground/schedtune.boost should be changed to the value of the script you picked. You can probably change them manually without the script.
Click to expand...
Click to collapse
yes that is correct. you can Change the values manually but they will not survive a reboot. that is why i made the scripts.
Click to expand...
Click to collapse
kirschdog1 said:
Same issue unable to change permissions
Click to expand...
Click to collapse
are you able to Change the files manually? either via root Explorer or terminal?
for terminal do:
su
echo x > /dev/stune/schedtune.boost
x is a value between 0 and 100 ( try between 1 and 10 to be on the safe side battery wise.)
afterwards check if the value got changed correctly.
Freak07 said:
are you able to Change the files manually? either via root Explorer or terminal?
for terminal do:
su
echo x > /dev/stune/schedtune.boost
x is a value between 0 and 100 ( try between 1 and 10 to be on the safe side battery wise.)
afterwards check if the value got changed correctly.
Click to expand...
Click to collapse
I can change them manually but upon rebooting they reset to 0.
Freak07 said:
are you able to Change the files manually? either via root Explorer or terminal?
for terminal do:
su
echo x > /dev/stune/schedtune.boost
x is a value between 0 and 100 ( try between 1 and 10 to be on the safe side battery wise.)
afterwards check if the value got changed correctly.
Click to expand...
Click to collapse
How do I check?
XtraArrow said:
I can change them manually but upon rebooting they reset to 0.
Click to expand...
Click to collapse
Okay. I was in a hurry. I told you all to set the permissions to 644. You have to set them to 755 (rwxr-xr-x).
kirschdog1 said:
How do I check?
Click to expand...
Click to collapse
check with a root Explorer. it is the easiest way.
or via terminal
cat /dev/stune/schedtune.boost
But first set the permissions of the script to to 755 (rwxr-xr-x). I was in a hurry and did not think correctly
then reboot and wait a Minute.
I edited the instructions in the op and all should be working now. It will not matter if you put it in system/etc/init.d or in system/su.d.
I somehow mixed the permissions with somethings else up. yeah, 755 and all will be well. stupid me.
have a nice evening.
I am using sansung j2 prime (rooted by magisk) I downloaded Viper for andriod and processing:No I found out to change audio_effects.conf to audio_effects.conf.bak and I cant change it help
Btw the file is located to /system/etc/audio_effects.conf
soll45 said:
I am using sansung j2 prime (rooted by magisk) I downloaded Viper for andriod and processing:No I found out to change audio_effects.conf to audio_effects.conf.bak and I cant change it help
Btw the file is located to /system/etc/audio_effects.conf
Click to expand...
Click to collapse
Make sure core mode is on in magisk for system file rename and delete. This requires you to toggle it on. Then reboot. Make your edits. Then toggle it off and then reboot again
toolhas4degrees said:
Make sure core mode is on in magisk for system file rename and delete. This requires you to toggle it on. Then reboot. Make your edits. Then toggle it off and then reboot again
Click to expand...
Click to collapse
I turned core mode and I used root explorer classic it says operation fail .. sorry for late response
soll45 said:
I turned core mode and I used root explorer classic it says operation fail .. sorry for late response
Click to expand...
Click to collapse
I would try relflashing magisk or updating magisk if you are not on the latest at this point
toolhas4degrees said:
I would try relflashing magisk or updating magisk if you are not on the latest at this point
Click to expand...
Click to collapse
Also hoped you rebooted after turning core mode on. Needs to be done to take effect
toolhas4degrees said:
Make sure core mode is on in magisk for system file rename and delete. This requires you to toggle it on. Then reboot. Make your edits. Then toggle it off and then reboot again
Click to expand...
Click to collapse
toolhas4degrees said:
I would try relflashing magisk or updating magisk if you are not on the latest at this point
Click to expand...
Click to collapse
toolhas4degrees said:
Also hoped you rebooted after turning core mode on. Needs to be done to take effect
Click to expand...
Click to collapse
Yep I trurned it on and reebot my device download root explorer and tried to rename the file but operation fails!
toolhas4degrees said:
I would try relflashing magisk or updating magisk if you are not on the latest at this point
Click to expand...
Click to collapse
my magisk manager is up to date (v18.1 (18100)).
soll45 said:
my magisk manager is up to date (v18.1 (18100)).
Click to expand...
Click to collapse
Well idk what yo tell you works the way I said to do it. For me anyways
I need a way to get rid of the annoying carrier bootanimation thats in /product/OP/poweron and use the LG animation in /system/media
#Rooty_Mikes# said:
I need a way to get rid of the annoying carrier bootanimation thats in /product/OP/poweron and use the LG animation in /system/media
Click to expand...
Click to collapse
Nevermind! Figured it out! Searched for the G8X Twrp installer, flashed the ramdisk, flashed Disable DM-Verity&Force Encryption, then just used the twrp file manager to handle what i needed in the directories.
I was under the impression that their was no twrp for g8x.
#Rooty_Mikes# said:
Nevermind! Figured it out! Searched for the G8X Twrp installer, flashed the ramdisk, flashed Disable DM-Verity&Force Encryption, then just used the twrp file manager to handle what i needed in the directories.
I was under the impression that their was no twrp for g8x.
Click to expand...
Click to collapse
We can change root files from twrp? I tried with file managers but it got replaced again by ui. I have root
thekalpkuleria_24 said:
We can change root files from twrp? I tried with file managers but it got replaced again by ui. I have root
Click to expand...
Click to collapse
Yes, operating in twrp you are basically running abd root in terminal and you are system-as-root in the file manager so be careful, back-up prior to any changes. Any apk managers has a hard time with system-as-root permissions in production builds unless your the root master topjohnwu lol
#Rooty_Mikes# said:
Yes, operating in twrp you are basically running abd root in terminal and you are system-as-root in the file manager so be careful, back-up prior to any changes. Any apk managers has a hard time with system-as-root permissions in production builds unless your the root master topjohnwu lol
Click to expand...
Click to collapse
But making change from manager not works coz the ui changes my change again
It should work in twrp; unless you have a recovery.from.boot file in your system. I would go to terminal and run # getprop and see what's going on, you may have a ro.prop that's not allowing what you want to change
Yes it is ro.prop so what should i do?
thekalpkuleria_24 said:
So will running #getprop in terminal help me or twrp will help
Click to expand...
Click to collapse
It will help you find to see if you have a RO "read-only" property and value on your desired item example; I want to set my adb port to 5555 i would run # getprop and look through the property's to find my item and if it says:
$ service.adb.tcp.port=5038
I would change it with:
$ su -c resetprop service.adb.tcp.port=5555
Its all depending on the property and the location in the partition the files are in really in how its modified. What exactly are you trying to do?
#Rooty_Mikes# said:
It will help you find to see if you have a RO "read-only" property and value on your desired item example; I want to set my adb port to 5555 i would run # getprop and look through the property's to find my item and if it says:
$ service.adb.tcp.port=5038
I would change it with:
$ su -c resetprop service.adb.tcp.port=5555
Its all depending on the property and the location in the partition the files are in really in how its modified. What exactly are you trying to do?
Click to expand...
Click to collapse
Im trying to change sounds from product/OP plz tell a proper command what you wrote here it confused me a bit
thekalpkuleria_24 said:
Yes it is ro.prop so what should i do?
Click to expand...
Click to collapse
Run $ su -c resetprop [property]=value
And what to write in property and value ? I have no idea
thekalpkuleria_24 said:
Im trying to change sounds from product/OP plz tell a proper command what you wrote here it confused me a bit
Click to expand...
Click to collapse
thekalpkuleria_24 said:
/product/OP is mounted to a RO only partition, I would modify in the manager built in twrp. The modifications will remain when you reboot the system that way.
Click to expand...
Click to collapse
thekalpkuleria_24 said:
And what to write in property and value ? I have no idea
Click to expand...
Click to collapse
The property doesnt change only value "usually" a number 1 for yes, 0 for no
Okay thanks going for it
#Rooty_Mikes# said:
The property doesnt change only value "usually" a number 1 for yes, 0 for no
Click to expand...
Click to collapse
Do you have twrp?
#Rooty_Mikes# said:
Do you have twrp?
Click to expand...
Click to collapse
No im doing it in termux
thekalpkuleria_24 said:
No im doing it in termux
Click to expand...
Click to collapse
Not going to work
#Rooty_Mikes# said:
Not going to work
Click to expand...
Click to collapse
Ohh why it a terminal too
#Rooty_Mikes# said:
Not going to work....you need twrp or a recovery manager flash like AromiaFM.zip
Click to expand...
Click to collapse
Okay then will do in twrp