oasisfeng / island

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

Cloning and Play Store installs are stuck on pending, + bug with manual install #364

Open jastx-jasmint opened 2 years ago

jastx-jasmint commented 2 years ago

Hi, I use a Xiaomi 12 (Android 12, region locked to China in case it is relevant - I don't plan to flash a global ROM unless I'm forced to), and have run into this issue for the second time. First, I will talk about the issue with manual installation that I ran into.

After cloning apps randomly stopped working the first time, I went ahead and destroyed the island/work profile, uninstalled and did a manual install. Something to note, after reinstalling Island without deleting the island, when cloning apps it would say the island is most likely deactivated, and be stuck on pending. At some point, I also ran into a bug where Island thought it didn't have permissions to install from unknown sources, hence why I attempted a manual install. The manual installation process was fine, but afterwards, work apps wouldn't show in recent apps despite running. This meant that I couldn't hop between work apps or close them one-by-one since they would just "merge" into any personal app if it was open, or flat out would disappear from the list if no personal apps were open. I hope that makes sense ^^; After that incident, I destroyed the island again and reinstalled from the Play Store as per usual.

Now to talk about the forever pending issue. I made sure that work Island and personal Island both have permissions to install apps from unknown sources, as well as Google Play and Google Play services, just in case. Despite these permissions, cloning still gets stuck on pending when it was working fine a few hours beforehand with unknown source installs enabled for both Island apps. I've tried retoggling the permissions, repairing the island and clearing caches to no avail. MIUI optimisation was also disabled when I was attempting to clone apps but the problem still stuck.

The main issue is that the popup to install the app never appears when the forever pending issue happens. To make things worse, installing through the Play Store in the work environment has never worked either, so I can't work my way around not being able to clone, because just like cloning, it gets stuck on pending forever. Any help is appreciated - this phone itself has kept me so perplexed in just the 1 week I've had it for so far, and while those problems are okay because I'm a bit of an avid problem solver, the issue with Island is not so great :(

jastx-jasmint commented 2 years ago

Also, tried restarting the phone just in case the fix was that easy... of course it wasn't, thing's still busted :(

jastx-jasmint commented 2 years ago

Another update sorry, thankfully this is a good one. I reinstalled Google Play (64-bit) through Android Studio, and now installing through the Play Store works. However, Island still gets stuck on pending when attempting to clone.

Zack12357 commented 2 years ago

咱俩手机一模一样,但是我的正常

jastx-jasmint commented 2 years ago

很此怪呢 o_o;;

jastx-jasmint commented 2 years ago

Ahh sorry I marked as complete by accident, it is still ongoing ^^;

Zack12357 commented 2 years ago

@eva-ko 你的小米12已经root了吗?

jastx-jasmint commented 2 years ago

@Zack12357 沒有搞root ^^; 你的电话有沒有root了吗?

Zack12357 commented 2 years ago

@eva-ko 我也没有root

wh201906 commented 2 years ago

@eva-ko Hi. I'm using Island v6.0.5 on MIUI. These steps work for me.

  1. Turn off MIUI optimization
  2. Close work profile in Settings->Acconts & sync->Work profile settings->Work profile(设置->账号与同步->工作资料设置->工作资料)
  3. Open Island from personal profile, go to Settings->Scoped Settings->Island, Click Turn on to open the work profile.
  4. In the Island settings of work profile, Click Repair
  5. Clone the app. You need to wait for seconds to se the popup window of installation.

总结下来就是关掉MIUI优化,重启工作资料,然后在炼妖壶设置里面修缮壶中界,然后再尝试克隆 https://github.com/oasisfeng/island/issues/360

jastx-jasmint commented 1 year ago

Hi @wh201906 , sorry for the late response, for some reason I didn't get notified that you responded. Unfortunately, even after following your steps and waiting for a while when attempting to clone, it still doesn't work. Nothing pops up for me to confirm the install. I've tried to clone apps via the Play Store and without it via the button that appears when it asks initially where to clone, but nothing happens and it's stuck on pending just like before. :(

Also, I recently encountered another problem that relates to lack of permission to install from an APK file within the work profile, and it may be related. However, it might also just be a separate issue altogether so :/ Just checked my Island version as well, and I'm on 6.0.5 just like the user in the thread you linked. This is quite frustrating but it's good that I managed to get the Play Store working :')

wh201906 commented 1 year ago

@jastx-jasmint Recently I found a new way to install the apk in the island. You can try this adb command.

adb install --user x <somewhere>/app.apk

the x is the user id of the island. You can get it by this adb command

adb shell pm list users

Using adb requires a PC(or Termux on another Android device), but it's convenient compared with the steps on the phone.

jastx-jasmint commented 1 year ago

@wh201906 Oh awesome, just tried it out and I successfully installed an app. Many thanks! :D But yeah, if I'm on the go without my pc, it's a tad inconvenient haha ^^;