[MOD][PERFORMANCE]Watson - Your device's personal, automated butler!

kioshio

Senior Member
Sep 9, 2011
166
73
0
Mao
[6.0.x] [SM-T320] CyanogenMod 13.0 Nightlies for the Tab Pro 8.4 Wifi (mondrianwifi)

Edit; I wipe cache/dalvik and install again watson and now works! Testing Mod now
 
Last edited:

Paget96

Recognized Developer / Contributor
Oct 29, 2013
12,536
34,706
263
24
Krusevac
Code:
ui_print "=====> CPU Architecture: $ARCH"
show_progress 0.2 1
ui_print "====> Preparing installation"
mkdir /system/etc/Watson
mkdir /system/etc/Watson/bin
cp /tmp/system/bin/$ARCH/* /system/etc/Watson/bin/
sleep 1
show_progress 0.9 2
ui_print "====> Installing core system"
if [ -e /system/etc/init.d/9900initWatson ]
then
ui_print "=====> Updating Watson"
[COLOR="Red"]cp -rf /tmp/system/etc/Watson/watson /system/bin/watson[/COLOR]
cp -Rf /tmp/system/etc/Watson /system/etc/
mv /system/etc/Watson/backup/00onetime /system/etc/init.d/00onetime
else
ui_print "=====> Installing fresh"
[COLOR="red"]cp -rf /tmp/system/etc/Watson/watson /system/bin/watson[/COLOR]
cp -Rf /tmp/system/etc/Watson /system/etc/
mv /system/etc/Watson/backup/00onetime /system/etc/init.d/00onetime
fi
[COLOR="red"]chmod 755 /system/bin/watson
chown 0.2000 /system/bin/watson[/COLOR]
set_perm_recursive 0 0 0755 0755 /system/etc/init.d
set_perm_recursive 0 0 0755 0755 /system/etc/Watson
sleep 2
ui_print "=====> Core system installed"
show_progress 1.0 1
ui_print "====> Finishing installation"
sleep 1
ui_print "====> Installation finished"
There is no "watson" file inside /bin, neither /xbin.
So update-binary needs some corrections
 

veez21

Senior Member
Feb 22, 2016
2,172
2,706
183
Guess Where
Code:
ui_print "=====> CPU Architecture: $ARCH"
show_progress 0.2 1
ui_print "====> Preparing installation"
mkdir /system/etc/Watson
mkdir /system/etc/Watson/bin
cp /tmp/system/bin/$ARCH/* /system/etc/Watson/bin/
sleep 1
show_progress 0.9 2
ui_print "====> Installing core system"
if [ -e /system/etc/init.d/9900initWatson ]
then
ui_print "=====> Updating Watson"
[COLOR="Red"]cp -rf /tmp/system/etc/Watson/watson /system/bin/watson[/COLOR]
cp -Rf /tmp/system/etc/Watson /system/etc/
mv /system/etc/Watson/backup/00onetime /system/etc/init.d/00onetime
else
ui_print "=====> Installing fresh"
[COLOR="red"]cp -rf /tmp/system/etc/Watson/watson /system/bin/watson[/COLOR]
cp -Rf /tmp/system/etc/Watson /system/etc/
mv /system/etc/Watson/backup/00onetime /system/etc/init.d/00onetime
fi
[COLOR="red"]chmod 755 /system/bin/watson
chown 0.2000 /system/bin/watson[/COLOR]
set_perm_recursive 0 0 0755 0755 /system/etc/init.d
set_perm_recursive 0 0 0755 0755 /system/etc/Watson
sleep 2
ui_print "=====> Core system installed"
show_progress 1.0 1
ui_print "====> Finishing installation"
sleep 1
ui_print "====> Installation finished"
There is no "watson" file inside /bin, neither /xbin.
So update-binary needs some corrections
It must be the latest one, I'm currently using the first release...
 

sonickles9

Senior Member
Sep 4, 2014
337
153
0
São Paulo
Code:
ui_print "=====> CPU Architecture: $ARCH"
show_progress 0.2 1
ui_print "====> Preparing installation"
mkdir /system/etc/Watson
mkdir /system/etc/Watson/bin
cp /tmp/system/bin/$ARCH/* /system/etc/Watson/bin/
sleep 1
show_progress 0.9 2
ui_print "====> Installing core system"
if [ -e /system/etc/init.d/9900initWatson ]
then
ui_print "=====> Updating Watson"
[COLOR="Red"]cp -rf /tmp/system/etc/Watson/watson /system/bin/watson[/COLOR]
cp -Rf /tmp/system/etc/Watson /system/etc/
mv /system/etc/Watson/backup/00onetime /system/etc/init.d/00onetime
else
ui_print "=====> Installing fresh"
[COLOR="red"]cp -rf /tmp/system/etc/Watson/watson /system/bin/watson[/COLOR]
cp -Rf /tmp/system/etc/Watson /system/etc/
mv /system/etc/Watson/backup/00onetime /system/etc/init.d/00onetime
fi
[COLOR="red"]chmod 755 /system/bin/watson
chown 0.2000 /system/bin/watson[/COLOR]
set_perm_recursive 0 0 0755 0755 /system/etc/init.d
set_perm_recursive 0 0 0755 0755 /system/etc/Watson
sleep 2
ui_print "=====> Core system installed"
show_progress 1.0 1
ui_print "====> Finishing installation"
sleep 1
ui_print "====> Installation finished"
There is no "watson" file inside /bin, neither /xbin.
So update-binary needs some corrections
Oh no, the watson in /bin is a symlink created by 00onetime

I already faced issues with some binaries not working or being unavailable n the system (lol there was no grep) so when the rrlease comes it will depend mostly on the busybox in /etc/Watson/bin

...I may want to consider symlinking Watson on install-time tho

Enviado do meu GT-S5310B
 
  • Like
Reactions: bebruja2

veez21

Senior Member
Feb 22, 2016
2,172
2,706
183
Guess Where
Which ROM and android version? It seems like your dumpsys doesn't have the "display" category...

Sent from my GT-S5310B
Nokia X (RM-980) Stock Rom, but other than that, everything's responsive and fast, i totally can feel the difference after flashing. And by the way, your coding is superb.

Sent by a Cool Guy using XDA-Developers mobile app
 

sonickles9

Senior Member
Sep 4, 2014
337
153
0
São Paulo
Nokia X (RM-980) Stock Rom, but other than that, everything's responsive and fast, i totally can feel the difference after flashing. And by the way, your coding is superb.

Sent by a Cool Guy using XDA-Developers mobile app
Wow thanks ^_^ that is great to hear. I developed a workaround for the issue, will upload it as soon as I get the time.

Just to confirm if it will work, does your dumpsys have the "window" category?

Sent from my GT-S5310B
 

Adzkii

Senior Member
Dec 25, 2014
338
63
58
I'll give this MOD a try on my galaxy s5 and xperia z3c to see if i see any improvements. Great job on this project OP ;)
 

Eversmile23

Senior Member
Aug 15, 2014
308
41
0
Rourkela
What about uninstaller?

TO ALL DEVS: Feel free to look at my code, but DO NOT TAKE ANYTHING OF IT WITHOUT MY PERMISSION. Asking doesn't hurt and I don't bite. :)

Do you own an old device which didn't work out well with the other mods around?
Do you own a recent, powerful device that worked well with those aggressive mods, but their aggressivity scared you ?
Are you looking for something new?

Then, look no further!

Here I present you proudly...

Watson!

He wants to become your device's personal caretaker, keeping it in tip-top shape being you there or not! He's a new face around these places, but it seeks a great goal: Become a smart entity, and succeed where many failed. It's currently in alpha, and is open to LOTS of improvement. For that, I need your help!

Features of the mod:
>Smarter zRAM
>Dynamic LMK
>CPU Tweaks
>User Experience Tweaks
>Renicer Service
>VM Tweaks
>And MUCH MORE YET TO COME!

Downloads
>1.1 Release
=>Download!

>Older versions
=>Click here!

Changelogs
Changelogs in-app: type 'watson' then choose 'changelog'!

Instructions
>Make sure you have Root, Busybox and a custom Recovery.
>Download the zip on the upper section.
>Boot into recovery and flash the zip you downloaded, then reboot.
>You need to activate Watson's modules before enjoying it. Use your favorite terminal emulator and type 'su' then 'watson'. It should be comprehensive enough from there on.

Help Watson!
Want to help Watson? Drop by G+!
Test, suggest and help Watson improve!
Help Watson!

Donate!
I don't have a PayPal account nor a bank account yet so I can't really ask for donations.
You did not mention the way to remove the 'mod', if someone desires to do so. Would you please explain?