Jump to content


Photo
- - - - -

How do i make a flashable theme?


  • Please log in to reply
12 replies to this topic

#1 jvasquezhhi

jvasquezhhi

    Frankensteiner

  • Developer
  • 330 posts
  • Current Device(s):Droid Razr M (XT907) Retail (unlocked)

Posted 02 December 2012 - 12:16 AM

I have a theme, it works on my phone but by adb push... but i wanted to post it as a flashable theme... but i cant get it to work.. could someone please help... its by the way for a stock rom... this is the update-script im using


ui_print("Dark Theme");
run_program("/sbin/busybox", "mount", "/system");
delete("/system/framework/framework-res.apk");
package_extract_dir("framework", "/system/framework");
set_perm(0, 0, 06755, "/system/framework/framework-res.apk");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Dark theme installed");

Cool-Timeline-Covers.jpg


#2 mattlgroff

mattlgroff

    The Dark Knight

  • Developer
  • 2,298 posts

Posted 02 December 2012 - 12:25 AM

Is this for using in Safestrap 3 for DROID RAZR M?

Please do not Personal Message me for help or troubleshooting. They will be ignored. Post in threads or start one in Q&A sections.

If you feel the need to donate to me, click here.


#3 jvasquezhhi

jvasquezhhi

    Frankensteiner

  • Developer
  • 330 posts
  • Current Device(s):Droid Razr M (XT907) Retail (unlocked)

Posted 02 December 2012 - 12:33 AM

Is this for using in Safestrap 3 for DROID RAZR M?

yes safestrap 3.05.20... maybe i have the wrong update script...

Cool-Timeline-Covers.jpg


#4 mattlgroff

mattlgroff

    The Dark Knight

  • Developer
  • 2,298 posts

Posted 02 December 2012 - 12:35 AM

yes safestrap 3.05.20

Yeah Safestrap 3 uses some crazy mount commands that are not normal at all.

I am making you a reference to what they are when this CM10 RAZR M Rom finishes downloading on my end.

Please do not Personal Message me for help or troubleshooting. They will be ignored. Post in threads or start one in Q&A sections.

If you feel the need to donate to me, click here.


#5 mattlgroff

mattlgroff

    The Dark Knight

  • Developer
  • 2,298 posts

Posted 02 December 2012 - 12:39 AM

Please Login or Register to see this Hidden Content


This is what the CM10 RAZR M Rom uses.

Please do not Personal Message me for help or troubleshooting. They will be ignored. Post in threads or start one in Q&A sections.

If you feel the need to donate to me, click here.


#6 jvasquezhhi

jvasquezhhi

    Frankensteiner

  • Developer
  • 330 posts
  • Current Device(s):Droid Razr M (XT907) Retail (unlocked)

Posted 02 December 2012 - 12:39 AM

Yeah Safestrap 3 uses some crazy mount commands that are not normal at all.

I am making you a reference to what they are when this CM10 RAZR M Rom finishes downloading on my end.

thank you.

Cool-Timeline-Covers.jpg


#7 jvasquezhhi

jvasquezhhi

    Frankensteiner

  • Developer
  • 330 posts
  • Current Device(s):Droid Razr M (XT907) Retail (unlocked)

Posted 02 December 2012 - 12:42 AM

Please Login or Register to see this Hidden Content


This is what the CM10 RAZR M Rom uses.

so it should look something like this?


ui_print("Dark Theme");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_dir("system", "/system");
unmount("/system");
ui_print("Dark theme installed");

Cool-Timeline-Covers.jpg


#8 mattlgroff

mattlgroff

    The Dark Knight

  • Developer
  • 2,298 posts

Posted 02 December 2012 - 12:49 AM

so it should look something like this?


ui_print("Dark Theme");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_dir("system", "/system");
unmount("/system");
ui_print("Dark theme installed");

Yeah, that should work fine.
Your root directory of the flashable zip will look like this:
/META-INF/
/system/

Inside of /system/ you have:
/framework/

and inside of that you have:
framework.res.apk

and whatever else you are doing.
  • jvasquezhhi likes this

Please do not Personal Message me for help or troubleshooting. They will be ignored. Post in threads or start one in Q&A sections.

If you feel the need to donate to me, click here.


#9 jvasquezhhi

jvasquezhhi

    Frankensteiner

  • Developer
  • 330 posts
  • Current Device(s):Droid Razr M (XT907) Retail (unlocked)

Posted 02 December 2012 - 12:52 AM

Yeah, that should work fine.
Your root directory of the flashable zip will look like this:
/META-INF/
/system/

Inside of /system/ you have:
/framework/

and inside of that you have:
framework.res.apk

and whatever else you are doing.

that is what i have will be trying it soon... now inside the META-INF i could use everything that was used to flash the rom in first place right? just change the update-script..

Cool-Timeline-Covers.jpg


#10 mattlgroff

mattlgroff

    The Dark Knight

  • Developer
  • 2,298 posts

Posted 02 December 2012 - 12:55 AM

that is what i have will be trying it soon... now inside the META-INF i could use everything that was used to flash the rom in first place right? just change the update-script..

Yeah, just the updater-script.

Please do not Personal Message me for help or troubleshooting. They will be ignored. Post in threads or start one in Q&A sections.

If you feel the need to donate to me, click here.


#11 jvasquezhhi

jvasquezhhi

    Frankensteiner

  • Developer
  • 330 posts
  • Current Device(s):Droid Razr M (XT907) Retail (unlocked)

Posted 02 December 2012 - 01:02 AM

Yeah, just the updater-script.

ok i tried it... i might have something wrong somewhere... dont know what it is...

Please Login or Register to see this Hidden Content

this is the file i got so far... i updated the update-script i think... not sure but i think the zip was singed .. ut when i go flash it to test it it gives me error message and says aborted because file not found or something of that nature. thank you for all your help and patience...

Cool-Timeline-Covers.jpg


#12 mattlgroff

mattlgroff

    The Dark Knight

  • Developer
  • 2,298 posts

Posted 02 December 2012 - 01:31 AM

ok i tried it... i might have something wrong somewhere... dont know what it is...

Please Login or Register to see this Hidden Content

this is the file i got so far... i updated the update-script i think... not sure but i think the zip was singed .. ut when i go flash it to test it it gives me error message and says aborted because file not found or something of that nature. thank you for all your help and patience...

Don't put a space in the name of the .zip.

Please do not Personal Message me for help or troubleshooting. They will be ignored. Post in threads or start one in Q&A sections.

If you feel the need to donate to me, click here.


#13 tucstwo

tucstwo

    www.drdevs.com

  • Administrator
  • 14,435 posts
  • Twitter:tucstwo
  • Google+:tucstwo@gmail.com
  • LocationNJ
  • Current Device(s):LG G3 VS985, Nexus 7 (flo)

Posted 02 December 2012 - 08:24 AM

Its not so much about it being a SS3 mount command. It's because the HD and Razr M are now using an EXT4 File system. Hence the mount "ext4" "emmc". Also, instead of system you could use the dev/block. I don't know which block system is on the M. But one could open Android Terminal emulator and just type "mount". And you will be given a list of the system, cache and data blocks. All of them are EXT 4 now.

Visit DRDevs.com hosting site for all official Droidrzr.com ROMs, Apps, GApps and other mods/files!!
Please PM me if you need help!
I will be hosting AOSP-Based ROM GApps packages!
Download the most Up-to-Date GApps Packages for AOSP ROMs from me here!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users