Skip to content

Instantly share code, notes, and snippets.

@maccyber
Last active April 10, 2024 18:03
Show Gist options
  • Save maccyber/e3bdfaf21c3927de3aec19632e935357 to your computer and use it in GitHub Desktop.
Save maccyber/e3bdfaf21c3927de3aec19632e935357 to your computer and use it in GitHub Desktop.
wget https://blakadder.com/assets/files/ultra-small-launcher.apk
adb install ultra-small-launcher.apk
# Simulate a Home key press.
adb shell input keyevent 3

/vendor/bin/siliconlabs_host/zgateway /system/bin/rootsudaemon.sh

#!/system/bin/sh
chmod 0777 /oem/ember-host/bin/*

/system/xbin/daemonsu --auto-daemon &

su

# 清除灾难恢复计数,正式固件应该将这行屏蔽,交给客户app去清除
logwrapper clean_vendor_storage 30 0 &

chmod 0777 /dev/snd/pcmC0D*
tinymix 1 1

# 485
echo 113 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio113/direction
chmod 0666 /sys/class/gpio/gpio113/value
echo 1 > /sys/class/gpio/gpio113/value

# RALAY1
echo 114 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio114/direction
chmod 0666 /sys/class/gpio/gpio114/value
echo 0 > /sys/class/gpio/gpio114/value

# RALAY2
echo 115 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio115/direction
chmod 0666 /sys/class/gpio/gpio115/value
echo 0 > /sys/class/gpio/gpio115/value

cp -rf /oem/frp /data/local/tmp/
chmod -R 777 /data/local/tmp/frp

ifconfig eth0 down
sleep 3
ifconfig eth0 up

# sh /vendor/bin/siliconlabs_host/run.sh &

sleep 30
pm disable com.eWeLinkControlPanel
pm disable com.eWeLinkNSPro.dev
pm disable com.rockchip.devicetest
pm disable android.rockchip.update.service
pm disable com.android.gl2jni
pm disable com.smatek.test
pm disable android.rk.RockVideoPlayer
pm disable acr.browser.barebones
pm disable org.chromium.webview_shell
pm disable com.android.music
pm disable com.android.nfc
pm disable com.DeviceTest
pm disable com.cghs.stresstest

https://community.homey.app/t/homeydash-com-a-homey-dashboard/13509

https://app.homey.ink/?theme=web&token=

adb connect <ip>
su
mount -o remount,rw /system
busybox vi /etc/ssh/sshd_config
PubkeyAuthentication yes # uncomment this line
echo [your_pubkey] > /data/ssh/authorized_keys
reboot
ssh -oHostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa root@ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment