4 ms·
I really love adb. It's so damn useful. You can even reroute ports through a VPN running on the phone. It's like a swiss army knife. And I'm not even an android
by wkat4242 3y ago
I really love adb. It's so damn useful. You can even reroute ports through a VPN running on the phone. It's like a swiss army knife. And I'm not even an android developer lol
It's one of the biggest reasons I prefer android. That and the work profile that allows me to compartmentalise all work stuff and other privacy invading shit without needing a second phone.
- dotancohen 3y agoTell us more about this work profile. Is this on all Android phones?
- vetinari 3y agoIt should be nowadays; but to provision it, you need MDM. https://www.android.com/enterprise/work-profile/ https://www.android.com/enterprise/work-profile/
- lern_too_spel 3y agoNot necessarily. https://github.com/googlesamples/android-testdpc https://github.com/googlesamples/android-testdpc https://gitea.angry.im/PeterCxy/Shelter https://gitea.angry.im/PeterCxy/Shelter https://secure-system.gitlab.io/Insular/ https://secure-system.gitlab.io/Insular/
- vetinari 3y agoNice, thanks!
- wkat4242 3y agoNo you don't! You can just use the island (or insular) app to leverage it for your own purposes
- rsaxvc 3y agoUse island! It implements the MDM functions with an app you manage!
- mmh0000 3y agohttps://source.android.com/docs/devices/admin/multi-user https://source.android.com/docs/devices/admin/multi-user https://sensepost.com/blog/2020/multiple-android-user-profiles/ https://sensepost.com/blog/2020/multiple-android-user-profil...
- wkat4242 3y agoIt is yes. It's a separate profile which is open at the same time as the regular profile (unlike the multi user function of Android where only one is open at the same time) It separates your app list and files into two sections, work and personal. The work apps get a briefcase overlay icon. I use it to separate my work apps and to shield privacy invading apps from my main profile. You can use the insular or island apps to invoke it on pretty much any phone. Even AOSP has it. MDM can also invoke it, which is what it's intended for. It also allows you to turn off the whole work profile with one button. Great if you do use it for work and you want to have a quiet weekend. The benefit for your employer is that it stops you from copying work data to private apps. If you do use it for work it stops your employer from seeing your personal side like what apps you have installed. This can be pretty privacy invasive. For example if you have tinder or Grindr installed. I work in MDM management and on apple I can see this. On Android when work profile is used I can't.
- jmgao 3y agoI wish that the people that wrote it at the beginning of Android had left it as a socket multiplexer over USB and delegated to ssh for everything else. adb started out extremely barebones, but it grew to reimplement basically all of ssh.
- wkat4242 3y agoWell out of the box Android doesn't even come with an SSH daemon. I run one sometimes through termux but it's not standard. And some of the functionality it offers doesn't really have an SSH equivalent, like the install command.
- fabiensanglard 3y agoHaha. I read the comment and wondered "How does this guy knows so much about ad....". Oh. Its Josh!
- sand500 3y agoEven funnier is during the pandemic, we got adb over ssh so our desktops in the office could still connect to devices at our house.
- wkat4242 3y agoHah I did the opposite. I set up an OpenSmartphoneTestFarm (openSTF) instance at the office so people working from home could fully control smartphones inside the office to debug wifi issues. Because some countries had lockdowns at different times, so it could be that production users could work in the office but some of our support people couldn't. This way they could still test things inside the actual office. And we didn't have to supply our support people with tons of testing phones. Only issue was that it never supported iOS but we use mainly Android anyway for corporate phones, because dual-use (work/private) is a lot better on android. Only in the US they demanded to have iPhones and we outsource the support there. It worked pretty well actually. https://openstf.io/ https://openstf.io/ But they dropped support on it and moved to another product (device farmer) which never seems to have materialised at all. I don't know what happened to it but we just kept running openstf until the end of the pandemic. It worked fine anyway. But it's too bad it seems to be completely gone as it was actually a great piece of software. A bit overly complex to set up with tons of different docker containers for each part of the service, it was clearly meant for huge distributed installs, which we didn't really need.
- mycall 3y agoadb is indeed useful. I can use adb inside a HyperV Win11 guest OS and have it communicate to my Host Win11's Windows Subsystem for Android and run test android apps in the host OS. I like this approach as it doesn't pollute my host OS with development tools, while using Microsoft WSA for simplicity. All I need to do is some virtual networking fu via 'netsh interface portproxy' inside both guest OS and host OS.