Delete - Samsung Galaxy S7 Edge Questions and Answers

Delete

remove these mate
http://prntscr.com/ghikhf
every permissions line, you have an extra " right before the first 0
they should look like:
Code:
set_perm(0, 0, 0777, "/system.su.d/50V4a");
You have:
Code:
set_perm("0, 0, 0777, "/system.su.d/50V4a");

kevp75 said:
remove these mate
http://prntscr.com/ghikhf
every permissions line, you have an extra " right before the first 0
they should look like:
You have:
Click to expand...
Click to collapse
Ah, thanks a ton man

Craz Basics said:
Ah, thanks a ton man
Click to expand...
Click to collapse
No prob mate.
LOL I went back to stock a couple weeks ago, and still have not rooted again... if that tells ya how busy I've been lately

kevp75 said:
No prob mate.
LOL I went back to stock a couple weeks ago, and still have not rooted again... if that tells ya how busy I've been lately
Click to expand...
Click to collapse
It does haha. I've been thinking about flashing stock lately but V4A and Xposed are too important
Edit: Didn't work removing those quotations :/

Craz Basics said:
It does haha. I've been thinking about flashing stock lately but V4A and Xposed are too important
Edit: Didn't work removing those quotations :/
Click to expand...
Click to collapse
hmm. ..
same errors?
ill take another peek tomorrow

kevp75 said:
hmm. ..
same errors?
ill take another peek tomorrow
Click to expand...
Click to collapse
Cool, thanks man. When I press the flash button at the end of the installer, it doesn't show anything in the box, but says successfull and askes if I wanna reboot... I tore apart your installer btw.

Try this mate:
Code:
ui_print(" ");
ui_print(" ---------------------------------------");
ui_print(" ---------------------------------------");
ui_print(" Flashing Viper4Android");
ui_print(" by Craz Basics");
ui_print(" ---------------------------------------");
ui_print(" ---------------------------------------");
sleep(1);
ui_print("@ Mounting Partitions ...");
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system");
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/userdata", "/data");
sleep(1);
# VIPER
if
file_getprop("/tmp/aroma/dha.prop","selected.1") == "1"
then
ui_print("- Flashing V4A 2.3.4.0 ...");
package_extract_dir("2.3.4.0", "/system/priv-app");
set_perm(0, 0, 0777, "/system/priv-app/com.vipercn.viper4android_v2_fx-1/base.apk");
set_perm(0, 0, 0644, "/system/priv-app/com.vipercn.viper4android_v2_fx-1");
endif;
# VIPER1
if
file_getprop("/tmp/aroma/dha.prop","selected.1") == "2"
then
ui_print("- Flashing V4A 2.5.0.5 ...");
package_extract_dir("2.5.0.5", "/system/priv-app");
set_perm(0, 0, 0777, "/system/priv-app/com.vipercn.viper4android_v2_fx-1/base.apk");
set_perm(0, 0, 0644, "/system/priv-app/com.vipercn.viper4android_v2_fx-1");
endif;
# SELinux
if
file_getprop("/tmp/aroma/dvm.prop","selected.1") == "1"
then
ui_print("- Flashing TheSELinuxToggler ...");
package_extract_dir("data", "/data");
set_perm(0, 0, 0777, "/data/app/com.mrbimc.selinux-1/base.apk");
set_perm(0, 0, 0644, "/data/app/com.mrbimc.selinux-1");
endif;
# SELinux1
if
file_getprop("/tmp/aroma/dvm.prop","selected.1") == "2"
then
ui_print("- Permissive on boot via su.d ...");
package_extract_dir("system/su.d", "/system");
set_perm(0, 0, 0777, "/system/su.d");
set_perm(0, 0, 0777, "/system.su.d/50V4a");
endif;
# All set
run_program("/sbin/sync");
delete_recursive("/tmp");
unmount("/system");
unmount("/data");
ui_print(" ");
ui_print(" ---------------------------------------");
ui_print(" ---------------------------------------");
ui_print(" Installed!");
ui_print(" Reboot and Enjoy");
ui_print(" ---------------------------------------");
ui_print(" ---------------------------------------");
sleep(1);
Make sure that "data", "2.3.4.0", "2.5.0.5", and "system" directories are right in the root of your zip.

kevp75 said:
Try this mate:
Make sure that "data", "2.3.4.0", "2.5.0.5", and "system" directories are right in the root of your zip.
Click to expand...
Click to collapse
Will do, at soccer rn tho

i just noticed i got the permissions swapped.
should 0755 for the folder and 0644 for the .apk

kevp75 said:
i just noticed i got the permissions swapped.
should 0755 for the folder and 0644 for the .apk
Click to expand...
Click to collapse
It worked man, thanks a ton. Gonna finish editing it a bit and upload
How do I change the splash image? I've tried twice, I keep the same name as yours. I thought it was the file type so I made sure to use PNG and still just a black screen.

Related

[Q]Modding the SU Binary Flashable for CM7

Hi Guys, for starters I have a CM7 Mirage-kang Build for NC, now been having some issues with Superuser lately and found out that it has problems with the SU Binary, so I went to their website and downloaded the SU Binary Flashables from 3.0.3.2 to the latest 3.1.1 and went ahead and checked the zips before flashing.
While checking the updater script of SU Binary I found out that it puts the SU Binary into "/system/bin" rather that "/system/xbin". So went ahead and edited the Flashable in order for the SU Binary to be put into "/system/xbin".
Now question is do I still need to do a symlink from "/system/xbin" to "/system/bin" for CM7? Because I'm not sure how CM handles App request for the Su Binary.
Posted here is the original and my edited updater script of Su Binary 3.0.3.2.
Original Code:
Code:
ui_print("***********************************************");
ui_print(" su binary 3.0.3.2 for Android 2.0-3.2");
ui_print("***********************************************");
show_progress(1.000000, 0);
ui_print(" Mounting SYSTEM...");
run_program("/sbin/busybox", "mount", "/system");
set_progress(0.100000);
ui_print(" Deleting SYSTEM:bin/su...");
delete("/system/bin/su");
set_progress(0.200000);
ui_print(" Deleting SYSTEM:xbin/su...");
delete("/system/xbin/su");
set_progress(0.300000);
ui_print(" Extracting files to SYSTEM...");
package_extract_dir("system", "/system");
set_progress(0.400000);
ui_print(" Setting SYSTEM:bin/su permissions to 06755...");
set_perm(0, 0, 06755, "/system/bin/su");
set_progress(0.500000);
ui_print(" Creating SYSTEM:xbin/su symbolic link...");
symlink("/system/bin/su", "/system/xbin/su");
set_progress(0.600000);
ui_print(" Unmounting SYSTEM...");
unmount("/system");
set_progress(0.900000);
ui_print("Install complete. Enjoy!");
set_progress(1.000000);
Edited Code:
Code:
ui_print("***********************************************");
ui_print(" su binary 3.0.3.2 for Android 2.0-3.2");
ui_print("***********************************************");
show_progress(1.000000, 0);
ui_print(" Mounting SYSTEM...");
run_program("/sbin/busybox", "mount", "/system");
set_progress(0.100000);
ui_print(" Deleting SYSTEM:bin/su...");
delete("/system/bin/su");
set_progress(0.200000);
ui_print(" Deleting SYSTEM:xbin/su...");
delete("/system/xbin/su");
set_progress(0.300000);
ui_print(" Extracting files to SYSTEM...");
package_extract_dir("system", "/system");
set_progress(0.400000);
ui_print(" Setting SYSTEM:xbin/su permissions to 06755...");
set_perm(0, 0, 06755, "/system/xbin/su");
set_progress(0.500000);
ui_print(" Creating SYSTEM:bin/su symbolic link...");
symlink("/system/xbin/su", "/system/bin/su");
set_progress(0.600000);
ui_print(" Unmounting SYSTEM...");
unmount("/system");
set_progress(0.900000);
ui_print("Install complete. Enjoy!");
set_progress(1.000000);
Credit:
Thanks to ChainsDD for providg FAQs and Flashable Zips for SU Binaries.
UPDATE
Turns out CM7 doesn't have symlinks for SU Binary in "/system/bin/" so don't need one.

[Q] whats wrong whit this updater-script ??!!

mmm helllo all , i make cwm flashable for SGY , instaling is succsess , but some app not add on the system
this script-updater on META-INF
ui_print("Instaling Now");
ui_print(" ");
ui_print("Installing Amarullz Modification And zRAM");
ui_print(" ");
ui_print("-----Denny-----");
ui_print(" ");
show_progress(0.100000, 0);
package_extract_dir("system", "/system");
set_perm(0, 0, 0777, "/system/etc/init.d/40ad2sdx");
set_perm(0, 0, 0777, "/system/etc/init.d/90zram");
show_progress(0.1, 10);
ui_print("Installing BusyBox");
show_progress(0.2, 0);
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
package_extract_file("installbusybox", "/tmp/installbusybox");
set_perm(0, 0, 0777, "/tmp/installbusybox");
run_program("/tmp/installbusybox");
ui_print("Installing Root Explorer");
ui_print("Mount System");
run_program("/sbin/busybox", "mount", "/system");
set_progress(0.200000);
ui_print("Installing Now");
package_extract_dir("system", "/system");
set_progress(0.500000);
ui_print("Cleaning Up After Patching");
unmount("/system");
set_progress(0.800000);
ui_print("Finish Installing Root Explorer");
set_progress(1.000000);
ui_print("Installing White XP-Kernel");
show_progress(0.1, 10);
show_progress(0.2, 0);
set_progress(1.000000);
# copying files in ramdisk
package_extract_file("bmlunlock", "bmlunlock");
package_extract_file("boot.img", "boot.img");
set_perm(0, 0, 0755, "bmlunlock");
# mounting the sdcard
mount("vfat", "/dev/block/mmcblk0p1", "/sdcard", "rw");
ui_print("Flashing Boot.img");
# flashing
run_program("bmlunlock");
run_program("/system/bin/dd", "if=boot.img", "of=/dev/block/bml7");
show_progress(0.2, 10);
show_progress(0.100000, 0);
ui_print(" ");
ui_print("Create By Denny On (Temporary) Official Galaxy Young");
ui_print(" ");
ui_print("Installation Completed!!!!");
installation is complete , but when i go to menu there no root explorer , i include root explorer in my cwm flashable , the customrom i use is hyperion 7x , so what the problem in my cwm flashbale ??!!
and yes i am using notepad++
OK , i ask only 1 now
WHO ?? said:
mmm helllo all , i make cwm flashable for SGY , instaling is succsess , but some app not add on the system
this script-updater on META-INF
ui_print("Instaling Now");
ui_print(" ");
ui_print("Installing Amarullz Modification And zRAM");
ui_print(" ");
ui_print("-----Denny-----");
ui_print(" ");
show_progress(0.100000, 0);
package_extract_dir("system", "/system");
set_perm(0, 0, 0777, "/system/etc/init.d/40ad2sdx");
set_perm(0, 0, 0777, "/system/etc/init.d/90zram");
show_progress(0.1, 10);
ui_print("Installing BusyBox");
show_progress(0.2, 0);
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
package_extract_file("installbusybox", "/tmp/installbusybox");
set_perm(0, 0, 0777, "/tmp/installbusybox");
run_program("/tmp/installbusybox");
ui_print("Installing Root Explorer");
ui_print("Mount System");
run_program("/sbin/busybox", "mount", "/system");
set_progress(0.200000);
ui_print("Installing Now");
package_extract_dir("system", "/system");
set_progress(0.500000);
ui_print("Cleaning Up After Patching");
unmount("/system");
set_progress(0.800000);
ui_print("Finish Installing Root Explorer");
set_progress(1.000000);
ui_print("Installing White XP-Kernel");
show_progress(0.1, 10);
show_progress(0.2, 0);
set_progress(1.000000);
# copying files in ramdisk
package_extract_file("bmlunlock", "bmlunlock");
package_extract_file("boot.img", "boot.img");
set_perm(0, 0, 0755, "bmlunlock");
# mounting the sdcard
mount("vfat", "/dev/block/mmcblk0p1", "/sdcard", "rw");
ui_print("Flashing Boot.img");
# flashing
run_program("bmlunlock");
run_program("/system/bin/dd", "if=boot.img", "of=/dev/block/bml7");
show_progress(0.2, 10);
show_progress(0.100000, 0);
ui_print(" ");
ui_print("Create By Denny On (Temporary) Official Galaxy Young");
ui_print(" ");
ui_print("Installation Completed!!!!");
installation is complete , but when i go to menu there no root explorer , i include root explorer in my cwm flashable , the customrom i use is hyperion 7x , so what the problem in my cwm flashbale ??!!
and yes i am using notepad++
OK , i ask only 1 now
Click to expand...
Click to collapse
aww man , some user cant answer this question ??
Mount system
sent from the best fastest smoothest rom for sgy
---------- Post added at 06:40 PM ---------- Previous post was at 06:37 PM ----------
Btw wrong section i think
sent from the best fastest smoothest rom for sgy
Mount system at firsy
Sent from my cm_totoro using xda-premium
rmp07 said:
Mount system
sent from the best fastest smoothest rom for sgy
---------- Post added at 06:40 PM ---------- Previous post was at 06:37 PM ----------
Btw wrong section i think
sent from the best fastest smoothest rom for sgy
Click to expand...
Click to collapse
where wrong section ??
WHO ?? said:
aww man , some user cant answer this question ??
Click to expand...
Click to collapse
3 things...
1st.. root explorer is a wares if it is included in zip...
Seems you are adding your own.. so I wont talk about it..
2nd.. you have to mount system partition before flashing this zip file.. as you don't have mount command in script..
3rd.. are you sure you have Rex.apk file inside system folder in zip file? If not it won't work..
Also you need to use set permission command to set 644 on app...
____________________________________________
ಇದು ನನ್ನ ಆಪ್ ಸಿಗ್ನೇಚರ್
ΧΔΑ Fraternity: TOT Time! & IRC Info
Judge a man by his questions rather than his answers.
Deadly. said:
3 things...
1st.. root explorer is a wares if it is included in zip...
Seems you are adding your own.. so I wont talk about it..
2nd.. you have to mount system partition before flashing this zip file.. as you don't have mount command in script..
3rd.. are you sure you have Rex.apk file inside system folder in zip file? If not it won't work..
Also you need to use set permission command to set 644 on app...
____________________________________________
ಇದು ನನ್ನ ಆಪ್ ಸಿಗ್ನೇಚರ್
ΧΔΑ Fraternity: TOT Time! & IRC Info
Judge a man by his questions rather than his answers.
Click to expand...
Click to collapse
ok man , i will try now

[GUIDE] how to remove armora installer

as i promised i posted this guide too
you will need this if you wana port a rom that has new version of amora installer because touchscreen wont work for play
what you need:
1-again a brain
2-my guide
3-notepad ++
4-winrar
5-rom that you wana remove armora installer of it
6- http://www.diffchecker.com/
7-my files
ok now we can start
copy your rom .zip to a folder (for example porting porject)
open you rom rom zip
now extract armora folder of rom.zip to you folder (needed for later)
because most of the roms have similar update-script you can rebuild an update-script and replace the rebuilded META-INF folder with the one in the rom that you are going to port
go to META-INF/com/google/android and open update-script with notepad ++
now copy the whole texts to changed text in http://www.diffchecker.com/
now open the file that i attached and go META-INF/com/google/android and open update-script with notepad ++
now copy the whole texts to original text in http://www.diffchecker.com/
now do a diff check
you will see some armora related lines like
Code:
if
file_getprop("/tmp/aroma-data/demo.prop","selected") == "1"
then
ui_print("Formatting /system");
unmount("/system");
format("MTD", "system");
ui_print("Mounting /system");
mount("MTD", "system", "/system");
ui_print("Clearing Cache");
mount("MTD", "cache", "/cache");
delete_recursive("/cache");
ui_print("Mounting /data");
mount("MTD", "userdata", "/data");
delete_recursive("/data/dalvik-cache");
ui_print(" ");
ui_print(" ");
##---- Features
ui_print("@Main Features");
ui_print(" ");
ui_print(" ");
ui_print("@Copying System files...");
show_progress(0.95, "-65000");
ui_print(" - Core Files...");
package_extract_dir("system", "/system");
package_extract_file("check_data_app", "/tmp/check_data_app");
set_perm(0, 0, 0777, "/tmp/check_data_app");
run_program("/tmp/check_data_app");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
package_extract_dir("sdcard", "/sdcard");
ui_print(" ");
ui_print(" ");
# Bootloader Selection
if
file_getprop("/tmp/aroma/mods.prop","selected.1") == "1"
then
ui_print("@Configuring ROM for locked BL...");
package_extract_dir("Aroma/bl/locked/system", "/system");
package_extract_dir("update", "/tmp");
set_perm(0, 0, 0755, "/tmp/update", "/tmp/sh");
run_program("/tmp/update", "check");
ui_print(" ");
ui_print(" installing init.d.loader . . .");
run_program("/tmp/update", "install");
endif;
if
file_getprop("/tmp/aroma/mods.prop","selected.1") == "2"
then
ui_print("@Configuring ROM for unlocked BL...");
endif;
ui_print("");
ui_print("");
ui_print("@Device selection");
# Device Selection
if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "1"
then
ui_print("Selected device - Xperia Arc");
package_extract_dir("Aroma/device/arc", "/system");
endif;
if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "2"
then
ui_print("Selected device - Xperia Arc S");
package_extract_dir("Aroma/device/arcs", "/system");
endif;
if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "3"
then
ui_print("Selected device - Xperia Neo");
package_extract_dir("Aroma/device/neo", "/system");
endif;
if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "4"
then
ui_print("Selected device - Xperia Neo V");
package_extract_dir("Aroma/device/neov", "/system");
endif;
if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "5"
then
ui_print("Selected device - Xperia Pro");
package_extract_dir("Aroma/device/pro", "/system");
endif;
if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "6"
then
ui_print("Selected device - Xperia Ray");
package_extract_dir("Aroma/device/ray", "/system");
endif;
# Launchers
if
file_getprop("/tmp/aroma/mods.prop","selected.3") == "1"
then
ui_print("Installing Dark Xperia Home");
package_extract_dir("Aroma/home/dark", "/system");
endif;
if
file_getprop("/tmp/aroma/mods.prop","selected.3") == "2"
then
ui_print("Installing Transparent Home");
package_extract_dir("Aroma/home/trans", "/system");
endif;
# Fonts
if
file_getprop("/tmp/aroma/mods.prop","selected.4") == "1"
then
ui_print("Installing Z1 Font");
endif;
if
file_getprop("/tmp/aroma/mods.prop","selected.4") == "2"
then
ui_print("Installing NXT 2012 Font");
package_extract_dir("Aroma/font/nxt2012", "/system/fonts");
endif;
# convo
if
file_getprop("/tmp/aroma/mods.prop","selected.5") == "1"
then
ui_print("Installing Z White Conversation...");
package_extract_dir("Aroma/convo/white", "/system");
endif;
if
file_getprop("/tmp/aroma/mods.prop","selected.5") == "2"
then
ui_print("Installing Xperia Z Black Conversation...");
package_extract_dir("Aroma/convo/black", "/system");
endif;
# Key
if
file_getprop("/tmp/aroma/mods.prop","selected.6") == "1"
then
ui_print("Z Keyboard...");
package_extract_dir("Aroma/keyboard/jbswype", "/system");
endif;
if
file_getprop("/tmp/aroma/mods.prop","selected.6") == "2"
then
ui_print("Stock Keyboard...");
package_extract_dir("Aroma/keyboard/stockkb", "/system");
endif;
# small
if
file_getprop("/tmp/aroma/mods.prop","selected.7") == "1"
then
ui_print("Enable Small Apps...");
package_extract_dir("Aroma/smallapp/system", "/system");
package_extract_dir("Aroma/smallapp/data", "/data");
endif;
if
file_getprop("/tmp/aroma/mods.prop","selected.7") == "2"
then
ui_print("Disable Small Apps...");
endif;
# lock
if
file_getprop("/tmp/aroma/mods.prop","selected.8") == "1"
then
ui_print("Installing Z Lockscreen...");
package_extract_dir("Aroma/lockscreen/normalz", "/system");
endif;
if
file_getprop("/tmp/aroma/mods.prop","selected.8") == "2"
then
ui_print("Installing Z Lockscreen Modified...");
package_extract_dir("Aroma/lockscreen/newz", "/system");
endif;
# sound
if
file_getprop("/tmp/aroma/mods.prop","selected.9") == "1"
then
ui_print("Viper4Android Sound Mod...");
package_extract_dir("Aroma/soundmod/viper/data", "/data/app");
package_extract_dir("Aroma/soundmod/viper/sd", "/sdcard");
endif;
if
file_getprop("/tmp/aroma/mods.prop","selected.9") == "2"
then
ui_print("Pure X Audio Sound Mod...");
package_extract_dir("Aroma/soundmod/purex", "/system");
endif;
ui_print(" ");
ui_print(" ");
##---- End Features
##---- Customization
ui_print("@Additional features");
# youtube
if
file_getprop("/tmp/aroma/customize.prop","item.1.1") == "1"
then
ui_print("- Youtube");
package_extract_dir("Aroma/stuffs/youtb", "/data/app");
endif;
# Titanium backup
if
file_getprop("/tmp/aroma/customize.prop","item.1.2") == "1"
then
ui_print("- Titanium Backup");
package_extract_dir("Aroma/stuffs/titanium", "/data/app");
endif;
# xboost
if
file_getprop("/tmp/aroma/customize.prop","item.1.3") == "1"
then
ui_print("- xBooster");
package_extract_dir("Aroma/stuffs/xboost", "/data/app");
endif;
# FB Integration
if
file_getprop("/tmp/aroma/customize.prop","item.1.4") == "1"
then
ui_print("- Facebook inside Xperia & Social Engine");
package_extract_dir("Aroma/stuffs/fb", "/system");
endif;
# Live Wallpaper
if
file_getprop("/tmp/aroma/customize.prop","item.1.5") == "1"
then
ui_print("- Live wallpaper support");
package_extract_dir("Aroma/stuffs/lw", "/system/app");
endif;
# Quick Pic
if
file_getprop("/tmp/aroma/customize.prop","item.1.6") == "1"
then
ui_print("- Quick Pic Album App");
package_extract_dir("Aroma/stuffs/qpic", "/data/app");
endif;
# Sim Tool Kit
if
file_getprop("/tmp/aroma/customize.prop","item.1.7") == "1"
then
ui_print("- Sim Tool Kit");
package_extract_dir("Aroma/stuffs/stk", "/system/app");
endif;
# pico
if
file_getprop("/tmp/aroma/customize.prop","item.1.8") == "1"
then
ui_print("- Pico TTS");
package_extract_dir("Aroma/stuffs/pico", "/system");
endif;
# email
if
file_getprop("/tmp/aroma/customize.prop","item.1.9") == "1"
then
ui_print("- SemcEmail");
package_extract_dir("Aroma/stuffs/email", "/system/app");
endif;
# sony
if
file_getprop("/tmp/aroma/customize.prop","item.1.10") == "1"
then
ui_print("- Sony Select");
package_extract_dir("Aroma/stuffs/sonyselect", "/system");
endif;
# social
if
file_getprop("/tmp/aroma/customize.prop","item.1.11") == "1"
then
ui_print("- Social Life");
package_extract_dir("Aroma/stuffs/sociallife", "/system");
endif;
you wont nee to inculde these things in your update-script
you might see some lines like these one
Code:
ui_print("Enabling Fly-on Mode...");
set_perm_recursive(0, 2000, 0777, 0777, "/system/etc/rngd");
set_perm(0, 0, 0777, "/system/bin/entropy_off");
set_perm(0, 0, 0777, "/system/bin/entropy_on");
set_perm(0, 0, 0777, "/system/bin/uninstaller");
set_perm(0, 0, 0777, "/system/xbin/openvpn");
set_perm(0, 0, 0777, "/system/etc/init.d/sqlite_optimize");
set_perm(0, 0, 0777, "/system/xbin/zipalign");
set_perm(0, 0, 0777, "/system/etc/init.d/09sdcardspeedfix");
set_perm(0, 0, 0777, "/system/etc/init.d/92cleaner");
set_perm(0, 0, 0777, "/system/etc/init.d/94Governor_tweaks");
set_perm(0, 0, 0777, "/system/etc/init.d/98fly_engine");
set_perm(0, 0, 0777, "/system/etc/init.d/darky_zipalign");
set_perm(0, 0, 0777, "/system/etc/init.d/zipaligndata");
set_perm(0, 0, 0777, "/system/etc/init.d/ram_manager");
set_perm(0, 0, 0777, "/system/etc/hosts");
set_perm(0, 0, 0777, "/system/etc/sysctl.conf");
these things should be added to you update-script of my files
now your update-script is ready
so save it and open my files again (after saving)
now delete META-INF and armora folder in your rom zip and replace the META-INF with the one that you rebuilded (my files)
now armora is removed but you will need to add some files from you armora installer that you extracted before then you rom is ready for flashing
i will explain them in second post
ok now we have to build the rom.zip for a successful flash
go to folder that you made/armora
now you will see some folders inside that
you need make you chooses that you have to make when installing the rom in the armora installer
ok first of all drag all xperia arc device files to /system of you rom
now simply open each customization folder and make your decision and then drag the file to your .system of your rom.zip
but be carefuller
some of the roms will extract a file to a specific folder insead of /system
for example when you go to massgae folder you will only see apk files instead of /system folder so you will need to drag apk to system/apk
if you dont know where to drag the file simply quick replay my post and wait for my answer or open update-script of your unchanged rom and search for the massgae related lines then you will find out what to do
if you quick replay my post please post your update-script or any other usefull information
reserved for later
please give me a thanks if this guide helped you
that will make me happy

[help] [q] flashing resurrection remix

ui_print("Target: 1476761072");
ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
if is_mounted("/data") then
package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("f2fs", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data", "");
package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
unmount("/data");
endif;
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" RRRRRRRRRRRRRRRRR RRRRRRRRRRRRRRRRR ");
ui_print(" R::::::::::::::::R R::::::::::::::::R ");
ui_print(" R::::::RRRRRR:::::R R::::::RRRRRR:::::R ");
ui_print(" RR:::::R R:::::R RR:::::R R:::::R");
ui_print(" R::::R R:::::R R::::R R:::::R");
ui_print(" R::::R R:::::R R::::R R:::::R");
ui_print(" R::::RRRRRR:::::R R::::RRRRRR:::::R ");
ui_print(" R:::::::::::::RR R:::::::::::::RR ");
ui_print(" R::::RRRRRR:::::R R::::RRRRRR:::::R ");
ui_print(" R::::R R:::::R R::::R R:::::R");
ui_print(" R::::R R:::::R R::::R R:::::R");
ui_print(" R::::R R:::::R R::::R R:::::R");
ui_print(" RR:::::R R:::::R RR:::::R R:::::R");
ui_print(" R::::::R R:::::R R::::::R R:::::R");
ui_print(" R::::::R R:::::R R::::::R R:::::R");
ui_print(" RRRRRRRR RRRRRRR RRRRRRRR RRRRRRR");
ui_print(" ");
ui_print(" ");
show_progress(0.750000, 0);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
ui_print("Verifying the updated system image...");
if range_sha1("/dev/block/platform/msm_sdcc.1/by-name/system", "58,0,32767,32768,32770,32921,32923,33435,65535,65536,65538,98304,98306,98457,98459,98971,131071,131072,131074,163840,163842,163993,163995,164507,196607,196608,196610,229376,229378,229529,229531,230043,254534,262144,262146,294912,294914,295065,295067,327680,327682,360448,360450,393216,393218,425984,425986,458752,458754,491520,491522,524288,524290,557056,557058,589824,589826,590338,622079") == "59e89db3ffb06e47ada9cc702f0f6ffe23455202" then
if range_sha1("/dev/block/platform/msm_sdcc.1/by-name/system", "86,32767,32768,32770,32921,32923,33435,65535,65536,65538,66050,97792,98304,98306,98457,98459,98971,131071,131072,131074,131586,163328,163840,163842,163993,163995,164507,196607,196608,196610,197122,228864,229376,229378,229529,229531,230043,254534,255046,261632,262144,262146,262658,294400,294912,294914,295065,295067,295579,327168,327680,327682,328194,359936,360448,360450,360962,392704,393216,393218,393730,425472,425984,425986,426498,458240,458752,458754,459266,491008,491520,491522,492034,523776,524288,524290,524802,556544,557056,557058,557570,589312,589824,589826,590338,622079,622080") == "243655f02337041e8492bdd59d398f1a9ac41f2c" then
ui_print("Verified the updated system image.");
else
abort("system partition has unexpected non-zero contents after OTA update");
endif;
else
abort("system partition has unexpected contents after OTA update");
endif;
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.200000, 10);
STATUS ERROR 7 I ALREADY DELETED THE ASSERT THING AND STILL GETTTING ERROR 7
PD: IM RUNNING THE 6.0.1 STOCK MARHSMELLOW
SM-G900M
can u guys help me and in case of tell me what to do to fix this problem and same problem while flashing CM13
Thanks
Hi!
In order to flash any custom ROM, you must have the following pre requisites:
Unlocked bootloader
have a custom recovery: CWM or TWRP
Do you have both of them?
Reyse said:
Hi!
In order to flash any custom ROM, you must have the following pre requisites:
Unlocked bootloader
have a custom recovery: CWM or TWRP
Do you have both of them?
Click to expand...
Click to collapse
I'm root, but I don't know what method use to unlock Bootloader! Can you help me
Alfred1516 said:
I'm root, but I don't know what method use to unlock Bootloader! Can you help me
Click to expand...
Click to collapse
I guess you are trying to flash RR with stock recovery, aren't you?
Reyse said:
I guess you are trying to flash RR with stock recovery, aren't you?
Click to expand...
Click to collapse
No,i already fix it by changing the Updater script and try the ROM for 12h and then left to CM14.1
Alfred1516 said:
No,i already fix it by changing the Updater script and try the ROM for 12h and then left to CM14.1
Click to expand...
Click to collapse
Sorry, how did you fix the problem?
Reyse said:
Sorry, how did you fix the problem?
Click to expand...
Click to collapse
I went to the Updater script and deleted the 2 lines that said "thus package are not compatible" and change the asseet for the name of my device

