[Q] Pdroid - Motorola Droid and Milestone Q&A, Help & Troublesh

I've not had any luck getting ApG to patch any version of the Rom I've downloaded for this device with no joy. If anyone could help that would be awsome.
Source: https://github.com/nadlabak/android/downloads
ApG: http://forum.xda-developers.com/showpost.php?p=31648393&postcount=690

Tal_Star said:
I've not had any luck getting ApG to patch any version of the Rom I've downloaded for this device with no joy. If anyone could help that would be awsome.
Source: https://github.com/nadlabak/android/downloads
ApG: http://forum.xda-developers.com/showpost.php?p=31648393&postcount=690
Click to expand...
Click to collapse
What this patch is doing?

I've pasted a copy of the log bellow.
Code:
ROOT= /cygdrive/c/Temp/ApGPackages/ap/
TOOL= /cygdrive/c/Temp/ApGPackages/ap//patch_tools.tgz
ROM= /cygdrive/c/Temp/cm-7.2.3-umts_sholes.zip
ROMX= C:\Temp\CM-723~1.ZIP
### verify tools ###
/cygdrive/c/Temp/ApGPackages/cygwin/bin/patch
/cygdrive/c/Temp/ApGPackages/cygwin/bin/tar
/cygdrive/c/Temp/ApGPackages/Java/bin/jar
/cygdrive/c/Temp/ApGPackages/Java/bin/java
/cygdrive/c/Temp/ApGPackages/cygwin/bin/cpio
### verify ROM ###
### running ./auto_patcher /cygdrive/c/Temp/cm-7.2.3-umts_sholes.zip pdroid cm7
PATH= /cygdrive/c/Temp/ApGPackages/ap/tmp20121022100213:/cygdrive/c/Temp/ApGPackages/Java/bin:/cygdrive/c/Temp/ApGPackages/cygwin/bin:/cygdrive/c/Temp/ApGPackages/cygwin/usr/sbin
### unzip patch tools ###
### unzip patch patches ###
... result of ROM check: RIL= motow3g
### probe rom type ###
# VER= Auto-Patcher v2.1.9
# OS= cygwin 32bit
# VID= 2.3.7
# MID=
# RID= cm7
# BDID= 2011-01-18
# DID=
# BID= latest
# PID= pdroid
### DELETE FILES=
### COPY FILES=
### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar
### APK FILES=
### IMG FILES=
### TXT FILES=
### unzip rom ###
### create updater script ###
... using Clockworkmod installer ...
# generated updater-script
mount("yaffs2", "MTD", "system", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 1000, 04755, "/system/bin/pppd");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm(1000, 1003, 02755, "/system/bin/screenshot");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/hcitool");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/tcpdump");
unmount("/system");
### create restore.zip ###
### decompile system files ###
... decompile framework.jar ...
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.DexFile$NoClassesDexException: zip file framework.jar does not contain a classes.dex file
at org.jf.dexlib.DexFile.<init>(DexFile.java:298)
at org.jf.baksmali.main.main(main.java:269)
... extract preloaded-classes ...
inflated: preloaded-classes
... decompile core.jar ...
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.DexFile$NoClassesDexException: zip file core.jar does not contain a classes.dex file
at org.jf.dexlib.DexFile.<init>(DexFile.java:298)
at org.jf.baksmali.main.main(main.java:269)
... decompile services.jar ...
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.DexFile$NoClassesDexException: zip file services.jar does not contain a classes.dex file
at org.jf.dexlib.DexFile.<init>(DexFile.java:298)
at org.jf.baksmali.main.main(main.java:269)
### jar patch pdroid/cm7/latest ###
... apply framework.patch ...
... apply preloaded.patch ...
... apply core.patch ...
... apply services.patch ...
### rebuild jar ###
... rebuild framework.jar ...
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Cannot find file or directory "tmp/system/framework/framework.jar.out/smali"
at org.jf.smali.main.main(main.java:184)

Maybe this pathes is uncompatible with last versions of CM7 with 2ndboot? There is something about framework.jar in log...

That patch probably works only with deodexed ROMs. CM7 is odexed for some time now.

mrvek said:
That patch probably works only with deodexed ROMs. CM7 is odexed for some time now.
Click to expand...
Click to collapse
Can you recommend a ROM that would work or that is already patched?

Tal_Star said:
Can you recommend a ROM that would work or that is already patched?
Click to expand...
Click to collapse
CM10 is deoexed (the one that is up-to-date). What ever that may mean in this given case.
You can deodex a ROM if you're up for it. There are tools and tutorials on the subject.

Related

need help write update script

hello i need your help.
i want to write an update script to make a backup of a file
here is my script, but i have a syntax error
mount("MTD", "system", "/system");
ui_print("Installing system...");
show_progress(0.100000, 0);
set_progress(1.000000);
mv /system/app/Email.apk /system/app/Email.original ;
set_perm_recursive(0, 2000, 0755, 0755, "/system/app/Email.apk");
set_perm_recursive(0, 2000, 0755, 0755, "/system/app/Email.original");
ui_print("ok");
unmount("/system");
Click to expand...
Click to collapse

[Q] CWM Status 6 error on my Rom

Ive been trying to create a rom for personal like ive done before with froyo roms
but when we switched to gingerbread it seems like were now using updater-scripts instead of update-scripts and i keep getting error Status 6 on cwm when i try to install and ive narrowed it down to being the updater script
here is my updater script if anyone could help me see what is wrong
ui print(" +=========================================+");
ui_print(" | Installing Rom..." |");
show_progress(0.200000, 5);
run_program("/sbin/mount", "/system");
run_program("/sbin/mount", "/dev/block/stl10", "/dbdata");
run_program("/sbin/mount", "/dev/block/stl11", "/cache");
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/data");
ui_print(" | Formatting system |");
delete_recursive("/system");
delete_recursive("/dbdata");
delete_recursive("/cache");
delete_recursive("/data");
package_extract_dir("updates", "/tmp");
set_perm(0, 0, 0777, "/tmp/redbend_ua");
set_perm(0, 0, 0777, "/tmp/wipe");
run_program("/tmp/wipe");
ui_print(" | Extracting apps... |");
package_extract_dir("data", "/data");
set_perm(1000, 1010, 0771, "/data/app");
show_progress(0.500000, 60);
ui_print(" | Installing system files |");
package_extract_dir("system", "/system");
ui_print(" | creating symlinks... |");
symlink("toolbox", "/system/bin/cat", "/system/bin/chmod", "/system/bin/chown", "/system/bin/cmp", "/system/bin/date", "/system/bin/dd" "/system/bin/df", "/system/bin/dmesg", "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd", "/system/bin/id" "/system/bin/ifconfig", "/system/bin/iftop", "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice", "/system/bin/kill" "/system/bin/ln", "/system/bin/log", "/system/bin/ls", "/system/bin/lsmod", "/system/bin/mkdir", "/system/bin/mount" "/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat", "/system/bin/newfs_msdos", "/system/bin/notify" "/system/bin/printenv", "/system/bin/ps", "/system/bin/reboot", "/system/bin/renice", "/system/bin/rm", "/system/bin/rmdir" "/system/bin/rmmod", "/system/bin/route", "/system/bin/schedtop", "/system/bin/sendevent", "/system/bin/setconsole" "/system/bin/setprop", "/system/bin/sleep", "/system/bin/smd", "/system/bin/start", "/system/bin/stop", "/system/bin/sync" "/system/bin/top", "/system/bin/umount", "/system/bin/vmstat", "/system/bin/watchprops", "/system/bin/wipe");
symlink("/system/xbin/su", "/system/bin/su");
symlink("/system/bin/dumpstate", "/system/bin/dumpmesg");
symlink("/system/bin/debuggerd", "/system/bin/csview");
show_progress(0.200000, 70);
ui_print(" | setting permissions... |");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
set_perm_recursive(1002, 1002, 0755, 0440, /system/etc/bluetooth);
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/bin/launch_gps.sh");
set_perm(0, 2000, 0755, "/system/vendor/bin/gpsd");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(0, 3003, 02755, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/busybox");
set_perm(0, 0, 06755, "/system/bin/sqlite3");
ui_print(" | installing busybox.... |");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
ui_print(" | Flashing modem |");
run_program("/tmp/redbend_ua", "restore", "/tmp/modem.bin", "/dev/block/bml12");
ui_print(" | Flashing kernel |");
run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml7");
ui_print(" | Finishing Install | ");
unmount("/data");
unmount("/dbdata");
unmount("/cache");
unmount("/system");
show_progress(0.200000, 0);
ui_print(" +=========================================+");
its the encoding on updater.script
something probably corrupted the encoding on your updater.script (like a Microsoft product editor or something). Change the encoding back to unix and see if that doesn't fix it.
Rob
insink71 said:
something probably corrupted the encoding on your updater.script (like a Microsoft product editor or something). Change the encoding back to unix and see if that doesn't fix it.
Rob
Click to expand...
Click to collapse
holy necro post, dude....
insink71 said:
something probably corrupted the encoding on your updater.script (like a Microsoft product editor or something). Change the encoding back to unix and see if that doesn't fix it.
Rob
Click to expand...
Click to collapse
Its been so long since i had this prob and i still get it... I have a macwhich is paet of prob but ive found a solution thanks')
howtomen said:
Its been so long since i had this prob and i still get it... I have a macwhich is paet of prob but ive found a solution thanks')
Click to expand...
Click to collapse
What was the solution, if you don't mind? I'm having the same issue.
---------- Post added at 09:18 PM ---------- Previous post was at 09:11 PM ----------
Nevermind, found the solution - http://boardreader.com/thread/update_zip_error_status_6_677jjXi0hq.html
In CMW go to "Advanced" panel and then select "Log"
Here you can see where you went wrong and it will specify even the line number so you can easily edit these mistakes.
I recommend Notepad++ for editing these scripts.
Leon1234 said:
In CMW go to "Advanced" panel and then select "Log"
Here you can see where you went wrong and it will specify even the line number so you can easily edit these mistakes.
I recommend Notepad++ for editing these scripts.
Click to expand...
Click to collapse
Haha prob solved but thanks... The issue wasnt a specific to the updater but to what i used to edit it
trolol and awayyy!! Expect typos this is my phone.
Good to hear that.,

Help making an update.zip

I'm trying to make an update.zip file for the ROM I'm working on, I'm signing it using testsign.jar and the instructions here
The updater-binary is from the OTA but I believe this doesn't matter as Safestrap ignores it anyway
The contents of the ZIP are:
Code:
.:
META-INF system
./META-INF:
com
./META-INF/com:
android google
./META-INF/com/android:
metadata
./META-INF/com/google:
android
./META-INF/com/google/android:
update-binary updater-script
./system:
app etc framework
./system/app:
VZWAPNLib.apk VzwDeviceSetup.apk VzwSecureSettings.apk
vzwapnpermission.apk VzwEntitlementService.apk VzwSettingsExt.apk
VZWAPNService.apk vzwPhoneExt.apk
VzwController.apk VzwPhoneService.apk
./system/etc:
gps.conf
./system/framework:
com.motorola.vzw.vmm.helper.jar com.vzw.android.hux.jar
com.motorola.vzw.vmm.util.jar com.vzw.android.jar
com.verizon.phone.jar com.vzw.android.smart.jar
com.vzw.android.gex.jar
The updater script is:
Code:
show_progress(0.500000, 0);
ui_print("Mounting your system...");
mount("ext3", "EMMC", "/dev/block/system", "/system");
ui_print("Starting Installation...");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(0, 0, 0444, "/system/etc/install-recovery.cfg");
set_perm(0, 2000, 0544, "/system/etc/install-recovery.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/usr/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
run_program("/tmp/fixperm.sh");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 1001, 04770, "/system/bin/pppd-ril");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/bin/su");
show_progress(0.200000, 0);
show_progress(0.200000, 10);
show_progress(0.200000, 10);
show_progress(0.100000, 0);
unmount("/system");
The lines in that script are terminated with LF, not CRLF.
I'm zipping it up and then signing it with: java -classpath testsign.jar testsign CDMA_Patch_V1.2.zip CDMA_Patch_V1.2_signed.zip
But flashing it in safestrap gives an error (Status 4)
Please tell me what I'm doing wrong!
Now I understand why all the threads about this error end with no response or simply "never mind I figured it out", it's because when you figure it out you feel really really stupid and don't want to admit to the error.
So here's the solution:
When you make a zip file using 7zip or similar, if you right click on the folder (say it's called MyPatch) and do "Add to MyPatch.zip", the zip file structure ends up being:
\MyPatch\META-INF
\MyPatch\System
etc.
The structure actually needs to be
\META-INF
\System
etc.
So instead you need to go into the folder, select all, right click, Add to MyPatch.zip
You can then run SignApk.jar on it and the result will be flashable!

/etc/system/snd_soc_msm/snd_soc_msm_2x_fusion3 from Stock ROM

Hi, can anyone post the captioned file from stock roms? i want to compare it with cm/fxp's and see what's the problems with 2nd mic and maybe improve the low volume.
thx!
Android 4.3 FW (10.4.B.0.569)
Go Ahead
trying to push this into cm11 build, stopped by sony ric kernel it seems... tired, try again another day.
maybe i can make this a flashable zip? but how..?
nostupidthing said:
maybe i can make this a flashable zip? but how..?
Click to expand...
Click to collapse
I think you may check This Thread
DoO37 said:
I think you may check This Thread
Click to expand...
Click to collapse
tried, but when i flash it, it says something like "cannot mount /system"... apparently the script needs to adapt...?
here is an example
nostupidthing said:
tried, but when i flash it, it says something like "cannot mount /system"... apparently the script needs to adapt...?
here is an example
Click to expand...
Click to collapse
First You need to edit the META-INF\com\google\android\ "updater-script" file with any text editor (i suggest Notepad++)
and replace the line
Code:
[COLOR="Red"]mount("yaffs2", "MTD", "system", "/system");[/COLOR]
with
Code:
[COLOR="Lime"]mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");[/COLOR]
Second you should set the right permissions for the file (as for me i don't know what is the right one for system/etc ,i would use the whole "set permission" script from Sijav flashable zip ,it will work anyway
Code:
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 06755, "/system/bin/ip");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pair_devlist.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/bluetooth/main.conf");
set_perm(1002, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(1002, 1002, 0440, "/system/etc/bluetooth/audio.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/bt_did.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/bt_stack.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 0, 0755, "/system/etc/install-recovery.sh");
set_perm(0, 0, 0755, "/system/etc/init.d/99SuperSUDaemon");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0644, "/system/etc/firmware/wlan");
set_perm(0, 0, 0644, "/system/etc/firmware/wlan/prima/WCNSS_cfg.dat");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm(0, 2000, 0755, "/system/vendor/camera");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm(0, 0, 0644, "/system/vendor/lib/libwvdrm_L3.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libwvm.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libWVStreamControlAPI_L3.so");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/drm");
set_perm(0, 0, 0644, "/system/vendor/lib/drm/libdrmwvmplugin.so");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 0, 0644, "/system/vendor/firmware/libpn544_fw_c2.so");
set_perm(0, 0, 0644, "/system/vendor/firmware/libpn544_fw_c3.so");
set_perm(0, 0, 0644, "/system/build.prop");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/bin/su");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
set_perm(0, 0, 0755, "/system/bin/ctrlaltdel");
Third your flashable zip only contains "etc" folder in root ,while it should be in system/etc
Anyway i made it for you ,haven't test it but it should work ,you may try flashing it and don't forget to take backup before flashing
with proper setperm.... : )
edit: handset volume seems better, but 2nd mic (e.g. video record) still work subpar, any idea to improve??
nostupidthing said:
with proper setperm.... : )
edit: handset volume seems better, but 2nd mic (e.g. video record) still work subpar, any idea to improve??
Click to expand...
Click to collapse
I wish that i could help ,but unfortunately i'm still having Locked Bootloader ,and not planning to unlock it till the end of warranty
Downgrading...
nostupidthing said:
with proper setperm.... : )
edit: handset volume seems better, but 2nd mic (e.g. video record) still work subpar, any idea to improve??
Click to expand...
Click to collapse
I had the same 2nd Mic problem with my ZR. It came with the 10.3.1.a.2.67 firmware out of the box. I went ape trying to find a solution since January. Luckily i found a post from user "nigoc" in Sonymobile forums who said downgrading the phone to 10.1.1.A.1.310 (JellyBean 4.1.2) solves the problem. I did it, and heck he was right. My camera now works as expected. All those "streaming-like" sounds in my video recordings are gone and the sound quality is very good.
I'm attaching the /etc/system/snd_soc_msm/snd_soc_msm_2x_fusion3 file from my phone. Hope it works in 4.2.2 :fingers-crossed:
il2stormo said:
I had the same 2nd Mic problem with my ZR. It came with the 10.3.1.a.2.67 firmware out of the box. I went ape trying to find a solution since January. Luckily i found a post from user "nigoc" in Sonymobile forums who said downgrading the phone to 10.1.1.A.1.310 (JellyBean 4.1.2) solves the problem. I did it, and heck he was right. My camera now works as expected. All those "streaming-like" sounds in my video recordings are gone and the sound quality is very good.
I'm attaching the /etc/system/snd_soc_msm/snd_soc_msm_2x_fusion3 file from my phone. Hope it works in 4.2.2 :fingers-crossed:
Click to expand...
Click to collapse
am not having "stream" noise in video recording... but low volume... think it's mainly 2nd mic, which in turn affect noise cancellation functionality.
i guess maybe cm/fxp devs used yuga (xperia z) config on zr, and that's causing a problem???
anyway, too tried to try now, later... later...
with soundfix (http://forum.xda-developers.com/showthread.php?p=52514028)

[HELP] Can you help me with the updater script?

I am making a rom in cwm but I always get the error status of 0 , help me fill in the updater script correctly?
This is the updater script made from cygwin:
Code:
show_progress(0.1, 0);
format("MTD", "system");
mount("MTD", "system", "/system");
format("MTD", "userdata");
package_extract_dir("system", "/system");
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("debuggerd", "/system/bin/csview");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/touchinput");
symlink("toolbox", "/system/bin/playback");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 06755, "/system/bin/ip");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");
show_progress(0.1, 10);
show_progress(0.2, 0);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
show_progress(0.2, 10);
unmount("/system");
Please i've got always status 0 D:
You should check /cache/recovery/last_log to debug
来自我的 C6902 上的 Tapatalk
This is the error
format("MTD", "system");
mount("MTD", "system", "/system");
format("MTD", "userdata");
and this
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));

Categories

Resources