Skip to content

Commit 2622b65

Browse files
committed
TsumBeta: Fix auto launch app for Android 11+
With MuMu player, that feature seems to work again, but the command for getting the current active app slightly changed.
1 parent 89bb0b8 commit 2622b65

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

scripts/com.r2studio.TsumBeta/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to the TsumBeta script will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
8+
## [v78] - tbd
9+
10+
### Fixed
11+
- Fixed "Auto launch app" for Android 11+ (currently works with MuMu player).
12+
13+
714
## [v77] - 2025-09-25
815

916
### Fixed

scripts/com.r2studio.TsumBeta/src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ Tsum.prototype.isAppOn = function() {
13591359
if (!this.autoLaunch) {
13601360
return true;
13611361
}
1362-
var result = execute('dumpsys window windows').split('mCurrentFocus');
1362+
var result = execute('dumpsys window').split('mCurrentFocus');
13631363
if (result.length < 2) {
13641364
return false;
13651365
}
@@ -3009,6 +3009,7 @@ Tsum.prototype.isOnScreenshot = function(img, pageObject, colorDiff) {
30093009

30103010
function start(settings) {
30113011
ts = new Tsum(settings['jpVersion'], settings['specialScreenRatio'], settings['langTaiwan'] ? LogsTW : Logs);
3012+
ts.settings = settings
30123013
log(ts.logs.start);
30133014
ts.debug = settings['debugGame'];
30143015
if (settings['bonus5to4']) {

0 commit comments

Comments
 (0)