Skip to content

Commit

Permalink
add ksu kmi verify
Browse files Browse the repository at this point in the history
  • Loading branch information
13584452567 committed Jul 24, 2024
1 parent 8c42a58 commit ec2478e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
12 changes: 6 additions & 6 deletions SukiUI/Utilities/Background/FastNoiseRendererOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public FastNoiseRendererOptions(
float accentAlpha = 0.08f,
float accentAlphaLight = 0.09f,
float animSeedScale = 0.1f
/* float noiseScale = 1f,
float xAnimSpeed = 0.05f,
float yAnimSpeed = 0.025f,
float primaryAlpha = 0.75f,
float accentAlpha = 0.2f,
float animSeedScale = 0.1f*/)
/* float noiseScale = 1f,
float xAnimSpeed = 0.05f,
float yAnimSpeed = 0.025f,
float primaryAlpha = 0.75f,
float accentAlpha = 0.2f,
float animSeedScale = 0.1f*/)
{
Type = type;
NoiseScale = noiseScale;
Expand Down
8 changes: 7 additions & 1 deletion UotanToolbox/Common/PatchHelper/KernelSUPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ public async static Task<string> KernelSU_Patch(ZipInfo zipInfo, BootInfo bootIn
{
throw new Exception(GetTranslation("Basicflash_BootWong"));
}
File.Copy(Path.Combine(zipInfo.TempPath, "Image"), Path.Combine(bootInfo.TempPath, "kernel"),true);
string kernel_info = await CallExternalProgram.File(Path.Combine(zipInfo.TempPath, "Image"));
string kmi = StringHelper.ExtractKMI(kernel_info);
if (kmi != bootInfo.KMI)
{
throw new Exception("error zip kernel kmi");
}
File.Copy(Path.Combine(zipInfo.TempPath, "Image"), Path.Combine(bootInfo.TempPath, "kernel"), true);
CleanBoot(bootInfo.TempPath);
(string mb_output, int exitcode) = await CallExternalProgram.MagiskBoot($"repack \"{bootInfo.Path}\"", bootInfo.TempPath);
if (exitcode != 0)
Expand Down

0 comments on commit ec2478e

Please sign in to comment.