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

Why it is excluding own pacakage name from Filter VPN? #13

Open
Saeed118 opened this issue Mar 26, 2021 · 0 comments
Open

Why it is excluding own pacakage name from Filter VPN? #13

Saeed118 opened this issue Mar 26, 2021 · 0 comments

Comments

@Saeed118
Copy link

for (final PackageInfo pi : installedPackages) {
if (isCancelled()) continue;
// exclude self package
if (pi.packageName.equals(MyApplication.getInstance().getPackageName())) {
continue;
}
boolean checked = packageFragment.mAllPackageInfoMap.containsKey(pi.packageName) ? packageFragment.mAllPackageInfoMap.get(pi.packageName) : false;
installedPackageMap.put(pi.packageName, checked);
}

I saw this code from SettingsActivity.
As you see, my application package is excluding...
I wanna include own application package, too because I want to integrate this tun proxy app to another app.
I checked C Code. It was using the Pipe communication.
Do you have any solution? or it is not possible?
I hope you let me know. thanks

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

1 participant