Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. +/*
  2. + * This file contains device specific hooks.
  3. + * Always enclose hooks to #if MR_DEVICE_HOOKS >= ver
  4. + * with corresponding hook version!
  5. + */
  6. +
  7. +#include <stdio.h>
  8. +#include <unistd.h>
  9. +
  10. +#if MR_DEVICE_HOOKS >= 1
  11. +
  12. +int mrom_hook_after_android_mounts(const char *busybox_path, const char
  13. +*base_path, int type)
  14. +{
  15. + // On M7, this fstab file is used to remount system to RO,
  16. + // but with MultiROM, it remounts everything as RO, even /data and /cache
  17. + if(access("/remount.qcom", F_OK) >= 0)
  18. + return remove("/remount.qcom");
  19. + return 0;
  20. +}
  21. +
  22. +#endif /* MR_DEVICE_HOOKS >= 1 */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement