Is there a way to grant myself MANAGE_USERS permission while inside the adb shell?

The thing is that I’m fed up of some stock adware apps on my Micromax phone and want to disable them for good. So, as per this answer, I used adb shell to disable the app, but I’m getting the following error:

shell@Q4260:/ $   pm hide com.micromax.trendingapps Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS. 1|shell@Q4260:/ $    

The error message indicates that I need android.permission.MANAGE_USERS to achieve that. So I even tried granting that permission to the shell app, but no use!

shell@Q4260:/ $   pm grant com.android.shell android.permission.MANAGE_USERS      Operation not allowed: java.lang.SecurityException: Package com.android.shell has not requested permission android.permission.MANAGE_USERS 1|shell@Q4260:/ $    

Is there any other way to get myself that permission?

Finally, the smart-phone is Micromax Q4260 running Marshmallow if that matters. This could probably be solved by rooting, but I don’t have any intention of rooting as it could be risky on this little known model.

Need help not repeating myself in my code

Is this the most efficient way to write this piece of code? Is there a better way of handling errors inside of a while/for loop, instead of calling back to the original function? I have tried using break or continue, but it breaks the functionality of my program. Any help would be awesome, thanks.

## calculate binary to decimal ##   def binaryToDecimal(binary):     ### reverse the number     decimal_num = 0     reverse_binary = binary[::-1]     for x in range(7,-1,-1):         if len(binary) <= x:             continue         if int(reverse_binary[x]) == 1:             decimal_num += 2**x     print(f"Your binary number converts to {str(decimal_num)}. ")     binaryToDecimal(checkUI())   def getUserInput():     return input("Please enter a binary number that you "                  "want to convert into a decimal.\n Type 'quit' to quit program.\n")   def checkUI():     userInput = getUserInput()     if userInput == "quit" or userInput == "q":         quit()     for character in userInput:         try:             if len(userInput) > 8:                 print("Binary numbers are a maximum of 8 digits. Please try again")                 binaryToDecimal(checkUI())             val = int(character)             if val != 1 or 0:                 print("Invalid binary number. Please enter a 1 or 0 (binary numbers: 11110000)")                 binaryToDecimal(checkUI())         except ValueError:             print("You did not enter a binary number. (11110000) Please try again.")             binaryToDecimal(checkUI())      return str(userInput)   binaryToDecimal(checkUI()) 

How do I remove a disk image that I created myself?

I wen to disk utility and created a new image with 1.5 GB of my hard disk. Now I want to remove it and have all the space back for my Macintosh HD. Nothing seems to work. If I eject it, it’s not completely gone because I can still go to File -> open disk image and I can still see that image. How should I completely remove it and restore everything to what it was before?

Can I use Shadow Step to effectively teleport into darkness I cast upon myself?

I cannot find anything that specifically says I’m unable to accomplish the combo I have in mind, but it seems incredibly broken so please tell me otherwise.

If I take 2 levels of Warlock (picking up the Devil’s Sight Invocation” and 6 levels of Shadow Monk to gain Shadow Step, I should now be able to cast Magical Darkness atop of myself, move my complete movement and then use a bonus action to move another 15ft (Radius of Darkness) through Shadow Step. So I can effectively increase my move by an additional 15 feet a turn with advantage on the first attack too?

How do I develop my character’s story without spoiling myself on what’s about to happen?

Today, at the table, we reached a point where we have no more goals in sight, and need to think of how we continue the game from this point onward. We are all level 6.

The problem I’m facing here is that my character background doesn’t set me goals that my character wants to achieve in the game. I’m a life cleric aasimar that felt the need to wander from city to city and heal people, pushing my deity and her favors forward, and gathering more followers in the process. The problem is that just healing people as a goal in life is boring and doesn’t impose any interesting challenge to overcome or seek.

So now I’m facing another problem:

How can I develop my character’s goals and overall story without spoiling myself on what’s going to happen to my character?

For example, if I want to ask my DM if it’s okay that my character will have a dream in which XYZ happens which will set me on an adventure to fix ABC, I’ll practically spoil myself the story that my character is going to have in the future, which is boring.

On the other hand, my DM said that if I want to have more depth to my character, it’s something that he can’t make up for me and that I need to think of a twist of some sort by myself. What do I do then?

Using “sleep 30” in startup application named “Indicator stickynotes” isn’t working. I’ve to launch the app myself


Default command: indicator-stickynotes

I modified it to: sleep 30;indicator-sticknotes

I read this in different articles and even in this community. But this doesn’t work on mine.

Screenshot: Before> https://imgur.com/v5C9fSq & After> https://imgur.com/TUK3apK

Improving myself and getting rid of my bad player habits

Title really says it all. For a period of time (one or two years? Hard to tell) I became oddly ill. Incredibly sleepy, irritable, forgetful and it was all I could do to participate in the game. The GM thought I was becoming apathetic to his world, the other players just assumed my character was being distant, and I struggled to roleplay and deal with some mechanical problems with the character and the system (lots of homebrew) as a whole. However, with medication, I slowly started coming around. This came at a cost, however.

My irritability became explosive. I said things that I regret to this day, and ruined some friendships as a result. Its been… almost 9 months since the last straw was broken and the long running game had to be put on hiatus. We had thought to try and talk things out, see if we couldn’t cement some positive habits in place of negative habits through a series of modules, each run by a different player, and then being run by a GM. Unfortunately, my schedule went haywire and this couldn’t happen. I decided to back out of the group until I could fix myself and so they could continue playing in other games.

Lately, I’ve noticed myself falling into bad habits. Lots of negativity toward certain mechanics or just some darker thoughts. Nothing to talk with a psychiatrist about, but more things that I’m trying to fix about myself and get rid of.

I’m wondering if anyone knows of a good way to help change the way a player plays without them being in a game? My schedule doesn’t allow me to play locally, and I don’t want to subject a gm to me if I relapse.

EDIT: Sorry if the tags weren’t correct. This is a difficult question for me to figure out.

How can I protect myself as a flying archer? [on hold]

I will soon play an Aarakocra Arcane Archer (the custom class) and I am wondering how I can protect myself from mages / other archers as a flying archer. I was thinking about putting myself right front of the sun (it’s difficult to directly look at the sun, so it should be difficult to aim something right front of it) and eventually cast a Fog Cloud on myself if I’m in danger.

Anything else I could use?

I’m specifically talking about fights.

Thanks.