ax / apk.sh

apk.sh makes reverse engineering Android apps easier, automating some repetitive tasks like pulling, decoding, rebuilding and patching an APK.
GNU General Public License v3.0
3.34k stars 189 forks source link

Add support for adb.exe in WSL2 #11

Closed antoinet closed 1 year ago

antoinet commented 1 year ago

Since USB support is not featured out of the box in WSL2, a possible workaround is to run the adb.exe windows executable from WSL2. However, adb.exe will output Windows-style line endings (CR/LF), which are not handled by the shell script. I added a little sed substitution to get rid of CR without side-effects on Linux.

Feel free to reject the PR if it's too specific to WSL2.

ax commented 1 year ago

Cool. Thanks!