Guest User

fugu14 battery usage fix

a guest
Sep 23rd, 2022
762
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.44 KB | None | 0 0
  1. cd /etc
  2. #create a backup of the two files we are going to edit
  3. cp -a passwd passwd.LKG
  4. cp -a master.passwd master.passwd.LKG
  5. #delete the existing _nanalyticsd and _analyticsd entries in passwd and add these (dont change the order, without #):
  6. #_nanalyticsd:*:263:263:Analytics Daemon:/var/db/analyticsd:/usr/bin/false
  7. #_analyticsd:*:263:263:Haxx Daemon:/private/var/mobile/Containers/Data/Fugu14Untether:/usr/bin/false
  8. nano passwd
  9. #delete the existing _nanalyticsd and _analyticsd entries in master.passwd and add these (dont change the order, without #):
  10. #_nanalyticsd:*:263:263::0:0:Analytics Daemon:/var/db/analyticsd:/usr/bin/false
  11. #_analyticsd:*:263:263::0:0:Haxx Daemon:/private/var/mobile/Containers/Data/Fugu14Untether:/usr/bin/false
  12. nano master.passwd
  13. cd /var/Fugu14UntetherDYLD/
  14. #some of the following commands will probably fail
  15. chown 263:263 .
  16. chown 263:263 Caches/
  17. cd Caches/
  18. chown 263:263 com.apple.dyld/
  19. cd com.apple.dyld/
  20. chown 263:263 *
  21. chown 263:263 /var/mobile/Containers/Data/Fugu14Untether/
  22. chown -h 263:263 /var/mobile/Containers/Data/Fugu14Untether/Library
  23. chown -R 263:263 /var/db/analyticsd/
  24. chflags -v noschg,nouchg *.closure
  25. chown 263:263 *.closure
  26. chflags -v schg,uchg *.closure
  27. ps aux | grep analyticsstat *
  28. #now restart the analyticsd
  29. launchctl stop com.apple.analyticsd
  30. launchctl list | grep analyt
  31. # replace 1234 with the pid from the output above and verify that the sqlite database is listed
  32. lsof -p 1234
Tags: fugu14
Advertisement
Add Comment
Please, Sign In to add comment