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.
Thanks for the hints mate. oh well, the thing is that I am not a CS major person, I don't have much knowledge to the script world……I tried to read through SuperSU update-script yesterday, all i can understand is about, let's say, 50%, at most, lol. Is there anything that i can read to enrich my CS knowledge in the world of Android? I would be so proud of myself.
This one is what might you are looking for.
Open the zip (do not extract)...
Place any file to RootFlasher.zip/system/app when you need to flash apps on system/app like SystemUI.apk
And RootFlasher.zip/system/framework when you need to flash app on system/framework like framework-res.apk
(It auto fix permission to rw-r-r too.)
Just ignore the fonts, media and vendor folder under system folder inside that zip file
(just focus on app and framework folder).
I haven't used before those folder I want you to ignore.
Credits to original developer.
My friend who gave it to me just got this file here on XDA too.
|cwm, flashable zip, meta-inf, recovery, trwp|
|Thread Tools||Search this Thread|