Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
BlissLauncher
Commits
b2b487f7
Commit
b2b487f7
authored
May 03, 2022
by
Romain Hunault
Browse files
Screenshot blisslauncher screens
parent
ca29dd10
Pipeline
#182904
passed with stage
in 6 minutes and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
b2b487f7
...
...
@@ -68,3 +68,5 @@ lint/tmp/
ktlint
keystore/platform.jks
tmp
screenshots.sh
0 → 100755
View file @
b2b487f7
# $ ./screenshots.sh <language code>
# To be used on: OnePlus Nord (avicii)
# Language code recommandations: fr, en, es, it, de
# Before running:
# - Manually set the device language
# - Manually delete and create a folder (line 4, slot1)
# - Swipe done the widget page
app
=
blisslauncher
languages
=
${
1
}
DEVICE_FOLDER
=
/sdcard/
$app
/
$language
/
LOCAL_FOLDER
=
tmp/screenshots/
$language
adb shell
mkdir
-p
$DEVICE_FOLDER
mkdir
-p
$LOCAL_FOLDER
# Default Grid
adb shell input keyevent 3
# KEYCODE_HOME list https://developer.android.com/reference/android/view/KeyEvent.html
adb shell
"screencap -p > /sdcard/
$app
/
$language
/grid_1.png"
# Folder
adb shell input keyevent 3
# KEYCODE_HOME list https://developer.android.com/reference/android/view/KeyEvent.html
# sleep 1
# adb shell input draganddrop 150 1200 150 1200 100
# adb shell input draganddrop 150 1200 450 1200 5500
# sleep 1
# adb shell input tap 150 1200
sleep
1
adb shell input tap 150 1200
sleep
1
adb shell
"screencap -p > /sdcard/
$app
/
$language
/folder_1.png"
# Widgets
adb shell input keyevent 3
adb shell input keyevent 3
sleep
1
adb shell input swipe 180 1500 1100 1500
sleep
1
adb shell
"screencap -p > /sdcard/
$app
/
$language
/widget_1.png"
adb shell input swipe 600 2100 600 300
sleep
1
adb shell
"screencap -p > /sdcard/
$app
/
$language
/widget_2.png"
# Edit widget
adb shell input keyevent 3
sleep
1
adb shell input swipe 180 1500 1100 1500
sleep
1
adb shell input swipe 600 2100 600 300
sleep
1
adb shell input tap 550 2050
sleep
1
adb shell
"screencap -p > /sdcard/
$app
/
$language
/edit_widget_1.png"
adb shell input tap 550 800
sleep
1
adb shell
"screencap -p > /sdcard/
$app
/
$language
/edit_widget_2.png"
# Weather widget settings
adb shell input keyevent 3
sleep
1
adb shell input keyevent 3
sleep
1
adb shell input swipe 180 1500 1100 1500
sleep
1
adb shell input swipe 600 2100 600 300
sleep
1
adb shell input tap 1000 1300
sleep
1
adb shell
"screencap -p > /sdcard/
$app
/
$language
/weather_widget_settings_1.png"
adb shell input tap 600 650
sleep
1
adb shell
"screencap -p > /sdcard/
$app
/
$language
/weather_widget_settings_2.png"
adb shell input keyevent 4
# KEYCODE_BACK
sleep
1
adb shell input tap 600 850
sleep
1
adb shell input tap 600 1000
sleep
1
adb shell
"screencap -p >/sdcard/
$app
/
$language
/weather_widget_settings_3.png"
adb shell input tap 550 1050
sleep
1
adb shell input text
"paris"
sleep
1
adb shell input tap 900 1380
sleep
0.5
adb shell
"screencap -p > /sdcard/
$app
/
$language
/weather_widget_settings_4.png"
sleep
1
adb shell
"screencap -p > /sdcard/
$app
/
$language
/weather_widget_settings_5.png"
adb shell input keyevent 4
adb shell input keyevent 67
adb shell input keyevent 67
adb shell input keyevent 67
adb shell input keyevent 67
adb shell input keyevent 67
adb shell input text
"qwerty"
sleep
1
adb shell input tap 900 1380
sleep
1
adb shell
"screencap -p > /sdcard/
$app
/
$language
/weather_widget_settings_6.png"
adb shell input keyevent 4
sleep
1
adb shell input tap 600 1350
sleep
1
adb shell
"screencap -p > /sdcard/
$app
/
$language
/weather_widget_settings_7.png"
# Search
adb shell input keyevent 3
adb shell input keyevent 3
sleep
1
adb shell input swipe 600 1200 600 1700
sleep
1
adb shell
"screencap -p > /sdcard/
$app
/
$language
/search_1.png"
# Download screenshots
adb shell input keyevent 3
adb pull
$DEVICE_FOLDER
/
*
$LOCAL_FOLDER
Write
Preview
Supports
Markdown
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