30 December 2017

Daily phrase with calendar date and cowsay [Linux bash script]


Ideally this script would put everything on an image that you can use somewhere, but there are so many tools with options and fonts and versions of tools, that I prefer to leave that for you to glue in to this baseline. If you do, please post a comment with your chosen option/glue/output or whatever you do with this.

As usual, I learn from all, and to all I return what I created. Feel free to do the same.


===== code =========
cat ~/bin/frase-del-dia.sh
#/bin/bash

(echo -en  "\n\n\n\n\n\t";    date +%A-%d-%B ; fortune -se -n 180 /usr/share/games/fortunes/es/sabiduria.fortunes  /usr/share/games/fortunes/es/proverbios.fortunes /usr/share/games/fortunes/es/lao-tse.fortunes | cowsay ; echo -e "\n\n\n\n\n") | sed 's/^/        /'


===== result =========




04 December 2017

"could not access the package manager" after update supersu


I have a tablet with Android 4.4

Recently (Dec/2017) I updated SuperSU y that's where my problem began.

Things like "Disable application" were not working anymore.


In the logs of SuperSU I could see something similar to -- You need Pro to enable this feature--. With "this feature" it refers to "full logging" nothing else.

Thanks to the developer, you can enable Pro without paying, and see where the issue is.

After enabling Pro and full logging you can see messages like

"could not access the package manager"
"Is the system running?"


I read multiple solutions but none seemed to work:
- downgrade supersu (with and without allowing it to update the binaries)
- tried changing the "mount namespace separation" in SuperSU
- tried other super user Apps

I even tried:
- making supersu a system App.
- and other fuzzy options

Nothing resolved the issue.

I had the idea, if I remove the su binaries located at /system/xbin/su  (I renamed instead) and install an old version (after doing a good cleanup of SuperSU) ....

And that was the solution.
1. Good cleanup (SuperSU has an option to do it itself)
2. Rename su binary at /system/xbin/su
3. Install an old SuperSu (2.65 in my case)

Now everything seems to work as usual.


I thought I had learned it before, but it seems now that I didn't fully embrace it.

"If the App is working, DO NOT UPDATE IT, I repeat, DO NOT"

I will try to remember it whenever I feel the urge to update anything again.

Too Cool for Internet Explorer