1

I have the below Details:

list =[' otpackagename1','packagename2','packagename3'...]

I need to excecute the command as below.

os.system('adb install packagename1') till the list value n

please help me in this

1 Answer 1

1

This is pretty easy. Just use a loop!

for x in list:
     os.system("adb install " + x)

That's it!

Also, for this to work, you need adb to be added to your PATH variable. For information regarding how to do it, see here.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.