Đã hoàn thành

Android ADB bash Script

I am looking to create a simple script that allows me to uninstall and reinstall an application on many devices connected to a hub.

This should be a quick easy task for anyone who understands the language.

Some of the devices have the application installed as a system app and others are not. This requires a check and uninstall based on its location. Once uninstalled the new version which is a different signing needs to be installed.

Below I included the code I started working on and got stuck.

while read sn device; do

adb -s "$sn" root

adb -s "$sn" shell

file="/system/app/ourcompany-gallery"

if [ -f "$file" ]

then

rm -rf ourcompany-gallery

else

exit

adb -s "$sn" uninstall [login to view URL]

fi

adb -s "$sn" install E:\[login to view URL]

adb -s "$sn" shell reboot

done < <(adb devices | sed '1d')

Kĩ năng: Android, Mobile App Development, Linux, Kiến trúc phần mềm

Xem nhiều hơn: best bash script, unix ftp bash script, mutt bash script, common bash script admin task, bash script set proxy, sendmail bash script, unit testing bash script, bash script website clicks, bash script query mysql database, bash script login webiste, file parsing bash script, parse using bash script find average, bash script check web page, bash script find ftp folder existing, steps writing bash script, bash script send email attachment, write mail bash script, mysql linux bash script

Về Bên Thuê:
( 28 nhận xét ) Mosinee, United States

ID dự án: #22598527

Được trao cho:

mynameisajay

i can do this in 30 min ........................................................................................................................................................................................

$15 USD trong 1 ngày
(53 Đánh Giá)
5.4

3 freelancer đang chào giá trung bình $22 cho công việc này

solutionHDM

Hi I have the experience of 5 + Years in my job related field of Android/IOS App development. According to your job post requirements I am totally relating towards what you need , I am sure that I will meet your requir Thêm

$30 USD trong 2 ngày
(3 Nhận xét)
2.9
adilrathore12345

Hi, I have 6 years of experienced on versatile application (Android +Web Admin Panel) and App administrator with improvement web administrations where administrator can deal with the application from backend, I have b Thêm

$20 USD trong 7 ngày
(0 Nhận xét)
0.0