xposed framework – How to determine the boot order of auto-starting apps?

Some apps boot and run in the background when an Android phone boots. WeChat is one example. It starts automatically so that the user can receive messages in real time. My question is how to view and change the boot order of all auto-starting apps. Or else is it random?

The motivation for asking is that I installed Xposed and wanted to change some information of my phone. But unfortunately WeChat sometimes boots before Xposed and thus bypasses the Xposed hooks. I tried very hard to solve this, but to no avail. So any suggestions?

google apps script – How to combine multiple ranges with getRange in order to clear the contents of specific cells?

https://docs.google.com/spreadsheets/d/1VsEvt2KnYGnlN_qHjkjPohVHF5MUqfyHD7tSk0VpkqA/edit#gid=1418057437

I use this sheet to enter data of patients in (Data_Entry) tab. Specific rows are titles and should not be cleared whenever I clear contents of all cells in the sheet/tab. Like Rows 1-4 and rows 20-21. So I made this script to clear specific cells but it seems very basic and it has a problem whenever somebody inserts a new row in between, the whole range needs to be adjusted.

The script has three functions: adding_menu, making borders of query results in (All_patients)tab and ClearContents of (Data_Entry) tab.

So my question is about the last function (ClearContent)

 function onOpen() {

    var menuItems = (
    {name: 'ClearContents', functionName: 'ClearContents'},
    {name: 'Borders', functionName: 'borders'}
  );
  SpreadsheetApp.getActiveSpreadsheet().addMenu('Weekened_Functions', menuItems);
 
 
}

function borders() {
  var range = SpreadsheetApp.getActive().getSheetByName('All_Patients').getDataRange();
  var cell = SpreadsheetApp.getActive().getSheetByName('All_Patients').getRange("B50:H200")
  cell.setBorder(false, false, false, false, false, false);
  var values = range.getValues();
  for (var i = 2; i < values.length; i++) {
    for (var j = 1; j < values(i).length; j++) {
      
        range.getCell(i + 1, j + 1).setBorder(true, true, true, true, true, true);
      }
    }
 
  }
 
function ClearContents() {
  var sheet = SpreadsheetApp.getActive().getSheetByName('Data_Entry');
  sheet.getRange('B5:F19').clearContent(),
  sheet.getRange('B22:F34').clearContent();
  sheet.getRange('B37:F49').clearContent();
  sheet.getRange('B52:F64').clearContent();
  sheet.getRange('B67:F83').clearContent();
  sheet.getRange('B86:F102').clearContent();
  sheet.getRange('B105:F119').clearContent();
  sheet.getRange('B122:F133').clearContent();
  sheet.getRange('B136:F146').clearContent();
  sheet.getRange('B149:F160').clearContent();
  sheet.getRange('B163:F174').clearContent();
  sheet.getRange('B177:F188').clearContent();
  sheet.getRange('B191:F202').clearContent();
  sheet.getRange('B205:F216').clearContent();
  sheet.getRange('B219:F230').clearContent();
  sheet.getRange('B247:F257').clearContent();
  sheet.getRange('B260:F269').clearContent();

  sheet.getRange('M5:M19').clearContent(),
  sheet.getRange('M22:M34').clearContent();
  sheet.getRange('M37:M49').clearContent();
  sheet.getRange('M52:M64').clearContent();
  sheet.getRange('M67:M83').clearContent();
  sheet.getRange('M86:M102').clearContent();
  sheet.getRange('M105:M119').clearContent();
  sheet.getRange('M122:M133').clearContent();
  sheet.getRange('M136:M146').clearContent();
  sheet.getRange('M149:M160').clearContent();
  sheet.getRange('M163:M174').clearContent();
  sheet.getRange('M177:M188').clearContent();
  sheet.getRange('M191:M202').clearContent();
  sheet.getRange('M205:M216').clearContent();
  sheet.getRange('M219:M230').clearContent();
  sheet.getRange('M247:M257').clearContent();
  sheet.getRange('M260:M269').clearContent();

  sheet.getRange('H5:H19').clearContent(),
  sheet.getRange('H22:H34').clearContent();
  sheet.getRange('H37:H49').clearContent();
  sheet.getRange('H52:H64').clearContent();
  sheet.getRange('H67:H83').clearContent();
  sheet.getRange('H86:H102').clearContent();
  sheet.getRange('H105:H119').clearContent();
  sheet.getRange('H122:H133').clearContent();
  sheet.getRange('H136:H146').clearContent();
  sheet.getRange('H149:H160').clearContent();
  sheet.getRange('H163:H174').clearContent();
  sheet.getRange('H177:H188').clearContent();
  sheet.getRange('H191:H202').clearContent();
  sheet.getRange('H205:H216').clearContent();
  sheet.getRange('H219:H230').clearContent();
  sheet.getRange('H247:H257').clearContent();
  sheet.getRange('H260:H269').clearContent();
};

