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

Commit cb3761cc authored by sandeepbandaru's avatar sandeepbandaru Committed by Sandeep Bandaru
Browse files

Remove permission check for resetTemporaryServices in system-server

Bug: 342548962
Change-Id: Ic43da26a50115a8d6340d33cc66d81a756aab1ee
parent 37740247
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -925,10 +925,11 @@ public class OnDeviceIntelligenceManagerService extends SystemService {
        }
    }

    @RequiresPermission(Manifest.permission.USE_ON_DEVICE_INTELLIGENCE)
    /**
     * Reset the temporary services set in CTS tests, this method is primarily used to only revert
     * the changes caused by CTS tests.
     */
    public void resetTemporaryServices() {
        mContext.enforceCallingPermission(
                Manifest.permission.USE_ON_DEVICE_INTELLIGENCE, TAG);
        synchronized (mLock) {
            if (mTemporaryHandler != null) {
                mTemporaryHandler.removeMessages(MSG_RESET_TEMPORARY_SERVICE);