Pairing watches with Google Nexus 5 with stock firmware (Android KitKat) and other custom firmware based on AOSP 4.4.x
I spent some time and investigated why pairing my watch with my Google Nexus 5 doesn’t go as smoothly as my friend’s HTC One M8.
As far as I know, in the AOSP / Kit Kat 4.4.x-based systems has changed in the direction of tightening the policy of granting rights to the system level for the .apk-files. Now is not enough to put .apk-file system directory, it now should be in the directory / system / priv-app. Because of this, when an application tries to install / download additional packages (Approx. Per .: meaning the situation when the main application installer is not in the system folder) or they are not installed (quietly ignored) or output setup dialog box, in view of the that the application has permission prohibited INSTALL_PACKAGES and DELETE_PACKAGES. When I found В«SamsungAppsВ» the directory \ priv-app \, all additional downloadable packs (Samsung Billing, In App Purchasing and Push Service) established without problems. However, when these dependent .apk-files were established, they were placed by the installer in the directory / data / app is not a system, because this resolution signatureOrSystem was forbidden.
I hoped that if I moved the “Gear Manager’s” .apk file to / system / priv-app * before * the first launch of the application, this would allow it to install all dependent .apk files without problems. But as it turned out, only four or five dependent files are automatically installed, and on the rest, the installation can “loop” and never complete.
Summing up, I give my version of the pairing procedure:
- Download:
- Samsungservice2_K.apk(6.55 MB)
- N_SamsungApps_14040104.21.007.0_HHP_TW_newkey_0401.apk(16.74 MB)
- S-Voice_Android_phone.apk(25.67 MB)
- GearManagerStub.apk(948.78 KB)
- svoice-signed.apk(28.69 MB)
- We transfer N_SamsungApps_14040104.21.007.0_HHP_TW_newkey_0401.apk, svoice-signed.apk and GearManagerStub.apk to the / system / priv-app folder
- Change the attributes of copied files -rw-rw-r-- (664) or (644), group 0: root
- We transfer Samsungservice2_K.apk to the / System / priv-app folder and change the file attributes as in the previous paragraph
- Restart the phone
- Launch S Voice and agree and accept all license agreements (TOS)
- Go to the folder / system / priv-app and delete S Voice
- We transfer S-Voice_Android_phone.apk to the / system / priv-app folder and change the file attributes
- Restart the phone
- Open Settings>Accounts and sync and set up a Samsung account
- We launch S-Voice, it will fall right after launch - this is normal
- Launch the application store Samsung Apps
- Find and download Gear Manager
- Launch Gear Manager
- Run the pairing setting with the clock (it will end with an error, because no additional packages are installed).
- Manually install additional packages fromConnecting-Fix.zip(17.19 MB)
- ConnectionManager
- HostManager
- SAFTCore,
- SAFotoProicder,
- SAccessoryService,
- Gear2Plugin,
- goproviders,
- SANotiProvider,
- SANSyncProvider,
- saproviders,
- SAWeatherProvider (Do not install!),
- TextTemplateProvider
- Start the Gear Manager, set up the pairing with the clock, agree with the licenses
- We transfer the following applications to / system / priv-app (You can use the program "/ system / app mover", but you can do it manually):
- Gear manager
- Gear2plugin
- Samsung billing
- Hostmanager
The last four .apk files contain the permissions INSTALL_PACKAGES and DELETE_PACKAGES in their manifests and most likely should have permissions at the system level. Some of the other .apk files have "non third-party" permissions and may also require increased privileges, but I haven’t figured it out yet.
In the end, I have:
- Ability to install apps for Gear 2 from Samsung Apps
- Ability to delete applications without emergency closing Gear2Plugin
- The ability to pay for applications in Samsung Apps by credit card
I hope that in the new versions of Samsung Apps and Gear Manager, Samsung will correct the errors described above and all additional packages will be installed in the correct directories.
P.S. S-voice did not work for me.
The author of the material is: mpogr .
Original article is here