Browse Source

Initial commit

master
Felix 10 months ago
commit
2495731475
4 changed files with 18 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. BIN
      META-INF/com/google/android/update-binary
  3. +14
    -0
      META-INF/com/google/android/updater-script
  4. +3
    -0
      tmp/fix_dsp_labels.sh

+ 1
- 0
.gitignore View File

@@ -0,0 +1 @@
zips/

BIN
META-INF/com/google/android/update-binary View File


+ 14
- 0
META-INF/com/google/android/updater-script View File

@@ -0,0 +1,14 @@
ui_print("");
ui_print("------------------------------------");
ui_print("/dsp SELinux label fixer");
ui_print("------------------------------------");
ui_print("");
ui_print("Mounting dsp partition...");
run_program("/sbin/busybox", "mount", "/dsp");
ui_print("Fixing /dsp labels...");
package_extract_dir("tmp", "/tmp");
set_perm(0, 0, 0777, "/tmp/fix_dsp_labels.sh");
run_program("/tmp/fix_dsp_labels.sh");
ui_print("Unmounting dsp partition...");
unmount("/dsp");
ui_print("Done...");

+ 3
- 0
tmp/fix_dsp_labels.sh View File

@@ -0,0 +1,3 @@
#!/sbin/sh

chcon -R u:object_r:adsprpcd_file:s0 /dsp/

Loading…
Cancel
Save