Chandrashekhar Swami
Chandrashekhar Swami

Reputation: 1790

How to extract files from rar file in Android by command line tool

As title says, I need to extract files from .rar file and save it on device storage. There are third party tools which supports this. But I was wondering is there any adb /appium /android utility command which provides this functionality ?

Upvotes: 0

Views: 2755

Answers (2)

Joshua Poling
Joshua Poling

Reputation: 571

I would install busybox on your device. This will give you all the commands needed to allow for unzipping the files on your phone. Just disable auto update if you are worried about the application updating.

Upvotes: 0

aitch-hat
aitch-hat

Reputation: 303

There's no way to do this without using a third party tool or app. See the Android Developer reference for ADB.

If use of third party tools is not out of the question for you (you refer to Appium, after all), and you just want to be able to extract the .rar file from the command line, you might try installing an app which can extract .rar files (there are many) and access the correct activity from the command line using the activity manager. You can view the activities available to you for a given APK using the Android Asset Packaging Tool and this command:

aapt dump xmltree <path to APK> AndroidManifest.xml

Upvotes: 1

Related Questions