updater-script help

So i pulled this script from a debloater zip.
the only command im looking to do is: rm /data/system/locksettings.db
Im a little confused because i dont want the zip to be recurring which it is currently set up like that.
what do i need to change?
EDIT: I think i removed the recursive entry correctly.
Can someone look over this and see if it looks ok?
thanks in advance.
here is the script:
ui_print("******************************************");
ui_print("Pin Fix Script");
ui_print("");
ui_print("******************************************");
show_progress(1, 15);
ui_print("Unmounting system");
run_program("/sbin/busybox", "umount", "/system");
ui_print("->");
ui_print("Mounting system");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
ui_print("Initializing...");
ui_print("Fixing PIN now");
delete(
"/data/system/locksettings.db",
);
show_progress(1, 15);
ui_print("--");
ui_print("Copying files");
package_extract_dir("system", "/system");
show_progress(1, 15);
ui_print("Cleaning up and setting metadata");
set_metadata("/system/addon.d", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/app", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
ui_print("Unmounting system");
show_progress(1, 15);
ui_print("- - - - - - - - - - - - - - - - - - - - - - - - - -");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Removal complete!");
ui_print(" ");
ui_print(" ");
show_progress(1, 15);
ui_print(" ");
show_progress(1, 15);
ui_print("-made by dtr145r - credit to Gawd");
ui_print(" ");
show_progress(1, 15);
ui_print(" ");
ui_print("Your PIN Code should now work");
ui_print(" ");
ui_print(" Enjoy! ");
Lots of unnecessary code there, plus huge blunders because you're supposed to mount /data, not /system
Removed loads of bloat. Feel free to edit the credits, I just made one that works
Gawd said:
Lots of unnecessary code there, plus huge blunders because you're supposed to mount /data, not /system
Removed loads of bloat. Feel free to edit the credits, I just made one that works
Click to expand...
Click to collapse
Awesome thanks!
I figured there were a lot of mistakes, Its been about 3 years since i tried to mess with scripts. I forgot quite a bit.
I just got the Nexus 6p, I'm still trying to learn the ins and outs of it. Ive had Samsung phones for the past 6 years.
When ever I do a factory reset on the Nexus I have to run '' "/data/system/locksettings.db"'' in adb because the lockscreen pin code changes and locks me out of the phone... Is that common?
Thats why I wanted to create a zip file to do it for me..

Categories

Resources