Skip to main content Link Search Menu Expand Document (external link)

Android

Useful software packages

Remote control from PC using scrpy

Useful keyboard shortcuts:

Keys Usage
ctrl + mouse Pinch to zoom
mod + r Rotate screen

Proper maps/cartography with OsmAnd

  • Use the version on F-Droid for all features
  • Store data in /Android/media/* to access it outside the app - like for recorder tracks
  • Regarding the Online Maps plugin
    • Some additional packs can be added directly as URL, such as Thunderforest
    • A lot of additional map packs can be found on AnyGIS
    • How to install IGN France SCAN maps:

Create work profile with Island

  • Just install it from the Play Store and set it up!
  • To share file between mainland and island:
    • In Material Files
      1. Create a new external connection
      2. Select a Work folder
    • This will give a read-only access, but this can be done in both lands

Magisk

Install via direct sideload

  1. Download the latest release
  2. On device: Install the APK then reboot to recovery
  3. On PC: rename the *.apk to *.zip, and sideload it

Remove all installed modules (may fix bootloop)

  1. Install Magisk
  2. Reboot
  3. adb wait-for-device shell magisk –remove-modules while booting

List of great Magisk modules

Android Debug Bridge

  • Activate Developer Mode: In Settings → About device → Software info and tap on Build number
  • Use ADB as root: adb root
  • If you want to filter out logcat: adb shell, then logcat | grep XYZ

Shell commands

  • Disable one application pm disable org.packagename
  • As root, switch from one SIM to the next with 2 being the SIM to be switched to:

      settings put global multi_sim_data_call 2
      settings put global config_current_primary_sub 2 simdata
      am broadcast -a android.intent.action.ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED
    

Use it via WLAN

If it doesn’t work, try in admin

adb tcpip 5555
adb connect 192.168.43.1:5555

Android Auto

Allow non-Play store app on Android Auto

Useful to use OsmAnd~ with Android Auto!

  1. The above will delete app data, so backup first!
  2. Clear storage of Android Auto
  3. Install AA-Tweaker
  4. Go to AA-Tweaker, select the wished app and tap “Patch custom apps”
  5. Reboot
  6. Go to the Android Auto settings → Customize Launcher to see if the app appear

Desktop Head Unit

DHU is an Android Auto head unit emulator.

  1. Install
    1. Install Android Studio Beta
    2. In Tools → SDK Manager, go to tab SDK Tools and install “Android Auto Desktop Head Unit Emulator”
  2. Find the DHU executable
    1. In the same window, copy the Android SDK Location and open it
    2. Navigate to SDK_LOCATION/extras/google/auto/
  3. Connect with ADB Tunneling - Source
    1. Set developer mode on Android Auto
    2. In the overflow menu, select Start HDU Server
    3. Redirect the port adb forward tcp:5277 tcp:5277
    4. Launch the DHU Server desktop-head-unit.exe

Reverse engineering

Decompiling APK

This blog post has some good suggestions.

  • JADX Dex to Java decompiler