ui_print "- Installing CloudPhone Daemon"
ui_print "- Config file: /data/adb/modules/cloudphone_daemon/cloudphone.conf"
ui_print "- Manager helper runs via app_process like LSPosed"
ui_print "- post-fs-data.sh/server.sh installed for lifecycle completeness"

set_perm_recursive "$MODPATH" 0 0 0755 0644
set_perm "$MODPATH/post-fs-data.sh" 0 0 0755
set_perm "$MODPATH/service.sh" 0 0 0755
set_perm "$MODPATH/server.sh" 0 0 0755
set_perm "$MODPATH/manager-helper.sh" 0 0 0755
set_perm "$MODPATH/action.sh" 0 0 0755
set_perm "$MODPATH/bin/cloudphone-manager.apk" 0 0 0644
set_perm "$MODPATH/bin/cloudphone-manager-helper.jar" 0 0 0644
set_perm "$MODPATH/webui_action.sh" 0 0 0755
set_perm "$MODPATH/export_logs.sh" 0 0 0755
set_perm "$MODPATH/info.sh" 0 0 0755
set_perm "$MODPATH/uninstall.sh" 0 0 0755
set_perm "$MODPATH/common.sh" 0 0 0644
set_perm "$MODPATH/bin/cloudphone_daemon" 0 0 0755
set_perm "$MODPATH/bin/account-cleanup.jar" 0 0 0644
set_perm "$MODPATH/bin/cloudphone-display-helper.jar" 0 0 0644
set_perm "$MODPATH/bin/cloudphone-statusbar-helper.jar" 0 0 0644
set_perm "$MODPATH/bin/libcloudphone_display_helper.so" 0 0 0755
set_perm "$MODPATH/bin/anxinchong-lsposed.apk" 0 0 0644
