strukturart / bHacker-store-client

KaiOS
MIT License
38 stars 6 forks source link

Installation with OmniSD fails #16

Closed derhagen closed 4 years ago

derhagen commented 4 years ago

Hi there,

I know I'm supposed to install the store app manually, which works fine. But for convenience, it would be nice to be able to install it with OmniSD as well, which only shows "Installation error: InvalidPrivilegeLevel" when trying to install. Is this because OmniSD can't install "certified" apps, or could this be fixed easily?

strukturart commented 4 years ago

is your device rooted ?

derhagen commented 4 years ago

I use the temporary adb root with wallace lite when I need it. Otherwise, no.

strukturart commented 4 years ago

to test can you pls try to install this app with OmniSD: https://github.com/strukturart/osm-map/tree/master/build it is also a "certified" app.

derhagen commented 4 years ago

Same issue here. Tried installing with bHackers Store and OmniSD, didn't work for any.

strukturart commented 4 years ago

I think it will be difficult to find a solution for this as I use the following api to install apps: https://developer.mozilla.org/en-US/docs/Archive/Marketplace/API/App_installation_and_management_APIs#Management_API

derhagen commented 4 years ago

I see. What kind of root is expected to be present in order to install certified apps via bHackers Store or OmniSD? Is there something like SuperSU for KaiOS to manage apps with root access?

strukturart commented 4 years ago

I think with wallace lite + adb shell do you have temporarily full access to your device

derhagen commented 4 years ago

I have used this method to gain root access before. However, as far as I understood you previous posts, I thought I would have to give bHackers store and OmniSD root access to my phone, since they require privileged permissions. Does installing osm-map from bHackers store work on your device?

strukturart commented 4 years ago

yes it works on my device, but it is rooted. the store uses the same method of installing apps as omnsd. i have adapted osm-app: "type": "privileged" now you should be able to install without rooting your device. there is a second map app in the store: plastic map with this you can also use maps offline.

if you want to write apps yourself i would recommend rooting your device, then you have more options.

derhagen commented 4 years ago

If you consider having used wallace lite before to open an adb root shell as "being rooted", then my device is rooted, too. I just don't see how that affects the app and this issue, since it doesn't give any app any additional privileges, afaik.

strukturart commented 4 years ago

what happens when you try to install osm-app with omnisd ?

derhagen commented 4 years ago

As stated above, I get the same error in OmniSD. Just tried the new OSM app and plastic map, both installations fail with the same error, no matter if I try in OmniSD or bHackers store

strukturart commented 4 years ago

unfortunately I can't help you, have you already asked here ? https://discord.gg/TqTMkD

Simon-Laux commented 4 years ago

omnisd didn't work for me, too. I guess you need to change a value in the permission db for omnisd being able to install apps? I haven't tried it yet, but that manual gave me the idea that it could be the permission tables: https://sites.google.com/view/bananahackers/install-omnisd/omnisd-manual-install

Or maybe do I have to use omnisd to put my device in developer mode for it to work?

derhagen commented 4 years ago

Carefully re-reading the OmnisSD-instructions, this might be what I forgot: If everything is fine, press # when the utility is run and confirm the prompt to run the privileged factory reset.

Will try as soon as I'm home. Maybe that fixes the error in the store app as well.

derhagen commented 4 years ago

Enabling the Developer Menu with Wallace Toolbox without a factory reset did the trick for me