Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 44a1eb7

Browse files
author
Clara K
authored
V42 Hotfix (#164)
2 parents 7ef550e + c78194a commit 44a1eb7

6 files changed

Lines changed: 17 additions & 42 deletions

File tree

.github/workflow_data/release.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
## ⬇️ Download
2-
>### [🐬 qFlipper Package (.tgz)](https://github.com/ClaraCrazy/Flipper-Xtreme/releases/download/{release_tag}/{release_tag}.tgz) [recommended]
2+
>### [📦 Zipped Archive (.zip)](https://github.com/ClaraCrazy/Flipper-Xtreme/releases/download/{release_tag}/{release_tag}.zip) [recommended]
33
4-
>### [📦 Zipped Archive (.zip)](https://github.com/ClaraCrazy/Flipper-Xtreme/releases/download/{release_tag}/{release_tag}.zip)
4+
>### [🐬 qFlipper Package (.tgz)](https://github.com/ClaraCrazy/Flipper-Xtreme/releases/download/{release_tag}/{release_tag}.tgz)
55
66
>### [🖥️ Web Updater (chrome)](https://lab.flipper.net/?url={webupdater_url}&channel=XFW-Updater&version={release_tag}) [not recommended]
77
8-
**Remember to delete your `apps` (and `update` if using "Install from file...") folders before updating!**\
9-
**Check the [install guide](https://github.com/ClaraCrazy/Flipper-Xtreme#install) if you're not sure, or [join our Discord](https://discord.gg/flipper-xtreme) if you have questions!**
8+
**Remember to delete your `apps` folders before updating!**\
9+
**Check the [install guide](https://github.com/ClaraCrazy/Flipper-Xtreme#install) if you're not sure, or [join our Discord](https://discord.gg/flipper-xtreme) if you have questions or encounter issues!**
1010

1111
## 🚀 Changelog
1212
{changelog}
@@ -17,6 +17,6 @@ If you like what you're seeing, **please consider donating to us**. We won't eve
1717
- **[Direct transfer to my bank](https://bunq.me/ClaraK)**: No account needed, they have a convenient online pay thingy (that hates americans, sowwy)
1818
- **[Patreon](https://patreon.com/CynthiaLabs)**
1919
- **[Paypal](https://paypal.me/RdX2020)**
20-
- **Monero**: 41kyWeeoVdK4quzQ4M9ikVGs6tCQCLfdx8jLExTNsAu2SF1QAyDqRdjfGM6EL8L9NpXwt89HJeAoGf1aoArk7nDr4AMMV4T
20+
- **Monero**: `41kyWeeoVdK4quzQ4M9ikVGs6tCQCLfdx8jLExTNsAu2SF1QAyDqRdjfGM6EL8L9NpXwt89HJeAoGf1aoArk7nDr4AMMV4T`
2121

2222
**Thanks for all your support <3**

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ jobs:
6363
cd ./${DEFAULT_TARGET}-update-*
6464
7z a ../${RELEASE_TAG}.zip .
6565
cd ..
66+
mv ${RELEASE_TAG}.tgz ..
67+
mv ${RELEASE_TAG}.zip ..
68+
cd ..
6669
python -m pip install pyncclient
6770
WEBUPDATER_URL="$(python -c "import nextcloud_client as n;c = n.Client('https://cloud.cynthialabs.net/');c.login('${{ secrets.NC_USER }}', '${{ secrets.NC_PASS }}');c.put_file('XFW-Updater/${RELEASE_TAG}.tgz', '${RELEASE_TAG}.tgz');print(c.share_file_with_link('XFW-Updater/${RELEASE_TAG}.tgz').get_link().rstrip('/') + '/download/${RELEASE_TAG}.tgz', end='')")"
6871
echo "WEBUPDATER_URL=${WEBUPDATER_URL}" >> $GITHUB_ENV
@@ -91,8 +94,8 @@ jobs:
9194
draft: false
9295
prerelease: false
9396
files: |
94-
${{ env.RELEASE_TAG }}.tgz
95-
${{ env.RELEASE_TAG }}.zip
97+
dist/${{ env.RELEASE_TAG }}.tgz
98+
dist/${{ env.RELEASE_TAG }}.zip
9699
name: "${{ env.RELEASE_TAG }}"
97100
tag_name: "${{ env.RELEASE_TAG }}"
98101
target_commitish: main

applications/main/bad_kb/bad_kb_app.c

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,6 @@ BadKbApp* bad_kb_app_alloc(char* arg) {
8484
}
8585

8686
Storage* storage = furi_record_open(RECORD_STORAGE);
87-
// Remove old pre-included files to avoid duplicates on migrate
88-
storage_simply_remove(storage, EXT_PATH("badusb/layouts"));
89-
storage_simply_remove(storage, EXT_PATH("badusb/.badusb.settings"));
90-
storage_simply_remove(storage, EXT_PATH("badusb/Kiosk-Evasion-Bruteforce.txt"));
91-
storage_simply_remove(storage, EXT_PATH("badusb/Wifi-Stealer_ORG.txt"));
92-
storage_simply_remove(storage, EXT_PATH("badusb/demo_macos.txt"));
93-
storage_simply_remove(storage, EXT_PATH("badusb/demo_windows.txt"));
94-
storage_common_migrate(storage, EXT_PATH("badusb"), BAD_KB_APP_BASE_FOLDER);
9587
storage_simply_mkdir(storage, BAD_KB_APP_BASE_FOLDER);
9688
furi_record_close(RECORD_STORAGE);
9789

@@ -114,8 +106,6 @@ BadKbApp* bad_kb_app_alloc(char* arg) {
114106
view_dispatcher_set_navigation_event_callback(
115107
app->view_dispatcher, bad_kb_app_back_event_callback);
116108

117-
app->connection_init = false;
118-
119109
Bt* bt = furi_record_open(RECORD_BT);
120110
app->bt = bt;
121111
app->bt->suppress_pin_screen = true;
@@ -166,7 +156,7 @@ BadKbApp* bad_kb_app_alloc(char* arg) {
166156
scene_manager_next_scene(app->scene_manager, BadKbSceneError);
167157
} else {
168158
app->conn_init_thread = furi_thread_alloc_ex(
169-
"BadKbConnInit", 512, (FuriThreadCallback)bad_kb_connection_init, app);
159+
"BadKbConnInit", 1024, (FuriThreadCallback)bad_kb_connection_init, app);
170160
furi_thread_start(app->conn_init_thread);
171161
if(!furi_string_empty(app->file_path)) {
172162
app->bad_kb_script = bad_kb_script_open(app->file_path, app->is_bt ? app->bt : NULL);
@@ -226,6 +216,12 @@ void bad_kb_app_free(BadKbApp* app) {
226216
}
227217
app->bt->suppress_pin_screen = false;
228218

219+
if(app->conn_init_thread) {
220+
furi_thread_join(app->conn_init_thread);
221+
furi_thread_free(app->conn_init_thread);
222+
bad_kb_connection_deinit(app);
223+
}
224+
229225
// Close records
230226
furi_record_close(RECORD_GUI);
231227
furi_record_close(RECORD_NOTIFICATION);
@@ -237,12 +233,6 @@ void bad_kb_app_free(BadKbApp* app) {
237233
furi_string_free(app->file_path);
238234
furi_string_free(app->keyboard_layout);
239235

240-
if(app->conn_init_thread) {
241-
furi_thread_join(app->conn_init_thread);
242-
furi_thread_free(app->conn_init_thread);
243-
}
244-
bad_kb_connection_deinit(app);
245-
246236
free(app);
247237
}
248238

applications/main/bad_kb/bad_kb_app_i.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ struct BadKbApp {
7272

7373
bool is_bt;
7474

75-
bool connection_init;
7675
FuriHalUsbInterface* usb_prev_mode;
7776
GapPairing bt_prev_mode;
7877

applications/main/bad_kb/bad_kb_script.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -704,14 +704,10 @@ int32_t bad_kb_connection_init(BadKbApp* app) {
704704
furi_hal_bt_stop_advertising();
705705
}
706706

707-
app->connection_init = true;
708-
709707
return 0;
710708
}
711709

712710
void bad_kb_connection_deinit(BadKbApp* app) {
713-
if(!app->connection_init) return;
714-
715711
furi_hal_usb_set_config(app->usb_prev_mode, NULL);
716712

717713
// bt_hid_hold_while_keyboard_buffer_full(6, 3000); // release all keys

applications/main/subghz_remote/subghz_remote_app.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -811,19 +811,6 @@ int32_t subghz_remote_app(void* p) {
811811

812812
app->file_result = 3;
813813

814-
Storage* storage = furi_record_open(RECORD_STORAGE);
815-
// Remove old pre-included files to avoid duplicates on migrate
816-
storage_simply_remove(storage, EXT_PATH("subghz/unirf/CVS_Walgreens.txt"));
817-
storage_simply_remove(storage, EXT_PATH("subghz/unirf/Gas_Sign_Edit.txt"));
818-
storage_simply_remove(storage, EXT_PATH("subghz/unirf/Ridin_Dirty.txt"));
819-
storage_simply_remove(storage, EXT_PATH("subghz/unirf/Tesla_Handicap.txt"));
820-
storage_common_migrate(storage, EXT_PATH("subghz/unirf"), SUBREMOTEMAP_FOLDER);
821-
822-
if(!storage_simply_mkdir(storage, SUBREMOTEMAP_FOLDER)) {
823-
FURI_LOG_E(TAG, "Could not create folder %s", SUBREMOTEMAP_FOLDER);
824-
}
825-
furi_record_close(RECORD_STORAGE);
826-
827814
furi_string_set(app->file_path, SUBREMOTEMAP_FOLDER);
828815

829816
DialogsApp* dialogs = furi_record_open(RECORD_DIALOGS);

0 commit comments

Comments
 (0)