Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2eca414f authored by fionaxu's avatar fionaxu
Browse files

sms app is able to control alert message

By changing the name of the application to include HTML characters, it
is possible to manipulate the warning message shown to the user when the
application then tries to send a premium rate SMS message.

Bug: 28557603
Change-Id: I4d43ca12f4ca3c1b00f9628a7301b63690379faf
parent ab8dde0e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1102,7 +1102,7 @@ public abstract class SMSDispatcher extends Handler {
        PackageManager pm = mContext.getPackageManager();
        try {
            ApplicationInfo appInfo = pm.getApplicationInfo(appPackage, 0);
            return appInfo.loadLabel(pm);
            return appInfo.loadSafeLabel(pm);
        } catch (PackageManager.NameNotFoundException e) {
            Rlog.e(TAG, "PackageManager Name Not Found for package " + appPackage);
            return appPackage;  // fall back to package name if we can't get app label