1 how to combine these ranges in simple formula?

2 Is there a way to add exception like: (clear contents of all cells except Column M and Column A and cells containing text “Ward” or “room”or problem list” or “recommendations”?

Formatted my sd card as internal storage in my Xiamoi phone. but still getting no enough space message when installing apps

I have a Xiamoi note 8 phone running android 9. It has 32gb internal storage and I used most of it, so I decided to buy an sd card to use as internal storage.
I went in settings chose the format as internal storage option. It then asked me to move data to the new internal storage, I clicked yes then after it finished I restarted my phone and It still was giving the low on storage message.

when I open the file manager it shows the phone’s data split evenly between the sd card and the storage.

when I open the settings and go to storage it only shows the phone’s original 32gb.
I searched a lot but couldn’t find a solid solution for this problem.

applications – Apps go portrait and then landscape unexpectedly

When I updated my Motorola Moto G9 Plus to Android 10, when going landscape watching videos or playing videogames (after some minutes, repeatedly) go portrait and after 1 to 3 seconds return to landscape, I thought was just my phone, but my wife’s phone (Motorola Moto G8 Plus) also have this glitch/bug

How can I fix that?

THIS WAS NOT HAPPENING WITH ANDROID 9

google apps script – Content control or invisible placeholders

Related to this question dated 5 years ago and where it is stated that “Google Docs doesn’t have invisible placeholders at this time, but it has bookmarks.”

MS Word has ‘content controls’ that allow the insertion of any kind of text with a user-controlled tag. This is great for inserting in-text bibliographic references from an outside source (which is what my add-in does) because I can then not only add the reference itself to the control but also a unique identifying tag that allows me to tie that reference to its source and easily find it and other controls in the document. What this means in practice is that I can change at the click of a button the bibliographic style of all the in-text references and appended bibliography (e.g. APA to Harvard and back again). I can do this in my Word add-in because of the content control.

I can’t figure out how to do this in google docs or even if it is possible. I can’t find (but might have overlooked) any of the invisible placeholders that, five years ago, where not available “at this time”. I could try using bookmarks but I don’t believe it is possible to label them with an identifying tag other than the automatic one generated by google. I could use a combination of this automatic ID and getDocumentProperties() to keep track of things but this immensely complicates matters. An invisible placeholder or tag wrapped around the in-text reference could do the trick too.

My question then is, are there now any invisible placeholders or even content controls similar to Word’s?

applications – Can’t install apps anymore – only via adb

I recently tried to extend my internal memory of my Moto G5 with a 128 gb sd card, so I backed up the previous smaller card to my pc, switched cards, formatted the new card as internal, copied back all the files and thought I was done. I wasn’t.

I noticed that all the apps that I had parked on the sd card were not installed anymore, so I thought I’d install them again. When I tried to do that, the usual installation dialog opened but ended with “App was not installed”. The
is happens whether I use Googley Play, Amazon App Store, or a local apk. With F-Droid it’s a little different: It shows me that the installation failed because of an unknown error.

The only thing that seems to work is installing via adb, but that is rather impractical on the long run.

The phone is a Moto G5 running vanilla Android 8.1, and has about 1.5GB of free space in the internal storage. I tried the usual: empty cache and delete data of Google Play Store and Services, and rebooted several times before and after that.

Any ideas what I could do next?

macos – Mac closes all apps randomly

Since yesterday my Macbook Pro 13 (mid 2014, i7 16gb ram, 512gb) closes all running apps randomly every few minutes.
Also wifi gets disconnected momentarily – it’s as if I would just log in to the system. Once I relaunch Chrome it says it’s not been properly shut.

I updated to Big Sur but it didn’t help.

I tried to monitor system resources but I don’t see any spike before apps closing.
I have 10GB ram unused and it still happens.

Any help appreciated.