--ios7
local tempPath=txt_path.."path7.txt";
os.execute(string.format("ls /var/mobile/Applications/ > %s",tempPath));
local tempArray = ReadLines(tempPath);
for i=1,#tempArray,1 do
local temoArea = ReadLines("/var/mobile/Applications/"..tempArray[i].."/Library/Preferences/com.siamgame.en.qjmu.plist")
if #temoArea > 0 then
fileWrite(txt_path,"path7.txt",tempArray[i],"w")
end
end
--ios8
local tempPath=txt_path.."path8.txt";
os.execute(string.format("ls /var/mobile/Containers/Data/Application/ > %s",tempPath));
local tempArray = ReadLines(tempPath);
for i=1,#tempArray,1 do
local temoArea = ReadLines("/var/mobile/Containers/Data/Application/"..tempArray[i].."/Library/Preferences/com.siamgame.en.qjmu.plist")
if #temoArea > 0 then
fileWrite(txt_path,"path8.txt",tempArray[i],"w")
end
end
LS命令是重点
本文详细介绍了一种在iOS7和iOS8系统中通过使用LS命令读取特定应用数据的方法,包括从不同路径查找并读取com.siamgame.en.qjmu.plist文件,展示了如何遍历应用程序目录并检查其偏好设置。
1万+

被折叠的 条评论
为什么被折叠?



