Hello everyone. So I am trying to port CM9 to my device htc Desire C. The build compiles correctly but when I flash it, it results in a bootloop.
I have attached the logcat. If some one could help me with this , it would be great
Heres the paste bin link http://pastebin.com/5u6ymXgk
Add this line to build.prop and reflash it;
dalvik.vm.dexopt-data-only=1
forumber2 said:
Add this line to build.prop and reflash it;
dalvik.vm.dexopt-data-only=1
Click to expand...
Click to collapse
Thank you so much bro
Those lines fixed the error.
Related
Hi friends im having trouble writing the update-script for a flashable zip with deodexed system/app & system/framework. this is my first attempt at one. could anyone tell me where im going wrong please ive been trying all day with no luck. But its not for my ray its for my j theres not many devs to help me on the j forum.
heres my zip: https://dl.dropbox.com/u/90938124/deodex_xj-signed.zip
gavster26 said:
Hi friends im having trouble writing the update-script for a flashable zip with deodexed system/app & system/framework. this is my first attempt at one. could anyone tell me where im going wrong please ive been trying all day with no luck. But its not for my ray its for my j theres not many devs to help me on the j forum.
heres my zip: https://dl.dropbox.com/u/90938124/deodex_xj-signed.zip
Click to expand...
Click to collapse
just give me the updater script. file
here it is thanks
There is no mount and unmout cmd's in the script..
Well iam on phone now...
Simple solution for u is to use any any existing mod's meta-inf folder in ur mod.
Sent from my SK17i using XDA Premium HD app
Have a look at a working updater-script and you will see a huge difference
For example you need a command like
Code:
extract_dir
More set perms and mounting/unmounting system. Please check out a "real" updater-script :good:
Sent from my Nexus 7 running Android 4.2.1
sandy7 said:
There is no mount and unmout cmd's in the script..
Well iam on phone now...
Simple solution for u is to use any any existing mod's meta-inf folder in ur mod.
Sent from my SK17i using XDA Premium HD app
Click to expand...
Click to collapse
ok i'll try thanks
mihahn said:
Have a look at a working updater-script and you will see a huge difference
For example you need a command like
Code:
extract_dir
More set perms and mounting/unmounting system. Please check out a "real" updater-script :good:
Sent from my Nexus 7 running Android 4.2.1
Click to expand...
Click to collapse
i think i'll just give up i'm no dev lol
my next attempt still cant get it right please someone help me
well here what u did wrong...updater script was a txt file...and there was no updater binary script.
so next time use Notepad++ to edit these files..
here i only fixed everything...it should work now....
http://d-h.st/Gai
sandy7 said:
well here what u did wrong...updater script was a txt file...and there was no updater binary script.
so next time use Notepad++ to edit these files..
here i only fixed everything...it should work now....
http://d-h.st/Gai
Click to expand...
Click to collapse
Thankyou so much for your efforts but its not flashing error status6 i looked it up and resigning fixes the problem but then it just aborts. i'll just forget about it i'm sure you all have better things to do than help silly nooby me lol. Thanks again.
gavster26 said:
Thankyou so much for your efforts but its not flashing error status6 i looked it up and resigning fixes the problem but then it just aborts. i'll just forget about it i'm sure you all have better things to do than help silly nooby me lol. Thanks again.
Click to expand...
Click to collapse
I think the best thread you can start to learn it: How to make a flashable zip
I started here too once a time...
Wechy
Wechy77 said:
I think the best thread you can start to learn it: How to make a flashable zip
I started here too once a time...
Wechy
Click to expand...
Click to collapse
thats where iv been trying to learn from but its not really explanatory enough for a noob. im just a factory worker lol not a dev all thought id love to be able to do all this. iv read other threds aswell but none of them said anything about the update binery either. i'm probably just not smart enough. i'll keep trying though
gavster26 said:
thats where iv been trying to learn from but its not really explanatory enough for a noob. im just a factory worker lol not a dev all thought id love to be able to do all this. iv read other threds aswell but none of them said anything about the update binery either. i'm probably just not smart enough. i'll keep trying though
Click to expand...
Click to collapse
Try download some flashable zips and view updater scripts with notepad++
This is the best way to understand how it works.
If I have some time I write a little guide
Sent from my Xperia Ray using xda premium
Wechy77 said:
Try download some flashable zips and view updater scripts with notepad++
This is the best way to understand how it works.
If I have some time I write a little guide
Sent from my Xperia Ray using xda premium
Click to expand...
Click to collapse
ok thanks. i'll study up lol. how would i remove the .txt extension on notepad++ when i save it turns into a txt file.
gavster26 said:
ok thanks. i'll study up lol. how would i remove the .txt extension on notepad++ when i save it turns into a txt file.
Click to expand...
Click to collapse
delete extension
but the best way is open one of the updater-script (download any flashable zip) and edit with notepad++
(be sure you edit with notepad++ othervise you will see status6 error when flashing)
Hallo, I tried a lot of apktools and aapts but I am unable to recompile framework-res Every time resources have diferent size than stock framework-res and I have no idea how to hack them. If some one allready hacked them please help here! Seems Sony using an totally new aapt tool which is not public? I tried to recompile framework-res without modifying them but every time I getting boot loop.
munjeni said:
Hallo, I tried a lot of apktools and aapts but I am unable to recompile framework-res Every time resources have diferent size than stock framework-res and I have no idea how to hack them. If some one allready hacked them please help here! Seems Sony using an totally new aapt tool which is not public? I tried to recompile framework-res without modifying them but every time I getting boot loop.
Click to expand...
Click to collapse
framework from stock???
Yes
Note: mean about modifying xml files, not drag and drop from the one to the another... ! I have resigned all apks (including framework-res) and have no boot loop but framework-res can not be recompiled and signed, only signed! Allso drag and drop not working if xml files is modified! Hope you understand what I mean?
munjeni said:
Yes
Note: mean about modifying xml files, not drag and drop from the one to the another... ! I have resigned all apks (including framework-res) and have no boot loop but framework-res can not be recompiled and signed, only signed! Allso drag and drop not working if xml files is modified! Hope you understand what I mean?
Click to expand...
Click to collapse
Have U tried to drag 'n drop AndroidManifest.xml and META-INF folder from stock to modified framework-res and overwrite everything ( of course using archive manager )??
I needed to do this in my MIUI port ( CyanogenMod10 based ) for X8, because after every recompile I needed to copy them to not get bootloop
NeveHanter said:
Have U tried to drag 'n drop AndroidManifest.xml and META-INF folder from stock to modified framework-res and overwrite everything ( of course using archive manager )??
I needed to do this in my MIUI port ( CyanogenMod10 based ) for X8, because after every recompile I needed to copy them to not get bootloop
Click to expand...
Click to collapse
No, I have success in resigning unmodified stock framework-res, so META-INF have no sense because new META-INF is signed by new key and its working! There is problem with "format" ...seems Sony have his own aapt and apktool which making totaly diferent "format" than apktool and aapt that we using. I tried many of the aapt | apktool but .arsc have totaly diferent size (allso png files is with totaly diferent size)... !
Have u used the apk manager by diamondback??
http://forum.xda-developers.com/showthread.php?t=1619473
I am working in Linux machine!
munjeni said:
I am working in Linux machine!
Click to expand...
Click to collapse
have you figured out the problem yet??
and one thing I wanted a favour........
I wanted to change the rotation fix for your MIUI to back to its original state..... decompiled the framework-res.apk from the MIUI and changed the some values in framework-res/res/values/bools.xml and then recompiled it and when I replaced it with the default one I was getting the status bar of different width from the original..... it was almost double..... I also tried by just replacing some images just for test and the same thing happened........
Can you tell me whats the problem is????
Hey bro,
Even I was stuck with this issue for a while I think it was Spaun_Studio who found out how to fix this issue Its basically to do with apktool not bundling the required nxt drawables as needed Anyway, Here's the fix :
1) After decompiling, go to apktool.iml and delete the following lines :
usesFramework:
ids:
- 2
Click to expand...
Click to collapse
2) Go to res/values and open styles.xml. There, delete all references to sonyericcson.uxp:drawable (Delete the entire line)
Then, compile and it will work
Credits to Spaun_Studio and not me for the idea
Cheers
@[email protected] said:
have you figured out the problem yet??
and one thing I wanted a favour........
I wanted to change the rotation fix for your MIUI to back to its original state..... decompiled the framework-res.apk from the MIUI and changed the some values in framework-res/res/values/bools.xml and then recompiled it and when I replaced it with the default one I was getting the status bar of different width from the original..... it was almost double..... I also tried by just replacing some images just for test and the same thing happened........
Can you tell me whats the problem is????
Click to expand...
Click to collapse
Seems you missing something!
Min3r said:
Hey bro,
Even I was stuck with this issue for a while I think it was Spaun_Studio who found out how to fix this issue Its basically to do with apktool not bundling the required nxt drawables as needed Anyway, Here's the fix :
1) After decompiling, go to apktool.iml and delete the following lines :
2) Go to res/values and open styles.xml. There, delete all references to sonyericcson.uxp:drawable (Delete the entire line)
Then, compile and it will work
Credits to Spaun_Studio and not me for the idea
Cheers
Click to expand...
Click to collapse
Thanks mate for info, I will try soon! Its looking like problem you mentioned!
munjeni said:
Thanks mate for info, I will try soon! Its looking like problem you mentioned!
Click to expand...
Click to collapse
If you can help with the steps it would be great....... IF you are free then please help........ Thanks....
So, i'm editing a stock rom retail BR 4.4.2 of Moto X. I needed edit the SystemUI.apk for add a feature, and for this i should add a line in the AndroidManifest.xml, when i did all the modifications and install the rom, i get this message "KeyguardTestActivity has stopped". I have identified that the problem stay in the modification in the AndroidManifest.xml, and the "KeyguardTestActivity" is the app Keyguard.apk that is the lockscreen. I don't know why this don't work! I'm using the last apktool, i have installed the framework-res.apk of the stock rom! please help me :crying:
Help
ramon20 said:
Help
Click to expand...
Click to collapse
i have the same problem
Same prob' :/
Same problem on a qbex TX240.
hie guys,i have this ROM_0 file from sp flash tools.tried processing it using mtk droid tool to get a yaff2 image i can open change my build.prop but it happens that every tool i tried using couldnt open the yaffs2 image.
my real problem is i edited the build.prop and my phone is stuck in a boot loop.Since it is a china phone with information below, couldnt get the ROM anywhere online but managed to do a rollback using SP Flash Tools.Now the problem is i cant open this ROM to replace the build.prop.
Phone Information:
Model is N7100
Rom is ALPS.ICS2.MP.V1.15.
Brand SANSVMG.
CPU is MT6577
any help guys is greatly appreciated.THANKS IN ADVANCE
Tashaa78 said:
hie guys,i have this ROM_0 file from sp flash tools.tried processing it using mtk droid tool to get a yaff2 image i can open change my build.prop but it happens that every tool i tried using couldnt open the yaffs2 image.
my real problem is i edited the build.prop and my phone is stuck in a boot loop.Since it is a china phone with information below, couldnt get the ROM anywhere online but managed to do a rollback using SP Flash Tools.Now the problem is i cant open this ROM to replace the build.prop.
Phone Information:
Model is N7100
Rom is ALPS.ICS2.MP.V1.15.
Brand SANSVMG.
CPU is MT6577
any help guys is greatly appreciated.THANKS IN ADVANCE
Click to expand...
Click to collapse
there must be anyone in the world with same phone like you just contact him and ask him to give you the backup or build.prop and just flash it
got the build.prop
Hell_X said:
there must be anyone in the world with same phone like you just contact him and ask him to give you the backup or build.prop and just flash it
Click to expand...
Click to collapse
i happen to have the original build.prop but how do i flash it back or replace it if i cant open the rom
Tashaa78 said:
i happen to have the original build.prop but how do i flash it back or replace it if i cant open the rom
Click to expand...
Click to collapse
send me your build.prop
Hell_X said:
send me your build.prop
Click to expand...
Click to collapse
also in the attachment in the first post are links to all files you may need, the ROM_ from flash tools, the scatter file
thanks in advance
Tashaa78 said:
also in the attachment in the first post are links to all files you may need, the ROM_ from flash tools, the scatter file
thanks in advance
Click to expand...
Click to collapse
I am sure you have cwm recovery or not?
Hell_X said:
I am sure you have cwm recovery or not?
Click to expand...
Click to collapse
nah,dont have one,still searching on how to get a cwm recovery
Tashaa78 said:
nah,dont have one,still searching on how to get a cwm recovery
Click to expand...
Click to collapse
do you remember the lines that you edited???
Hell_X said:
do you remember the lines that you edited???
Click to expand...
Click to collapse
YAP,I DO :
ro.build.host=wsyz
Code:
[QUOTE][U]ro.build.product=bird77_c_cu_ics2[/U][/QUOTE]
# Do not try to parse ro.build.description or .fingerprint
ro.build.description=bird77_c_cu_ics2-user 4.0.4 IMM76D eng.root.1359077894 test-keys
ro.build.fingerprint=alps/bird77_c_cu_ics2/bird77_c_cu_ics2:4.0.4/IMM76D/1359077894:user/test-keys
AND THE FINGER PRINT TOO,
thanks man for the effort u putting into helping me,u the man
Hi, I'm working on an AOSP rom, I want to add a key to my build,prop before compiling it into a zip.
How can it be done?
Please help.
rosenpin said:
Hi, I'm working on an AOSP rom, I want to add a key to my build,prop before compiling it into a zip.
How can it be done?
Please help.
Click to expand...
Click to collapse
I would recommend taking a look at this guide here for how to add your own property to build.prop before compiling.
shimp208 said:
I would recommend taking a look at this guide here for how to add your own property to build.prop before compiling.
Click to expand...
Click to collapse
Works great, Thank you!
If you wish to modify existing property from ADDITIONAL_BUILD_PROPERTIES section, you need to modify $ANDROID_BUILD_TOP/device/$TARGET_PRODUCT/$TARGET_PRODUCT.mk
For properties in section PRODUCT_PROPERTY_OVERRIDES check device.mk and customer.mk in the same folder.