Created
August 19, 2018 15:51
-
-
Save Mygod/9bc22434a49d0b9df1594cd38cbd4d04 to your computer and use it in GitHub Desktop.
Disable TV ads on boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb connect <your TV IP> | |
# if adb connect didn't work, try enabling network debugging via whatever means possible, e.g. root + telnetd | |
adb shell | |
# this step is optional but recommended | |
su | |
pm disable com.tpv.xmic.recommender.ebony2k15 | |
# disable ads? | |
pm disable com.sharp.advert | |
pm disable com.tianci.ad | |
# disable UPnP device-wise (don't trust unknown services) | |
iptables -A oem_out -p udp --dport 1900 -j DROP | |
mount -o rw,remount /system | |
# you might need to change the init script here | |
echo 'iptables -A oem_out -p udp --dport 1900 -j DROP' >> /etc/init.bigfish.sh | |
# -- debug -- | |
# helpful command to find out the evil app package ID | |
pm list packages | |
dumpsys activity activities | |
# dump network status | |
ss -tneiopan | |
busybox netstat -pt | |
dumpsys netstats details full | |
am start --user 0 com.android.settings/.Settings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment