Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Useful adb commands for Galaxy S5

OP dan-linux

29th August 2014, 11:42 AM   |  #1  
OP Junior Member
Thanks Meter: 2
 
3 posts
Join Date:Joined: Sep 2010
I want to collect all useful adb commands that can be used on the Galaxy s5 to perform cool actions
These commands can than for instance be used inside of Tasker.

Please tell me what kind of things you want to do over adb?

Here a wishlist of commands that i want to have:
1) turn on/off Lockscreen with fingerprint
2) turn on/off ultra power save mode


Here are some commands that I have found until now

-----------------------------------
-- FLASHLIGHT
-----------------------------------
--replace x by a value between 0 and 255 : 0 is off and 255 is the maximum brightness
echo "x" > /sys/devices/virtual/camera/rear/rear_flash

-----------------------------------
-- Switch SCREEN-Mode
-----------------------------------
--Normal Screen
echo "0" > /sys/devices/virtual/mdnie/mdnie/accessibility

--Inverted Colors
echo "1" > /sys/devices/virtual/mdnie/mdnie/accessibility

--Ultra Power Save Mode / Grey Mode
echo "2" > /sys/devices/virtual/mdnie/mdnie/accessibility

--Screen off but not locked and touchscreen is still working
echo "3" > /sys/devices/virtual/mdnie/mdnie/accessibility

-----------------------------------
-- SCREEN COLOR
-----------------------------------
-- RED
echo "255 0 0" > /sys/devices/platform/kcal_ctrl.0/kcal;echo "1" > /sys/devices/platform/kcal_ctrl.0/kcal_ctrl

-- GREEN
echo "0 255 0" > /sys/devices/platform/kcal_ctrl.0/kcal;echo "1" > /sys/devices/platform/kcal_ctrl.0/kcal_ctrl

-- BLUE
echo "0 0 255" > /sys/devices/platform/kcal_ctrl.0/kcal;echo "1" > /sys/devices/platform/kcal_ctrl.0/kcal_ctrl

-- BLACK
echo "0 0 0" > /sys/devices/platform/kcal_ctrl.0/kcal;echo "1" > /sys/devices/platform/kcal_ctrl.0/kcal_ctrl

-- NORMAL
echo "255 255 255" > /sys/devices/platform/kcal_ctrl.0/kcal;echo "1" > /sys/devices/platform/kcal_ctrl.0/kcal_ctrl
Last edited by dan-linux; 29th August 2014 at 11:49 AM. Reason: error
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes