This test case stop when detect a app failure once a time, which cannot find out all app failure. Use StringBuilder to collect failure info of all apps first, if the StringBuilder is not empty then print all the failure info. Bug:145475188 Test: run cts -m CtsNetTestCases -t android.net.wifi.cts.WifiManagerTest#testNetworkSettingsPermission Change-Id: I0e49b65bbe7deca82edd1908dfb6f221551ff725 Signed-off-by: qianyou <qianyou@xiaomi.com> (cherry picked from commit dcb3a18cbf81f2970d6c3b23a478da5b4ba91805)