Hi, I am trying to call an api selinux_android_setfilecon2(pkgdir, pkgname, seinfo, uid) to relabel files for all the packages present on my device.
After boot i fetch no of apps installed on device in SystemServer.java. Call a method of PackagmanagerService through AIDL interface. This method in PackagmanagerService calls a method in Installer.java which I have written, that is defined in frameworks/base/cmds/installd/command.c (following same calling mechanism as followed by mInstaller.install(packageName, uid, uid, seinfo) when a new app is installed). My problem is this, that when install method calls selinux_android_setfilecon2, it relabels successfully, but when I do it from my method selinux_android_setfilecon2 returns -1 and my files are not re-labeled. I also tried in permissive mode, so that proves that I am not being stopped by MAC. But even DAC shouldn't stop me as already this files calls setfilecon2 api successfully. Can you please help me over this, that how can I call this api ? Thanks Pankaj Kushwaha
_______________________________________________ Seandroid-list mailing list [email protected] To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].
