How to set SELinux to permissive easily on miui 10.2? - Xiaomi Poco F1 Questions & Answers

Please help me set / change SELinux to permissive on Stock MIUI 10.2 unlocked,rooted with magisk, in desperate need of this. Checked some on the internet but "Universal init.d" app has been removed from play store.
For god's sake, cant it be just simple that add "blah-blah" module in magisk and reboot and u r done!:fingers-crossed:

Flash this in twrp if you want permanent solution https://androidfilehost.com/?fid=3700668719832241024 or you can just set it using kernel manager like smartpack kernel manager or kernel adiutor (in misc section).

I don't like touch on kernel, so I created a file in /data/adb/post-fs-data.d with follow content (permissions: rwxr-xr-x or 755)
Code:
#!/system/bin/sh
setenforce 0
This way I can simply delete the permissiver script whenever I want.
I use CoolTool and to read some battery files, even having root privilegies, SELinux permissive is necessary.

Adriano-A3 said:
I don't like touch on kernel, so I created a file in /data/adb/post-fs-data.d with follow content (permissions: rwxr-xr-x or 755)
Code:
#!/system/bin/sh
setenforce 0
This way I can simply delete the permissiver script whenever I want.
I use CoolTool and to read some battery files, even having root privilegies, SELinux permissive is necessary.
Click to expand...
Click to collapse
So hey, I know this is a really old post and I realize that you might not reply but just trying to reach out anyway and confirm - just creating a script file like "permissiver.sh" in data/adb/post-fs-data.d with the right permissions will do the trick?
---------- Post added at 08:47 PM ---------- Previous post was at 08:08 PM ----------
stonedead said:
Flash this in twrp if you want permanent solution https://androidfilehost.com/?fid=3700668719832241024 or you can just set it using kernel manager like smartpack kernel manager or kernel adiutor (in misc section).
Click to expand...
Click to collapse
How would you uninstall if not needed?

Related

[SHARE][MOD][TWEAKS][SCRIPTS] XTweaks V1.0

Note : I'm just sharing the work of the XDA Member DorianX.This mod was tested on stock deodexed and it was working fine.I'm not sure that it'll work on CM7 or not.Please test and report here​.
:: Introduction ::..​
XTweaks is a script pack something like others availables on XDA BUT with some of the logic from
SuperCharger V6 by zeppelinrox
(automatically set some values based on your total available RAM).
I've been using this scripts in my custom roms and it worked fine, so I decided to release it to public.
Click to expand...
Click to collapse
:: In the pack ::..​
/data/tmp/* (This is a temporary folder that contain libncurses.so and sqlite3, from android 2.3.x to 4.4.x,
these files are required to run some scripts correctly).
/system/bin:
uninstall (This is an uninstaller, in case that you don't like the mod just go to terminal emulator and type:
su [enter], uninstall [enter] then XTweaks will get uninstalled and your phone will reboot by itself).
uninstallboot (This is an uninstaller for bootanimation only just go to terminal emulator and type:
su [enter], uninstallboot [enter]).
/system/etc/init.d:
00Buildprop (This script will add some values to build.prop on first boot then will be deleted by itself).
00SQlite (This add libncurses.so to /system/lib, sqlite3 to /system/xbin, then will be deleted by itself).
01Ksm (This enable "Kernel SamePage Merging" (KSM))
02Ram_Anim (Better memory management).
03Gov_Sched_Tweaks (This contain some Governor & I/O Scheduler tweaks).
04System_Tweaks (Another memory tweaks and kernel tweaks for better battery life).
05SDCard_Tweaks (This script change the read_ahead_kb value to 2048, faster speeds on SD card).
06NetSpeed_Security (You will get faster conections on WiFi/Mobile Network).
07Cleaner (This clear some unnecessary data and disables logcat) (if you need to get a logcat delete this script).
08Fix_Emissions (This script made it by zeppelinrox fix permissions to your apps and folders every boot preventing force closes).
09Detailing (This script optimize the database for your apps every boot also made it by zeppelinrox).
10Flush-O-Matic (This script clear the cached apps every hour so will get more true free RAM also made it by zeppelinrox).
/system/media:
bootanimation.zip (Customized bootanimation based on Nexus 7's 4.4).
/system/xbin:
busybox (Is the latest busybox by Stericson (1.21.1) needed to run all the scripts, root, etc.).
/tools:
backup.sh (This is a temporary script that makes a backup of your ini.d folder and your current bootanimation (if your ROM have a regular /system/media/bootanimation.zip)).
busybox (This is a temporary busybox to get run the installer).
Click to expand...
Click to collapse
..:: Requirements ::..​
- Rooted phone.
- Android 2.3+.
- Kernel/ROM with init.d support.
- 10mb free in system.
- Custom recovery.
Click to expand...
Click to collapse
..:: Installation ::..​
- Download the latest version of this mod.
- Copy it on your sd card.
- Go to recovery mode.
- Flash it.
- Reboot.
- Enjoy!​
..:: F.A.Q. ::..​
Q. How can I uninstall this mod?
A.Go to terminal and type this :
su
uninstall
Q. How can I uninstall the integrated bootanimation?
A.Go to terminal and type this :
su
uninstallboot
Q. Is this mod compatible with other mods?
A. Maybe with Crossbreeder but you need to test it, first install this mod then install the one you want to try.
Click to expand...
Click to collapse
..:: Downloads ::.. : http://www.mediafire.com/download/a3i6wxh3rnhgng6/XTweaks-1.0.1.zip​
Original Thread : http://forum.xda-developers.com/showthread.php?t=2574443​
Credits :
DorianX
Click to expand...
Click to collapse
No one pressed the Thanks button!!

Please help for changed SElinux to permissive

Hi, I'm a beginner and I would like to know how to get SElinux in permissive on my SM-850F. I tried many things without success. Thank you for your help.
ludogaut14 said:
Hi, I'm a beginner and I would like to know how to get SElinux in permissive on my SM-850F. I tried many things without success. Thank you for your help.
Click to expand...
Click to collapse
It shall be done via kernel re-compilation from sources, ramdisk tweak and build.prop entry. This is the only way till now. As I can tell, there's also a feature in "wanam exposed" - security but I don't think it will work (still in beta). So, watch for a "custom touchwiz kernel" in Android Development section....
EDIT: or flash Eudemony ROM
"Init.d Software Support
Insecure Stock Kernel with Init.d Support"
freaksamael said:
It shall be done via kernel re-compilation from sources, ramdisk tweak and build.prop entry. This is the only way till now. As I can tell, there's also a feature in "wanam exposed" - security but I don't think it will work (still in beta). So, watch for a "custom touchwiz kernel" in Android Development section....
EDIT: or flash Eudemony ROM
"Init.d Software Support
Insecure Stock Kernel with Init.d Support"
Click to expand...
Click to collapse
Thanks you for your help.
I have already try the eudomony rom but not find a script that works.
ludogaut14 said:
Thanks you for your help.
I have already try the eudomony rom but not find a script that works.
Click to expand...
Click to collapse
try this content as init.d script; I have-it on a rooted tablet (not alpha) and it works. name of the script - 01disable_selinux.
Before trying, please be sure (mandatory) that:
- the paths for the files are correct (/sys/fs/selinux/enforce) - (I have-it on my unrooted Alpha)
- busybox is installed in /system/xbin
- 01disable_selinux file must be created in Notepad++ ( UNIX Mode)
- proper init.d permissions are applied
- you use a "SELinux disable" Kernel
#!/system/bin/sh
/system/xbin/busybox chmod 777 /sys/fs/selinux/enforce
/system/xbin/echo "0" > /sys/fs/selinux/enforce
Attached you'll find my init.d script (pls remove .txt extension); if you agree with the content :laugh: just put it in your init.d folder and set proper permission for it (777). Reboot & report back.
freaksamael said:
try this content as init.d script; I have-it on a rooted tablet (not alpha) and it works. name of the script - 01disable_selinux.
Before trying, please be sure (mandatory) that:
- the paths for the files are correct (/sys/fs/selinux/enforce) - (I have-it on my unrooted Alpha)
- busybox is installed in /system/xbin
- 01disable_selinux file must be created in Notepad++ ( UNIX Mode)
- proper init.d permissions are applied
- you use a "SELinux disable" Kernel
#!/system/bin/sh
/system/xbin/busybox chmod 777 /sys/fs/selinux/enforce
/system/xbin/echo "0" > /sys/fs/selinux/enforce
Attached you'll find my init.d script (pls remove .txt extension); if you agree with the content :laugh: just put it in your init.d folder and set proper permission for it (777). Reboot & report back.
Click to expand...
Click to collapse
Hi, I did your advice but do not work. 00test init.d ok, 01disable_selinux not work, "getenforce" always "enforcing". I wait a good person makes a kernel with SELinux permissive and KNOX desactived. Thank you very much for your advice and excuse me for my english.

I need help on how to flash "Magisk" to Remix OS

Read the title.
Flashfire can't seem to work.
Hope you can help me.
vinnce143 said:
Read the title.
Flashfire can't seem to work.
Hope you can help me.
Click to expand...
Click to collapse
Obviously you can't use flashfire as RemixOS doesn't have and can't exactly use a recovery.img
What would you need Magisk for? I did try a while ago to install it manually but that didn't work... I might try again as I know slight more about how it works; but can't really see the benefit of it on Remix.
benefit of magisk on Remix OS:
be rooted but able to quickly and easily unmount root for apps that use safetynet, such as pokemon go.
trevorcobb said:
benefit of magisk on Remix OS:
be rooted but able to quickly and easily unmount root for apps that use safetynet, such as pokemon go.
Click to expand...
Click to collapse
I'll take another look but I don't think RemixOS would pass safety net, regardless of magisk.
And I'm not sure why anyone would want to play Pokemon GO on a PC/tablet
HypoTurtle said:
I'll take another look but I don't think RemixOS would pass safety net, regardless of magisk.
And I'm not sure why anyone would want to play Pokemon GO on a PC/tablet
Click to expand...
Click to collapse
you make a good point about passing safetynet even with magisk installed and functional.
people play Pokemon Go on a PC/Tablet by using a GPS location spoofer, which is usually accompanied by an Xposed module that hides that mock location is turned on, so they don't get banned by Niantic. this enables people to "walk" around with a little on-screen GPS. my interest is because I have Nougat on my N6P and there is no Xposed for Nougat yet.
trevorcobb said:
you make a good point about passing safetynet even with magisk installed and functional.
people play Pokemon Go on a PC/Tablet by using a GPS location spoofer, which is usually accompanied by an Xposed module that hides that mock location is turned on, so they don't get banned by Niantic. this enables people to "walk" around with a little on-screen GPS. my interest is because I have Nougat on my N6P and there is no Xposed for Nougat yet.
Click to expand...
Click to collapse
I have just now made a ramdisk/magisk.img for magisk with 64bit 3.0.205.
Only done the magisk part (no magisk SU or xposed yet)
Screenshot attached - using stock ro system (system.sfs). Essentially that would be the limit of ro system; I could add a magisk SU and have the magisk app claim proper root installed but all disabling root would do is revert back to the stock com.android.setting su
To use it properly I'd say you would need to unroot system:
boot with REMOUNT_RW=1
Install SuperSU and let it replace com.android.settings su
Unroot with SuperSU
Then probably optionally to convert system_dev.img to system.sfs to make it ro again
@trevorcobb the selinux might be an issue with SafetyNet - see if you can boot without that added to grub {gonna check on mine but doubt it'll boot}
My point about Pokemon Go is that there more/better apps than that if you don't play it properly with GPS; but I guess that's just the orienteer in me...
I'll post a build of magisk with SU and Xposed added {it'll be up at least tomorrow}. Install will be the similar to Systemless SU/xposed [a modified ramdisk and a /data/magisk.img file]
UPDATE phh superuser added to magisk which has turned root off {blocks com.android.settings} - but can't seem to install phh's supersu apk; so stuck unrooted {ALT&F1 still has su but it uses phh's su now}. Will need to recheck with the x86 version.
UPDATE2 not going to get anywhere with phh due to the the superuser baked into settings; going with SuperSU should be fine - it just means another .img is needed.
UPDATE3 Having a bit more trouble with this. Tried Magisk; Magisk superSU [essentially just Systemless-SU] and Magisk xposed but can't get xposed to activate. Will try with Magisk, SuperSU and Systemless xposed - but don't know if there is actually any benefit here [would need an updated x86_64 xposed version for suhide to work]
HypoTurtle said:
I have just now made a ramdisk/magisk.img for magisk with 64bit 3.0.205.
Only done the magisk part (no magisk SU or xposed yet)
...
I'll post a build of magisk with SU and Xposed added {it'll be up at least tomorrow}. Install will be the similar to Systemless SU/xposed [a modified ramdisk and a /data/magisk.img file]
Click to expand...
Click to collapse
holy chit! thanks so much!!
I am jumping in to follow along.....for the record I am using this solely to play Pokemon Go with my son.
I modify initrd.img,use /mnt/$SRC/su folder,and mount su/sbin、su/init.rc,needn't modify ramdisk.img ,I edit more su/sbin/launch_daemonsu.sh ,delete mount img .
about “magisk”,I just edit su/init.rc,symlink su /magisk,I edit more /su/sbin/magic_mask.sh ,delete mount img .
youling257 said:
I modify initrd.img,use /mnt/$SRC/su folder,and mount su/sbin、su/init.rc,needn't modify ramdisk.img ,I edit more su/sbin/launch_daemonsu.sh ,delete mount img .
about “magisk”,I just edit su/init.rc,symlink su /magisk,I edit more /su/sbin/magic_mask.sh ,delete mount img .
Click to expand...
Click to collapse
@youling257 Just to clear up anyone elses confusion... you are running on a ext4 partition, right?
The issue is more with the xposed version. For this to be of any benefit over systemless, you`d need suhide to work, which needs v86.2 and we don`t have a version for x86_64, there is one for x86 so I`ll try and get around to making a x86 magisk.img I already have modified the installer script for it.
HypoTurtle said:
@youling257 Just to clear up anyone elses confusion... you are running on a ext4 partition, right?
Click to expand...
Click to collapse
please see this screenshot,i use f2fs partition
trevorcobb said:
holy chit! thanks so much!!
Click to expand...
Click to collapse
youling257 said:
I modify initrd.img,use /mnt/$SRC/su folder,and mount su/sbin、su/init.rc,needn't modify ramdisk.img ,I edit more su/sbin/launch_daemonsu.sh ,delete mount img .
about “magisk”,I just edit su/init.rc,symlink su /magisk,I edit more /su/sbin/magic_mask.sh ,delete mount img .
Click to expand...
Click to collapse
Mind doing a walk through for the less genisus in the group.
laserspeeddemon said:
Mind doing a walk through for the less genisus in the group.
Click to expand...
Click to collapse
I am sorry if this is annoying, and please don't hold any ill towards me for this, however genius in plural is genii (I had also thought that it is geniuses before I had learned this a few years ago).
moriel5 said:
I am sorry if this is annoying, and please don't hold any ill towards me for this, however genius in plural is genii (I had also thought that it is geniuses before I had learned this a few years ago).
Click to expand...
Click to collapse
In this usage it is actually geniuses, if it was the original Latin use [to refer to a genie/jinn] the plural would be genii but the meaning of intellect is old English, so the plural is geniuses...
Any way what @youling257 did was take the changed files from the ramdisk that would be made to run magisk and add them to another folder in his RemixOS folder along with what would be the contents of magisk.img and had the initrd.img mount them where they would originally be. This can be done using a folder instead of an .img as youling257 is using a linux partition [ext4/f2fs] with fat/ntfs you can't do this with a folder but could with a .img
HypoTurtle said:
This can be done using a folder instead of an .img as youling257 is using a linux partition [ext4/f2fs] with fat/ntfs you can't do this with a folder but could with a .img
Click to expand...
Click to collapse
of course . ext4/f2fs , mount /mnt/$SRC/su folder on /android/su , /android/magisk link to /android/su ; ntfs/fat , mount /mnt/$SRC/su.img on /android/su , /android/magisk link to /android/su .
needn't /android/data/su.img and magisk.img .
moriel5 said:
I am sorry if this is annoying, and please don't hold any ill towards me for this, however genius in plural is genii (I had also thought that it is geniuses before I had learned this a few years ago).
Click to expand...
Click to collapse
HypoTurtle said:
In this usage it is actually geniuses, if it was the original Latin use [to refer to a genie/jinn] the plural would be genii but the meaning of intellect is old English, so the plural is geniuses...
Any way what @youling257 did was take the changed files from the ramdisk that would be made to run magisk and add them to another folder in his RemixOS folder along with what would be the contents of magisk.img and had the initrd.img mount them where they would originally be. This can be done using a folder instead of an .img as youling257 is using a linux partition [ext4/f2fs] with fat/ntfs you can't do this with a folder but could with a .img
Click to expand...
Click to collapse
First, I'm not annoyed, I was tickled.
Second you're both are wrong as I simply typo'ed "genius." When I said "less than genius" this was an adjective referring to a group of people using a noun. When applying a adjective-noun to a noun, the adjective-noun is singular.
youling257 said:
of course . ext4/f2fs , mount /mnt/$SRC/su folder on /android/su , /android/magisk link to /android/su ; ntfs/fat , mount /mnt/$SRC/su.img on /android/su , /android/magisk link to /android/su .
needn't /android/data/su.img and magisk.img .
Click to expand...
Click to collapse
I was going to do exactly that a few months ago after I got the systemless SU setup done. Does the SU toggle on/off properly for you with Magisk?
Are you running this on CM13 or N? If CM13 have you tried adding xposed to it - I haven't gotten magisk xposed working on x86_64 - I probably could just use the systemless-SU files though.
@laserspeeddemon, I know you typo'd, that's why I didn't quote your post
HypoTurtle said:
I was going to do exactly that a few months ago after I got the systemless SU setup done. Does the SU toggle on/off properly for you with Magisk?
Are you running this on CM13 or N? If CM13 have you tried adding xposed to it - I haven't gotten magisk xposed working on x86_64 - I probably could just use the systemless-SU files though.
@laserspeeddemon, I know you typo'd, that's why I didn't quote your post
Click to expand...
Click to collapse
I modified initrd.img and use su folder ,two month ago,July 22nd ;I first tried magisk link to su ,magisk v2,the first ten days of August .
these two month,I used Chainfire supersu and my system less idea on 6.0 and 7.0 ; the first ten days of August ,your idea /su/xpo,I modifed rovo89 xposed x86 v86 app_process ; the x86_64 xposed,we only has MIUI x86_64 v85 June,we still use /su/xpo . I didn't know magisk too much,I didn't try magisk in September .
about xposed system less,why we need topjohnwu magisk method ? why we use his ?
youling257 said:
I modified initrd.img and use su folder ,two month ago,July 22nd ;I first tried magisk link to su ,magisk v2,the first ten days of August .
these two month,I used Chainfire supersu and my system less idea on 6.0 and 7.0 ; the first ten days of August ,your idea /su/xpo,I modifed rovo89 xposed x86 v86 app_process ; the x86_64 xposed,we only has MIUI x86_64 v85 June,we still use /su/xpo . I didn't know magisk too much,I didn't try magisk in September .
about xposed system less,why we need topjohnwu magisk method ? why we use his ?
Click to expand...
Click to collapse
The only reason for magisk xposed here would be for PokemonGo to bypass the SafetyNet check that they added. I couldn`t get phh to work with Magisk as there is already a superuser added to Remix via Settings. Which means 86.2 is needed for suhide which is needed if using superSU.
The benefit of magisk over systemless would be probably with allowing adding files to ro system and modifying ro. entries in build.prop (although that wasn`t working on Remix last I checked).
I`ll try and get around to a simple patcher for this. Had planned on a initrd auto-patcher for sometime as well - for continued ota support.
HypoTurtle said:
The only reason for magisk xposed here would be for PokemonGo to bypass the SafetyNet check that they added. I couldn`t get phh to work with Magisk as there is already a superuser added to Remix via Settings. Which means 86.2 is needed for suhide which is needed if using superSU.
The benefit of magisk over systemless would be probably with allowing adding files to ro system and modifying ro. entries in build.prop (although that wasn`t working on Remix last I checked).
I`ll try and get around to a simple patcher for this. Had planned on a initrd auto-patcher for sometime as well - for continued ota support.
Click to expand...
Click to collapse
menuentry "6.0.1 (DEBUG mode)" {
set DIR=/6.0.1
search --set=root --file /32/kernel
linuxefi /32/kernel root=/dev/ram0 androidboot.hardware=android_x86 DIR=$DIR SRC=$DIR intel_idle.max_cstate=0 i915.enable_psr=0 DEBUG=2
initrdefi /initrd.img
}
menuentry "remixos 64" {
set DIR=/remixos
search --set=root --file /64/kernel
linuxefi /64/kernel quiet root=/dev/ram0 androidboot.hardware=remix_x86_64 DIR=$DIR SRC=$DIR intel_idle.max_cstate=0
initrdefi /initrd.img
}
menuentry "cm13 (DEBUG mode)" {
set DIR=/cm13
search --set=root --file /64/kernel
linuxefi /64/kernel root=/dev/ram0 androidboot.hardware=android_x86_64 DIR=$DIR SRC=$DIR intel_idle.max_cstate=0 DEBUG=2
initrdefi /initrd.img
}
I use the same kernel、modules、initrd.img with 6.0、cm13、remixos ; kernel 、initrd.img on fat32/esp partition .
auto mount f2fs partition on /mnt , auto mount /mnt/modules ; /mnt/6.0.1 , /mnt/cm13 , /mnt/remixos, if ota,just update /mnt/remixos files

[ROM][G95xF/D][8.0] AdrenalineROM [CRL3][v2.0]

░▒▄█▀▄░ █▀▄ █▀▀▄ █▀▀ █▄░█ ▄▀▄ █░░ ▀ █▄░█ █▀▀░░▒▐█▀▀▄ ▄▀▄ █▄░▄█
▒▐█▄▄▐█ █░█ █▐█▀ █▀▀ █░▀█ █▀█ █░▄ █ █░▀█ █▀▀░░▒▐█▒▐█ █░█ █░█░█
▒▐█░▒▐█ ▀▀░ ▀░▀▀ ▀▀▀ ▀░░▀ ▀░▀ ▀▀▀ ▀ ▀░░▀ ▀▀▀░░▒▐█▀▄▄ ░▀░ ▀░░░▀
Key Features
Based on @foobar66 GoogleWiz ROM
NX Kernel
Samsung SoundAlive Dolby Atmos
Shell Script Advanced Features (SSAF) *See post #2
Updates will come in small service packs instead of a complete ROM update unless necessary
Samsung Gear might work out of the box
Removed some tweaks that I deemed useless.
Removed a few Google apps (Drive, Map, YouTube, etc) from the ROM, you can install them from Play Store instead
Emergency Launcher, UltraPowerSavingMode, SmartCapture, SmartSwitch, LiveWallpaper
Removed GoogleWiz's customizing script
Installation
Backup is always recommended
You should be able to dirty flash from stock/GoogleWiz ROM
You might not be able to boot, which is why 1. is important
Install any patch or cumulative update zip.
Adrenaline Experience
Some apps that I personally use and recommend:
SolidExplorer
SwiftBlack
Fluid Navigation Gestures
Download
*Feel free to mirror, however, monetizing the download link in any way is strictly prohibited.
Google Drive
Patches & Cumulative Update
Bootloader
Source
GITHUB: Shell Script Advanced Features
Credit
@foobar66
@SoLdieR9312
@Noxxxious
@xpirt
amirzaidi for Pixel Launcher
Shell Script Advanced Features
Everything that can be done in shell script shall be done in shell script.
You will need to install a terminal emulator from PlayStore to use this function.
Current functions:
Remap Bixby Key
Change Device Name
Max Volume Warning Toggle
Enable Stereo Speaker
Navigation Bar Toggle
Immersive Mode
Set DNS
Powercfg by yc9559 @ CoolApk [EXY8895]
Host File Based Adblock
Service Disabler
Set big Cluster Max Freq
Set LITTLE Cluster Max Freq
Script OTA Self Update
Reboot Device
Reboot into Recovery
To use, type the following in a terminal emulator
Code:
su
cfg
Code
Issues
TODO/Progress
Wiki
Credits
Changelog
v1.0 - The Late Santa [26 Dec 2018]
Initial Release.
v2.0 - WorstJet [13 Jan 2019]
Reverted Samsung Camera to stock
Samsung Gallery is back to the party
Added quite a lot of files that are related to VOLTE/VOWIFI (credit), you will need to flash CSC installer to install your CSC files
NX Kernel R19
Magisk v18.0
Almost up-to-date SSAF
Flashable Update Zip
[Patch] - Smaller fix, you need to install all patches according to the number, you do not need to reboot in between patches. (Flash 1.0 first, then 2.0, 3.0 ...)
[Cumulative Update] - Bigger update containing all the previous small patches.
WorstJet
-Nothing available as of now
Previous Version(s)
The Late Santa
[Patch 1.0] 26122018
Enabled navigation bar
Added Project WIPE by yc9559 @ CoolApk, default setting is set to [Balance]
Changed config to cfg for easier access
[Patch 2.0] 27122018
Added GearManagerStub.apk
Added Launcher from amirzaidi
[Patch 3.0] 27122018.2
Updated custom menu to include adblock and service disabler
[Patch 4.0] 30122018
Fixed permissions
Minor update to SSAF
Service disabler in SSAF will now run in complete silence
Enabled UHQ tile in csc
[Patch 5.0] 31122018
SSAF now able to set DNS properly
SSAF now able to change big cluster max freq
[Patch 6.0] 03012019
SSAF now able to grab dependencies from GitHub if any is missing
SSAF now able to change LITTLE cluster max freq
Minor fixes to powercfg
[Patch 7.0] 05012019
SSAF now able to enable stereo speaker
Thanks! Haven't been able to download the ROM you're basing yours as it always hangs for me with megaupload, will try yours as I have better luck with gdrive. Slds.
well stuck on android is starting
Android is starting and no navbar,even going for settings and reenable it
pbls said:
Android is starting and no navbar,even going for settings and reenable it
Click to expand...
Click to collapse
I left the navigation bar disabled in build.prop accidentally
Edit the last line in build.prop:
Code:
qemu.hw.mainkeys=1
to
Code:
qemu.hw.mainkeys=0
and reboot.
or use the custom menu to re-enable it then reboot
or edit the build.prop and reflash ROM
EDIT:
or flash the attached flashable patch zip
how do i install the rom?
well the navbar is back and still stuck at android is starting
ps: this rom doesnt have a launcher thats why i keep stuck at android is running
Is Volte vorking? Foos original rom hasn't.
Good job ! I will test the rom i i will give u a feedback !
You will planning to add some more mods ?
Thanks.
the ROM doesn't have a launcher,you must go to the Google play to install one
pbls said:
the ROM doesn't have a launcher,you must go to the Google play to install one
Click to expand...
Click to collapse
Ah.. now I know why it doesn't boot.
navaskp said:
Is Volte vorking? Foos original rom hasn't.
Click to expand...
Click to collapse
It isn't working either
xtmzone said:
Good job ! I will test the rom i i will give u a feedback !
You will planning to add some more mods ?
Thanks.
Click to expand...
Click to collapse
I'd refrain from adding 'mod' myself that requires to be redone every security update as it wastes time.
Feature will be added to the custom menu instead as that is portable, work across updates and even devices.
Everything that's doable in shell script shall be done in shell script.
ImbaWind said:
AdrenalineROM Custom Menu
You will need to install a terminal emulator from PlayStore to use this function.
Current functions:
Remap Bixby Key
Change Device Name
Max Volume Warning Toggle
Navigation Bar Toggle
Immersive Mode
Set DNS
Powercfg by yc9559 @ CoolApk [EXY8895]
Host File Based Adblock
Service Disabler
Reboot Device
Reboot into Recovery
To use, type the following in a terminal emulator
Code:
su
cfg
Click to expand...
Click to collapse
I always get the result "permission denied"
Su rights granted to terminal emulator. Used the commands su "enter" cfg "enter". What am I doing wrong?
xxxPLETTIxxx said:
I always get the result "permission denied"
Su rights granted to terminal emulator. Used the commands su "enter" cfg "enter". What am I doing wrong?
Click to expand...
Click to collapse
Sounds like you are doing everything right, but I'm not sure why.
Can you attach a screenshot?
keyboard is not working for me
ImbaWind said:
Sounds like you are doing everything right, but I'm not sure why.
Can you attach a screenshot?
Click to expand...
Click to collapse
Sure. Hope you can help.
ImbaWind said:
Sounds like you are doing everything right, but I'm not sure why.
Can you attach a screenshot?
Click to expand...
Click to collapse
Same here,but loving the ROM nonetheless and I've installed so many
xxxPLETTIxxx said:
Sure. Hope you can help.
Click to expand...
Click to collapse
pbls said:
Same here,but loving the ROM nonetheless and I've installed so many
Click to expand...
Click to collapse
Code:
su
mount -o rw,remount /system
chmod 777 /system/bin/cfg
cfg
This should help

[ROOT, NON-ROOT] [Android 10, 11 and 12] Debloat Script - v1.1

AT YOUR OWN RISK!!!​
Requeriments (commom):
- Windows/Linux computer
- USB debugging enabled (Developer settings)
Linux users:
COMMON
Code:
adb push debloat_list.sh /data/local/tmp
adb push aapt_arm_pie /data/local/tmp
adb shell chmod 777 /data/local/tmp/debloat_list.sh
adb shell chmod 755 /data/local/tmp/aapt_arm_pie
NON-ROOT
Code:
adb shell /data/local/tmp/debloat_list.sh
ROOT
Code:
adb shell
su -l
/data/local/tmp/debloat_list.sh
(su -l opens a login shell as root on the android phone)
ROOT - REMOVE APPS - How to:
1. Download always the latest version available (attached below)
2. Disable any Magisk Module installed and reboot (IMPORTANT STEP, DO NOT SKIP IT)
3. Unpack and run debloat-remove.bat (run it at least twice!)
4. Enable Magisk Modules again
5. Done!
ROOT Notes:
- Before run the debloat script, you have a change to take a look on its "unwanted apps list " at \files\debloat_list.sh
- Root debloat script does not remove the bloatwares folders, instead, it moves them to a backup folder, located at /system/_debloat_backup
- /system/_debloat_backup stores all "removed" apps folders, and before you manually delete this folder (and if you want to), you have a chance to revert back the changes made by the script
- Updated bloatwares: They'll need to be uninstalled/disabled manually
NON-ROOT - UNINSTALL APPS ONLY - How to:
1. Download always the latest version available (attached below)
2. Unpack and run debloat-uninstall.bat (run it at least twice!)
3. Done!
NON-ROOT Notes:
- Before run the debloat script, you have a change to take a look on its "unwanted apps list " at \files\debloat_list.sh
- debloat_list.sh: Commented out lines (starting with #) will be ignored (their respective apps will not be uninstalled)
- Debloat script does not remove apps containers (apk files/folders)
- Updated bloatwares: They'll need to be uninstalled manually (Settings > Apps > "APP" > Uninstall/Deactivate)
Retrieving installed apps info (PACKAGE | APK LOCATION | LABEL):
1. Download v1.0_List_Installed_Apps_Info_By_Serajr.zip (attached below)
2. Unpack and run list_installed_apps_info.bat and wait a minute or two (ignore errors, if any)
3. installed-apps-info.txt file will be created
4. Done!
Special thanks:
- @hmy65 (Debloat list, used as base)
Enjoy it!
Changelog
v1.0 - 27/Sep/2020
- Initial release
v1.0.1 - 22/Oct/2020
- Added instructions for Linux users ( thanks @HemanthJabalpuri )
v1.1 - 02/Jan/2022
- Android 12 compatibility
Pics
SM-G985F, root version
serajr said:
v1.0.1 - 22/Oct/2020
- Added instructions for Linux users ( thanks @HemanthJabalpuri )
Click to expand...
Click to collapse
Not tested, but seems like will work great. But in requirements section, you should add Linux along with Windows.
Thanks.
Work like a magic. Thank you so much. Look so clean and minimal.
keaheng said:
Work like a magic. Thank you so much. Look so clean and minimal.
Click to expand...
Click to collapse
Thank you for the feedback :good:
Thanks and congrats for such a great work!
Is there any advantage to use the root script over a pm uninstall -k --user 0 command please? What's the difference
aacury said:
Thanks and congrats for such a great work!
Click to expand...
Click to collapse
Thank you mate
jojos38 said:
Is there any advantage to use the root script over a pm uninstall -k --user 0 command please? What's the difference
Click to expand...
Click to collapse
Root script version moves all the damn bloatwares to a single (and structured) folder. It allows you to revert back changes or free up internal memory space by deleting that folder, however, you'll need to run the script after every system update.
Non-root (pm uninstall -k --user 0) uninstalls the apps, keeping all the data, and the changes may survive the system update.
serajr said:
Thank you mate
Root script version moves all the damn bloatwares to a single (and structured) folder. It allows you to revert back changes or free up internal memory space by deleting that folder, however, you'll need to run the script after every system update.
Non-root (pm uninstall -k --user 0) uninstalls the apps, keeping all the data, and the changes may survive the system update.
Click to expand...
Click to collapse
Thank you!
Hi, a question, if i run v1.0_List_Installed_Apps_Info_By_Serajr.zip and create a list txt, when i run a debloat, what changes or which apps debloat and which apps not?, how i change which apps not debloat?
sorry for my bad english!
Taz2016 said:
Hi, a question, if i run v1.0_List_Installed_Apps_Info_By_Serajr.zip and create a list txt, when i run a debloat, what changes or which apps debloat and which apps not?, how i change which apps not debloat?
sorry for my bad english!
Click to expand...
Click to collapse
Both debloat methods (root/non-root) use a sh file (debloat_list.sh), so have a look into it (as well as reading the Notes in the first post).
I just want to make sure the script can be used on Samsung S20 FE phone? Thanks
Gr8man001 said:
I just want to make sure the script can be used on Samsung S20 FE phone? Thanks
Click to expand...
Click to collapse
Sure it can!
Omg dude, I remember you from Xperia Mini days.
Your project was the xperia launcher mod right?
Nice work here.
agentsandy007 said:
Omg dude, I remember you from Xperia Mini days.
Your project was the xperia launcher mod right?
Nice work here.
Click to expand...
Click to collapse
Yeah mate :highfive:
I'm currently working on an xposed module to tweak samsung stock launcher ( as stated here ). I intend to release something on this asap. Stay tuned.
Thank you!
application preceded by the # sign will not be deleted?
and where is the ## sign?
---------- Post added at 03:38 PM ---------- Previous post was at 03:38 PM ----------
Hello
can i keep certain apps? or do i either remove all or reinstall all?
shaker74 said:
...
and where is the ## sign?
Click to expand...
Click to collapse
debloat_list.sh (read up post #12 just above)
Gasser.Atef said:
can i keep certain apps? or do i either remove all or reinstall all?
Click to expand...
Click to collapse
Sure you can (by editing debloat_list.sh).
serajr said:
debloat_list.sh (read up post #12 just above)
Sure you can (by editing debloat_list.sh).
Click to expand...
Click to collapse
To be honest OP is not noob friendly tho.
Like I didn't know how to open debloat_list.sh and used notepad and it worked. Not too many would know that?
Anyways I just blindy went through your script and only things I had to reinstall are gmail, drive and sammy pay.

Categories

Resources