Related
For those that are experiencing battery drain because Maps app keeps opening in the background no matter how many times you force close it, I made a very simple script to completely freeze it (and defrost it if it's already frozen) with one click(technically two lol).
Attached Files:
freeze-maps -- it auto detects if Maps is already enabled or disabled, and does the opposite.
maps-disable -- it simply runs the disable Maps command, won't hurt even if the maps is already disabled
maps-enable -- it enables Maps, won't do any harm if Maps is already enabled
Instruction:
1. Download and Install Script Manager in the market (there's a free version)
2. Download the attached freeze-maps.sh.txt and put it in your SD card, say under Documents
3. Open Script Manager, locate the file (freeze-maps.sh.txt) you just downloaded, open it by long press and open as... Script/Executable
Check "run as root", check "Configure as favorite", Click Save and click Exit
4. You can now quit the Script Manager app
5. On your preferred launcher, create a new widget, choose script manager, and then the freeze-maps.sh.txt script (it should be there, since you bookmarked it at step 3).
6. Now you can enable/disable Maps with just using the widget on your Launcher!
************************************************
For those getting an error with freeze-maps.sh.txt, it means your "pm" command doesn't support filter and it won't function as intended. You can either use maps-disable/maps-enable as two separate widgets
or you can do the following(at your own risk):
I attached a copy of my own "pm" executable file that was found in my device, you just gotta replace yours with it.
How-to:
1. Download the attached file - pm.zip
2. Use root explorer and go to /system/bin
3. mount it as writable by pressing the little button says "Mount R/W", it will change to "Mount R/O"
4. rename your pm to pm.bak (for backup) and replace it with the file pm found in pm.zip
5. Long click on the pm file you just extracted here and choose permissions:
Owner = Read/Write/Execute
Group = Read/Execute
Others = Read/Execute
Click Ok
5. Mount your system back to read only by pressing "Mount R/O" and you should be set
******************************************
PS: please let me know if there's any error since this is the very first Android script I wrote, Thanks for Looking ;-)
*Disclaimer: As usual, I am not responsible for any damage to your device, it's do it at your own risk. I will try my best to help though.
PPS: The geeky stuff - you can of course edit the script or run the command "pm" in a terminal and use it to enable/disable any annoying process, but you need to know what you are doing!!!! I personally froze the market updater and twitter app and some other bloatwares that came with the streak.
Shows
# Error: unknown option: -d
+
(loads a stuff)
+
Maps is now disabled
Maps disappears off my Apps list - I re-run the script, same message, and still no maps. How do I get Maps back ?
I am running this fine on streadriod 2.3 by fards, let me check and get back to you
But the new additional attached files at the first post should solve your problem for now.
it wont detect if you have maps enabled or disabled, but it will do what it's file name implied respectively.
Just use Script Manager to Run it, you can also make two Widgets for enabling/disabling.
haynesteve said:
Shows
# Error: unknown option: -d
+
(loads a stuff)
+
Maps is now disabled
Maps disappears off my Apps list - I re-run the script, same message, and still no maps. How do I get Maps back ?
Click to expand...
Click to collapse
if you have a terminal installed, try to run this > ( === enter means hit enter)
su === enter
pm list packages -d === enter
and let me know the result.
Thank you
enable script has 1st line as
pm enable com.google.android.apps.maps\
which doesn't work - however after removing the slash, works perfectly. Thank you
haynesteve said:
Thank you
enable script has 1st line as
pm enable com.google.android.apps.maps\
which doesn't work - however after removing the slash, works perfectly. Thank you
Click to expand...
Click to collapse
yup made a typo in the script, corrected in the OP, thanks =)
asianftw said:
if you have a terminal installed, try to run this > ( === enter means hit enter)
su === enter
pm list packages -d === enter
and let me know the result.
Click to expand...
Click to collapse
Again shows Error: unknown option: -d
(list usage perameters)
Using Streakin v1.1
haynesteve said:
Again shows Error: unknown option: -d
(list usage perameters)
Using Streakin v1.1
Click to expand...
Click to collapse
Oh that's probably why.. Because Streakin is mostly based on stock rom and I guess -d is some kind of option that only available in the custom roms like on DJ steve's or fard's
If it's not too much trouble, it would be great if you can message me the output of the command so I will see if i can write a working script for the stock rom accordingly
just type(in terminal):
su
pm
and in your terminal software, there's an option "email to". just copy and paste the contents in to a private message via xda.
Thanks so much
Sent you a PM (not easy as Emulator kept FC - lol)
haynesteve said:
Sent you a PM (not easy as Emulator kept FC - lol)
Click to expand...
Click to collapse
Thanks for your help !! I see your version of the pm command is missing the filter option, hence rendering the detection error.
I updated my OP
Thanks for this script, it works brilliantly.
I am trying to modify this script to check of com.facebook.katana is running and do the same for Facebook, but I am not sure how to check if that service is running.
hshah said:
Thanks for this script, it works brilliantly.
I am trying to modify this script to check of com.facebook.katana is running and do the same for Facebook, but I am not sure how to check if that service is running.
Click to expand...
Click to collapse
i did it for some of those apps that have the tendency to stay in the background even you force close it.
you can check if it's running by going to Setting -> application -> running service
you can also check what apps are occupying your resource with an app called "Betterbatterystat"
asianftw said:
i did it for some of those apps that have the tendency to stay in the background even you force close it.
you can check if it's running by going to Setting -> application -> running service
you can also check what apps are occupying your resource with an app called "Betterbatterystat"
Click to expand...
Click to collapse
Sorry, I meant via a script to replace "pm list packages -d".
hshah said:
Sorry, I meant via a script to replace "pm list packages -d".
Click to expand...
Click to collapse
you can look into using pid or look here for some similar info
i can get back to you when I have more time in hand.
But what i can ensure you is: if you have facebook installed, it IS running in the background, period. 100% of the time. It's not using much of my battery though, so I just leave it as that.
Done it
It really works!
Thanks Sir.
Fully Working on Karbonn_A9+.
@asianftw & @hshah,
These are great! Thank you. Will try them soon.
Can you add more apps for this.
And can you make it into auto-mode? Meaning any apps will be freeze when not in use, but will be turned ON when user click those app OR triggered by incoming update (like FB) or at least, set to a fix frequencies to check for update (say every 30 minutes / hourly / "x" hours). If it is possible, this will be a must have app.
Dell Streak | InnerSD 8GB | ExternalSD 32GB | LXdroid 0.2
First of all, all credits goes to flex360, so all thanks goes to him.
This method does NOT make you lose battery options in Settings.
Only for 4.1 Android version!
1- Download Terminal Emulator and Open it
2- Type:
Code:
su
3- Now type:
Code:
pm disable com.htc.htcpowermanager/.powersaver.PowerSaverNotificationReceiver
4- Reboot and Enjoy
To enable it just type: pm enable instead of pm disable
xpirt
Only for Rooted Devices..?
Coetzee4Jaco said:
Only for Rooted Devices..?
Click to expand...
Click to collapse
Yes.
xpirt
How disable Alarm icon from notification bar using adb..? without using any external app.
Sorry, misread.
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!
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.
First of all i'm sorry for my bad english!
I debug uncrackable1 android app with jdb on windows follow this tutorial : "https://developers.mews.com/cracking-uncrackable-android-apps-level-1/"
-i don't know how to pipe down suspend command to the jdb on windows PowerShell
(echo suspend && cat) | jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=4321
Click to expand...
Click to collapse
i try this command but it is not work
(echo suspend) -and (gc) | jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=4321
Click to expand...
Click to collapse
vtvanhuynh said:
First of all i'm sorry for my bad english!
I debug uncrackable1 android app with jdb on windows follow this tutorial : "https://developers.mews.com/cracking-uncrackable-android-apps-level-1/"
-i don't know how to pipe down suspend command to the jdb on windows PowerShell
i try this command but it is not work
Click to expand...
Click to collapse
Hello and good morning, @vtvanhuynh
Welcome to XDA! I hope you'll always get the support you require.
However, prior to your next posting please read the guidances that are stuck on top of every forum like
[Read Before Posting]QUESTIONS DO NOT BELONG IN GENERAL
Hello Everybody, In order to attempt to keep this forum neat and tidy the moderation team is asking you to post your questions into the Questions and Answers (Q&A) forum and not into the General section. You can find the Q&A forum by clicking...
forum.xda-developers.com
and the others. I've moved your thread to Android Q&A.
Thanks for your cooperation!
Regards
Oswald Boelcke
Senior Moderator