Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Chrome with ADB

Tags:

android

adb

I used to able to launch Chrome using ADB like this:

adb shell am start -n com.android.chrome/com.android.chrome.Main

But now when I try it, I get:

Starting: Intent { cmp=com.android.chrome/.Main }
Error type 3
Error: Activity class {com.android.chrome/com.android.chrome.Main} does not exist.

It seems that the Main Class name has changed. If so, what's the new one?

like image 971
rmcc Avatar asked Jan 26 '15 13:01

rmcc


People also ask

How do I add ADB to Chrome?

AdBlock for Chrome works automatically. Just click "Add to Chrome," then visit your favorite website and see the ads disappear! Choose to continue seeing unobtrusive ads, whitelist your favorite sites, or block all ads by default.

How do I browse files with ADB?

Open cmd type adb shell then press enter. Type ls to view files list. At the DOS prompt, adb shell ls -R > junk lists all files and puts results into file junk which you can then edit via Notepad or whatever and see more than you'd want to, but your files, too!


1 Answers

Adb command for this

adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main
like image 77
Murtaza Khursheed Hussain Avatar answered Sep 20 '22 15:09

Murtaza Khursheed Hussain