diff --git a/bootable/recovery/recovery_main.cpp b/bootable/recovery/recovery_main.cpp
old mode 100644
new mode 100755
index de8ac1f..e481678
--- a/bootable/recovery/recovery_main.cpp
+++ b/bootable/recovery/recovery_main.cpp
@@ -310,6+310,39 @@ staticvoidredirect_stdio(constchar* filename){}}+staticchar on[]="1";+staticchar off[]="0";+++intset_led_status(int status){+int pcb_fd;+int count;+ pcb_fd=open("/sys/class/leds/red_led/brightness", O_RDWR);/*open*/+if(status)+//system(" echo 0> /sys/class/leds/red_led/brightness");+ count=write(pcb_fd, on,sizeof(on));+else+ count=write(pcb_fd, off,sizeof(off));+close(pcb_fd);+LOG(INFO)<<"set_led_status status ="<< status <<" pcb_fd="<< pcb_fd <<" count="<< count;+return0;+}++voidLED_thread(){+int flag =0;+for(;;){+if(flag ==0){+set_led_status(1);+ flag =1;+}else{+set_led_status(0);+ flag =0;+}+usleep(10000);+}+}+++intmain(int argc,char** argv){// We don't have logcat yet under recovery; so we'll print error on screen and log to stdout// (which is redirected to recovery.log) as we used to do.
@@ -441,8+474,10 @@ intmain(int argc,char** argv){
ui->Print("Warning: No file_contexts\n");}-SetLoggingSehandle(sehandle);+ std::thread led_t(LED_thread);+led_t.detach();+SetLoggingSehandle(sehandle);
std::atomic<Device::BuiltinAction> action;
std::thread listener_thread(ListenRecoverySocket, ui, std::ref(action));
listener_thread.detach();
diff --git a/device/sprd/sharkle/common/recovery/init.recovery.common.rc b/device/sprd/sharkle/common/recovery/init.recovery.common.rc
index 1ca766d..b172756 100755--- a/device/sprd/sharkle/common/recovery/init.recovery.common.rc
+++ b/device/sprd/sharkle/common/recovery/init.recovery.common.rc
@@ -187,6+187,10 @@ on boot
chmod 660/sys/class/power_supply/battery/charger.0/stop_charge
chmod 660/sys/class/power_supply/battery/charger.0/jeita_control
+ chmod 777/sys/class/leds/blue_led/brightness
+ chmod 777/sys/class/leds/red_led/brightness
+ chmod 777/sys/class/leds/green_led/brightness
+
on fs
mkdir /data/misc/bluedroid 0770 bluetooth net_bt_stack
mkdir /data/misc/bluetooth 0770 system system