[A] Update.zip - Streak 5 Themes and Apps
TheManii or chrisrotollo or any other theme ppl out there:
How do I create an update.zip that will flash data\local\bootanimation.zip, framework\framework-res.apk, system\app\phone.apk, and system\app\contacts.apk all at the same time?
I have a red theme update I'm working on, but I want to release it all as one update.zip that will flash everything at once.
Basically, I am trying to change update.zip\META-INF\com\google\android\update-script (I think) but I'm not getting it to work.
Also, when I try to add
ui_print("********************************");
ui_print("*******Now Flashing RedStreak5*****");
ui_print("********************************");
into update-script it doesn't flash at all?
Code:
copy_dir PACKAGE:system SYSTEM:
is what i use, if you're going to be flashing stuff into /system you might as well keep everything in system (i'm talking about bootanimation)
just create <zip root>\system\<app, media, etc> and it will automatically copy everything there, i use update-zip-packager as anything short of an entire rom doesnt need anything more complex scripting wise
it might have something to do with the presense and ability of the update-binary, complex scripting is really flaky on streakmod except when flashing actual roms (vs themes and stuff) possibly for that reason
boot animation can go in 3 diff places, be sure to set permissons correctly, just create the folders, and heiracrchies.
I think there are guides on this as well as tools which will build it for you.
as for the text Im not sure, I would ask TheManii, that guy is smart.
edit: beat me to it.
Though this is just my personal opinion:
If you're gonna install files they should either all be in /system or all in /data and not a mix of either one, /data/local should only be used directly by whatever user instead of by whatever update.zip as you're already overwriting more important system files
your example update zip should look like
Code:
<root>/system/app
<root>/system/framework
<root>/system/media
Works great! Thanks. If there is a bootanimation.zip in /data/local than the system always defaults to that one. Once I deleted that off my Streak, it worked as expected.
Getting ready to update RedStreak5. Should be a fun one!
nickshertzer said:
TheManii or chrisrotollo or any other theme ppl out there:
How do I create an update.zip that will flash data\local\bootanimation.zip, framework\framework-res.apk, system\app\phone.apk, and system\app\contacts.apk all at the same time?
I have a red theme update I'm working on, but I want to release it all as one update.zip that will flash everything at once.
Basically, I am trying to change update.zip\META-INF\com\google\android\update-script (I think) but I'm not getting it to work.
Also, when I try to add
ui_print("********************************");
ui_print("*******Now Flashing RedStreak5*****");
ui_print("********************************");
into update-script it doesn't flash at all?
Click to expand...
Click to collapse
try uot kitchen zip's script + djsteve's ui prints form
I figured out edify scripting doesnt work on Streakmod,
It does, but unlike clockworkmod it requires the presence of update-binary
here is the update binary streakdroid uses:
http://mirror2.streakdroid.com/manii/Tools/update-binary
using that with updater-script allows you to use the much newer edify scripting engine, if/when i port newer versions of clockwork they MUST use edify as cwm 3+ drops support for amend scripting as it's really old.
your tree should look like
Code:
META-INF\com\google\android\update-binary
META-INF\com\google\android\updater-script
now with update-binary edify works perfectly, here's the example script from superuser 10819
Code:
ui_print("----Superuser r10819----");
ui_print("| Includes: |");
ui_print("| Superuser 2.3.6.3 |");
ui_print("| SU binary 2.3.2-efgh |");
ui_print("| Bash 4.1 |");
ui_print("| Busybox 1.18.4 |");
ui_print("------------------------");
ui_print("");
ui_print("");
mount("MTD", "system", "/system");
ui_print("Copying Files...");
package_extract_dir("system", "/system");
show_progress(0.25, 10);
ui_print("Creating symlinks");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
"/system/xbin/arp", "/system/xbin/ash", "/system/xbin/awk",
"/system/xbin/basename", "/system/xbin/bbconfig", "/system/xbin/brctl",
"/system/xbin/bunzip2", "/system/xbin/bzcat", "/system/xbin/bzip2",
"/system/xbin/cal", "/system/xbin/cat", "/system/xbin/catv",
"/system/xbin/chgrp", "/system/xbin/chmod", "/system/xbin/chown",
"/system/xbin/chroot", "/system/xbin/cksum", "/system/xbin/clear",
"/system/xbin/cmp", "/system/xbin/cp", "/system/xbin/cpio",
"/system/xbin/cut", "/system/xbin/date", "/system/xbin/dc",
"/system/xbin/dd", "/system/xbin/depmod", "/system/xbin/devmem",
"/system/xbin/df", "/system/xbin/diff", "/system/xbin/dirname",
"/system/xbin/dmesg", "/system/xbin/dnsd", "/system/xbin/dos2unix",
"/system/xbin/du", "/system/xbin/echo", "/system/xbin/ed",
"/system/xbin/egrep", "/system/xbin/env", "/system/xbin/expr",
"/system/xbin/false", "/system/xbin/fdisk", "/system/xbin/fgrep",
"/system/xbin/find", "/system/xbin/fold", "/system/xbin/free",
"/system/xbin/freeramdisk", "/system/xbin/fuser", "/system/xbin/getopt",
"/system/xbin/grep", "/system/xbin/gunzip", "/system/xbin/gzip",
"/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/id",
"/system/xbin/ifconfig", "/system/xbin/insmod", "/system/xbin/install",
"/system/xbin/ip", "/system/xbin/kill", "/system/xbin/killall",
"/system/xbin/killall5", "/system/xbin/length", "/system/xbin/less",
"/system/xbin/ln", "/system/xbin/losetup", "/system/xbin/ls",
"/system/xbin/lsmod", "/system/xbin/lspci", "/system/xbin/lsusb",
"/system/xbin/lzop", "/system/xbin/lzopcat", "/system/xbin/md5sum",
"/system/xbin/mkdir", "/system/xbin/mke2fs", "/system/xbin/mkfifo",
"/system/xbin/mkfs.ext2", "/system/xbin/mknod", "/system/xbin/mkswap",
"/system/xbin/mktemp", "/system/xbin/modprobe", "/system/xbin/more",
"/system/xbin/mount", "/system/xbin/mountpoint", "/system/xbin/mv",
"/system/xbin/netstat", "/system/xbin/nice", "/system/xbin/nohup",
"/system/xbin/nslookup", "/system/xbin/ntpd", "/system/xbin/od",
"/system/xbin/patch", "/system/xbin/pgrep", "/system/xbin/pidof",
"/system/xbin/ping", "/system/xbin/pkill", "/system/xbin/printenv",
"/system/xbin/printf", "/system/xbin/ps", "/system/xbin/pwd",
"/system/xbin/rdev", "/system/xbin/readlink", "/system/xbin/realpath",
"/system/xbin/renice", "/system/xbin/reset", "/system/xbin/rm",
"/system/xbin/rmdir", "/system/xbin/rmmod", "/system/xbin/route",
"/system/xbin/run-parts", "/system/xbin/sed", "/system/xbin/seq",
"/system/xbin/setsid", "/system/xbin/sh", "/system/xbin/sha1sum",
"/system/xbin/sha256sum", "/system/xbin/sha512sum",
"/system/xbin/sleep", "/system/xbin/sort", "/system/xbin/split",
"/system/xbin/stat", "/system/xbin/strings", "/system/xbin/stty",
"/system/xbin/swapoff", "/system/xbin/swapon", "/system/xbin/sync",
"/system/xbin/sysctl", "/system/xbin/tac", "/system/xbin/tail",
"/system/xbin/tar", "/system/xbin/tee", "/system/xbin/telnet",
"/system/xbin/test", "/system/xbin/tftp", "/system/xbin/time",
"/system/xbin/top", "/system/xbin/touch", "/system/xbin/tr",
"/system/xbin/traceroute", "/system/xbin/true", "/system/xbin/tty",
"/system/xbin/tune2fs", "/system/xbin/umount", "/system/xbin/uname",
"/system/xbin/uniq", "/system/xbin/unix2dos", "/system/xbin/unlzop",
"/system/xbin/unzip", "/system/xbin/uptime", "/system/xbin/usleep",
"/system/xbin/uudecode", "/system/xbin/uuencode", "/system/xbin/vi",
"/system/xbin/watch", "/system/xbin/wc", "/system/xbin/wget",
"/system/xbin/which", "/system/xbin/whoami", "/system/xbin/xargs",
"/system/xbin/yes", "/system/xbin/zcat");
symlink("bash", "/system/bin/sh");
show_progress(0.50, 2);
ui_print("Setting permissions");
set_perm(0, 0, 0755, "/system/bin/bash");
set_perm(0, 0, 0644, "/system/bin/profile");
set_perm(0, 0, 06755, "/system/bin/su");
set_perm(0, 0, 0755, "/system/xbin/busybox");
set_perm(0, 0, 06755, "/system/xbin/su");
show_progress(0.75, 2);
unmount("/system");
show_progress(1.00, 2);
ui_print("Your phone is now rooted!");
You are STRONGLY recommended to switch all your update.zips over to edify as hopefully when i get cwm 3/4 working amend script will stop working.
I will be switching all my releases over soon
All my releases have been updated to edify script, they're all functionally the same script if you want a very simple example of how to overwrite files:
Code:
ui_print("-----------------------");
ui_print("|Gingerbread Icon Mod |");
ui_print("-----------------------");
ui_print("");
ui_print("");
mount("MTD", "system", "/system");
ui_print("Copying Files...");
package_extract_dir("system", "/system");
unmount("/system");
show_progress(1.00, 2);
zip file structure is:
Code:
META-INF/...
system/app/example.apk
system/bin/su
system/framework/framework-res.apk
This works fine if you're overwriting a file, you will need to properly set file permissions if you're adding a new file that doesnt exist in the filesystem.
UOT zips by default dont include an update-binary and hence wont work by default on streakmod, you need to manually add it in to make it work.
Fantastic info. This is exactly what I was looking for. How would one remove a file using such a method?
For instance, using a themed Android Market requires removing com.android.vending-1.apk in data/app first before replacing vending.apk in system/app.
Code:
delete("<path to file>");
I guess we'll see if this works
Code:
ui_print(" RedStreak5 ,,,, Spiderman Edition ");
ui_print(" ,;) .';;;;', ");
ui_print(" ;;,,_,-.-.,;;'_,|I\;;;/),,_ ");
ui_print(" `';;/:|:);{ ;;;|| \;/ /;;;\__ ");
ui_print(" L;/-';/ \;;\',/;\/;;;.') \ ");
ui_print(" .:`''` - \;;'.__/;;;/ . _'-._ ");
ui_print(" .'/ \ \;;;;;;/.'_7:. '). \_ ");
ui_print(" .''/ | '._ );}{;//.' '-: '.,L ");
ui_print(".'. / \ ( |;;;/_/ \._./;\ _, ");
ui_print(" . / |\ ( /;;/_/ ';;;\,;;_, ");
ui_print(". / )__(/;;/_/ www.nickshertzer.com ");
ui_print("");
mount("MTD", "system", "/system");
ui_print("Copying Files...");
package_extract_dir("system", "/system");
delete("/data/app/com.android.vending-1.apk");
unmount("/system");
show_progress(1.00, 2);
ui_print("Your phone is now RADIOACTIVE");
::EDIT::
E: Error in /sdcard/RedStreak5v05-2.zip
(Status 6)
whoops... didn't work. I imagine I need to mount and unmount /data as well. Working on this...
ok... so that is pretty cool. It must have been the update-binary file, 'cause when I replaced it from DJ Steve's from SD1.9.1 it started working.
Still not certain on mounting the /data/ directory to remove /data/app/com.android.vending-1.apk & /data/local/bootanimation.zip
looks cool nice job!
Ok, so how do you include forcing a default wallpaper and make sure it's set?
I can't seem to get Market to flash properly.
Also, I can't seem to fix contacts.apk / phone drawer icon...
::edit:: I really wish I could figure out how edify scripting can delete("/data/local/bootanimation.zip") if it exists
At that point you should just leave it be, as the user should already be aware if it exists. Flashable zips shouldnt put it there to begin with
nickshertzer said:
. . . .
::edit:: I really wish I could figure out how edify scripting can delete("/data/local/bootanimation.zip") if it exists
Click to expand...
Click to collapse
Have you tried checking for the existence of the bootanimation,zip in /data/local and giving the user a warning?
Related
CWM Recovery Batch install issues
Hey all, I created a little zip to be flashed in cwm recovery, It works great in almost every way, except some apps in /data/app and system/app in the zip do not get installed at all or are corrupted (both happen with diff apps). I've tried reflashing the same zip, repackaging it, and even installing the apks manually. Nothing works except installing the apks manually. I've deduced that before packaging, the apks are fine. And because I've repacked it twice, and have had complete success packaging other flashable zips, I feel something is happening in CWM recovery, or maybe my updater script doesn't install to the directories the right way. Is there a better way to batch install via recovery? Or something I'm missing in my script? Or is it not reliable to install apks via flashable zip? This is how I do it. In my zip I have: Code: /system /app /***.apk /***.apk /data /app /***.apk /***.apk /META-INF /com /google /android /update-binary /updater-script This is my updater script (modified from a remover script) Code: ui_print("---------------------------"); ui_print("SGS2 Batch Installer"); ui_print("and Bloatware Remover v0.2"); ui_print("---------------------------"); ui_print("Deleting useless bloatware ..."); delete("/system/app/AnalogClock.apk"); delete("/system/app/BuddiesNow.apk"); delete("/system/app/ChocoEUKor.apk"); delete("/system/app/Days.apk"); delete("/system/app/Dlna.apk"); delete("/system/app/DualClock.apk"); delete("/system/app/EmailWidget.apk"); delete("/system/app/GameHub.apk"); delete("/system/app/GenieWidget.apk"); delete("/system/app/Kies.apk"); delete("/system/app/KiesAir.apk"); delete("/system/app/kieswifi.apk"); delete("/system/app/Kobo.apk"); delete("/system/app/Microbesgl.apk"); delete("/system/app/MiniDiary.apk"); delete("/system/app/MtpApplication.apk"); delete("/system/app/MusicHub_U1.apk"); delete("/system/app/MusicPlayer.apk"); delete("/system/app/PhotoRetouching.apk"); delete("/system/app/PolarisOffice.apk"); delete("/system/app/PressReader.apk"); delete("/system/app/Protips.apk"); delete("/system/app/ReadersHub.apk"); delete("/system/app/SamsungApps.apk"); delete("/system/app/SamsungAppsUNA3.apk"); delete("/system/app/SamsungAppsUNAService.apk"); delete("/system/app/SamsungIM.apk"); delete("/system/app/SamsungWidget_News.apk"); delete("/system/app/SamsungWidget_ProgramMonitor.apk"); delete("/system/app/SamsungWidget_StockClock.apk"); delete("/system/app/SamsungWidget_WeatherClock.apk"); delete("/system/app/SecretWallpaper1.apk"); delete("/system/app/SecretWallpaper2.apk"); delete("/system/app/SevenEngine.apk"); delete("/system/app/SnsAccountFb.apk"); delete("/system/app/SnsAccountLi.apk"); delete("/system/app/SnsAccountMs.apk"); delete("/system/app/SnsAccountTw.apk"); delete("/system/app/SnsDisclaimer.apk"); delete("/system/app/SnsImageCache.apk"); delete("/system/app/SnsProvider.apk"); delete("/system/app/SocialHub.apk"); delete("/system/app/Talk.apk"); delete("/system/app/Talk2.apk"); delete("/system/app/TouchWiz30Launcher.apk"); delete("/system/app/Vending.apk"); delete("/system/app/VideoEditor.apk"); delete("/system/app/VideoPlayer.apk"); delete("/system/app/VoiceToGo.apk"); delete("/system/app/YouTube.apk"); delete("/system/app/Zinio.apk"); delete("/system/app/AnalogClock.odex"); delete("/system/app/BuddiesNow.odex"); delete("/system/app/ChocoEUKor.odex"); delete("/system/app/Days.odex"); delete("/system/app/Dlna.odex"); delete("/system/app/DualClock.odex"); delete("/system/app/EmailWidget.odex"); delete("/system/app/GameHub.odex"); delete("/system/app/GenieWidget.odex"); delete("/system/app/Kies.odex"); delete("/system/app/KiesAir.odex"); delete("/system/app/kieswifi.odex"); delete("/system/app/Kobo.odex"); delete("/system/app/Microbesgl.odex"); delete("/system/app/MiniDiary.odex"); delete("/system/app/MtpApplication.odex"); delete("/system/app/MusicHub_U1.odex"); delete("/system/app/MusicPlayer.odex"); delete("/system/app/PhotoRetouching.odex"); delete("/system/app/PressReader.odex"); delete("/system/app/Protips.odex"); delete("/system/app/ReadersHub.odex"); delete("/system/app/SamsungApps.odex"); delete("/system/app/SamsungAppsUNA3.odex"); delete("/system/app/SamsungAppsUNAService.odex"); delete("/system/app/SamsungIM.odex"); delete("/system/app/SamsungWidget_News.odex"); delete("/system/app/SamsungWidget_ProgramMonitor.odex"); delete("/system/app/SamsungWidget_StockClock.odex"); delete("/system/app/SamsungWidget_WeatherClock.odex"); delete("/system/app/SecretWallpaper1.odex"); delete("/system/app/SecretWallpaper2.odex"); delete("/system/app/SevenEngine.odex"); delete("/system/app/SnsAccountFb.odex"); delete("/system/app/SnsAccountLi.odex"); delete("/system/app/SnsAccountMs.odex"); delete("/system/app/SnsAccountTw.odex"); delete("/system/app/SnsDisclaimer.odex"); delete("/system/app/SnsImageCache.odex"); delete("/system/app/SnsProvider.odex"); delete("/system/app/SocialHub.odex"); delete("/system/app/Talk.odex"); delete("/system/app/Talk2.odex"); delete("/system/app/TouchWiz30Launcher.odex"); delete("/system/app/Vending.odex"); delete("/system/app/VideoEditor.odex"); delete("/system/app/VideoPlayer.odex"); delete("/system/app/VoiceSearch.odex"); delete("/system/app/VoiceToGo.odex"); delete("/system/app/YouTube.odex"); delete("/system/app/Zinio.odex"); ui_print(" "); ui_print("Batch Installing!"); ui_print(" "); ui_print("Extracting /system..."); package_extract_dir("system", "/system"); ui_print(" "); ui_print("Extracting /sdcard..."); package_extract_dir("sdcard", "/sdcard"); ui_print(" "); ui_print("Extracting /data..."); unmount("/data"); mount("ext4", "EMMC", "/dev/block/mmcblk0p10", "/data"); package_extract_dir("data", "/data"); unmount("/data"); ui_print("Done! Reboot that sh**!"); Anybody have any thoughts? Thank you! Endor
[Q] Cleaner root for new ROM
Hello I found script for new rom: file updater-script: Code: ui_print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"); ui_print(" ++++++ Cleaner ++++++ "); ui_print("------------------------------------------------"); run_program("/sbin/busybox", "mount", "/system"); ui_print("Formatting Cache"); delete_recursive("/cache"); ui_print("Formatting Data"); delete_recursive("/data"); ui_print("Delete config"); delete("/config"); ui_print("Delete dev"); delete("/dev"); ui_print("Formatting efs"); delete_recursive("/efs"); ui_print("Formatting preload"); delete_recursive("/preload"); ui_print("Delete res"); delete("/res"); ui_print("Formatting sys"); delete_recursive("/sys"); ui_print("Formatting system"); delete_recursive("/system"); ui_print("Delete other"); delete("/sbin/siyah"); delete("/xbin/bin/void"); delete_recursive("/sbin/near"); delete("/sbin/ext/abyss.sh"); run_program("/sbin/busybox", "umount", "/data"); ui_print("------------------------------------------------"); ui_print(" Done "); ui_print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"); Is it safe ? After that, I must upload the new rom (in CWM).
marcinsu said: Hello I found script for new rom: file updater-script: Code: ui_print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"); ui_print(" ++++++ Cleaner ++++++ "); ui_print("------------------------------------------------"); run_program("/sbin/busybox", "mount", "/system"); ui_print("Formatting Cache"); delete_recursive("/cache"); ui_print("Formatting Data"); delete_recursive("/data"); ui_print("Delete config"); delete("/config"); ui_print("Delete dev"); delete("/dev"); ui_print("Formatting efs"); delete_recursive("/efs"); ui_print("Formatting preload"); delete_recursive("/preload"); ui_print("Delete res"); delete("/res"); ui_print("Formatting sys"); delete_recursive("/sys"); ui_print("Formatting system"); delete_recursive("/system"); ui_print("Delete other"); delete("/sbin/siyah"); delete("/xbin/bin/void"); delete_recursive("/sbin/near"); delete("/sbin/ext/abyss.sh"); run_program("/sbin/busybox", "umount", "/data"); ui_print("------------------------------------------------"); ui_print(" Done "); ui_print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"); Is it safe ? After that, I must upload the new rom (in CWM). Click to expand... Click to collapse Post ur current Rom/Kernel details first as seen in Settings>about phone ma8
I have CM10 + CM kernel build 20121029 (phone: i9100 (int)) Not works perfectly, because the system is disrupted. I don't know what happens after open this script, for example - force close CWM recovery. Is there a possibility?
marcinsu said: I have CM10 + CM kernel build 20121029 (phone: i9100 (int)) Not works perfectly, because the system is disrupted. Click to expand... Click to collapse if u have CM10 running the phone is already rooted then u can flash an alternative Custom rom directly from the recovery after following the install instructions ma8, there is no need to run that script and messup ur phone
Help flashlable zip
Please help ... I need to create a zip file flashlable system / app SystemUI.apk Phone.apk HtcDialer.apk and another app .............. / framework com.htc.resources.apk framework-res.apk here only those my working
Hi Ashle said: Please help ... I need to create a zip file flashlable system / app SystemUI.apk Phone.apk HtcDialer.apk and another app .............. / framework com.htc.resources.apk framework-res.apk here only those my working Click to expand... Click to collapse If you are only using System apks, then there is a Play Store App for that. App2Zip Search it.
I need to create a system app updater script and the framework / framework-res.apk, com.htc.resources.apk My not working mount("MTD", "system", "/system"); ui_print("started. . . ."); ui_print("flashable zip"); ui_print(""); ui_print(""); ui_print(""); ui_print(""); run_program("/sbin/busybox", "mount", "/system"); run_program("/sbin/busybox", "mount", "/data"); run_program("/sbin/busybox", "mount", "/cache"); package_extract_dir("system", "/system"); delete("/system/app/HtcContacts.odex"); delete("/system/app/HtcContactWidgets.odex"); delete("/system/app/HtcDialer.odex"); delete("/system/app/Phone.odex"); delete("/system/app/SystemUI.odex"); delete("/system/framework/com.htc.resources.odex"); delete("/system/framework/framework-res.odex"); set_perm(0, 0, 0644, "/system/framework/framework-res.apk"); set_perm(0, 0, 0644, "/system/framework/com.htc.resources.apk"); unmount("/system"); unmount("/cache"); unmount("/data"); ui_print("Done. Reboot!"); Click to expand... Click to collapse
Ashle said: I need to create a system app updater script and the framework / framework-res.apk, com.htc.resources.apk My not working Click to expand... Click to collapse 1. mount("MTD", "system", "/system"); is wrong for DX as DX is using EMMC instead of MTD The correct one is mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/system"); 2. You don't need mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/system"); when you have run_program("/sbin/busybox", "mount", "/system"); 3. There is no such thing as com.htc.resources.odex and framework-res.odex as there is no smali in these files 4. You don't need set_perm(0, 0, 0644, for system/app and system/framework 5. Why do you want to delete those odex files ? Most of the time, a stock odex ROM will not boot when you mix with deodexed files because the boothclass is broken
ckpv5 said: 1. mount("MTD", "system", "/system"); is wrong for DX as DX is using EMMC instead of MTD The correct one is mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/system"); 2. You don't need mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/system"); when you have run_program("/sbin/busybox", "mount", "/system"); 3. There is no such thing as com.htc.resources.odex and framework-res.odex as there is no smali in these files 4. You don't need set_perm(0, 0, 0644, for system/app and system/framework 5. Why do you want to delete those odex files ? Most of the time, a stock odex ROM will not boot when you mix with deodexed files because the boothclass is broken Click to expand... Click to collapse Yes .... :thumbup: :thumbup: Edit SuperSense5 rom... Change battery icon not working... Icon wifi,data......,icon picture call contact,frame,....ok Sent from my HTC Desire X using xda app-developers app
[Tutorial]MAKE YOUR OWN CUSTOM ROM FOR LG G2M :)
Hi all! I want to show you how to create custom rom based on stock lg firmware and stock rom ready to install by recovery 1. Making stock rom ready to install by recovery 1. Download latest LG KK Firmware KDZ: IS HERE PASSWORD: firmware-lg-d620r-poland-62010 then this programme: this: Click! 2. Run KDZ Extractor and open kdz (downloaded file) in it. 3. Click extract KDZ 4. Open extracted DZ file, wait and then click on merge system bin (you must check every file in programme) 5. Now you have some more files, look on: -system.img and -boot_327680.bin (rename it to boot.img) -cust_704512.bin (rename it to cust.bin) 6. Download attach file: attach file is here 7. Make some folder on your disc and put there META-INF folder (which you downloaded), system.img, boot.img and cust.bin. 8. Make zip package by 7zip. 9. Now you have ready zip package, you can install it by moded-Recovery. 2. Making custom rom based on stock 1. Make all points from first tutorial to 5* 2. Download here 3. Open system file in downloaded programme and save what you want. 4. Download "META-INF for custom": Here Example: Code: [B]Your text here[/B] ui_print("*****************************"); ui_print("* Your mod *"); ui_print("*****************************"); ui_print("* for LG G2M *"); ui_print("*****************************"); ui_print("First part of installation..."); run_program("/sbin/mount", "/system"); run_program("/sbin/busybox","mount","/data"); [B]Delete system folder, in example you see "media" folder[/B] delete_recursive("/system/media"); package_extract_dir("system", "/system"); mount("ext2", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system"); package_extract_dir("system", "/system"); symlink("../xbin/su", "/system/bin/su"); symlink("../xbin/busybox", "/system/bin/busybox"); set_metadata("/system/xbin/su", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:su_exec:s0"); run_program("/sbin/busybox", "umount", "/system"); run_program("/sbin/busybox", "umount", "/cache"); run_program("/sbin/busybox", "umount", "/data"); run_program("/sbin/busybox", "mount", "/system"); run_program("/sbin/busybox", "mount", "/cache"); run_program("/sbin/busybox", "mount", "/data"); ui_print("Second part of installation..."); [B]About deleting apps, for example Books apk and odex file[/B] delete("/system/app/Books.apk"); delete("/system/app/Books.odex"); set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d"); set_perm_recursive(0, 0, 0755, 0644, "/system/app"); set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app"); ui_print("Please wait... "); run_program("/sbin/busybox", "umount", "/system"); run_program("/sbin/busybox", "umount", "/cache"); run_program("/sbin/busybox", "umount", "/data"); unmount("/system"); ui_print("Clearing cache"); delete_recursive("/data/dalvik-cache"); ui_print("Now UnMounting partitions"); run_program("/sbin/umount", "/system"); run_program("/sbin/umount", "/data"); show_progress(0.1, 0); [B]Last words for ending intsallation[/B] ui_print("*******************************"); ui_print("* Thank you! *"); ui_print("*******************************"); show_progress(0.1, 10); If you want add kernel installation put boot.img to your folder and add to your script this command: Code: show_progress(0.050000, 5); package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot"); show_progress(0.200000, 10); *** NEW UPDATER-SCRIPT, WITH FORMATING SYSTEM AND CLEAN INSTALLATION: here! FOR EDITING UPDATER SCRIPT ETC USE ALWAYS NOTEPAD++ (NotepadPP) HOMEPAGE of N++ Thats all
great work :good: WYPIERDAALAAC said: Hi all! I want to show you how to create custom rom based on stock lg firmware and stock rom ready to install by recovery 1. Making stock rom ready to install by recovery 1. Download latest LG KK Firmware KDZ: CLICK then this programme: this: Click! 2. Run KDZ Extractor and open kdz (downloaded file) in it. 3. Click extract KDZ 4. Open extracted DZ file, wait and then click on merge system bin (you must check every file in programme) 5. Now you have some more files, look on: -system.img and -boot_327680.bin (rename it to boot.img) -cust_704512.bin (rename it to cust.bin) 6. Download attach file: attach file is here 7. Make some folder on your disc and put there META-INF folder (which you downloaded), system.img, boot.img and cust.bin. 8. Make zip package by 7zip. 9. Now you have ready zip package, you can install it by moded-Recovery. 2. Making custom rom based on stock 1. Make all points from first tutorial to 5* 2. Download here 3. Open system file in downloaded programme and save what you want. 4. Download "META-INF for custom": Here Example: Code: [B]Your text here[/B] ui_print("*****************************"); ui_print("* Your mod *"); ui_print("*****************************"); ui_print("* for LG G2M *"); ui_print("*****************************"); ui_print("First part of installation..."); run_program("/sbin/mount", "/system"); run_program("/sbin/busybox","mount","/data"); [B]Delete system folder, in example you see "media" folder[/B] delete_recursive("/system/media"); package_extract_dir("system", "/system"); mount("ext2", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system"); package_extract_dir("system", "/system"); symlink("../xbin/su", "/system/bin/su"); symlink("../xbin/busybox", "/system/bin/busybox"); set_metadata("/system/xbin/su", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:su_exec:s0"); run_program("/sbin/busybox", "umount", "/system"); run_program("/sbin/busybox", "umount", "/cache"); run_program("/sbin/busybox", "umount", "/data"); run_program("/sbin/busybox", "mount", "/system"); run_program("/sbin/busybox", "mount", "/cache"); run_program("/sbin/busybox", "mount", "/data"); ui_print("Second part of installation..."); [B]About deleting apps, for example Books apk and odex file[/B] delete("/system/app/Books.apk"); delete("/system/app/Books.odex"); set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d"); set_perm_recursive(0, 0, 0755, 0644, "/system/app"); set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app"); ui_print("Please wait... "); run_program("/sbin/busybox", "umount", "/system"); run_program("/sbin/busybox", "umount", "/cache"); run_program("/sbin/busybox", "umount", "/data"); unmount("/system"); ui_print("Clearing cache"); delete_recursive("/data/dalvik-cache"); ui_print("Now UnMounting partitions"); run_program("/sbin/umount", "/system"); run_program("/sbin/umount", "/data"); show_progress(0.1, 0); [B]Last words for ending intsallation[/B] ui_print("*******************************"); ui_print("* Thank you! *"); ui_print("*******************************"); show_progress(0.1, 10); If you want add kernel installation put boot.img to your folder and add to your script this command: Code: show_progress(0.050000, 5); package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot"); show_progress(0.200000, 10); Thats all Click to expand... Click to collapse
Very good tutorial ! I made a flashable v10j ! I can upload it if anyone is interested.
Tse™ said: Very good tutorial ! I made a flashable v10j ! I can upload it if anyone is interested. Click to expand... Click to collapse why not maybe it will help someone back from cm to stock
question: would it be possible to copy the part of the stock of sw Gps CM12? I'm fine with CM12 but GPS signal ... dancer stock with stable signal
WYPIERDAALAAC said: why not maybe it will help someone back from cm to stock Click to expand... Click to collapse Ok! I am uploading!
Just tell if this is for d620 or d61* Sent from my D620fr [SlimKat]
D620R V10J unbranded. Here is the link until i get 10 posts and i am able to open a thread. https://www.dropbox.com/s/xv3ftorno1208en/V10j_D620R.zip?dl=0
Tse™ said: D620R V10J unbranded. Here is the link until i get 10 posts and i am able to open a thread. https://www.dropbox.com/s/xv3ftorno1208en/V10j_D620R.zip?dl=0 Click to expand... Click to collapse Just add the link in this thread :good: Sent from my D620fr [SlimKat]
Already done! I think I'll start playing a bit with the ROM .
baggino said: question: would it be possible to copy the part of the stock of sw Gps CM12? I'm fine with CM12 but GPS signal ... dancer stock with stable signal Click to expand... Click to collapse You can use gps file from stock to cm12, below link:
WYPIERDAALAAC said: You can use gps file from stock to cm12, below link: Click to expand... Click to collapse Now I try it immediately and tell you how it works. If it works well, as you might do for Rom Resurrection Remix
stability is improved but still less the stock. I'd like to try the Resurrection_remix - but I do not know how to copy ...
baggino said: stability is improved but still less the stock. I'd like to try the Resurrection_remix - but I do not know how to copy ... Click to expand... Click to collapse system\etc\gps.conf it's here copy it from Resurrection_remix to your ROM and set permission. PS.: THREAD UPDATED
Just want to know if this method is compatible with D722....and if yes is the meta inf too????? Thank so. ..
Is there a way to root ROM before flash?
WYPIERDAALAAC said: PS.: THREAD UPDATED Click to expand... Click to collapse How to add root directly in the created zip ? ???
rayman95 said: How to add root directly in the created zip ? ??? Click to expand... Click to collapse you must write commands in script for that, tell me if it's good: link for supersu https://download.chainfire.eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip and put to tmp/supersu folder Code: set_progress(0.700000); ui_print("Rooting..."); package_extract_dir("PACKAGENAME/supersu", "/tmp/supersu"); run_program("/sbin/busybox", "unzip", "/tmp/supersu/UPDATE-SuperSU-v2.46.zip", "META-INF/com/google/android/*", "-d", "/tmp/supersu"); run_program("/sbin/busybox", "sh", "/tmp/supersu/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/supersu/UPDATE-SuperSU-v2.46.zip"); run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin"); set_progress(0.800000);
Tse™ said: Very good tutorial ! I made a flashable v10j ! I can upload it if anyone is interested. Click to expand... Click to collapse Thanks!
i cant find the system.img. these files are D62020a00.kdz,
[HELP] Fix TWRP Error 255
Hello XDA Members! I Have Developed A Custom ROM. I Have Create A updater-script. It Showing "Process Ended With Error:255". Here Is My updater-script. Code: ui_print(">>> ZenMod Xperia <<<"); format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system"); mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system"); ui_print("Installing ZenMod"); ui_print("Please wait..."); show_progress(1.34,175); package_extract_dir("system", "/system"); unmount("/system"); ui_print("Flashing Kernel..."); package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot"); ui_print("Finished!"); show_progress(1.000000, 0); Anybody Know How To Fix It?. If Anybody Know Please Help Me...
in recovery , that command row make the mistake ??? And where are the symlinks????
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system"); <- What's the purpose of "0" in here? Everything else looks fine though.
Copy the logcat of TWRP and upload, so you could help more
lol u need symlinks, permitions and much more and also add get device prop..lol updater script cant be this much short...
Harsh_1998 said: lol u need symlinks, permitions and much more and also add get device prop..lol updater script cant be this much short... Click to expand... Click to collapse lol why would he add symlinks and permissions uselessly? and for the device prop it's a good practice to add it but not so necessary. Updater-script can be shorter than this. http://forum.xda-developers.com/showthread.php?t=1931585