Originally Posted by xstormli
Hi all the great ppl out there!!!
All I want is just a simple and easy pre-setup'd flashable zip.
as long as it can pushes any files in and fix their permissions to 0644……
I am not sure if all the meta-inf do the same thing.
Really appreciated guys!
Heres the thing, it would be very risky to make a file that just auto flashes and sets permissions to anything/everything its set to flash with permissions to 0644. You have to manually type the lines out.
There is no syntax that sets the script to do that kind of analysis. I THINK THERE ISN'T.
I assume by old example there was something with if ( directory ) = true then set_perm_recursive?
By thinking of it now, it may be possible, but you can break other stuff un-intentionally.
For example, I want to update something in my core system files to permissions 644. But in this folder there are other critical system files with permissions 0755. I could use set_perm 0,0, 0755, 0644. The folder is set to rwx rx rx and every file inside is set to rw r r. Problem is that if the other files needed other permissions that isnt rw r r, you can cause trouble ranging from small to huge.
This is heavy stuff. I dont think CWM has a syntax smart enough to that level to do such a thing. Still possible though. If you want to take the risk of doing that, then sure go ahead :P.
Excuse me for my bad arrangement of words. Im just really tired.
I can help and provide a zip file with the proper structures set up. All you have to do is learn the syntax for updater-script
then go script!
EDIT: In addition, the partitions for the devices are different across. mmcblk0p19 is system partition ( i think ) on GT-i9505, but thats not the same for every device. Doing what you request may cause bricks when used for different devices.