I received my rg405m last week. Overall, I'm impressed with its quality. There is a built in button mapper, which allows for button to touch functionality.

Ich habe letzte Woche mein rg405m erhalten. Insgesamt bin ich von der Qualität beeindruckt. Es verfügt über einen integrierten Button-Mapper, der eine Touch-Funktionalität der Tasten ermöglicht.

Ho ricevuto il mio rg405m la settimana scorsa. Nel complesso, sono rimasto impressionato dalla sua qualità. È dotato di un mappatore di pulsanti integrato, che consente la funzionalità touch dei pulsanti.

However, it doesn't automatically load profiles. And since my favorite game does not have gamepad support, I found that a little annoying. I decided to investigate. I did a quick search in the file manager, found the KeyMapper package and checked its logging.

Allerdings werden Profile nicht automatisch geladen. Und da mein Lieblingsspiel keine Gamepad-Unterstützung bietet, fand ich das etwas ärgerlich. Ich beschloss, der Sache auf den Grund zu gehen. Ich führte eine Schnellsuche im Dateimanager durch, fand das KeyMapper-Paket und überprüfte dessen Protokollierung.

Tuttavia, non carica automaticamente i profili. E dato che il mio gioco preferito non supporta il gamepad, ho trovato questo aspetto un po' fastidioso. Ho deciso quindi di indagare. Ho fatto una rapida ricerca nel file manager, ho trovato il pacchetto KeyMapper e ho controllato i suoi log.

Copy to Clipboard

Monitoring while tapping on the options yielded some curious results.

Die Überwachung während des Tippens auf die Optionen ergab einige interessante Ergebnisse.

Il monitoraggio durante la selezione delle opzioni ha prodotto alcuni risultati curiosi.

To have a look at the code, I would have to pull the apk from the device.

Um mir den Code anzusehen, müsste ich die APK-Datei vom Gerät herunterladen.

Per dare un'occhiata al codice, dovrei estrarre l'apk dal dispositivo.

Copy to Clipboard

To find the functions called in the command prompt, I'd first have to decompile the APK.
The code was found in several files, in /sources/ylm/game/com/.

Um die in der Befehlszeile aufgerufenen Funktionen zu finden, müsste ich zunächst die APK decompile.
Der Code wurde in mehreren Dateien gefunden, unter /sources/ylm/game/com/.

Per trovare le funzioni chiamate nel prompt dei comandi, dovrei prima decompilare l'APK.
Il codice è stato trovato in diversi file, in /sources/ylm/game/com/.

[ConfigView.java]

Copy to Clipboard

[MyService.java]

Copy to Clipboard
Copy to Clipboard

[Utils.java]

Copy to Clipboard

The preference to enable the KeyMapper was on the device at /sys/bus/platform/devices/singleadc-joypad/enable/. The shared prefernces were in /data/user/0/com.ylm.game/, but without access, as the code chmods when needed, for security.

Die Einstellung zum Aktivieren des KeyMappers befand sich auf dem Gerät unter /sys/bus/platform/devices/singleadc-joypad/enable/. Die gemeinsamen Einstellungen befanden sich unter /data/user/0/com.ylm.game/, waren jedoch nicht zugänglich, da der Code aus Sicherheitsgründen bei Bedarf chmods ausführt.

L'impostazione per abilitare KeyMapper era presente sul dispositivo in /sys/bus/platform/devices/singleadc-joypad/enable/. Le impostazioni condivise erano in /data/user/0/com.ylm.game/, ma senza accesso, poiché il codice chmods quando necessario, per motivi di sicurezza.

And so, I was able to use Tasker to load my profiles automatically, upon launch, by setting the preferences.

Und so konnte ich Tasker verwenden, um meine Profile beim Start automatisch zu laden, indem ich die Einstellungen entsprechend konfigurierte.

E così, sono riuscito a utilizzare Tasker per caricare automaticamente i miei profili all'avvio, impostando le preferenze.