Related
I am making a modded version of cm11 and i need to disable some services of some apps. I know there are apps available for that but i need to make init.d scripts to simplify it for all the users. So how can I disable specific services of some app by shell command? (to be used in init.d script). Thanks in advance.
░▒▄█▀▄░ █▀▄ █▀▀▄ █▀▀ █▄░█ ▄▀▄ █░░ ▀ █▄░█ █▀▀░░▒▐█▀▀▄ ▄▀▄ █▄░▄█
▒▐█▄▄▐█ █░█ █▐█▀ █▀▀ █░▀█ █▀█ █░▄ █ █░▀█ █▀▀░░▒▐█▒▐█ █░█ █░█░█
▒▐█░▒▐█ ▀▀░ ▀░▀▀ ▀▀▀ ▀░░▀ ▀░▀ ▀▀▀ ▀ ▀░░▀ ▀▀▀░░▒▐█▀▄▄ ░▀░ ▀░░░▀
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
Android Q hidden settings enablerCreated by @kingbri
Disclaimer: I am not responsible if you flash this and make your phone into a brick, blow it up, create nuclear war, etc. You are flashing this at your own risk (However, it's very likely this won't happen)
This is a simple magisk module that adds a script to your /system/bin directory
What it does: Shows android Q hidden settings for well-known features (example: Dark mode)
Current features:
Android Q dark theme (system-wide and app-forced)
Navigation bar tweaks (Removed back button and new Q quick switching mechanism)
How to use:
ADB
Enter an adb shell
enter the command "qmod"
Follow the instructions
On-phone
open terminal emulator
su
enter the command "qmod"
follow the instructions
You can also use this without root!Just grab the script by running this command:
curl https://raw.githubusercontent.com/bdashore3/q_tweaks/q_master/system/bin/qmod > /sdcard/qmod
and follow the steps
Steps:
Push the file to /sdcard
Enter an adb shell
cd to sdcard
chmod 0777 qmod
type "sh qmod"
follow the script
Downloads: https://github.com/bdashore3/q_tweaks/tree/releases
If you want to ask questions, here's the contact group for my work: t.me/KingDevel
Credits: MishaalRahman (for getting all his journal posts), paphonb (for the debug_pixel launcher), and anyone else who figured out these tweaks/were behind-the-scenes for this stuff.
Please put any hidden android Q features that you find in here (With the code or it won't be accepted) or open an issue on github along with the code necessary to enable that feature.
mine again
Thanks, this is mine
I am confused, is this a Magisk module to Enable hidden features that already exist in Android Q or a module to add Android Q features to Pie?
firesword14 said:
I am confused, is this a Magisk module to Enable hidden features that already exist in Android Q or a module to add Android Q features to Pie?
Click to expand...
Click to collapse
This mod just turns my tutorials into scripts:
Source 1: https://www.xda-developers.com/android-q-navigation-gesture-controls/
Source 2: https://www.xda-developers.com/android-q-toggle-dark-theme/
Good on ya @kingbri does the trick ?.
MishaalRahman said:
This mod just turns my tutorials into scripts:
Source 1: https://www.xda-developers.com/android-q-navigation-gesture-controls/
Source 2: https://www.xda-developers.com/android-q-toggle-dark-theme/
Click to expand...
Click to collapse
** into A script **
Update! (v1.1)
Changelog (In github q_master branch under "Add v1.1 commit"):
-Fix dark theming command
-Add Lockscreen clock styles, Desktop mode, and chat bubbles as options
-Change option input to numerical format
-Make things easier to read
The downloads are located here: https://github.com/bdashore3/q_tweaks/tree/releases
To contact me on Telegram, I am located here: t.me/KingDevel
Update! (v1.3)
Changelog (In github releases branch under "Add v1.3 commit"):
-Add iphone-style gestures
-Fix some missing stuff
-Add more documentation
-Add keycheck and a few options in installer
(Circumvents system not mounting)
For iphone-style gestures: No other nav bar tweaks are allowed!
You need the back button. All documentation on how to enable
is in the script, nav-bar tweaks, option 3.
The downloads are located here: https://github.com/bdashore3/q_tweaks/tree/releases
To contact me on Telegram, I am located here: t.me/KingDevel
Additionally, if anyone sees a new news post before I do about android Q hidden features (there are new ones popping up everywhere), follow the 2nd post in the O.P. If @MishaalRahman can post an article about this, that will be great rather than making seperate magisk modules for everything
Deleted. Duplicate post
Update! (v1.4)
Changelog (In github q_master branch under "Add v1.3 commit"):
-Improve iphone-like gestures documentation
-Update github documentation to use a curl command
(Non-root)The new curl command is in the OP, just run it in a terminal
Please follow the non-root instructions in the OP
To contact me on Telegram, I am located here: t.me/KingDevel
kingbri said:
Update! (v1.4)
Changelog (In github q_master branch under "Add v1.3 commit"):
-Improve iphone-like gestures documentation
-Update github documentation to use a curl command
(Non-root)The new curl command is in the OP, just run it in a terminal
Please follow the non-root instructions in the OP
To contact me on Telegram, I am located here: t.me/KingDevel
Click to expand...
Click to collapse
Will this work on latest Beta 2 patch?
Zehlek said:
Will this work on latest Beta 2 patch?
Click to expand...
Click to collapse
For me it causes issues especially with pixel launcher
With Q beta 2 update, nope. Changes to launcher so dev options limited. Now I did find that using this link instructions I could get file permissions to revert back to Pie. the "sandbox memory, files protection" is turned off. File managers and app can then access just like before. Now I started with a complete wipe, Q beta 2 factory image, adb enabled, run script,. As warned resets phone, I then added my apps, data, pics through device to device transfer.
https://developer.android.com/preview/privacy/scoped-storage#test-behavior-change
adb shell sm set-isolated-storage off
adb shell getprop sys.isolated_storage_snapshot
should return with flag = false
Your mileage may vary, data may be lost..... bla, bla, bla. Lawnchair v2 alpha works great too!
Tested with:
Code:
ArrowOS Version: arrow-11.0
ArrowOS Build Type: OFFICIAL
ArrowOS Build Variant: VANILLA
Device Name: POCO X3 NFC (surya)
This modification makes use of the addon.d survival mechanism found in almost all (if not all) custom ROMs, which is leading back to CyanogenMod, and allows the installation of Bromite SystemWebView with automatic reinstatement after a manual or OTA system update.
Create the folder /sdcard/Android/addon.d/webview and download Bromite SystemWebView to that location.
Place the following script with the name 51-webview.sh into /system/addon.d and make it executable (755), which can either be done from a root shell or through recovery after mounting /system with read-write access:
Code:
#!/sbin/sh
#
# ADDOND_VERSION=2
#
################################
# Restore Bromite SystemWeview #
################################
case "$1" in
post-restore)
AD="/sdcard/Android/addon.d"
D="/product/app/webview/webview.apk"
mount /dev/block/mapper/product /product 2> $AD/mount_error.log
[ -f $D ] && cp $AD/webview/arm64_SystemWebView.apk $D 2> $AD/webview_error.log
umount /product
;;
esac
That's it, either reinstall the current version of the used custom ROM through recovery or make an OTA update.
Now the catch with this was, that for some unknown reasons, addon.d scripts see the device mapping different than from a running system or recovery, please see this issue for details.
ArrowOS 11 has webview.apk in /product/app/webview/, but this may be different in other ROMs. In that case, simply have a look and change the destination ($D) in the script accordingly.
The script is safe to use as nothing gets modified if the webview file is not already found at the given destination.
To uninstall this modification, simply remove the file /system/addon.d/51-webview.sh.
You can also temporarily disable this modification by removing/renaming arm64_SystemWebView.apk from/in /sdcard/Android/addon.d/webview and everything gets back to default with the next system update.
BTW @unixandria's Webview Switcher Magisk Module is not working on Android 11 (yet), which is why I was looking into creating this mod in the first place. Please have a look at this issue in the Webview Switcher GitHub Repo.
magisk webview manager for android 11
https://dl.androidacy.com/wp-content/downloads/Magisk-Modules/WebviewSwitcher/WebviewManager_v8_0_1.zip
pan.rozowy said:
magisk webview manager for android 11
https://dl.androidacy.com/wp-content/downloads/Magisk-Modules/WebviewSwitcher/WebviewManager_v8_0_1.zip
Click to expand...
Click to collapse
Yes, already seen, but didn't try (because my method works as well). Any experience with the new Magisk module yet?
Master One said:
Yes, already seen, but didn't try (because my method works as well). Any experience with the new Magisk module yet?
Click to expand...
Click to collapse
it works ok
My "webview.apk" shows up under "/system/product/app/webview" as well as "/product/app/webview". I think "/system/product" is just a link to "/product".
If I can figure out the mount command for "/product", I'm going to try this.
Thanks for this information.
mangokm40 said:
My "webview.apk" shows up under "/system/product/app/webview" as well as "/product/app/webview". I think "/system/product" is just a link to "/product".
If I can figure out the mount command for "/product", I'm going to try this.
Thanks for this information.
Click to expand...
Click to collapse
Indeed, that file system path can be different depending on ROM, but you can easily find out yourself and simply change the location the shown script.
Master One said:
Yes, already seen, but didn't try (because my method works as well). Any experience with the new Magisk module yet?
Click to expand...
Click to collapse
Can we use bromit webview for android 7? After debloat google's.
I installed it but webview implemention in developer option is empty
pan.rozowy said:
it works ok
Click to expand...
Click to collapse
Source? Or, do you mind elaborate the "how to" process?
Before, i use mi8 with pixelexperience pie, which is easy to convert user app to system app. Now, i upgrade it to A11, webview folder scatter all across subfolder. I dont know which one should be replaced by new webview.
At first is good job
I use lineageos official
And is it possible to auto create oat too?
Akbar KanColle said:
And is it possible to auto create oat too?
Click to expand...
Click to collapse
Not sure what you mean, but this method can be adapted to whatever is needed to be restored.
Tested with:
Code:
ArrowOS Version: arrow-11.0
ArrowOS Build Type: OFFICIAL
ArrowOS Build Variant: VANILLA
Device Name: POCO X3 NFC (surya)
This modification makes use of the addon.d survival mechanism found in almost all (if not all) custom ROMs, which is leading back to CyanogenMod, and allows the installation of @janhammer504's YouTube HDR & Chrome Yellow Tint - Real Fix with automatic reinstatement after a manual or OTA system update.
Create the folder /sdcard/Android/addon.d/hdrfix, download and unpack YouTube HDR & Chrome Display Fix (v2) - Final.zip to that location.
Place the following script with the name 52-hdrfix.sh into /system/addon.d and make it executable (755), which can either be done from a root shell or through recovery after mounting /system with read-write access:
Code:
#!/sbin/sh
#
# ADDOND_VERSION=2
#
###################
# Restore HDR Fix #
###################
case "$1" in
post-restore)
AD="/sdcard/Android/addon.d"
DD="/product/vendor_overlay/29/etc"
mount /dev/block/mapper/product /product 2> $AD/mount_error.log
[ -d $DD ] && cp $AD/hdrfix/* $DD 2> $AD/hdrfix_error.log
umount /product
;;
esac
That's it, either reinstall the current version of the used custom ROM through recovery or make an OTA update.
Now the catch with this was, that for some unknown reasons, addon.d scripts see the device mapping different than from a running system or recovery, please see this issue for details.
ArrowOS 11 has the two XML files in /product/vendor_overlay/29/etc, but this may be different in other ROMs. In that case, simply have a look and change the destination folder ($DD) in the script accordingly.
The script is safe to use as nothing gets modified if the given destination folder is not found.
To uninstall this modification, simply remove the file /system/addon.d/52-hdrfix.sh.
You can also temporarily disable this modification by removing/renaming the two XLM files from/in /sdcard/Android/addon.d/hdrfix and everything gets back to default with the next system update.
Hint: You may want to watch the changelog for the used ROM and remove that modification once the ROM developers have implemented that fix by themselves.
Although working as supposed to, my approach for applying this fix is more of a proof of concept to me, as I wanted to find out how to make use of the addon.d survival mechanism.
For anyone else looking for an easier way to apply that fix (till your ROM developer has taken care of this), @janhammer504 has already provided the according Magisk Module.
FYI This fix will be implemented in the next build of ArrowOS, so this modification is no longer needed if using that custom ROM.
Is there any magisk module for fix? I'm noob Now using Havoc os 4.3 and don't want to flash arrow os and format data and install everything again Thanks in advance.
Master One said:
FYI This fix will be implemented in the next build of ArrowOS, so this modification is no longer needed if using that custom ROM.
Click to expand...
Click to collapse
I have the latest arrow os 12 on my F3 and HDR does not work.
AndreiR32 said:
I have the latest arrow os 12 on my F3 and HDR does not work.
Click to expand...
Click to collapse
Better ask at the new ArrowOS 12 thread then, because I'm still on 11.