Friday, June 25, 2021

GMail Forward Email for all items in label

/*
Main
https://stackoverflow.com/questions/56023037/forward-email-message-with-mailapp-instead-of-gmailapp
*/
function forwardForever() {

  Logger.log('forwardForever2() START ');
  var labelName = "Trash"

  var threads = GmailApp.search("in:trash label:" + labelName);
  Logger.log('forwardForever2() threads.length ' + threads.length);
  for (var i = 0; i < threads.length; i++) { 
   Logger.log('forwardForever2() forward id ' +  threads[i].getId());
     try
     {
         // try this just in case
        //Gmail.Users.Messages.remove('me', threads[i].getId());
        var firstThread = threads[i];
        var message = firstThread.getMessages()[0];
         Logger.log('forwardForever2() START forward ' + message.getSubject());
        
        message.forward("1@yahoo.com");

        Logger.log('forwardForever2() DONE forward ' + message.getSubject());
        
     }
     catch(e){
        Logger.log('forwardForever2() ERROR id ' +  threads[i].getId());
        Logger.log(e);
     }
     Logger.log('forwardForever2() NEXT...');
    
  }
}

Thursday, June 24, 2021

Android 11 / LG Bloatware Uninstall/Disable to boost performance

 Android 11 / LG Bloatware Uninstall/Disable to boost performance :

Use as needed:


Adb Commands : Uninstall & Disable

https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/

https://www.droidwin.com/remove-uninstall-bloatware-apps-from-android-via-adb-commands/#Disable_Bloatware_Apps_on_Android

1. Disable:

Adb shell | pm disable com.lge.lgfota.permission

pm disable-user

2. UnInstall:

1. adb shell pm uninstall com.att.mobilesecurity

2. adb shell pm uninstall --user 0 com.att.mobilesecurity

These two flags respectively specify that the system app will only be uninstalled for the current user (and not all users, which is something that requires root access) and that the cache/data of the system application will be preserved  

3. pm uninstall -k --user 0 com.android.service

keep app data

Disable OTA Updates:

1. Adb shell | pm disable com.lge.lgfota.permission

2. Developer Options | Disable Automatic Updates

3. Package Disabler | Disable LG Update Center

V60 Remove Bloatware

See :

https://forum.xda-developers.com/t/no-root-needed-remove-bloatware-from-lg-v60-tmobile-or-att.4244333/

*TMobile Bloat

pm uninstall -k --user 0 com.tmobile.pr.mytmobile

pm uninstall -k --user 0 com.tmobile.m1

pm uninstall -k --user 0 com.tmobile.pr.mytmobile

pm uninstall -k --user 0 com.tmobile.pr.adapt

pm uninstall -k --user 0 com.tmobile.rsuadapter.qualcomm

pm uninstall -k --user 0 com.tmobile.rsuapp

pm uninstall -k --user 0 com.tmobile.rsusrv

               *Google/FB Bloat

pm disable-user com.nextradioapp.nextradio

pm disable-user com.google.android.music

pm disable-user com.google.android.videos

pm disable-user com.google.android.videos

pm disable-user com.google.android.videos

pm disable-user com.google.android.videos

pm disable-user com.facebook.system

pm disable-user com.facebook.appmanager

pm disable-user com.facebook.katana

                 *LG Bloat

pm uninstall -k --user 0 com.lge.theme.highcontrast

pm uninstall -k --user 0 com.lge.qmemoplus

pm uninstall -k --user 0 com.lge.qhelp

pm uninstall -k --user 0 com.lge.qhelp.application

pm uninstall -k --user 0 com.lge.bnr

pm uninstall -k --user 0 com.lge.bnr.launcher

pm uninstall -k --user 0 com.lge.music

pm uninstall -k --user 0 com.lge.email

pm uninstall -k --user 0 com.lge.exchange

pm uninstall -k --user 0 com.lge.sync

pm uninstall -k --user 0 com.lge.ia.task.informant

pm uninstall -k --user 0 com.lge.leccp

pm disable-user com.google.android.apps.tachyon //google pay

pm disable-user com.lge.fmradio

pm disable-user com.lge.lgbroadcastradioservice

pm uninstall -k --user 0 com.lge.lifetracker

pm uninstall -k --user 0 com.lge.lgworld

-- MISC TODO (Optional for me)

*Google Bloatware

pm uninstall -k --user 0 com.google.android.googlequicksearchbox

pm uninstall -k --user 0 com.google.android.gm

pm uninstall -k --user 0 com.google.android.apps.tachyon

pm uninstall -k --user 0 com.google.android.music

pm uninstall -k --user 0 com.google.android.apps.docs

pm uninstall -k --user 0 com.google.android.apps.maps

pm uninstall -k --user 0 com.android.chrome

pm uninstall -k --user 0 com.google.android.apps.photos

pm uninstall -k --user 0 com.google.vr.vrcore

pm uninstall -k --user 0 com.google.android.youtube

pm uninstall -k --user 0 com.google.android.videos

pm uninstall -k --user 0 com.google.android.talk

pm uninstall -k --user 0 com.google.android.apps.books

pm uninstall -k --user 0 com.google.android.apps.magazines

pm uninstall -k --user 0 com.google.android.apps.plus

* amazon

pm uninstall -k --user 0 com.amazon.mShop.android

pm uninstall -k --user 0 com.amazon.fv

pm uninstall -k --user 0 com.amazon.kindle

pm uninstall -k --user 0 com.amazon.mp3

pm uninstall -k --user 0 com.amazon.venezia


Enable Chrome+Edge Flags

chrome://flags/#smooth-scrolling

chrome://flags/#heavy-ad-privacy-mitigations

chrome://flags/#heavy-ad-privacy-mitigations

chrome://flags/#enable-android-dark-search

chrome://flags/#enable-force-dark

chrome://flags/#heavy-ad-privacy-mitigations

chrome://flags/#enable-zero-copy

chrome://flags/#enable-gpu-rasterization

chrome://flags/#smooth-scrolling

Friday, June 11, 2021

Android Disable System Updates : Disable the message "Install update keep device running smoothly"

Stop the "Install update keep device running smoothly" message"; 
  1. How do I stop google play services auto update? 
Yes it is possible to stop it from auto updating itself.follow these steps to do that:-


. Go to setting



. Tap on data usage option



. Scroll down and find Google play services



. Tap on it then scroll down and put a check on Restrict background data option



. Now it's only update when you manually update it.



. You can use this method for any app and also revert it anytime.

 OR 

  2. Block System Update 



To do it follow these steps if you are on Lollipop or higher.



The update notifications usually comes on your notification bar and cannot be removed by swiping to left or right. You can either skip it by giving a time limit.

When the notification comes, pull down the notification pannel and long press on the update notification.

You will see a setting logo to the right side of the notification.

Press that and go the update notification settings.

There will be a toggle for blocking all notification from this app. Turn on that toggle and you won't get any more notifications.


 OR 

  3. Option 3 

Go to Settings > Apps.

Navigate to Manage Apps > All Apps.

Find an app called Software Update, System Updates or anything similar, since different device manufacturers have named it different.

To disable system update, try any of these two methods, the first one being recommended:

Tap Turn Off or Disable button and then OK.

In case this button is grayed out, tap on Force Stop > OK to turn the process off temporarily. In such case, there is a possibility that the app may turn on automatically

Disable any update notifications by unchecking “Show Notifications” checkbox in supported devices.



And Android Apps in general, more info here
https://www.alphr.com/disable-updates-android-device/