Sony Smartwatch 2 compatibility with Miui from the introduction of all-in-one "security" app


Sep 29, 2013
9
0
11
#1
Hello!
i can't understand why from 3.11.29 version when i install an app for my sony smartwatch 2 from the play store, the app is not shown in the "installed applications" list in the smartwatch 2 app. to make my watch useful i had to revert my mi2s to 3.11.1 miui, install all smartwatch's stuff (that worked) and then update to 4.1.10 miui. but now i cannot add any other smartwatch app in the list! i think that is a problem of the new "security" app in miui, that contains also "permissions": when i installed for example "call handling for smartwatch 2", the system (3.11.1) asked me the permissions to use calls, instead in 4.1.10 there's not any message by the system about it. also if i disable permissions or just trust the app nothing happens.

sorry for the long post, but do u have any idea?
 
Jun 1, 2014
79
14
18
#4
I tracked this down. The problem is in android.test.IsolatedContext class located in /system/framework/
android.test.runner.jar file. The change which is causing it came with MIUI 3.11.29 update (prior to 3.11.29 all was working fine). I'm not an android developer and I could not manage to get appropriate source code to make a fix but the following error message will shed a light on this:

Code:
Could not find class 'android.test.IsolatedContext', referenced from method com.sonyericsson.extras.liveware.db.ExperienceDatabaseHelper.onUpgrade.
 
Oct 26, 2013
648
217
80
#5
I tracked this down. The problem is in android.test.IsolatedContext class located in /system/framework/
android.test.runner.jar file. The change which is causing it came with MIUI 3.11.29 update (prior to 3.11.29 all was working fine). I'm not an android developer and I could not manage to get appropriate source code to make a fix but the following error message will shed a light on this:

Code:
Could not find class 'android.test.IsolatedContext', referenced from method com.sonyericsson.extras.liveware.db.ExperienceDatabaseHelper.onUpgrade.
Great,now I cant return to MIUI,tnx for posting this info.

P.S. Did you ever experience sudden disconnects when putting phone into sleep,this can only be fixed by wiping watch data but im on CM11.

Sent from my MI 2 using Tapatalk
 
Last edited:
Jun 1, 2014
79
14
18
#8
I don't think they are gonna fix it in MIUIv5, maybe something can change in MIUIv6 but I'm sure it is possible to make a patch via Xposed (WSM Tools).
Is there any app developer willing to do that?
 
Sep 19, 2013
390
82
52
#9
I don't think anyone would fix it and it's MEGA annoying. MIUI on other phones actually works. It's the MI2 that is problematic, even MI3 has a workaround... Perhaps it's somehow android base related? It's one of the main reasons I'm running a custom ROM now.
 
Jun 1, 2014
79
14
18
#12
DEPRECATED SOLUTION - see my post below (http://xiaomi.eu/community/threads/...of-all-in-one-security-app.23372/#post-224108)

I was not able to convert Sony extensions with Titanium backup (don't have paid version) but tried to convert it manually - dint work. BUT that idea point me to play with extensions (until now I was playing only with Smartwatch app).

How to resolve the problem:
1) Install WSM Tools or Xposed
2) Install & activate "App Settings" module
3) Open "App Settings" app
4) Search for each of Smartwatch extensions in this app, turn overriding/settings On (no changing of any options is required)
5) Click Permissions button (at the bottom of the screen), turn On overriding
6) Click Ok.
7) Click Save.
8) DONE.

This workaround will survive MIUI updates and does not required to convert user app to system app.

Enjoy :)

P.S. Please submit it to http://en.miui.com/forum.php?mod=viewthread&tid=16822 because I don't have an account there.
 
Last edited:
Jun 1, 2014
79
14
18
#14
Of course tried (that what I meant by doing it "manually") but it didn't work. My workaround is better as it does not eat more and more space from system partition.
 
Jun 1, 2014
79
14
18
#16
I think I found a way how to make it work without Titanium backup and WSM Tools.

All you need to do with each of newly installed Smartwatch plugin is the following (by using some root explorer like ES Explorer):

1) move the apk from /data/app/ to /system/app/
2) Restart.
3) Open-up Smartwatch App (the plugin will not appear in Smartwatch app but keep going)
4) move the apk back from /system/app/ to /data/app/
5) Restart.
6) Done.

Should work for any MIUI device.
 
Sep 19, 2013
390
82
52
#17
I think I found a way how to make it work without Titanium backup and WSM Tools.

All you need to do with each of newly installed Smartwatch plugin is the following (by using some root explorer like ES Explorer):

1) move the apk from /data/app/ to /system/app/
2) Restart.
3) Open-up Smartwatch App (the plugin will not appear in Smartwatch app but keep going)
4) move the apk back from /system/app/ to /data/app/
5) Restart.
6) Done.

Should work for any MIUI device.
@topmiuier thanx man... It f***ing works... Finally... :) :) :)
 
Sep 5, 2014
9
0
11
#18
DEPRECATED SOLUTION - see my post below (http://xiaomi.eu/community/threads/...of-all-in-one-security-app.23372/#post-224108)

I was not able to convert Sony extensions with Titanium backup (don't have paid version) but tried to convert it manually - dint work. BUT that idea point me to play with extensions (until now I was playing only with Smartwatch app).

How to resolve the problem:
1) Install WSM Tools or Xposed
2) Install & activate "App Settings" module
3) Open "App Settings" app
4) Search for each of Smartwatch extensions in this app, turn overriding/settings On (no changing of any options is required)
5) Click Permissions button (at the bottom of the screen), turn On overriding
6) Click Ok.
7) Click Save.
8) DONE.

This workaround will survive MIUI updates and does not required to convert user app to system app.

Enjoy :)

P.S. Please submit it to http://en.miui.com/forum.php?mod=viewthread&tid=16822 because I don't have an account there.
Does this method also requires rooting the device?
And where to download this "WSM Tools or Xposed" please?
 
Sep 5, 2014
9
0
11
#22
This is deprecated method so don't use it. All methods require root but MIUI comes rooted by default.
Thanks for the reply.

So how about this "without Titanium backup and WSM tools method"?


I think I found a way how to make it work without Titanium backup and WSM Tools.

All you need to do with each of newly installed Smartwatch plugin is the following (by using some root explorer like ES Explorer):

1) move the apk from /data/app/ to /system/app/
2) Restart.
3) Open-up Smartwatch App (the plugin will not appear in Smartwatch app but keep going)
4) move the apk back from /system/app/ to /data/app/
5) Restart.
6) Done.

Should work for any MIUI device.​

BTW, as I tried on my Mi3, it seems that Titanium backup or ROM toolbox did not work. (see attached screenshot).
What do you mean by "MIUI comes rooted by default"?

Sorry about so many question
s.
 

Attachments