echo 0 > /proc/sys/net/nf_conntrack_max
echo 0 > /proc/sys/net/unix/max_dgram_qlen
echo 0 > /proc/sys/kernel/max_lock_depth

rm -rf /storage/emulated/0/Android/data/com.tencent.ig/cache/GameJoyRecorder/logs/
rm -rf /storage/emulated/0/Android/data/com.tencent.ig/cache/GCloudSDKLog/GCloud/
rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/tbslog/
rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/tencent/TPush/Logs/
rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/tencent/mobileqq/opensdk/logs/
rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/TGPA/Log/
rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/Logs/
rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/UpdateInfo/
rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/PandoraV2/Logs/
rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/login-identifier.txt
rm -rf /storage/emulated/999/Android/data/com.tencent.ig/cache/GameJoyRecorder/logs/
rm -rf /storage/emulated/999/Android/data/com.tencent.ig/cache/GCloudSDKLog/GCloud/
rm -rf /storage/emulated/999/Android/data/com.tencent.ig/files/tbslog/
rm -rf /storage/emulated/999/Android/data/com.tencent.ig/files/tencent/TPush/Logs/
rm -rf /storage/emulated/999/Android/data/com.tencent.ig/files/tencent/mobileqq/opensdk/logs/
rm -rf /storage/emulated/999/Android/data/com.tencent.ig/files/TGPA/Log/
rm -rf /storage/emulated/999/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/Logs/
rm -rf /storage/emulated/999/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/UpdateInfo/
rm -rf /storage/emulated/999/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/PandoraV2/Logs/
rm -rf /storage/emulated/999/Android/data/com.tencent.ig/files/login-identifier.txt
rm -rf /storage/emulated/0/Android/data/com.tencent.ig/files/midas/log/com.tencent.ig/

chmod 0 /data/data/com.tencent.ig/files/ano_tmp
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/ace.r_k2.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/ano_app_915c.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/ano_cef.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/ano_cs_stat2.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/ano_emu_c2.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/ano_lcp.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/ano_r_record.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/ano.ano3.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/ano.i.m.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/cache.crc.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/comm.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/config2.xml.7edce36a
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/mn_cache.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/mrpcs.data
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/tdm_cache.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/tersafe.update
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/tss_base.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/tss_cfg2.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/tss_gp5.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/tss_lof.dat
chmod 0 /data/data/com.tencent.ig/files/ano_tmp/tss_tcj.dat 
echo 8192 > /proc/sys/fs/inotify/max_user_watches
echo 128 > /proc/sys/fs/inotify/max_user_instances
echo 99999 > /proc/sys/fs/inotify/max_queued_events
chmod 000 /data/data/com.tencent.ig/databases
chmod 000 //data/data/com.tencent.ig/files/*tmp*
chmod 000 /data/data/com.tencent.ig/files/ano_tmp
echo -e "\033[41m---清理文件成功---\033[0m"
sleep 3s


echo -e "\033[41m---即将更改你的aid---\033[0m"
echo -e "\033[41m---请稍等---\033[0m"
sleep 5s

PKG=com.tencent.ig
ID=$(grep $PKG /data/system/users/0/settings_ssaid.xml | awk -F'"' '{print $6}')
for i in $(seq 16)
do P=$P$(uuidgen|head -c 1|tr '-' -d)
done
sed -i s/$ID/$P/g /data/system/users/0/settings_ssaid.xml

echo -e "\033[41m---aid更改成功---\033[0m"
echo -e "\033[41m---重启即可---\033[0m"
