will remove any of the characters in the set .apk from the right side of the string. For example, if target_apk is my_app_apk.apk, then target_apk_unpacked will end up as just my_app_. To remove only the extension from the target_apk path, do this instead:
The existing code:
will remove any of the characters in the set
.apk
from the right side of the string. For example, iftarget_apk
ismy_app_apk.apk
, thentarget_apk_unpacked
will end up as justmy_app_
. To remove only the extension from thetarget_apk
path, do this instead: