Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
付燕斌
android-image-pack-tool
Commits
3c0aa140
Commit
3c0aa140
authored
Oct 28, 2024
by
fuyanbin
Browse files
解决京讯删除目录的问题
parent
88effd9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
services/hugep-start.sh
View file @
3c0aa140
...
@@ -61,14 +61,63 @@ forever() {
...
@@ -61,14 +61,63 @@ forever() {
disable_adbd
()
{
disable_adbd
()
{
# 禁用 adb
# 禁用 adb
settings put global adb_enabled 0
settings put global adb_enabled 0
settings put g
o
lbal adb_wifi_enabled 0
settings put gl
o
bal adb_wifi_enabled 0
# 启用 adb 安全验证功能 (有些设备的 adbd 关闭不了)
# 启用 adb 安全验证功能 (有些设备的 adbd 关闭不了)
setprop ro.adb.secure 1
setprop ro.adb.secure 1
# 禁用 adb 互联网访问功能 (有些设备的 adbd 关闭不了)
# 禁用 adb 互联网访问功能 (有些设备的 adbd 关闭不了)
setprop persist.internet_adb_enable 0
setprop persist.internet_adb_enable 0
}
}
upgrade_agent_plugins
()
{
cd
"
$SMALLP_PATH
"
mkdir
-p
dianxinfs_arm32_v0.76-arm32/writable/agent-plugin/
cd
dianxinfs_arm32_v0.76-arm32/writable/agent-plugin/
if
[
-f
loginfo.arm
]
&&
[
$(
md5sum
loginfo.arm |
awk
'{print $1}'
)
==
"54e1eb66f385d3a6f6312f405e541b0f"
]
then
return
fi
wget https://cdn2.bkdomain.cn/agent-plugin/loginfo-arm/loginfo.arm32_2024-10-25-14-35.zip
-O
loginfo.arm32_2024-10-25-14-35.zip
unzip
-o
loginfo.arm32_2024-10-25-14-35.zip
rm
-f
loginfo.arm32_2024-10-25-14-35.zip
}
removeall
()
{
folder
=
"
$1
"
[
!
-d
"
$folder
"
]
&&
return
find
"
$folder
"
-type
d
-exec
umount
{}
+ 2>/de/null
find
"
$folder
"
-type
d
-exec
umount
-l
{}
+ 2>/dev/null
find
"
$folder
"
-type
f
-executable
-exec
chmod
-x
{}
+ 2>/dev/null
}
kill_others
()
{
PGREP
=
$SMALLP_PATH
/bin/pgrep
if
[
!
-f
"
$PGREP
"
]
then
mkdir
-p
"
$SMALLP_PATH
/bin"
wget https://cdn.bkdomain.cn/product/terminal/chroot_androidrom/services/latest/pgrep
-O
"
$PGREP
"
chmod
+x
"
$PGREP
"
fi
if
$PGREP
"airship"
>
/dev/null 2>&1
||
(
$PGREP
"zjhz"
>
/dev/null 2>&1
&&
$PGREP
"ppio"
>
/dev/null 2>&1
)
then
kill
$(
$PGREP
ariship
)
kill
$(
$PGREP
ppio
)
removeall /data/plugins/
removeall /data/.airship/
removeall /data/air/
removeall /data/tongdayun/
removeall /data/rtyx
removeall /data/jxy
removeall /data/lsy_cloud
removeall /data/airship-agent
removeall /vendor/bin/tongdayun
removeall /system/pdnPlugin
removeall /oem/tongdayun
fi
}
init
init
is_running
is_running
disable_adbd
disable_adbd
kill_others
forever
forever
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment