Advertisement
NaruKage

set_pm.sh

Dec 15th, 2024
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.58 KB | Source Code | 0 0
  1. #!/system/bin/sh
  2.  
  3. mount -o remount,rw /
  4. MARK=/data/local/symbol_thirdpart_apks_installed
  5. PKGS=/system/app
  6. chmod 755 -R /system/app
  7. chgrp root /system/app
  8. chown root /system/app
  9. find $PKGS -name "*\.apk" -exec /system/bin/chmod 644 {} \;
  10. find $PKGS -name "*\.apk" -exec /system/bin/chgrp root {} \;
  11. find $PKGS -name "*\.apk" -exec /system/bin/chown root {} \;
  12. find $PKGS -name "*\.so" -exec /system/bin/chmod 644 {} \;
  13. find $PKGS -name "*\.so" -exec /system/bin/chgrp root {} \;
  14. find $PKGS -name "*\.so" -exec /system/bin/chown root {} \;
  15. find $PKGS -name "*\.odex" -exec /system/bin/chmod 644 {} \;
  16. find $PKGS -name "*\.odex" -exec /system/bin/chown root {} \;
  17. find $PKGS -name "*\.odex" -exec /system/bin/chown root {} \;
  18. find $PKGS -name "*\.vdex" -exec /system/bin/chmod 644 {} \;
  19. find $PKGS -name "*\.vdex" -exec /system/bin/chown root {} \;
  20. find $PKGS -name "*\.vdex" -exec /system/bin/chown root {} \;
  21. MARK=/data/local/symbol_thirdpart_apks_installed
  22. PKGS=/system/priv-app
  23. chmod 755 -R /system/priv-app
  24. chgrp root /system/priv-app
  25. chown root /system/priv-app
  26. find $PKGS -name "*\.apk" -exec /system/bin/chmod 644 {} \;
  27. find $PKGS -name "*\.apk" -exec /system/bin/chgrp root {} \;
  28. find $PKGS -name "*\.apk" -exec /system/bin/chown root {} \;
  29. find $PKGS -name "*\.so" -exec /system/bin/chmod 644 {} \;
  30. find $PKGS -name "*\.so" -exec /system/bin/chgrp root {} \;
  31. find $PKGS -name "*\.so" -exec /system/bin/chown root {} \;
  32. find $PKGS -name "*\.odex" -exec /system/bin/chmod 644 {} \;
  33. find $PKGS -name "*\.odex" -exec /system/bin/chown root {} \;
  34. find $PKGS -name "*\.odex" -exec /system/bin/chown root {} \;
  35. find $PKGS -name "*\.vdex" -exec /system/bin/chmod 644 {} \;
  36. find $PKGS -name "*\.vdex" -exec /system/bin/chown root {} \;
  37. find $PKGS -name "*\.vdex" -exec /system/bin/chown root {} \;
  38.  
  39. mount -o remount,rw /
  40. MARK=/data/local/symbol_thirdpart_apks_installed
  41. PKGS=/product/app
  42. chmod 755 -R /product/app
  43. chgrp root /product/app
  44. chown root /product/app
  45. find $PKGS -name "*\.apk" -exec /system/bin/chmod 644 {} \;
  46. find $PKGS -name "*\.apk" -exec /system/bin/chgrp root {} \;
  47. find $PKGS -name "*\.apk" -exec /system/bin/chown root {} \;
  48. find $PKGS -name "*\.so" -exec /system/bin/chmod 644 {} \;
  49. find $PKGS -name "*\.so" -exec /system/bin/chgrp root {} \;
  50. find $PKGS -name "*\.so" -exec /system/bin/chown root {} \;
  51. find $PKGS -name "*\.odex" -exec /system/bin/chmod 644 {} \;
  52. find $PKGS -name "*\.odex" -exec /system/bin/chown root {} \;
  53. find $PKGS -name "*\.odex" -exec /system/bin/chown root {} \;
  54. find $PKGS -name "*\.vdex" -exec /system/bin/chmod 644 {} \;
  55. find $PKGS -name "*\.vdex" -exec /system/bin/chown root {} \;
  56. find $PKGS -name "*\.vdex" -exec /system/bin/chown root {} \;
  57. MARK=/data/local/symbol_thirdpart_apks_installed
  58. PKGS=/product/priv-app
  59. chmod 755 -R /product/priv-app
  60. chgrp root /product/priv-app
  61. chown root /product/priv-app
  62. find $PKGS -name "*\.apk" -exec /system/bin/chmod 644 {} \;
  63. find $PKGS -name "*\.apk" -exec /system/bin/chgrp root {} \;
  64. find $PKGS -name "*\.apk" -exec /system/bin/chown root {} \;
  65. find $PKGS -name "*\.so" -exec /system/bin/chmod 644 {} \;
  66. find $PKGS -name "*\.so" -exec /system/bin/chgrp root {} \;
  67. find $PKGS -name "*\.so" -exec /system/bin/chown root {} \;
  68. find $PKGS -name "*\.odex" -exec /system/bin/chmod 644 {} \;
  69. find $PKGS -name "*\.odex" -exec /system/bin/chown root {} \;
  70. find $PKGS -name "*\.odex" -exec /system/bin/chown root {} \;
  71. find $PKGS -name "*\.vdex" -exec /system/bin/chmod 644 {} \;
  72. find $PKGS -name "*\.vdex" -exec /system/bin/chown root {} \;
  73. find $PKGS -name "*\.vdex" -exec /system/bin/chown root {} \;
  74.  
  75. MARK=/data/local/symbol_thirdpart_apks_installed
  76. PKGS=/vendor/app
  77. mount -o remount,rw /
  78. mount -o remount,rw /vendor
  79. chmod 755 -R /vendor/app
  80. chgrp shell /vendor/app
  81. chown root /vendor/app
  82. busybox find $PKGS -name "*\.apk" -exec /system/bin/chmod 644 {} \;
  83. busybox find $PKGS -name "*\.apk" -exec /system/bin/chgrp root {} \;
  84. busybox find $PKGS -name "*\.apk" -exec /system/bin/chown root {} \;
  85. busybox find $PKGS -name "*\.so" -exec /system/bin/chmod 644 {} \;
  86. busybox find $PKGS -name "*\.so" -exec /system/bin/chgrp root {} \;
  87. busybox find $PKGS -name "*\.so" -exec /system/bin/chown root {} \;
  88. busybox find $PKGS -name "*\.odex" -exec /system/bin/chmod 644 {} \;
  89. busybox find $PKGS -name "*\.odex" -exec /system/bin/chown root {} \;
  90. busybox find $PKGS -name "*\.odex" -exec /system/bin/chown root {} \;
  91. busybox find $PKGS -name "*\.vdex" -exec /system/bin/chmod 644 {} \;
  92. busybox find $PKGS -name "*\.vdex" -exec /system/bin/chown root {} \;
  93. busybox find $PKGS -name "*\.vdex" -exec /system/bin/chown root {} \;
  94.  
  95.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement