Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info Android auto #66

Open
fcaronte opened this issue Nov 10, 2024 · 7 comments
Open

Info Android auto #66

fcaronte opened this issue Nov 10, 2024 · 7 comments

Comments

@fcaronte
Copy link

I guys, I'm trying this app and seem very interesting. What do you know about the "NOT_UNKNONW_SOURCE" flag during apk install? I ask this because I was working on kinginstaller an app needed to install unofficial apk "as PlayStore" to be shown in android auto for example to have YouTube app and kinginstaller install the apk using the com.android.vending as can I do with your app but it add this unknown flag that, as I test, stop to work from android 14 and so from A14 we can't find a way to have back custom app on android auto. If this app was installed on A13 using kinginstaller, then continue to work on A14 too but as I can see the Google package installer get modification from A13 to A14 and I wasn't able to find new way to set this not unknown flag. Maybe you have more experience on that thing and can give an help to find on new version? Thank a lot for your work I put the link on actual way used from kinginstaller to understand better what I talk about.

https://github.com/fcaronte/KingInstaller/blob/master/app/src/main/java/com/example/kinginstaller/MainActivity.java#L305

@zacharee
Copy link
Owner

It doesn't seem like this extra actually does anything to the installed package state on Android 14 and later. It just seems to tell the installer to try avoiding prompting the user. I added a couple more things that might help that will be available in the next version, but Android 14 has really restricted what even ADB is allowed to do when installing packages.

@fcaronte
Copy link
Author

Ok thanks I'll give a try, yesterday I was try to update code to use package installer instead of intent to install apk but I'm not able to make it working I'm not expert with coding but yes now is more then one year A14 is out and android auto app are locked and probably if a way was existing someone would have found it.

Using package installer I was try to use that PACKAGE_SOURCE_STORE I see here

https://developer.android.com/reference/android/content/pm/PackageInstaller![Screenshot_20241111_064004_Chrome.jpg](https://github.com/user-attachments/assets/9067cc6c-30ff-4efa-b51f-1c76104adfeb)

@fcaronte
Copy link
Author

Edit ok I see is what you add so I will try with your app 💪🏻

@fcaronte
Copy link
Author

It doesn't seem like this extra actually does anything to the installed package state on Android 14 and later. It just seems to tell the installer to try avoiding prompting the user. I added a couple more things that might help that will be available in the next version, but Android 14 has really restricted what even ADB is allowed to do when installing packages.

Hi, today I try to compile and install from source your app to try last commit but I get this error when try to install an apk. Actually I'm not near pc to try check log is for you work with last commit?Screenshot_20241112_184630_Install with Options.jpg

@drogga
Copy link

drogga commented Nov 13, 2024

Can it because and can you try without f983e12 and how or with what you've build it (you mention that you are not near a PC) ?
Would've been nice (if possible with this app/repo) to have Actions workflow setup to DL and try to pinpoint such issues from which commit they might've come.

It looks like (by the screenshot) the app needs an independent from the system language selector/picker in the settings, so someone can set it to English, while their system language is different and avoid (when available) the app to be as the system lang., like in the case above.

@fcaronte
Copy link
Author

Can it because and can you try without f983e12 and how or with what you've build it (you mention that you are not near a PC) ?
Would've been nice (if possible with this app/repo) to have Actions workflow setup to DL and try to pinpoint such issues from which commit they might've come.

It looks like (by the screenshot) the app needs an independent from the system language selector/picker in the settings, so someone can set it to English, while their system language is different and avoid (when available) the app to be as the system lang., like in the case above.

The is that I compiled only because I need to try this commit, and for the "far from pc" I mean I compile from pc but using anydesk on my phone so I was able to do only simple step to add git and make the apk

@fcaronte
Copy link
Author

I try last update and apk install is fixed but unfortunately won't help to unlock android auto apk. Thanks for the test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants