oasisfeng / island

Island for Android
https://play.google.com/store/apps/details?id=com.oasisfeng.island
Apache License 2.0
2.63k stars 201 forks source link

Adb stalled when I running the "pm install -r --user <user id> <path>" #80

Open Xaiver97 opened 4 years ago

Xaiver97 commented 4 years ago

Dear Developer, My device is Samsung Galaxy S10+ which based on android 10 without root permission.

When I launched the Island first time, it hinted me "Sorry , the required "Android for Work" feature may not be fully supported on your device. For advanced user: This limitation could also be circumvented with one-time manual setup via USB-connected PC."

So I followed the website and tried to take the steps you provided. When I take the third step "pm install -r --user ", The terminal stalled and gave me no feedback , and I can't run any more command.

I have no idea what happened and looking forward to your help. Thanks a lot.

QQ截图20200330154606

JohnDoe-JohnDoe commented 4 years ago

Hi, I have a similar problem on a Sony Xperia Z3 compact. Did you get yours working? I found the solution on https://forum.xda-developers.com/android/apps-games/closed-beta-test-incoming-companion-app-t3366295

For me I needed to use slightly different commands. First of all I had to undo the creation of a work profile, on the phone go to settings, accounts, remove work profile. Then back to the ADB shell and enter these (replacing with the number generated by first command): pm create-user --profileOf 0 --managed Island pm install -r /data/app/com.oasisfeng.island-1/base.apk dpm set-profile-owner --user com.oasisfeng.island/.IslandDeviceAdminReceiver am start-user

I noticed that my user id had increased, the first time (which failed like yours) it was 11, now it's 12. Don't think that's a problem.

Hope this helps JD

Xaiver97 commented 4 years ago

Dear JohnDoe, Thanks a lot! For the way you provided to solve this problem. After lots of failure, Finally I succeed to active the Island. Here I will share my experience. island Succeed

Sincerely gratitude to JD again!

ghost commented 3 years ago

Thank you so much, thought I have to remove myself or other secondary accounts. But no, it actually means that remove your google account and something similar. (I had seen that Device protections no longer work. Oh, and I haven’t thought about this in the original page. Weird)

ssktowtw commented 11 months ago

pm install-existing --user <user id> com.oasisfeng.island no use pm install -r /data/app/com.oasisfeng.island-1/base.apk use this

successfully