Post Reply

[Q] Can I have a Flashable Zip?

OP xstormli

18th August 2014, 09:46 AM   |  #1  
xstormli's Avatar
OP Senior Member
Flag Hainan
Thanks Meter: 21
 
188 posts
Join Date:Joined: Sep 2011
Donate to Me
More
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!
18th August 2014, 09:45 PM   |  #2  
Junior Member
Flag New York
Thanks Meter: 9
 
25 posts
Join Date:Joined: Aug 2014
More
Quote:
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.
Last edited by baboomerang; 18th August 2014 at 10:04 PM.
The Following User Says Thank You to baboomerang For This Useful Post: [ View ]
19th August 2014, 01:43 AM   |  #3  
xstormli's Avatar
OP Senior Member
Flag Hainan
Thanks Meter: 21
 
188 posts
Join Date:Joined: Sep 2011
Donate to Me
More
Sign
Quote:
Originally Posted by baboomerang

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.
19th August 2014, 04:10 AM   |  #4  
Junior Member
Flag New York
Thanks Meter: 9
 
25 posts
Join Date:Joined: Aug 2014
More
http://forum.xda-developers.com/show....php?t=2377695
Quote:
Originally Posted by xstormli

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.

You may not believe me, but this forum post is the only thing I used to learn the script language. Im not even a computer science major. Derp :P

This thread:
http://forum.xda-developers.com/show....php?t=2377695

And this one:

http://forum.xda-developers.com/show....php?t=1669489

Also try to make your own script. Noone gets this by first shot. I failed very hard before :P. Just keep practicing. If you need one more tip all I can say is this. When you make a typo in the command for the script, you will almost always get a status 6 error. Like when you miss the semicolon after every action you do. Status 7 can mean many things. Just try and do your best
The Following User Says Thank You to baboomerang For This Useful Post: [ View ]
19th August 2014, 05:09 AM   |  #5  
Odlanyer22's Avatar
Junior Member
Thanks Meter: 1
 
15 posts
Join Date:Joined: Jul 2014
Thumbs up
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.
Attached Files
File Type: zip RootFlasher.zip - [Click for QR Code] (142.0 KB, 20 views)
Last edited by Odlanyer22; 19th August 2014 at 05:20 AM. Reason: Update
The Following User Says Thank You to Odlanyer22 For This Useful Post: [ View ]
19th August 2014, 06:03 AM   |  #6  
xstormli's Avatar
OP Senior Member
Flag Hainan
Thanks Meter: 21
 
188 posts
Join Date:Joined: Sep 2011
Donate to Me
More
Thumbs up I guess this is it?!
Quote:
Originally Posted by Odlanyer22

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.

Thanks buddy! I'll take a look later. I think this is it.
Post Reply Subscribe to Thread

Tags
cwm, flashable zip, meta-inf, recovery, trwp
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Questions and Answers by ThreadRank