Regarding Android Auto to work on Kosher ROMs

Didn’t want to use the root app, so I put the xml in /data/system/ifw and applied correct permissions and ownership.

Didn’t not work, and I assumed selinux was the issue.

Soooo, since I was lazy, I asked chatgpt to create a stupid simple magisk module with that xml list for testing.

Result:

MapsIFWBlocker.zip (12.3 KB)

It works. I’m on Android 16, but apparently this has been around since 4.4.2. Like I said, launcher icon and settings appearance does not go away, but you can probably approach that from a different angle (removing icon or custom launcher for home screen, settings I have no idea).

Lol
Me every day :see_no_evil_monkey:

Funnily enough, even after I removed the module, the rules still stayed applied.

I had to manually delete it from /data/system/ifw

I think this is a good thing

Based on what I read about ifw (10 min max), this is a perfect use case. How’d you come across this?

Which Android version? And did you run that command like I wrote it or with --user 0?

@TripleU @ys770 @KosherFlipper

After flashing the module, maps is disabled on the phone but still working on DHU

If I do pm disable or pm disable-user, AA does not have maps

If I do pm suspend, AA has maps, and maps icon is greyed out

pm hide does not allow AA to start. Tries installing maps, then fail.

You think maybe the user on the fig phone is not user 0?

Wow, didn’t think of that. Maybe it’s not the owner…

Maybe the default user (the one the consumer uses) on fig is a newly created one, like a managed profile.

I confirmed that (at least on my phone) Android auto is not running as a separate user, it runs as user 0.

Best I can seem to do is use IFW and pm suspend. App still in launcher (greyed) and settings but absolutely not launchable.

How about creating a new user and making it default, and disabling user switching. Leave maps only in user 0, and keep the consumer in alternate user. Maps shows in AA but no icon or settings for alternate user.

.rc to switch to alternate user on boot.

Got a managed profile working without showing “work profile” but now I have two sets of apps on the home screen :grin:

Qin f21 pro

They are building the firmware. They do not need shtick like pm disable etc to block you from opening. They can modify the framework to never allow launching of activities from Maps unless it’s in AA and modify settings launcher etc to not show it

Yeah makes sense

I got a new working on boot (user 10) and doesn’t look any different than normal (aside from the fact that I had to use a different launcher, the normal one wouldn’t start)

AA opens from user 0 shows all apps, but they are not functioning properly

Settings shows apps for user 0 and user 10 but…

I’m shutting this idea down, too many issues

Confirming that this does not remove from settings, just greys it out on the qin f21 pro. Can’t reenable from app info though.

Also, android auto launches, but nothing is working. IFW is a better solution.

Ifw would keep it in the launcher? Or remove it from there as well? I don’t think it’s much of a big deal if it’s in settings but can’t be enabaled

yes ifw will keep it in the launcher, but you can’t open it

Try it out

Will try later today

Would this work i modified the manifest set everything to android:exported=false except anything that had car in the activity messed up the launcher activity renamed the app switched the icon to make it blend in in the app drawer and it doesn’t launch even when called by other apps. can someone please test it i don’t have a car? Maps for AA by anonymousfliphones

Use dhu
Headunit emulator

Don’t have a computer either

I’ll try it

Great try, but AA won’t start

Could it be signatures?