I want to make a flashable zip to install flash player, but when i install, the files in the folder lib won't go to the directory, i tried to modify the script, but nothing, thats why i'm asking for some help, here is the script:
Code:
ui_print("FlashPlayer");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 644, "/system/app/flash.apk");
unmount("/system");
mount("MTD", "userdata", "/data");
package_extract_dir("data", "/data");
set_perm(0, 0, 644, "/data/data/com.adobe.flashplayer/lib/libflashplayer.so");
set_perm(0, 0, 644, "/data/data/com.adobe.flashplayer/lib/libstagefright_froyo.so");
set_perm(0, 0, 644, "/data/data/com.adobe.flashplayer/lib/libstagefright_honeycomb.so");
set_perm(0, 0, 644, "/data/data/com.adobe.flashplayer/lib/libysshared.so");
unmount ("/data");
ui_print("Completed");
Srry for create a thread and for my bad english
Galaxy Ace cannot use MTD , we use ext4 with EMMC
This was sent from a Galaxy Ace. Problem?
EmoBoiix3 said:
Galaxy Ace cannot use MTD , we use ext4 with EMMC
This was sent from a Galaxy Ace. Problem?
Click to expand...
Click to collapse
Okay, now the script is:
Code:
ui_print("FlashPlayer");
mount("ext4", "EMMC", "/dev/block/stl12", "/system");
mount("ext4", "EMMC", "/dev/block/stl13", "/data");
package_extract_dir("system", "/system");
set_perm(0, 0, 644, "/system/app/flash.apk");
package_extract_dir("data", "/data");
set_perm(0, 0, 644, "/data/data/com.adobe.flashplayer/lib/libflashplayer.so");
set_perm(0, 0, 644, "/data/data/com.adobe.flashplayer/lib/libstagefright_froyo.so");
set_perm(0, 0, 644, "/data/data/com.adobe.flashplayer/lib/libstagefright_honeycomb.so");
set_perm(0, 0, 644, "/data/data/com.adobe.flashplayer/lib/libysshared.so");
unmount("/system");
unmount ("/data");
ui_print("Completed");
CWM reporting error status 7, now what i should do?
Edit:
If i delete the "/system" and "/data" in mount lines, the cwm install, but the same problem in first post
R4Ck said:
Okay, now the script is:
Code:
ui_print("FlashPlayer");
mount("ext4", "EMMC", "/dev/block/stl12", "/system");
mount("ext4", "EMMC", "/dev/block/stl13", "/data");
package_extract_dir("system", "/system");
set_perm(0, 0, 644, "/system/app/flash.apk");
package_extract_dir("data", "/data");
set_perm(0, 0, 644, "/data/data/com.adobe.flashplayer/lib/libflashplayer.so");
set_perm(0, 0, 644, "/data/data/com.adobe.flashplayer/lib/libstagefright_froyo.so");
set_perm(0, 0, 644, "/data/data/com.adobe.flashplayer/lib/libstagefright_honeycomb.so");
set_perm(0, 0, 644, "/data/data/com.adobe.flashplayer/lib/libysshared.so");
unmount("/system");
unmount ("/data");
ui_print("Completed");
CWM reporting error status 7, now what i should do?
Edit:
If i delete the "/system" and "/data" in mount lines, the cwm install, but the same problem in first post
Click to expand...
Click to collapse
Please show me a log of the Status 7 error
This was sent from a Galaxy Ace. Problem?
EmoBoiix3 said:
Please show me a log of the Status 7 error
This was sent from a Galaxy Ace. Problem?
Click to expand...
Click to collapse
Mount() expect 3 arguments, got 4
R4Ck said:
Mount() expect 3 arguments, got 4
Click to expand...
Click to collapse
Try removing EMMC in both mounts ? And try ?
This was sent from a Galaxy Ace. Problem?
EmoBoiix3 said:
Try removing EMMC in both mounts ? And try ?
This was sent from a Galaxy Ace. Problem?
Click to expand...
Click to collapse
CWM instal, but same problem, no files at /data/data/com.adobe.flashplayer/lib, i tried to use /dev/block/mmcblk0p2, because i read this mounts /data/data, but nothing
That's weird :/
This was sent from a Galaxy Ace. Problem?
AWWW YEAH!!!
I found out what was the problem, i'm using s2e, so /data is moved to /sd-ext/data, just modified the script and works!
Here's the code
Here's the code
Code:
ui_print("FlashPlayer by R4Ck");
mount("ext4", "EMMC", "/dev/block/mmcblk0p2", "/sd-ext");
package_extract_dir("data", "/sd-ext");
set_perm(0, 0, 0644, "/data/data/com.adobe.flashplayer/lib/libflashplayer.so");
set_perm(0, 0, 0644, "/data/data/com.adobe.flashplayer/lib/libstagefright_froyo.so");
set_perm(0, 0, 0644, "/data/data/com.adobe.flashplayer/lib/libstagefright_honeycomb.so");
set_perm(0, 0, 0644, "/data/data/com.adobe.flashplayer/lib/libysshared.so");
unmount ("/sd-ext");
ui_print("Completed");
Hello to all!
So I was writing an updater-script and for some reason after flashing nothing seems to actually happened... I don't get any errors but when I reboot I don't see my changes reflected. The phone I am using is a Motorola Atrix 2 on 4.0.4. Thanks for any help!!
Here's the script:
Code:
ui_print("Google Now Remover by Farshad525hou");
ui_print("Mounting System");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Removing Google Now");
delete("/system/app/velvet.apk");
delete("/system/app/voicesearchstub.apk");
ui_print("Installing Stock ICS Search");
package_extract_dir("system", "/system");
ui_print("Setting Permissions");
set_perm(0, 0, 0644, "system/app/googlequicksearchbox.apk");
ui_print("Unmounting System");
run_program("/sbin/busybox", "unmount", "/system");
ui_print("Removal Complete!");
ui_print("Don't Forget the Thanks Button!");
I gave you a response in the AROMA/Script thread. It's likely your mount command.
Sent from my LG-P999 using xda premium
Code:
show_progress(0.999999, 99);
ui_print(" ");
ui_print("-Installing FF3...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/data");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/data");
mount("vfat", "EMMC", "/dev/block/mmcblk0p1", "/sdcard");
package_extract_dir("sdcard", "/sdcard");
ui_print("-Installation Completed...");
unmount("/data");
unmount("/sdcard");
show_progress(0.000000, 0);
I am constantly flashing the ROM I made to try new things, but I also like to play FF3.
I made a zip for it to be flashed but I get a status 6 when installing.
Can you guys help me out so I don't have to keep installing it from the market and then downloading the package..
What I think it might be is that I don't have the correct mount point for the sdcard.. But not sure what is the right way to mount, lol.
Thanks in advance.
EDIT: figured it out. my mount was wrong like i thought. the updater above works if anyone needs it. Not a mod anymore so can't delete the thread. Mods, you can delete if you want to..
So basically this is the idea:
in the zip, there is
/system/media/audio/ui/Lock.ogg
/bash_script/backup.sh
I want to move the original Lock.ogg to /system/media/audio/backup/
thank, unpack the new package
delete the script from /tmp/system
here what I have in the updater script:
Code:
ui_print("****************************************");
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/data");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Extracting sounds... ");
ui_print("");package_extract_dir("cache", "/cache");
package_extract_dir("bash_script", "/tmp/bash_script");
set_perm(0, 0, 0755, "/tmp/bash_script/backup_create.sh");
run_program("tmp/bash_script/backup_create.sh");
delete("/tmp/bash_script/backup_create.sh");
ui_print("Backup created!");
ui_print("");
package_extract_dir("system", "/system");
unmount("/cache");unmount("/data");
unmount("/system");
ui_print("****************************************");
here is the .sh part:
Code:
mkdir -p /system/media/audio/backup;
cp /system/media/audio/ui/Lock.ogg /system/media/audio/backup;
now after reboot it says system process failed to load or similar error, which of course if eliminated via "fix permissions"
I had this line in the code too:
set_perm_recursive(0, 0, 0755, 0644, "/system");
which of course... just fcked up my phone and won't boot but glad I make backup, if you ask, I just copied this code thinking it would resolve the problem... well... it wasn't.
well the main question.
what permissions to set back, where to, and what lines should I add?
EDIT:
rough set back but
delete_recursive("/cache");
delete_recursive("data/dalvik-cache");
resolved the problem
Hi guyz. im currently trying to make update.zip for my android iptv / set top box. i have some issue i hope any of you guyz can help me with it
right now i have 1 method to actualy install apk using update.zip through stock recovery. it will install my apk directly to the "system/data". i dont want that because it will be deleted each time after the system update and i cant uninstall it.
if posible i would like to know how to edit this update.zip file so i can actualy install my apk to the data/app file.
i tried install gapss through this android but cant. i realize that this kind of
not working updater-script
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/data");
ui_print("| 80% Installing Applications |");
ui_print("Useless system app removal");
delete("/system/app/CMFileManager.apk");
delete("/system/app/CMWallpapers.apk");
package_extract_dir("data", "/data");
set_perm(1000, 1000, 0644, "/data/app/[PACKAGE].apk");
set_perm_recursive(1000, 1000, 0777, 0777, "/data/data/PACKAGE_DATA_FOLDER");
delete("/data/dalvik-cache/[email protected]@[PACKAGE][email protected]");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
-- any script that using sbin/busybox doest work with this device.
working updater-script
mount("ext4", "EMMC", "/dev/block/mmcblk0p8", "/system");
show_progress(1, 15);
ui_print("Copying files...");
package_extract_dir("system", "/system");
ui_print("Unmounting system...");
unmount("/system");
if posible i want to chage or add line that can copy my "data/app" folder to my device.
here is file of the working update.zip that i have tried.
p/s: this update.zip are very similar to http://joeykrim.com/evo3d/custom/index.php? proceses by this website