Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2018
1,174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. Introduction
  2. Hello, I am r3pwn and today, I guess, I will begin to teach you mobile source apps modification. Don't worry, it only consists of a few steps really.
  3.  
  4. Picking a file
  5. First you start with picking a file you want to modify. Then, extract it from your app's obb file.
  6.  
  7. What to do?
  8. Well, now, you make your changes to the file and put it under "/data/data/com.nvidia.valvesoftware.portal/files" or "/data/data/com.nvidia.valvesoftware.halflife2/files", depending on which game you own. You can find my modified files for Portal here and my modified files for Half-Life 2 here. For my Portal files, extract the zip to the "portal" folder in Portal's app files. For my HL2 files, extract the zip to the "hl2" folder in HL2's app files.
  9.  
  10. What do we do next?
  11. Now it's time for the final step. Permissions changing. Hook up your SHIELD via adb or open a Terminal Emulator and issue the following commands (Please note that "yourgamefiles" is /data/data/com.nvidia.valvesoftware.portal/files is you applied the mod to Portal or /data/data/com.nvidia.valvesoftware.halflife2/files if you applied the mod to Half-Life 2):
  12.  
  13. su
  14. cd yourgamefiles
  15. ls -na
  16.  
  17. After that, you need to look for the 5 digit number that should appear twice on most items. Let's call that our "5dn" (stands for 5 digit number). Then issue the following commands:
  18.  
  19. chown 5dn *
  20. chown 5dn */*
  21. chown 5dn */*/*
  22. chown 5dn */*/*/*
  23. chown 5dn */*/*/*/*
  24. chown 5dn */*/*/*/*/*
  25. chgrp 5dn *
  26. chgrp 5dn */*
  27. chgrp 5dn */*/*
  28. chgrp 5dn */*/*/*
  29. chgrp 5dn */*/*/*/*
  30. chgrp 5dn */*/*/*/*/*
  31.  
  32. (It's okay if one or more of those commands gives an error of "No such file or directory".)
  33. After that, your permissions should be fixed. Start up the game and see if anything looks/functions any different!
  34.  
  35. Happy Modding!
  36. - r3pwn
  37.  
  38. P.S. If this guide was too complicated for you OR you didn't understand it OR it didn't work for you, don't worry. I am making an automated patcher application as we speak. :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement