help building / install Droid Incredible kernel - Droid Incredible Android Development

I want to make some modifications to my Incredible's kernel. However, before I start I would like to at least try to rebuild and replace the stock kernel. That way I know that any issues are related to my changes, and not trouble building/installing the stock kernel.
So I went to my Incredible's Software Information and found my kernel version to be:
Code:
2.6.32.17-g9a2fc16
[email protected] #1
So I went to HTC's android source code page and found the following kernel source code which matches my build:
HTC - Mobile Phones, Smartphones, Cell Phones, PDAs
I pulled the kernel configuration from my phone with:
Code:
adb pull /proc/config.gz
gunzip config.gz
mv config .config
Then I made sure to build with the local version properly set:
Code:
make LOCALVERSION=-g9a2fc16
Now, the tricky part to me is actually setting up the proper boot.img. I have done two things to extract the original boot.img to get boot parameters and ramdisk. I found my boot partition here:
Code:
[email protected]:~$ adb shell cat /proc/mtd
dev: size erasesize name
mtd0: 000a0000 00020000 "misc"
mtd1: 00480000 00020000 "recovery"
mtd2: 00300000 00020000 "boot"
mtd3: 0f800000 00020000 "system"
mtd4: 000a0000 00020000 "local"
mtd5: 02800000 00020000 "cache"
mtd6: 09500000 00020000 "datadata"
Then I extracted boot.img as follows and split it:
Code:
$ adb shell
$ su
# cat /dev/mtd/mtd2 > /sdcard/stock_boot.img
# exit
$ exit
$ ./split_bootimg.pl stock_boot.img
Page size: 2048 (0x00000800)
Kernel size: 2274960 (0x0022b690)
Ramdisk size: 167337 (0x00028da9)
Second size: 0 (0x00000000)
Board name:
Command line: no_console_suspend=1
Writing stock_boot.img-kernel ... complete.
Writing stock_boot.img-ramdisk.gz ... complete.
Then, I combine this ramdisk with my own built version of the kernel as follows:
Code:
./mkbootimg --kernel kernel/arch/arm/boot/zImage --ramdisk stock_boot.img-ramdisk.gz --cmdline "no_console_suspend=1" -o boot.img
Then I pushed it to my sdcard as "mystock_incredible_boot.img" and rebooted my phone to recovery mode. In recovery mode, I did:
Code:
# flash_image boot /sdcard/mystock_incredible_boot.img
flashing boot from /sdcard/mystock_incredible_boot.img
mtd: successfully wrote block at 0
mtd: successfully wrote block at 20000
mtd: successfully wrote block at 40000
mtd: successfully wrote block at 60000
mtd: successfully wrote block at 80000
mtd: successfully wrote block at a0000
mtd: successfully wrote block at c0000
mtd: successfully wrote block at e0000
mtd: successfully wrote block at 100000
mtd: successfully wrote block at 120000
mtd: successfully wrote block at 140000
mtd: successfully wrote block at 160000
mtd: successfully wrote block at 180000
mtd: successfully wrote block at 1a0000
mtd: successfully wrote block at 1c0000
mtd: successfully wrote block at 1e0000
mtd: successfully wrote block at 200000
mtd: successfully wrote block at 220000
mtd: successfully wrote block at 240000
mtd: successfully wrote block at 0
Then, I rebooted the phone and it never gets past the "htc Incredible" white screen. So then I tried to do some debugging and despite that the only kernel option found in the stock boot.img was "no_console_suspend=1", I found from dmesg that when the phone boots the stock boot.img there are many more kernel options:
Code:
<5>[ 0.000000] Kernel command line: board_incrediblec.disable_uart3=0 board_incrediblec.usb_h2w_sw=0 board_incrediblec.disable_sdcard=0 diag.enabled=0 board_incrediblec.debug_uart=0 smisize=0 userdata_sel=1 androidboot.baseband=2.15.00.07.28 androidboot.cid=VZW__001 androidboot.carrier=COMMON androidboot.mid=PB3120000 androidboot.keycaps=qwerty androidboot.mode=normal androidboot.serialno=HT042HJ01678 androidboot.bootloader=0.92.0000 androidboot.hardware=inc no_console_suspend=1
So, then I tried packaging it with all of these boot parameters also, and I still do not get past the "htc Incredible" white screen. I'm not sure what I am missing here. Does anyone see anything wrong with what I have done?

Not sure exactly where your problem is, but try flashing the stock boot.img, then package up your zImage in Koush's AnyKernel Updater zip template. See if that eliminates any errors.
This is how you would distribute the kernel as well, unless you are making a custom rom to go with your custom kernel, in which case it wouldn't really matter.
Hope you find your solution.

wdfowty said:
Not sure exactly where your problem is, but try flashing the stock boot.img, then package up your zImage in Koush's AnyKernel Updater zip template. See if that eliminates any errors.
This is how you would distribute the kernel as well, unless you are making a custom rom to go with your custom kernel, in which case it wouldn't really matter.
Hope you find your solution.
Click to expand...
Click to collapse
Thanks for the suggestion!
I am trying Koush's AnyKernel Updater, but I'm getting an error. Maybe I am doing something wrong.
I checked out his git source, then I replaced kernel/zImage with my own zImage. Then I created an update.zip:
Code:
$ zip -r update.zip *
adding: META-INF/ (stored 0%)
adding: META-INF/CERT.RSA (deflated 33%)
adding: META-INF/CERT.SF (deflated 61%)
adding: META-INF/com/ (stored 0%)
adding: META-INF/com/google/ (stored 0%)
adding: META-INF/com/google/android/ (stored 0%)
adding: META-INF/com/google/android/update-binary (deflated 34%)
adding: META-INF/com/google/android/updater-script (deflated 63%)
adding: META-INF/MANIFEST.MF (deflated 61%)
adding: kernel/ (stored 0%)
adding: kernel/dump_image (deflated 32%)
adding: kernel/mkbootimg (deflated 35%)
adding: kernel/mkbootimg.sh (deflated 52%)
adding: kernel/unpackbootimg (deflated 32%)
adding: kernel/zImage (deflated 1%)
adding: system/ (stored 0%)
adding: system/lib/ (stored 0%)
adding: system/lib/modules/ (stored 0%)
I put it on my sdcard and I tried to install it, but I get the following error:
Code:
-- Installing: /sdcard/update.zip
Finding update package...
Opening update package...
Installing update...
AnyKernel Updater by Koush.
Extracting System Files...
mount() expects 4 args, got 3
E:Error in /sdcard/update.zip
(Status 7)
Installation aborted.
My guess is that the source of this error comes in META-INF/com/google/android/updater-script at this line:
Code:
mount("MTD", "system", "/system");
But I'm assuming that was not meant to be changed by me...

hedpe said:
Thanks for the suggestion!
I am trying Koush's AnyKernel Updater, but I'm getting an error. Maybe I am doing something wrong.
I checked out his git source, then I replaced kernel/zImage with my own zImage. Then I created an update.zip:
Code:
$ zip -r update.zip *
adding: META-INF/ (stored 0%)
adding: META-INF/CERT.RSA (deflated 33%)
adding: META-INF/CERT.SF (deflated 61%)
adding: META-INF/com/ (stored 0%)
adding: META-INF/com/google/ (stored 0%)
adding: META-INF/com/google/android/ (stored 0%)
adding: META-INF/com/google/android/update-binary (deflated 34%)
adding: META-INF/com/google/android/updater-script (deflated 63%)
adding: META-INF/MANIFEST.MF (deflated 61%)
adding: kernel/ (stored 0%)
adding: kernel/dump_image (deflated 32%)
adding: kernel/mkbootimg (deflated 35%)
adding: kernel/mkbootimg.sh (deflated 52%)
adding: kernel/unpackbootimg (deflated 32%)
adding: kernel/zImage (deflated 1%)
adding: system/ (stored 0%)
adding: system/lib/ (stored 0%)
adding: system/lib/modules/ (stored 0%)
I put it on my sdcard and I tried to install it, but I get the following error:
Code:
-- Installing: /sdcard/update.zip
Finding update package...
Opening update package...
Installing update...
AnyKernel Updater by Koush.
Extracting System Files...
mount() expects 4 args, got 3
E:Error in /sdcard/update.zip
(Status 7)
Installation aborted.
My guess is that the source of this error comes in META-INF/com/google/android/updater-script at this line:
Code:
mount("MTD", "system", "/system");
But I'm assuming that was not meant to be changed by me...
Click to expand...
Click to collapse
Grab a kernel zip from my thread and use that as your template.
Sent from my ADR6300 using XDA App

thanks, bud! That worked... my kernel is running now

hedpe said:
thanks, bud! That worked... my kernel is running now
Click to expand...
Click to collapse
Grats welcome to the party
Sent from my ADR6300 using XDA App

Related

PDroid Patch for GingerVolt 1.3

Please don't give me any credit for this, I simply followed the patching instructions found in the original thread @ http://forum.xda-developers.com/showthread.php?t=1357056.
I patched GingerVolt 1.3 with pdoridpatcher-v1.27, and I am attaching the patch file, as well as the resstore file.
You need to flash the PDroid-v1.27-GingerVolt1.3.zip (MD5 - 180694280acf1c816cb30058ad9d6c20 )
After flashing, download PDroid App from market, and configure your permissions.
If for any reason you need to undo PDroid patch, flash the PDroid-RESTORE-GingerVolt1.3.zip (MD5 - 4e840b763b106100fa860e43849dff52 )
As is customary, I am not responsible for anything happening to your phone , and I strongly advice you to make a backup.
If you don't trust my files, you can create a patch for yourself, just follow the instructions in the original thread.
Here's the patch run log in case you're interested.
Code:
./patchpdroid GingerVolt1.3.zip
***************************************************
**** PDroid Patcher Beta 0.71 - Patch Version 1.27
***************************************************
Creating temp dirs
mkdir: created directory `/home/gumnaam/Downloads/tmp1326380253'
mkdir: created directory `/home/gumnaam/Downloads/tools1326380253'
Extracting tools and resources
inflated: apktool.jar
inflated: apktool
inflated: pdroidpatcher.jar
inflated: services.patch
inflated: framework.patch
inflated: core.patch
inflated: framework.mod.jar
inflated: signapk.jar
extracted: updatekey.pk8
inflated: updatecert.pem
inflated: updaterB
extracted: updaterA
inflated: cleanupsmalimod
inflated: aapt
Extracting original files from ROM
inflated: META-INF/com/google/android/update-binary
inflated: META-INF/com/google/android/updater-script
inflated: system/framework/core.jar
inflated: system/framework/framework.jar
inflated: system/framework/services.jar
`system/framework/core.jar' -> `./core.jar'
`system/framework/framework.jar' -> `./framework.jar'
`system/framework/services.jar' -> `./services.jar'
`META-INF/com/google/android/update-binary' -> `./update-binary'
`META-INF/com/google/android/updater-script' -> `./updater-script'
Decompiling original files
I: Baksmaling...
I: Copying assets and libs...
I: Baksmaling...
I: Copying assets and libs...
I: Baksmaling...
I: Copying assets and libs...
Cleaning up smali code
Applying PDroid patches
patching file smali/android/app/ContextImpl.smali
Hunk #2 succeeded at 148 (offset 2 lines).
Hunk #3 succeeded at 645 (offset 2 lines).
Hunk #4 succeeded at 1107 (offset 2 lines).
Hunk #5 succeeded at 1128 (offset 2 lines).
Hunk #6 succeeded at 1345 (offset 2 lines).
Hunk #7 succeeded at 1587 (offset 2 lines).
patching file smali/android/content/ContentResolver.smali
Hunk #1 succeeded at 2858 (offset 8 lines).
patching file smali/android/privacy/IPrivacySettingsManager.smali
patching file 'smali/android/privacy/IPrivacySettingsManager$Stub$Proxy.smali'
patching file 'smali/android/privacy/IPrivacySettingsManager$Stub.smali'
patching file smali/android/privacy/PrivacyFileObserver.smali
patching file smali/android/privacy/PrivacyPersistenceAdapter.smali
patching file 'smali/android/privacy/PrivacySettings$1.smali'
patching file smali/android/privacy/PrivacySettingsManagerService.smali
patching file smali/android/privacy/PrivacySettingsManager.smali
patching file smali/android/privacy/PrivacySettings.smali
patching file 'smali/android/privacy/surrogate/PrivacyAccountManager$PrivacyAccountManagerFuture.smali'
patching file smali/android/privacy/surrogate/PrivacyAccountManager.smali
patching file smali/android/privacy/surrogate/PrivacyActivityManagerService.smali
patching file smali/android/privacy/surrogate/PrivacyContentResolver.smali
patching file smali/android/privacy/surrogate/PrivacyCursor.smali
patching file 'smali/android/privacy/surrogate/PrivacyLocationManager$PrivacyLocationUpdater.smali'
patching file smali/android/privacy/surrogate/PrivacyLocationManager.smali
patching file 'smali/android/privacy/surrogate/PrivacyTelephonyManager$PrivacyPhoneStateListener.smali'
patching file smali/android/privacy/surrogate/PrivacyTelephonyManager.smali
patching file smali/com/android/server/am/ActivityManagerService.smali
Hunk #1 succeeded at 12185 (offset 129 lines).
Hunk #2 succeeded at 17969 (offset 131 lines).
patching file smali/com/android/server/ServerThread.smali
Hunk #2 succeeded at 362 (offset 10 lines).
patching file smali/java/lang/PrivacyInputStream.smali
patching file 'smali/java/lang/PrivacyProcessManager$PrivacyFileReader.smali'
patching file smali/java/lang/PrivacyProcessManager.smali
patching file 'smali/java/lang/ProcessManager$ProcessImpl.smali'
Creating updater script
Building modified framework.jar
I: Checking whether sources has changed...
I: Smaling...
W: Unknown file type, ignoring: framework.mod.jar.out/smali/android/content/ContentResolver.smali.orig
W: Unknown file type, ignoring: framework.mod.jar.out/smali/android/app/ContextImpl.smali.orig
W: Could not find resources
I: Building apk file...
created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: preloaded-classes
adding: preloaded-classes(in = 65693) (out= 11977)(deflated 81%)
updated manifest
Building modified services.jar
I: Checking whether sources has changed...
I: Smaling...
W: Unknown file type, ignoring: services.mod.jar.out/smali/com/android/server/ServerThread.smali.orig
W: Unknown file type, ignoring: services.mod.jar.out/smali/com/android/server/am/ActivityManagerService.smali.orig
W: Could not find resources
I: Building apk file...
created: META-INF/
inflated: META-INF/MANIFEST.MF
updated manifest
Building modified core.jar
I: Checking whether sources has changed...
I: Smaling...
W: Could not find resources
I: Building apk file...
inflated: classes.dex
inflated: com/ibm/icu4jni/ThirdPartyProject.prop
inflated: java/security/security.properties
inflated: java/util/logging/logging.properties
created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: org/apache/harmony/dalvik/ddmc/README.txt
inflated: org/apache/xalan/processor/XSLProcessorVersion.src
inflated: org/apache/xalan/res/XSLTInfo.properties
inflated: org/apache/xalan/Version.src
inflated: org/apache/xml/serializer/Encodings.properties
inflated: org/apache/xml/serializer/HTMLEntities.properties
inflated: org/apache/xml/serializer/output_html.properties
inflated: org/apache/xml/serializer/output_text.properties
inflated: org/apache/xml/serializer/output_unknown.properties
inflated: org/apache/xml/serializer/output_xml.properties
inflated: org/apache/xml/serializer/Version.src
inflated: org/apache/xml/serializer/XMLEntities.properties
inflated: org/kxml2/ThirdPartyProject.prop
inflated: org/xmlpull/ThirdPartyProject.prop
inflated: org/xml/ThirdPartyProject.prop
adding: com/(in = 0) (out= 0)(stored 0%)
adding: com/ibm/(in = 0) (out= 0)(stored 0%)
adding: com/ibm/icu4jni/(in = 0) (out= 0)(stored 0%)
adding: com/ibm/icu4jni/ThirdPartyProject.prop(in = 318) (out= 202)(deflated 36%)
adding: java/(in = 0) (out= 0)(stored 0%)
adding: java/security/(in = 0) (out= 0)(stored 0%)
adding: java/security/security.properties(in = 5084) (out= 1837)(deflated 63%)
adding: java/util/(in = 0) (out= 0)(stored 0%)
adding: java/util/logging/(in = 0) (out= 0)(stored 0%)
adding: java/util/logging/logging.properties(in = 3123) (out= 1129)(deflated 63%)
adding: org/(in = 0) (out= 0)(stored 0%)
adding: org/xml/(in = 0) (out= 0)(stored 0%)
adding: org/xml/ThirdPartyProject.prop(in = 224) (out= 178)(deflated 20%)
adding: org/apache/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xml/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xml/serializer/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xml/serializer/XMLEntities.properties(in = 1086) (out= 647)(deflated 40%)
adding: org/apache/xml/serializer/output_text.properties(in = 1525) (out= 832)(deflated 45%)
adding: org/apache/xml/serializer/HTMLEntities.properties(in = 4353) (out= 2220)(deflated 49%)
adding: org/apache/xml/serializer/Encodings.properties(in = 11338) (out= 3094)(deflated 72%)
adding: org/apache/xml/serializer/output_html.properties(in = 1841) (out= 922)(deflated 49%)
adding: org/apache/xml/serializer/output_unknown.properties(in = 1769) (out= 948)(deflated 46%)
adding: org/apache/xml/serializer/Version.src(in = 4720) (out= 1869)(deflated 60%)
adding: org/apache/xml/serializer/output_xml.properties(in = 1818) (out= 943)(deflated 48%)
adding: org/apache/harmony/(in = 0) (out= 0)(stored 0%)
adding: org/apache/harmony/dalvik/(in = 0) (out= 0)(stored 0%)
adding: org/apache/harmony/dalvik/ddmc/(in = 0) (out= 0)(stored 0%)
adding: org/apache/harmony/dalvik/ddmc/README.txt(in = 78) (out= 69)(deflated 11%)
adding: org/apache/xalan/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xalan/processor/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xalan/processor/XSLProcessorVersion.src(in = 4126) (out= 1696)(deflated 58%)
adding: org/apache/xalan/res/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xalan/res/XSLTInfo.properties(in = 1061) (out= 606)(deflated 42%)
adding: org/apache/xalan/Version.src(in = 4999) (out= 1909)(deflated 61%)
adding: org/xmlpull/(in = 0) (out= 0)(stored 0%)
adding: org/xmlpull/ThirdPartyProject.prop(in = 224) (out= 179)(deflated 20%)
adding: org/kxml2/(in = 0) (out= 0)(stored 0%)
adding: org/kxml2/ThirdPartyProject.prop(in = 209) (out= 173)(deflated 17%)
updated manifest
Creating flashable patch zip
added manifest
adding: system/(in = 0) (out= 0)(stored 0%)
adding: system/framework/(in = 0) (out= 0)(stored 0%)
adding: system/framework/services.jar(in = 742463) (out= 741836)(deflated 0%)
adding: system/framework/core.jar(in = 1925692) (out= 1914288)(deflated 0%)
adding: system/framework/framework.jar(in = 4057782) (out= 4033032)(deflated 0%)
ignoring entry META-INF/
adding: META-INF/com/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/android/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/android/updater-script(in = 244) (out= 145)(deflated 40%)
adding: META-INF/com/google/android/update-binary(in = 251996) (out= 155930)(deflated 38%)
Creating flashable restore zip
added manifest
adding: system/(in = 0) (out= 0)(stored 0%)
adding: system/framework/(in = 0) (out= 0)(stored 0%)
adding: system/framework/services.jar(in = 732860) (out= 732069)(deflated 0%)
adding: system/framework/core.jar(in = 1848601) (out= 1840859)(deflated 0%)
adding: system/framework/framework.jar(in = 4050318) (out= 4028612)(deflated 0%)
ignoring entry META-INF/
adding: META-INF/com/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/android/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/android/updater-script(in = 246) (out= 144)(deflated 41%)
adding: META-INF/com/google/android/update-binary(in = 251996) (out= 155930)(deflated 38%)
Removing temp dirs
Looks like everything went fine
PDroid patch: PDroid-v1.27-GingerVolt1.3.zip
MD5 hash: 180694280acf1c816cb30058ad9d6c20
Flash it through CWM *OR* extract the files in /system/framework/ and push them via ADB
To restore your ROM and remove PDroid, flash PDroid-RESTORE-GingerVolt1.3.zip
Interesting....Thank you.....
what does this do exactly?
Read the link in the post.
Allows you to revoke permissions on Apps, after you've installed the app. Better privacy control.
gumnaam.sur said:
Read the link in the post.
Allows you to revoke permissions on Apps, after you've installed the app. Better privacy control.
Click to expand...
Click to collapse
it does help if you read the post
thanks

[Q] What the hell is going on? (SOLVED)

I'm trying to load a new CM ROM but I keep getting an abortion message. Here's the log. Can anyone tell me what I'm doing wrong? I'm using rom manager with clockwork.
Starting recovery on Thu May 31 12:03:15 2012
can't open /dev/tty0: No such file or directory
framebuffer: fd 3 (480 x 800)
ClockworkMod Recovery v5.0.2.0
recovery filesystem table
=========================
0 /tmp ramdisk (null) (null)
1 /boot mtd boot (null)
2 /cache yaffs2 cache (null)
3 /data yaffs2 userdata (null)
4 /misc mtd misc (null)
5 /recovery mtd recovery (null)
6 /sdcard vfat /dev/block/mmcblk0p1 /dev/block/mmcblk0
7 /system yaffs2 system (null)
8 /sd-ext ext4 /dev/block/mmcblk0p2 (null)
I:Completed outputting fstab.
Irocessing arguments.
Fixing execute permissions for /cache
mtd: successfully wrote block at 0
I:Set boot command "boot-recovery"
I:Checking arguments.
I:device_recovery_start()
Command: "/sbin/recovery"
ro.secure=0
ro.allow.mock.location=1
ro.debuggable=1
persist.service.adb.enable=1
ro.build.id=GRJ22
ro.build.display.id=GRJ90
ro.build.version.incremental=eng.koush.20110905.103150
ro.build.version.sdk=10
ro.build.version.codename=REL
ro.build.version.release=2.3.5
ro.build.date=Mon Sep 5 10:32:20 PDT 2011
ro.build.date.utc=0
ro.build.type=eng
ro.build.user=koush
ro.build.host=Koushik-Lion.local
ro.build.tags=test-keys
ro.product.model=Nexus One
ro.product.brand=google
ro.product.name=passion
ro.product.device=passion
ro.product.board=mahimahi
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HTC
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=qsd8k
ro.build.product=passion
ro.build.description=passion-user 2.3.4 GRJ22 121341 release-keys
ro.build.fingerprint=google/passion/passion:2.3.4/GRJ22/121341:user/release-keys
keyguard.no_require_sim=true
ro.sf.lcd_density=240
rild.libpath=/system/lib/libhtc_ril.so
wifi.interface=eth0
wifi.supplicant_scan_interval=15
ro.ril.hsxpa=2
ro.ril.gprsclass=10
ro.telephony.default_network=0
ro.opengles.version=131072
dalvik.vm.heapsize=32m
media.a1026.nsForVoiceRec=0
media.a1026.enableA1026=1
ro.rommanager.developerid=cyanogenmod
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html
ro.com.google.clientidbase=android-google
ro.com.android.wifi-watchlist=GoogleGuest
ro.setupwizard.enterprise_mode=1
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=false
ro.config.ringtone=Playa.ogg
ro.config.notification_sound=regulus.ogg
ro.config.alarm_alert=Alarm_Beep_03.ogg
ro.ril.enable.managed.roaming=1
ro.ril.oem.nosim.ecclist=911,112,999,000,08,118,120,122,110,119,995
ro.ril.emc.mode=2
ro.modversion=CyanogenMod-7.1.0-RC1-N1-KANG
ro.kernel.android.checkjni=1
ro.setupwizard.mode=OPTIONAL
dalvik.vm.dexopt-flags=m=y
net.bt.name=Android
net.change=net.bt.name
dalvik.vm.stack-trace-file=/data/anr/traces.txt
ro.factorytest=0
ro.serialno=HT0CJP801701
ro.bootmode=recovery
ro.baseband=5.08.00.04
ro.carrier=GOOGLE
ro.bootloader=0.35.0017
ro.hardware=mahimahi
ro.revision=132
init.svc.recovery=running
init.svc.adbd=running
I:Checking for extendedcommand...
I:Running extendedcommand...
Waiting for SD Card to mount (20s)
SD Card mounted...
Verifying SD Card marker...
f532ff99d0b616d54bd1fec6e4b345de
f532ff99d0b616d54bd1fec6e4b345de
I:Running script:
I:
ui_print("ROM Manager Version 5.0.0.7");
ui_print("May 31, 2012");
ui_print("Preparing to install ROM...");
run_program("/cache/dowipedalvikcache.sh");
format("/cache");
format("/data");
format("/sd-ext");
assert(install_zip("/sdcard/update-cm-7.2.0-RC3-p500-signed.zip"));
parse returned 0; 0 errors encountered
ROM Manager Version 5.0.0.7
May 31, 2012
Preparing to install ROM...
about to run program [/cache/dowipedalvikcache.sh] with 1 args
mount: mounting /dev/block/mtdblock4 on /cache failed: Device or resource busy
mount: mounting /dev/block/mmcblk0p2 on /sd-ext failed: No such file or directory
umount: can't umount /sd-ext: Invalid argument
run_program: child exited with status 1
Formatting /cache...
mtd: not erasing bad block at 0x01360000
mtd: not erasing bad block at 0x020e0000
mtd: not erasing bad block at 0x03600000
Formatting /data...
mtd: not erasing bad block at 0x00b00000
mtd: not erasing bad block at 0x02220000
mtd: not erasing bad block at 0x067e0000
mtd: not erasing bad block at 0x0af80000
mtd: not erasing bad block at 0x0b7e0000
Formatting /sd-ext...
Need size of filesystem
E:format_volume: make_extf4fs failed on /dev/block/mmcblk0p2
-- Installing: /sdcard/update-cm-7.2.0-RC3-p500-signed.zip
mtd: successfully wrote block at 0
I:Set boot command "boot-recovery"
Finding update package...
I:Update location: /sdcard/update-cm-7.2.0-RC3-p500-signed.zip
Opening update package...
Installing update...
script aborted: assert failed: getprop("ro.product.device") == "thunderg" || getprop("ro.build.product") == "thunderg" || getprop("ro.product.board") == "thunderg" ||
getprop("ro.product.device") == "p500" || getprop("ro.build.product") == "p500" || getprop("ro.product.board") == "p500"
assert failed: getprop("ro.product.device") == "thunderg" || getprop("ro.build.product") == "thunderg" || getprop("ro.product.board") == "thunderg" || getprop("ro.product.device") == "p500" || getprop("ro.build.product") == "p500" || getprop("ro.product.board") == "p500"
E:Error in /sdcard/update-cm-7.2.0-RC3-p500-signed.zip
(Status 7)
Installation aborted.
result was NULL, message is: assert failed: install_zip("/sdcard/update-cm-7.2.0-RC3-p500-signed.zip")
You're trying to install CM for Optimus One, not for Nexus One. No wonder it fails while checking the type of device.
That's the one I got right from CyanogenMod for my particular phone.
dieselfiend said:
That's the one I got right from CyanogenMod for my particular phone.
Click to expand...
Click to collapse
sometime it does that your best bet is use aroma 1st if that fails then use 4ext recovery
Hmm, what are you doing in Nexus One forums, asking questions about Optimus One?
In any case, your recovery (whatever it is) doesn't like the variables in your build.prop, of your current ROM. To force it to install, you can change updater-script to disable the assertion that fails, or change the build.prop for the assertion to pass.
Jack_R1 said:
Hmm, what are you doing in Nexus One forums, asking questions about Optimus One?
In any case, your recovery (whatever it is) doesn't like the variables in your build.prop, of your current ROM. To force it to install, you can change updater-script to disable the assertion that fails, or change the build.prop for the assertion to pass.
Click to expand...
Click to collapse
hahaha what he said
Man, I admire your knowledge level on this. Can you put in dummy terms?
Sent from my GT-I9100 using Tapatalk 2
I'll try to explain:
There is a file in your current ROM, as in any Android ROM. It's called build.prop, and it sits under /system, as in: /system/build.prop.
This file holds many variables' values, useful for Android boot-up and operation.
3 values interest you:
ro.product.device
ro.build.product
ro.product.board
"Assertion" = some part of the update script of the ROM that runs when you're trying to flash it. This part is checking the variables above, looking for specific values.
If assertion doesn't find the values it's looking for - it errors out and stops the update.
So, 2 ways to deal with it:
1) Change the file /system/build.prop, edit the values of those variables to something that won't trigger assertion failure.
2) Remove the assertion from the update script that is in your ROM.
Given that you have root, the first way should be easier. Just edit the values of those variables, find them in the file, add if some are missing (unlikely), and set all of them to "p500".
I got it to work. I was actually trying to install a ROM for another phone. I didn't realize that I clicked a link that was for a bunch of different phones rather than just mine. I downloaded the right ROM for my phone and all is well. It installed perfectly. Thanks for all the help!

Nitrogen (CM7-Based ROM) fails to fully boot after applying Pdoid patch

I would of posted this in the offical thread for "[Rom][Official CM7 based]Nitrogen [Android UnChained][PSN FireKernel MemMod V3]" at http://forum.xda-developers.com/showthread.php?t=2205818 but being new to the forum, can't post to the Development area. Then again, this may be more of a Pdroid-related issue and, if need be, can be moved accordingly.
Have installed this ROM plus the most-recent patch with no issues, but am having issues when I try to apply the Pdroid patch that I've generated from this ROM. Will boot up to "Samsung Galaxy Cooper GT-S5830" screen and not proceed any futher beyond that point.
Samsung Galaxy Ace GT-S5830D
Nitrogen[Android Un-Chained] Patched Up-To-Date with Patch 3.
Did notice some warnings generated in the patcher app log that may be of concern:
Note: Win7 User Dir Name has been changed and warning messages have been bolded and highlighted in red,
---
PDroid Patcher v0.321 - Patch v1.32
Patching C:\Users\******\Documents\Droidz\XDA_Nitrogen[Android Un-Chained][Revision1]-20130322-183515.zip
Extracting framework files from ROM
inflated: system/framework/core.jar
inflated: system/framework/framework.jar
inflated: system/framework/services.jar
inflated: META-INF/com/google/android/updater-script
inflated: META-INF/com/google/android/update-binary
Decompiling original files
I: Baksmaling...
I: Copying assets and libs...
I: Baksmaling...
I: Copying assets and libs...
I: Baksmaling...
I: Copying assets and libs...
Cleaning up smali
C:\Users\******\AppData\Roaming\PDroidPatcher\tmp>..\tools\sed "/^\s*\.\(line\s[0-9]\{1,\}\)\s*$/d" framework.mod.jar.out\smali\android\app\ContextImpl.smali 1>framework.mod.jar.out\smali\android\app\ContextImpl.smali.new
C:\Users\******\AppData\Roaming\PDroidPatcher\tmp>move /Y framework.mod.jar.out\smali\android\app\ContextImpl.smali.new framework.mod.jar.out\smali\android\app\ContextImpl.smali
1 file(s) moved.
C:\Users\******\AppData\Roaming\PDroidPatcher\tmp>..\tools\sed "/^\s*\.\(line\s[0-9]\{1,\}\)\s*$/d" framework.mod.jar.out\smali\android\content\ContentResolver.smali 1>framework.mod.jar.out\smali\android\content\ContentResolver.smali.new
C:\Users\******\AppData\Roaming\PDroidPatcher\tmp>move /Y framework.mod.jar.out\smali\android\content\ContentResolver.smali.new framework.mod.jar.out\smali\android\content\ContentResolver.smali
1 file(s) moved.
C:\Users\******\AppData\Roaming\PDroidPatcher\tmp>..\tools\sed "/^\s*\.\(line\s[0-9]\{1,\}\)\s*$/d" framework.mod.jar.out\smali\android\telephony\PhoneStateListener.smali 1>framework.mod.jar.out\smali\android\telephony\PhoneStateListener.smali.new
C:\Users\******\AppData\Roaming\PDroidPatcher\tmp>move /Y framework.mod.jar.out\smali\android\telephony\PhoneStateListener.smali.new framework.mod.jar.out\smali\android\telephony\PhoneStateListener.smali
1 file(s) moved.
C:\Users\******\AppData\Roaming\PDroidPatcher\tmp>..\tools\sed "/^\s*\.\(line\s[0-9]\{1,\}\)\s*$/d" framework.mod.jar.out\smali\android\telephony\PhoneStateListener$1.smali 1>framework.mod.jar.out\smali\android\telephony\PhoneStateListener$1.smali.new
C:\Users\******\AppData\Roaming\PDroidPatcher\tmp>move /Y framework.mod.jar.out\smali\android\telephony\PhoneStateListener$1.smali.new framework.mod.jar.out\smali\android\telephony\PhoneStateListener$1.smali
1 file(s) moved.
C:\Users\******\AppData\Roaming\PDroidPatcher\tmp>..\tools\sed "/^\s*\.\(line\s[0-9]\{1,\}\)\s*$/d" services.mod.jar.out\smali\com\android\server\am\ActivityManagerService.smali 1>services.mod.jar.out\smali\com\android\server\am\ActivityManagerService.smali.new
C:\Users\******\AppData\Roaming\PDroidPatcher\tmp>move /Y services.mod.jar.out\smali\com\android\server\am\ActivityManagerService.smali.new services.mod.jar.out\smali\com\android\server\am\ActivityManagerService.smali
1 file(s) moved.
C:\Users\******\AppData\Roaming\PDroidPatcher\tmp>..\tools\sed "/^\s*\.\(line\s[0-9]\{1,\}\)\s*$/d" services.mod.jar.out\smali\com\android\server\ServerThread.smali 1>services.mod.jar.out\smali\com\android\server\ServerThread.smali.new
C:\Users\******\AppData\Roaming\PDroidPatcher\tmp>move /Y services.mod.jar.out\smali\com\android\server\ServerThread.smali.new services.mod.jar.out\smali\com\android\server\ServerThread.smali
1 file(s) moved.
C:\Users\******\AppData\Roaming\PDroidPatcher\tmp>..\tools\sed "/^\s*\.\(line\s[0-9]\{1,\}\)\s*$/d" core.mod.jar.out\smali\java\lang\ProcessManager$ProcessImpl.smali 1>core.mod.jar.out\smali\java\lang\ProcessManager$ProcessImpl.smali.new
C:\Users\******\AppData\Roaming\PDroidPatcher\tmp>move /Y core.mod.jar.out\smali\java\lang\ProcessManager$ProcessImpl.smali.new core.mod.jar.out\smali\java\lang\ProcessManager$ProcessImpl.smali
1 file(s) moved.
Applying PDroid patches
patching file smali/android/app/ContextImpl.smali
Hunk #2 succeeded at 151 (offset 5 lines).
Hunk #3 succeeded at 683 with fuzz 3 (offset 40 lines).
Hunk #4 succeeded at 1166 with fuzz 2 (offset 61 lines).
Hunk #5 succeeded at 1190 with fuzz 3 (offset 64 lines).
Hunk #6 succeeded at 1466 (offset 123 lines).
Hunk #7 succeeded at 1714 (offset 129 lines).
patching file smali/android/content/ContentResolver.smali
Hunk #1 succeeded at 2850 with fuzz 3.
patching file smali/android/privacy/IPrivacySettingsManager.smali
patching file smali/android/privacy/IPrivacySettingsManager$Stub$Proxy.smali
patching file smali/android/privacy/IPrivacySettingsManager$Stub.smali
patching file smali/android/privacy/PrivacyFileObserver.smali
patching file smali/android/privacy/PrivacyPersistenceAdapter.smali
patching file smali/android/privacy/PrivacySettings$1.smali
patching file smali/android/privacy/PrivacySettingsManagerService.smali
patching file smali/android/privacy/PrivacySettingsManager.smali
patching file smali/android/privacy/PrivacySettings.smali
patching file smali/android/privacy/surrogate/PrivacyAccountManager$PrivacyAccountManagerFuture.smali
patching file smali/android/privacy/surrogate/PrivacyAccountManager.smali
patching file smali/android/privacy/surrogate/PrivacyActivityManagerService.smali
patching file smali/android/privacy/surrogate/PrivacyContentResolver.smali
patching file smali/android/privacy/surrogate/PrivacyCursor.smali
patching file smali/android/privacy/surrogate/PrivacyLocationManager$PrivacyLocationUpdater.smali
patching file smali/android/privacy/surrogate/PrivacyLocationManager.smali
patching file smali/android/privacy/surrogate/PrivacyTelephonyManager.smali
patching file smali/android/telephony/PhoneStateListener$1.smali
patching file smali/android/telephony/PhoneStateListener.smali
Hunk #2 succeeded at 64 (offset 1 line).
Hunk #3 succeeded at 173 with fuzz 1 (offset 23 lines).
patching file smali/com/android/server/am/ActivityManagerService.smali
Hunk #1 succeeded at 13018 with fuzz 1 (offset 962 lines).
Hunk #2 succeeded at 19142 with fuzz 2 (offset 1304 lines).
patching file smali/com/android/server/ServerThread.smali
Hunk #1 succeeded at 44 (offset 4 lines).
Hunk #2 succeeded at 396 (offset 44 lines).
patching file smali/java/lang/PrivacyInputStream.smali
patching file smali/java/lang/PrivacyProcessManager$PrivacyFileReader.smali
patching file smali/java/lang/PrivacyProcessManager.smali
patching file smali/java/lang/ProcessManager$ProcessImpl.smali
Hunk #1 succeeded at 57 (offset 5 lines).
Hunk #2 succeeded at 79 (offset 5 lines).
Creating updater script
Building modified framework.jar
I: Checking whether sources has changed...
I: Smaling...
W: Unknown file type, ignoring: framework.mod.jar.out\smali\android\app\ContextImpl.smali.orig
W: Unknown file type, ignoring: framework.mod.jar.out\smali\android\content\ContentResolver.smali.orig
W: Unknown file type, ignoring: framework.mod.jar.out\smali\android\telephony\PhoneStateListener.smali.orig
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at org.jf.dexlib.Util.ByteArrayAnnotatedOutput.ensureCapacity(ByteArrayAnnotatedOutput.java:577)
at org.jf.dexlib.Util.ByteArrayAnnotatedOutput.writeShort(ByteArrayAnnotatedOutput.java:180)
at org.jf.dexlib.Code.Format.Instruction22c.writeInstruction(Instruction22c.java:77)
at org.jf.dexlib.Code.Instruction.write(Instruction.java:57)
at org.jf.dexlib.CodeItem.writeItem(CodeItem.java:258)
at org.jf.dexlib.Item.writeTo(Item.java:116)
at org.jf.dexlib.Section.writeTo(Section.java:119)
at org.jf.dexlib.DexFile.writeTo(DexFile.java:716)
at brut.androlib.src.DexFileBuilder.getAsByteArray(DexFileBuilder.java:75)
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:58)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Error encountered, trying to build modified framework.jar again
I: Checking whether sources has changed...
W: Could not find resources
I: Building apk file...
created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: preloaded-classes
adding: preloaded-classes(in = 65693) (out= 11977)(deflated 81%)
updated manifest
Building modified services.jar
I: Checking whether sources has changed...
I: Smaling...
W: Unknown file type, ignoring: services.mod.jar.out\smali\com\android\server\ServerThread.smali.orig
W: Unknown file type, ignoring: services.mod.jar.out\smali\com\android\server\am\ActivityManagerService.smali.orig
W: Could not find resources
I: Building apk file...
created: META-INF/
inflated: META-INF/MANIFEST.MF
updated manifest
Building modified core.jar
I: Checking whether sources has changed...
I: Smaling...
W: Unknown file type, ignoring: core.mod.jar.out\smali\java\lang\ProcessManager$ProcessImpl.smali.orig
W: Could not find resources
I: Building apk file...
created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: classes.dex
inflated: org/apache/harmony/dalvik/ddmc/README.txt
inflated: com/ibm/icu4jni/ThirdPartyProject.prop
inflated: org/apache/xalan/Version.src
inflated: org/apache/xalan/processor/XSLProcessorVersion.src
inflated: org/apache/xalan/res/XSLTInfo.properties
inflated: org/apache/xml/serializer/XMLEntities.properties
inflated: org/apache/xml/serializer/output_text.properties
inflated: org/apache/xml/serializer/HTMLEntities.properties
inflated: org/apache/xml/serializer/Version.src
inflated: org/apache/xml/serializer/Encodings.properties
inflated: org/apache/xml/serializer/output_xml.properties
inflated: org/apache/xml/serializer/output_unknown.properties
inflated: org/apache/xml/serializer/output_html.properties
inflated: java/security/security.properties
inflated: java/util/logging/logging.properties
inflated: org/xml/ThirdPartyProject.prop
inflated: org/kxml2/ThirdPartyProject.prop
inflated: org/xmlpull/ThirdPartyProject.prop
adding: com/(in = 0) (out= 0)(stored 0%)
adding: com/ibm/(in = 0) (out= 0)(stored 0%)
adding: com/ibm/icu4jni/(in = 0) (out= 0)(stored 0%)
adding: com/ibm/icu4jni/ThirdPartyProject.prop(in = 318) (out= 202)(deflated 36%)
adding: java/(in = 0) (out= 0)(stored 0%)
adding: java/security/(in = 0) (out= 0)(stored 0%)
adding: java/security/security.properties(in = 5084) (out= 1837)(deflated 63%)
adding: java/util/(in = 0) (out= 0)(stored 0%)
adding: java/util/logging/(in = 0) (out= 0)(stored 0%)
adding: java/util/logging/logging.properties(in = 3123) (out= 1129)(deflated 63%)
adding: org/(in = 0) (out= 0)(stored 0%)
adding: org/apache/(in = 0) (out= 0)(stored 0%)
adding: org/apache/harmony/(in = 0) (out= 0)(stored 0%)
adding: org/apache/harmony/dalvik/(in = 0) (out= 0)(stored 0%)
adding: org/apache/harmony/dalvik/ddmc/(in = 0) (out= 0)(stored 0%)
adding: org/apache/harmony/dalvik/ddmc/README.txt(in = 78) (out= 69)(deflated 11%)
adding: org/apache/xalan/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xalan/processor/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xalan/processor/XSLProcessorVersion.src(in = 4126) (out= 1696)(deflated 58%)
adding: org/apache/xalan/res/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xalan/res/XSLTInfo.properties(in = 1061) (out= 606)(deflated 42%)
adding: org/apache/xalan/Version.src(in = 4999) (out= 1909)(deflated 61%)
adding: org/apache/xml/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xml/serializer/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xml/serializer/Encodings.properties(in = 11338) (out= 3094)(deflated 72%)
adding: org/apache/xml/serializer/HTMLEntities.properties(in = 4353) (out= 2220)(deflated 49%)
adding: org/apache/xml/serializer/output_html.properties(in = 1841) (out= 922)(deflated 49%)
adding: org/apache/xml/serializer/output_text.properties(in = 1525) (out= 832)(deflated 45%)
adding: org/apache/xml/serializer/output_unknown.properties(in = 1769) (out= 948)(deflated 46%)
adding: org/apache/xml/serializer/output_xml.properties(in = 1818) (out= 943)(deflated 48%)
adding: org/apache/xml/serializer/Version.src(in = 4720) (out= 1869)(deflated 60%)
adding: org/apache/xml/serializer/XMLEntities.properties(in = 1086) (out= 647)(deflated 40%)
adding: org/kxml2/(in = 0) (out= 0)(stored 0%)
adding: org/kxml2/ThirdPartyProject.prop(in = 209) (out= 173)(deflated 17%)
adding: org/xml/(in = 0) (out= 0)(stored 0%)
adding: org/xml/ThirdPartyProject.prop(in = 224) (out= 178)(deflated 20%)
adding: org/xmlpull/(in = 0) (out= 0)(stored 0%)
adding: org/xmlpull/ThirdPartyProject.prop(in = 224) (out= 179)(deflated 20%)
updated manifest
Creating flashable patch zip
added manifest
adding: system/(in = 0) (out= 0)(stored 0%)
adding: system/framework/(in = 0) (out= 0)(stored 0%)
adding: system/framework/core.jar(in = 1914926) (out= 1902928)(deflated 0%)
adding: system/framework/framework.jar(in = 12434) (out= 12293)(deflated 1%)
adding: system/framework/services.jar(in = 708944) (out= 708315)(deflated 0%)
ignoring entry META-INF/
adding: META-INF/com/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/android/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/android/update-binary(in = 228376) (out= 147107)(deflated 35%)
adding: META-INF/com/google/android/updater-script(in = 243) (out= 144)(deflated 40%)
Creating flashable restore zip
added manifest
adding: system/(in = 0) (out= 0)(stored 0%)
adding: system/framework/(in = 0) (out= 0)(stored 0%)
adding: system/framework/core.jar(in = 1862816) (out= 1851862)(deflated 0%)
adding: system/framework/framework.jar(in = 3128765) (out= 3116139)(deflated 0%)
adding: system/framework/services.jar(in = 684964) (out= 684053)(deflated 0%)
ignoring entry META-INF/
adding: META-INF/com/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/android/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/android/update-binary(in = 228376) (out= 147107)(deflated 35%)
adding: META-INF/com/google/android/updater-script(in = 243) (out= 144)(deflated 40%)
Successfully created PDroid patch.
PDroid Patch: C:\Users\******Documents\Droidz\pdroid\PDroid-v1.32-XDA_Nitrogen[Android Un-Chained][Revision1]-20130322-183515.zip.
You can flash it through recovery (for example CWM).
To restore your ROM and remove PDroid, flash PDroid-RESTORE-XDA_Nitrogen[Android Un-Chained][Revision1]-20130322-183515.zip
---
Also used Android Debug Monitor and captured the following errors from LogCat:
---
04-10 07:39:55.689: E/AudioHardwareMSM72XX(213): audioeq library open failure
04-10 07:40:02.819: E/dalvikvm(330): too small to be DEX
04-10 07:40:02.819: E/dalvikvm(330): Optimization failed
04-10 07:40:02.819: E/dalvikvm(212): Unable to extract+optimize DEX from '/system/framework/framework.jar'
04-10 07:40:05.639: E/JNIHelp(212): Native registration unable to find class 'android/debug/JNITest'
04-10 07:40:05.639: E/AndroidRuntime(212): Unable to register all android natives
04-10 07:40:06.059: E/dalvikvm(352): too small to be DEX
04-10 07:40:06.069: E/dalvikvm(352): Optimization failed
04-10 07:40:06.069: E/dalvikvm(348): Unable to extract+optimize DEX from '/system/framework/framework.jar'
04-10 07:40:06.159: E/JNIHelp(348): Native registration unable to find class 'android/debug/JNITest'
04-10 07:40:06.159: E/AndroidRuntime(348): Unable to register all android natives
---
And this keeps going on until I dsconnected the phone from my system.
Any assistance with this would be appreciated.
Cheers
Exactly same issue; happening with every CM based rom (Cooper)

Help installing magisk on OP3 / OxygenOS - Oreo

Hi, i now that everyone seems to be able to use magisk under oreo, but i can't get it to work since the first oxygenos oreo beta release. Never had a problem with previous versions.
the funny thing is, it seems to install correctly, but after the reboot there is no magisk manager, and no root functionality.
What i tried:
* Dirty and Clean flashed every beta and stable build.
* Tried the last 4 magisk releases, last version 15.3
* Supersu, which works every time
* TWRP 3.2.1 blu spark 8.61
I deleted everything except /data/media/0/*
Also, a log file from a magisk install after a clean flash:
Code:
Installing zip file '/sdcard/Backup/Magisk-v15.3(1531).zip'
Checking for Digest file...
Skipping Digest check: no Digest file found
I:Update binary zip
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment not used in updater.
Archive: /sdcard/Backup/Magisk-v15.3(1531).zip
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
inflating: addon.d/99-magisk.sh
inflating: arm/magiskboot
inflating: arm/magiskinit
inflating: arm64/magiskboot
inflating: arm64/magiskinit
inflating: chromeos/futility
inflating: chromeos/kernel.keyblock
inflating: chromeos/kernel_data_key.vbprivk
inflating: common/boot_patch.sh
inflating: common/magisk.apk
inflating: common/util_functions.sh
inflating: x64/magiskboot
inflating: x64/magiskinit
inflating: x86/magiskboot
inflating: x86/magiskinit
inflating: META-INF/MANIFEST.MF
inflating: META-INF/CERT.SF
inflating: META-INF/CERT.RSA
************************
* Magisk v15.3 Installer
************************
- Mounting /system, /vendor
- Device platform: arm64
- Constructing environment
- Found boot image: /dev/block/sde18
Unable to locate class 'com/topjohnwu/magisk/utils/BootSigner'
java.lang.ClassNotFoundException: Didn't find class "com.topjohnwu.magisk.utils.BootSigner" on path: DexPathList[[zip file "/dev/tmp/install/common/magisk.apk"],nativeLibraryDirectories=[/system/lib64, /system/vendor/lib64, /system/lib64, /system/vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
Exception in thread "main" java.lang.ClassNotFoundException: Didn't find class "com.topjohnwu.magisk.utils.BootSigner" on path: DexPathList[[zip file "/dev/tmp/install/common/magisk.apk"],nativeLibraryDirectories=[/system/lib64, /system/vendor/lib64, /system/lib64, /system/vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
- Encrypted data detected
- Unpacking boot image
MagiskBoot v15.3(1531) (by topjohnwu) - Boot Image Modification Tool
Parsing boot image: [/dev/block/sde18]
KERNEL [13288446] @ 0x80008000
RAMDISK [2684900] @ 0x81000000
SECOND [0] @ 0x80f00000
EXTRA [0] @ 0x80000100
PAGESIZE [4096]
OS_VERSION [8.0.0]
PATCH_LEVEL [2017-12]
NAME []
CMDLINE [androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 [email protected] buildvariant=user]
DTB [4393782]
KERNEL_FMT [gzip]
RAMDISK_FMT [gzip]
- Checking ramdisk status
MagiskBoot v15.3(1531) (by topjohnwu) - Boot Image Modification Tool
Loading cpio: [ramdisk.cpio]
- Stock boot image detected
- Backing up stock boot image
MagiskBoot v15.3(1531) (by topjohnwu) - Boot Image Modification Tool
Compressing to [stock_boot_ca556288a60220a86b3190b8f7e7a7626501472e.img.gz]
- Patching ramdisk
MagiskBoot v15.3(1531) (by topjohnwu) - Boot Image Modification Tool
Loading cpio: [ramdisk.cpio]
Add entry [init] (0750)
Patch with flag KEEPVERITY=[false] KEEPFORCEENCRYPT=[true]
Remove [verity_key]
Save SHA1: [ca556288a60220a86b3190b8f7e7a7626501472e] -> [.backup/.sha1]
Loading cpio: [ramdisk.cpio.orig]
Backup mismatch entry: [init] -> [.backup/init]
Backup missing entry: [verity_key] -> [.backup/verity_key]
Dump cpio: [ramdisk.cpio]
MagiskBoot v15.3(1531) (by topjohnwu) - Boot Image Modification Tool
Loading dtbs from [dtb]
Found fstab in dtb.0000
Found block [system] in fstab
Remove pattern [,verify]
Found fstab in dtb.0001
Found block [system] in fstab
Remove pattern [,verify]
Found fstab in dtb.0002
Found block [system] in fstab
Remove pattern [,verify]
Found fstab in dtb.0003
Found block [system] in fstab
Remove pattern [,verify]
Found fstab in dtb.0004
Found block [system] in fstab
Remove pattern [,verify]
Found fstab in dtb.0005
Found block [system] in fstab
Remove pattern [,verify]
Found fstab in dtb.0006
Found block [system] in fstab
Remove pattern [,verify]
Found fstab in dtb.0007
Found block [system] in fstab
Remove pattern [,verify]
Found fstab in dtb.0008
Found block [system] in fstab
Remove pattern [,verify]
Found fstab in dtb.0009
Found block [system] in fstab
Remove pattern [,verify]
Found fstab in dtb.0010
Found block [system] in fstab
Remove pattern [,verify]
Found fstab in dtb.0011
Found block [system] in fstab
Remove pattern [,verify]
MagiskBoot v15.3(1531) (by topjohnwu) - Boot Image Modification Tool
MagiskBoot v15.3(1531) (by topjohnwu) - Boot Image Modification Tool
Patch @ 01308BE6 [736B69705F696E697472616D6673]->[77616E745F696E697472616D6673]
- Repacking boot image
MagiskBoot v15.3(1531) (by topjohnwu) - Boot Image Modification Tool
Parsing boot image: [/dev/block/sde18]
KERNEL [13288446] @ 0x80008000
RAMDISK [2684900] @ 0x81000000
SECOND [0] @ 0x80f00000
EXTRA [0] @ 0x80000100
PAGESIZE [4096]
OS_VERSION [8.0.0]
PATCH_LEVEL [2017-12]
NAME []
CMDLINE [androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 [email protected] buildvariant=user]
DTB [4393782]
KERNEL_FMT [gzip]
RAMDISK_FMT [gzip]
Repack to boot image: [new-boot.img]
KERNEL [13295950] @ 0x80008000
RAMDISK [3063248] @ 0x81000000
SECOND [0] @ 0x80f00000
EXTRA [0] @ 0x80000100
PAGESIZE [4096]
OS_VERSION [8.0.0]
PATCH_LEVEL [2017-12]
NAME []
CMDLINE [androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 [email protected] buildvariant=user]
MagiskBoot v15.3(1531) (by topjohnwu) - Boot Image Modification Tool
Cleaning up...
- Flashing new boot image
- Unmounting partitions
- Done
I:Updater process ended with RC=0
I:Install took 24 second(s).
Updating partition details...
I:Data backup size is 1681MB, free: 10341MB.
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
I:operation_end - status=0
I:Set page: 'clear_vars'
I:Set page: 'install'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'copylog'
I:Set page: 'action_page'
I:operation_start: 'Copy Log'
I:Copying file /tmp/recovery.log to /data/media/0/recovery.log
Copied recovery log to /data/media/0/recovery.log.
Interesting... I've installed Magisk on OOS stable Oreo on both the 3T and 5T and have had no issues at all.
You have an error in there that looks a bit weird though. I think I've seen that in another couple of reports... Hm...
I'll pass it on.
Meanwhile you could try patching the boot image with the Manager and then flash the patched image in TWRP.
When I first rooted OOS Oreo I had to use Magisk 14.5 for it to work. I could then update to 15.3.
Sent from my OnePlus3T using XDA Labs

Help Couldnt install any custom rom whatsoever

heres a log
Installing zip file '/sdcard/Havoc-OS-v2.6-20190611-jasmine_sprout-Official.zip'
Checking for Digest file...
Skipping Digest check: no Digest file found
I:AB zip
I:has_legacy_properties: Could not open /tmp/updater: No such file or directory!
I:Legacy property environment not used in updater.
Failed to parse build number in post-build-incremental=eng.rcstar.20190611.020532.
__bionic_open_tzdata: couldn't find any tzdata when looking for PAKST-5:30!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
[0617/224002:INFO:sideload_main.cc(207)] Update Engine Sideloading starting
[0617/224002:INFO:boot_control_recovery.cc(77)] Loaded boot_control HAL 'Boot control HAL' version 0.1 authored by 'Code Aurora Forum'.
[0617/224002:INFO:update_attempter_android.cc(207)] Using this install plan:
[0617/224002:INFO:install_plan.cc(77)] InstallPlan: new_update, source_slot: B, target_slot: A, url: file:///sdcard/Havoc-OS-v2.6-20190611-jasmine_sprout-Official.zip, payload: (size: 730303102, metadata_size: 143458, metadata signature: , hash: B3621E6FF72FDADC09D057ABA4C33A710920E6009EC948044D95B047F1C524B3, payload type: unknown), hash_checks_mandatory: false, powerwash_required: false
[0617/224002:INFO:update_attempter_android.cc(391)] Marking booted slot as good.
[0617/224002:ERROR:boot_control_recovery.cc(175)] Unable to mark boot successful: Operation not permitted
[0617/224002:INFO:update_attempter_android.cc(406)] Scheduling an action processor start.
[0617/224002:INFO:action_processor.cc(46)] ActionProcessor: starting InstallPlanAction
[0617/224002:INFO:action_processor.cc(116)] ActionProcessor: finished InstallPlanAction with code ErrorCode::kSuccess
[0617/224002:INFO:action_processor.cc(143)] ActionProcessor: starting DownloadAction
[0617/224002:INFO:install_plan.cc(77)] InstallPlan: new_update, source_slot: B, target_slot: A, url: file:///sdcard/Havoc-OS-v2.6-20190611-jasmine_sprout-Official.zip, payload: (size: 730303102, metadata_size: 143458, metadata signature: , hash: B3621E6FF72FDADC09D057ABA4C33A710920E6009EC948044D95B047F1C524B3, payload type: unknown), hash_checks_mandatory: false, powerwash_required: false
[0617/224002:INFO:download_action.cc(195)] Marking new slot as unbootable
[0617/224002:ERROR:boot_control_recovery.cc(155)] Unable to mark slot A as bootable: Operation not permitted
[0617/224002:WARNING:download_action.cc(197)] Unable to mark new slot A. Proceeding with the update anyway.
[0617/224002:INFO:multi_range_http_fetcher.cc(45)] starting first transfer
[0617/224002:INFO:multi_range_http_fetcher.cc(74)] starting transfer of range 1106+730303102
Step 1/2[0617/224002:INFO:delta_performer.cc(201)] Completed 0/? operations, 16384/730303102 bytes downloaded (0%), overall progress 0%
[0617/224002:INFO:delta_performer.cc(544)] Manifest size in payload matches expected value from Omaha
[0617/224002:INFO:delta_performer.cc(1369)] Verifying metadata hash signature using public key: /etc/update_engine/update-payload-key.pub.pem
[0617/224002:INFO:delta_performer.cc(1411)] Metadata hash signature matches value in Omaha response.
[0617/224002:INFO:delta_performer.cc(1431)] Detected a 'full' payload.
[0617/224002:INFO:delta_performer.cc(382)] PartitionInfo old boot sha256: size: 0
[0617/224002:INFO:delta_performer.cc(382)] PartitionInfo new boot sha256: 7sseQdNxPzpof5gw06pO3kxbGAgrRWt0fLhFTqW1di4= size: 39817216
[0617/224002:INFO:delta_performer.cc(382)] PartitionInfo old system sha256: size: 0
[0617/224002:INFO:delta_performer.cc(382)] PartitionInfo new system sha256: oLanZrAGfJ7MqFRrqbwKe4Z1mCaK46v/ezPPJSp1Fi8= size: 3221225472
[0617/224002:INFO:delta_performer.cc(382)] PartitionInfo old vendor sha256: size: 0
[0617/224002:INFO:delta_performer.cc(382)] PartitionInfo new vendor sha256: gS4RsefgJ3Qh1ZSLK5t0ctCDRdVZHLSynExBqW/Iq7g= size: 2147483648
[0617/224002:INFO:delta_performer.cc(368)] Applying 19 operations to partition "boot"
[0617/224002:INFO:delta_performer.cc(661)] Starting to apply update payload operations
[0617/224004:INFO:delta_performer.cc(368)] Applying 1536 operations to partition "system"
[0617/224017:INFO:delta_performer.cc(201)] Completed 136/2579 operations (5%), 116850688/730303102 bytes downloaded (16%), overall progress 10%
[0617/224030:INFO:delta_performer.cc(201)] Completed 289/2579 operations (11%), 219103232/730303102 bytes downloaded (30%), overall progress 20%
[0617/224043:INFO:delta_performer.cc(201)] Completed 421/2579 operations (16%), 321339392/730303102 bytes downloaded (44%), overall progress 30%
[0617/224046:ERROR:xz_extent_writer.cc(89)] xz_dec_run returned XZ_DATA_ERROR
[0617/224046:ERROR:delta_performer.cc(937)] writer->Write(buffer_.data(), operation.data_length()) failed.
[0617/224046:ERROR:extent_writer.h(38)] End() not called on ExtentWriter.
[0617/224046:ERROR:extent_writer.h(38)] End() not called on ExtentWriter.
[0617/224046:ERROR:extent_writer.h(38)] End() not called on ExtentWriter.
[0617/224046:ERROR:delta_performer.cc(288)] Failed to perform REPLACE_XZ operation 452, which is the operation 433 in partition "system"
[0617/224046:ERROR:download_action.cc(325)] Error ErrorCode::kDownloadOperationExecutionError (28) in DeltaPerformer's Write method when processing the received payload -- Terminating processing
[0617/224046:INFO:delta_performer.cc(304)] Discarding 832792 unused downloaded bytes
[0617/224046:INFO:multi_range_http_fetcher.cc(172)] Received transfer terminated.
[0617/224046:INFO:multi_range_http_fetcher.cc(124)] TransferEnded w/ code 200
[0617/224046:INFO:multi_range_http_fetcher.cc(126)] Terminating.
[0617/224046:INFO:action_processor.cc(116)] ActionProcessor: finished DownloadAction with code ErrorCode::kDownloadOperationExecutionError
[0617/224046:INFO:action_processor.cc(121)] ActionProcessor: Aborting processing due to failure.
[0617/224046:INFO:update_attempter_android.cc(294)] Processing Done.
Error applying update: 28 (ErrorCode::kDownloadOperationExecutionError)Updater process ended with ERROR: 1
I:Install took 44 second(s).
Error installing zip file '/sdcard/Havoc-OS-v2.6-20190611-jasmine_sprout-Official.zip'
Updating partition details...
Iata backup size is 0MB, free: 46234MB.
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'auto'
...done
always shows me this error
"Error applying update: 28 (ErrorCode::kDownloadOperationExecutionError)Updater process ended with ERROR: 1"
ive tried installing this on stock pie as well as stock oreo always get this error
ps i can install stock rom via xiaomi flash
i have tried installing rom from different versions of twrp as well

Categories

Resources