FORUMS
Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

[SOLVED]CWM script command to modify lcd density?

1,000 posts
Thanks Meter: 365
 
Post Reply Email Thread
I use cm9 with 240 lcd density.

The problem is whenever I flash a nightly, I have to modify density manually.

I want to know if I can create a cwm script which I can always flash with the nightly to modify the density.

Please dont advice to use apps to do it like lcd density modder, etc. I am well aware.

Thanks!

EDIT: Succeeded in making it. File attached.


Sent from my GT-N7000 using xda premium
Attached Files
File Type: zip LCD_240.zip - [Click for QR Code] (1.03 MB, 126 views)
The Following 3 Users Say Thank You to jaiiscool For This Useful Post: [ View ] Gift jaiiscool Ad-Free
 
 
16th June 2012, 12:08 AM |#2  
Senior Member
Thanks Meter: 528
 
More
Quote:
Originally Posted by jaiiscool

I use cm9 with 240 lcd density.

The problem is whenever I flash a nightly, I have to modify density manually.

I want to know if I can create a cwm script which I can always flash with the nightly to modify the density.

Please dont advice to use apps to do it like lcd density modder, etc. I am well aware.

Thanks!

Sent from my GT-N7000 using xda premium

Edit the build.prop from the CM_Nightly.zip and re-zip it.
16th June 2012, 06:07 AM |#3  
jaiiscool's Avatar
OP Senior Member
Flag Mumbai
Thanks Meter: 365
 
Donate to Me
More
Quote:
Originally Posted by Boy124

Edit the build.prop from the CM_Nightly.zip and re-zip it.

I am aware of that but as I mentioned.....i need the cwm command and not some work around...

But thanks anyway

Sent from my GT-N7000 using xda premium
baz77
16th June 2012, 11:00 AM |#4  
Guest
Thanks Meter: 0
 
More
Look into creating a flashable zip file. Also look into adding code to delete old line and insert new line in buildprop.

Shouldnt be to hard. But thats easily spoken. Its to difficult for me.



Sent from my GT-N7000 using Tapatalk 2
16th June 2012, 11:33 AM |#5  
jaiiscool's Avatar
OP Senior Member
Flag Mumbai
Thanks Meter: 365
 
Donate to Me
More
Quote:
Originally Posted by baz77

Look into creating a flashable zip file. Also look into adding code to delete old line and insert new line in buildprop.

Shouldnt be to hard. But thats easily spoken. Its to difficult for me.



Sent from my GT-N7000 using Tapatalk 2

That is what I am searching for, but did not find it anywhere and ended up posting it here.

Sent from my GT-N7000 using xda premium
The Following User Says Thank You to jaiiscool For This Useful Post: [ View ] Gift jaiiscool Ad-Free
16th June 2012, 11:37 AM |#6  
Senior Member
Thanks Meter: 528
 
More
Quote:
Originally Posted by jaiiscool

I am aware of that but as I mentioned.....i need the cwm command and not some work around...

But thanks anyway

Sent from my GT-N7000 using xda premium

http://forum.xda-developers.com/show...8&postcount=30
16th June 2012, 12:56 PM |#7  
jaiiscool's Avatar
OP Senior Member
Flag Mumbai
Thanks Meter: 365
 
Donate to Me
More
Talking success
Finally figured it out.

I had to use a UNIX shell script to accomplish it, but it is done.....yay!!!!
baz77
16th June 2012, 07:53 PM |#8  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by jaiiscool

Finally figured it out.

I had to use a UNIX shell script to accomplish it, but it is done.....yay!!!!

Awesome, can you share in developer section :)

Sent from my GT-N7000 using Tapatalk 2
17th June 2012, 06:44 AM |#9  
jaiiscool's Avatar
OP Senior Member
Flag Mumbai
Thanks Meter: 365
 
Donate to Me
More
Quote:
Originally Posted by baz77

Awesome, can you share in developer section :)

Sent from my GT-N7000 using Tapatalk 2

Sure!

Sent from my GT-N7000 using xda premium
3rd July 2012, 11:27 AM |#10  
jaiiscool's Avatar
OP Senior Member
Flag Mumbai
Thanks Meter: 365
 
Donate to Me
More
Quote:
Originally Posted by baz77

Awesome, can you share in developer section :)

Sent from my GT-N7000 using Tapatalk 2

File attached in first post.

Moderator please move this thread to dev section!
The Following User Says Thank You to jaiiscool For This Useful Post: [ View ] Gift jaiiscool Ad-Free
14th May 2014, 07:52 PM |#11  
Senior Member
Thanks Meter: 415
 
More
will this work for my nexus 5? Does the lcd.sh go in the init.d folder?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes