How do I get Zipalign at Boot working? - Verizon Droid Incredible 2

Yes I google'd my ass off so googleit police gtfo..
Here's what I understand:
1. I need a kernel that supports int.d scripts
2. I need \system\etc\init.d\zipalign script and counter part '\system\xbin\zipalign' ... I HAVE THOSE
Question: What else do I need to do so I don't brick my rom to get zipalign at boot to work properly?
Thanks in Advance, much appreciated!

Outta said:
Yes I google'd my ass off so googleit police gtfo..
Here's what I understand:
1. I need a kernel that supports int.d scripts
2. I need \system\etc\init.d\zipalign script and counter part '\system\xbin\zipalign' ... I HAVE THOSE
Question: What else do I need to do so I don't brick my rom to get zipalign at boot to work properly?
Thanks in Advance, much appreciated!
Click to expand...
Click to collapse
need to set the correct permissions on the file through root explorer or an update-script
but honestly zipalign on boot is kinda useless...most roms are zipaligned as are most market apps

thats it? thank you.

Related

Modify init.rc & other boot scripts?

Simple question, I can only hope the answer can be as easy as the question...
I've got a rooted rom, nand unlocked, etc...I try editing the boot scripts and it saves, but upon reboot they are reverted.
It would seem they are being generated on each boot, is there any way to (permanently) modify these scripts or stop them from being regenerated?
I do believe DamageLess has done it with his latest rom.
I asked this and the topic got moved here: http://forum.xda-developers.com/showthread.php?t=704433
Neotelos_com said:
Simple question, I can only hope the answer can be as easy as the question...
I've got a rooted rom, nand unlocked, etc...I try editing the boot scripts and it saves, but upon reboot they are reverted.
It would seem they are being generated on each boot, is there any way to (permanently) modify these scripts or stop them from being regenerated?
I do believe DamageLess has done it with his latest rom.
Click to expand...
Click to collapse
init.rc is part of the ramdisk. ramdisk which is bundled with the kernel. it gets reloaded on every boot.
i also posted an answer in the other thread linked to above before it was moved ...
like the person above me said, those files are part of the ramdisk and not the actual kernel. but, it's all packaged into a boot.img when you flash a rom. there's a method where someone created a script to split the ramdisk and actual kernel, which i've tried before. google "split ramdisk and kernel android" and you might find what you want.
problem is, when i did that for the hero, it never compiled right. maybe you'll have more luck?

[ROM][12/7/10] Stock w/root, odex and deodex post-OTA, *updated instructions (v1.1)

ya ya, this should have been first. but we all wanted to play. but anyway here it is now.
this is the stock rom post OTA. added root (su and superuser.apk) as well as modified ramdisk (ro.secure=0) and busybox. Also zip aligned apps to optimize ram usage. there is odex (stock) and de-odex versions.
*i no longer see the reason for needing the pre-OTA rom. if you have a reason post up and we'll see what happens...
if you are upgrading from previous version of THIS rom you should not have to wipe, however you will still need to redo any system changes you have made, i.e. trackpad wake or notification lights.
Stock OTA kernel is now INCLUDED in rom flash. however if you want to flash an oc/uv/whatever kernel follow that post's instructions after this rom is up and running. i suggest pershoots kernels. been using his since the g1, awesome work. his g2 one has great performance AND battery life.(for me anyway)
These roms are g2 and dz compatible.
Cwm recovery recomended for ease and function.
1. Place stock rom of your choice on root of sdcard.
2. Boot into recovery
3. Do a nandroid backup.
4. Do a full wipe. (if coming from different rom)
5. Select flash zip from sd and select stock rom.
6. Once its finished, reboot and enjoy.
OTA odex: http://www.4shared.com/file/XlIDy7SV/ota_odex_V11.html
OTA de-odex: http://www.4shared.com/file/vi77pxvT/ota_deodex_v11.html
OTA bootv2 (kernel): http://www.4shared.com/file/y2NVlbJm/ota_boot_v2.html
*(only needed if you flashed a different kernel after the version 1.1 rom and want to go back to stock kernel. includes wifi module.)
pershoots's kernel:
http://forum.xda-developers.com/showthread.php?t=847672
theme template: http://www.4shared.com/file/VwINHT_r/theme_template.html
*theme template is for theme dev's only. it should be universal for any rom. just place the themed framework and/or apps in corresponding folders. i have a .txt file in the folders as a place holder, delete it after you add your themed stuff. take a look at the update script to see how it works, and to add or remove anything you need to...
change log:
v1.1:
fixed permissions and mismatched symlink issue w/busybox. (thanks to Mikey1022 for bringing this prob to my attn.)
v1.0:
initial release
Awesome thanks!! Do we have to flash a separate kernel if coming from Sense, and if so, do you have the stock kernel in a flashable .zip? Thank you in advance,
Russ
Nice work! good to have a base Rom to fall back on but why do we need three Roms for stock? why not just deodex the stock Rom with the OTA applied and be done with it? less work for you, right? I know this is quicker and will help folks who have boot looped/ soft bricked their phones. either way, good job and thanks!
Can I just remove the odex files along with the bloatware apk files from my current rom? I know they are both located in the systems/app folder.
Sent from DynamikD's R00t3d & OC G2
rUsTyRuSs said:
Awesome thanks!! Do we have to flash a separate kernel if coming from Sense, and if so, do you have the stock kernel in a flashable .zip? Thank you in advance,
Russ
Click to expand...
Click to collapse
question 1: yes.
question 2: damn im an idiot and half asleep. its gonna give u same error at end of flashing as others. ignore and take boot img from zip and flash with fastboot. "fastboot flash boot boot.img"
ill have to update later on to updater-script. i have to get up for work in 1hr 45min!!!!!
rUsTyRuSs said:
Awesome thanks!! Do we have to flash a separate kernel if coming from Sense, and if so, do you have the stock kernel in a flashable .zip? Thank you in advance,
Russ
Click to expand...
Click to collapse
Yes, just flash Coolbho3000s OCed kernel.
fastludeh22 said:
question 1: yes.
question 2: damn im an idiot and half asleep. its gonna give u same error at end of flashing as others. ignore and take boot img from zip and flash with fastboot. "fastboot flash boot boot.img"
ill have to update later on to updater-script. i have to get up for work in 1hr 45min!!!!!
Click to expand...
Click to collapse
Lol! dude, slow down... get some sleep! you're as crazy as I am going to work the next day with only 2 hours of sleep! Good work though!
sino8r said:
Nice work! good to have a base Rom to fall back on but why do we need three Roms for stock? why not just deodex the stock Rom with the OTA applied and be done with it? less work for you, right? I know this is quicker and will help folks who have boot looped/ soft bricked their phones. either way, good job and thanks!
Click to expand...
Click to collapse
we dont need 3, but this is what i had to work with right now. i did odex cause thats true stock, and de-odex as a base for theamers. after patching the ota in ill update this post, not gonna make a new one.
dynamikd said:
Can I just remove the odex files along with the bloatware apk files from my current rom? I know they are both located in the systems/app folder.
Sent from DynamikD's R00t3d & OC G2
Click to expand...
Click to collapse
NOOOOO! nothing will work! the odex file is part of the apk. de-odex'ing act joins them...
edit: wait if u mean just the ones that you are compleatly removing, yes, just dont go removing all the odex files, lol
sino8r said:
Yes, just flash Coolbho3000s OCed kernel.
Click to expand...
Click to collapse
yes, this or bacon bits SHOULD work till i have a chance to fix op...
Im viewing this with xda app an I dont see a m5d is there one?
Sent from my T-Mobile G2 using XDA App
I must be doing something wrong... I flashed the boot img in fastboot, then went into clockwork recovery to write the deodexed rom, but keep getting
"E:Can't find BOOT...
E:Failure at line 334:
Write_raw_image PACKAGE:boot.img
BOOT:Installation aborted
I'mma keep trying and hopefully update this before anyone has slap me...
HELP PLS!!
I have a G2 which is S-off'd
Loaded the HTC Sense ROM on it yesterday but it kept messing up my SMSs (any SMS app incl. stock would freeze when sending SMSs)
Wanted to come back to the stock ROM and found this post
Flashed the ROM but now am stuck in the "HTC Quietly Brilliant" booting loop (i.e. phone won't progress past that splash screen)
Can someone pls help me in figuring out how to get out of this mess
I used to have Open Recovery but that's gone now. Have to rely on the stock recovery
I am not a pro at ADB etc so would appreciate step-by-step instructions pls
Thanks a million!! Appreciate it
i think u can download the stock rom, rename it to PC10IMG.ZIP, and reboot into hboot, but iono, i cant get anything right this morning
tommyxd said:
I must be doing something wrong... I flashed the boot img in fastboot, then went into clockwork recovery to write the deodexed rom, but keep getting
"E:Can't find BOOT...
E:Failure at line 334:
Write_raw_image PACKAGE:boot.img
BOOT:Installation aborted
I'mma keep trying and hopefully update this before anyone has slap me...
Click to expand...
Click to collapse
Did you try booting? Ignore error, till i can get home from work and fix it. I usually do it in differeent order though. Full wipe, flash rom, get error, ignore. Reboot into fastboot and flash boot.img OR flash one of the aosp flashable kernel zip.
adp21 said:
HELP PLS!!
I have a G2 which is S-off'd
Loaded the HTC Sense ROM on it yesterday but it kept messing up my SMSs (any SMS app incl. stock would freeze when sending SMSs)
Wanted to come back to the stock ROM and found this post
Flashed the ROM but now am stuck in the "HTC Quietly Brilliant" booting loop (i.e. phone won't progress past that splash screen)
Can someone pls help me in figuring out how to get out of this mess
I used to have Open Recovery but that's gone now. Have to rely on the stock recovery
I am not a pro at ADB etc so would appreciate step-by-step instructions pls
Thanks a million!! Appreciate it
Click to expand...
Click to collapse
You need to wipe when going from rom to rom. Get cwm recovery and follow my instructions above.
lmao, i think i did that, just in reverse order. Don't worry man, I think you need to get some rest when you get home. Thanks for the quick response btw
fastludeh22 said:
Did you try booting? Ignore error, till i can get home from work and fix it. I usually do it in differeent order though. Full wipe, flash rom, get error, ignore. Reboot into fastboot and flash boot.img OR flash one of the aosp flashable kernel zip.
You need to wipe when going from rom to rom. Get cwm recovery and follow my instructions above.
Click to expand...
Click to collapse
Thanks for the quick reply
I have already wiped via stock recovery - both data/ settings and cache
I can't boot into the phone (ie the part where u have the home screen etc). Keep getting stuck at the htc quietly brilliant screen. Phone will keep looping here
Can I still install clockwork recoverY (cwm)? If yes, how? If no, what can I do to get my phone back to normal
I'm goin' crazy here lol
I need clearer instructions. What do I rename this file to? When I go into hboot how do I load said file up?
I renamed it pc10img.zip, didn't work.
Sent from my T-Mobile G2 using XDA App
adp21 said:
Thanks for the quick reply
I have already wiped via stock recovery - both data/ settings and cache
I can't boot into the phone (ie the part where u have the home screen etc). Keep getting stuck at the htc quietly brilliant screen. Phone will keep looping here
Can I still install clockwork recoverY (cwm)? If yes, how? If no, what can I do to get my phone back to normal
I'm goin' crazy here lol
Click to expand...
Click to collapse
Also I tried to flash boot.img from fast boot but no cigar. Am I trying to flash from the wrong place?
Should I be naming the file something else? I think I left the name as is and/ or may have tried to flash by calling it PC10IMG
Thanks buddy, got it figured out, iono why but I was using "fastboot flash..." instead of "fastboot boot..." all good now.
J
tommyxd said:
Thanks buddy, got it figured out, iono why but I was using "fastboot flash..." instead of "fastboot boot..." all good now.
Click to expand...
Click to collapse
Wait so it worked for you? What did you rename the file to and how did you load it in recovery?
Sent from my T-Mobile G2 using XDA App

[Q] Low on space notification -- Please help me

First of all i am new to android, Thank god, i found this fourm.. I recently bought Xperia arc from my unknown friend. He gave me with Android 4.0.4 updated. After watching some Youtube videos, some guy told that Android 2.3 i best for gaming so i flashed to LT15i_4.0.A.2.368_Generic Global using flashtool by reading many guidelines.. After flashing successfully i still got this notification *Low on space" Note that even before flashing i got that. After googling it several times.
Solution said to install some apps, but that dint help... It says there is no movable app. And tried to enable the move to SD card button ->It says i need to root i tried Doomlord's app dint work. i deleted dome application cleared cache, force disabled, ut nothing seems to freeup spaces,
http://forum.xda-developers.com/showthread.php?t=1488351
Even this link says on step3b, make sure there is no low on sapace notification, but how do i do it?
OK i decided to partition my SD card and move the apps, but i could'int download app2SD because i had no space. Please note that TEMPLE RUN is installing)but cant app2SD). Please advice me to clean up some memory. So that i can install some apps and make my android really work. Shall i update to 4.04 or gingerbread is fine. I am totally confused what should i do. Please help me.. :crying:
Thanks in Advance
Just do a factory reset then make a second partition on your sdcard and use link2sd. Problem solved.
Is factory reset and hard reset are the same?
pypcier said:
Just do a factory reset then make a second partition on your sdcard and use link2sd. Problem solved.
Click to expand...
Click to collapse
Thank you for replying. I did a factory reset and when i tried to download link2sd app from play store, after downloading it says, insufficient memory. I even tried to install from my sd card after installing a file manager. Now i also have temple run apk in my sd card that install and works like a charm. Please help me...!
AW: [Q] Low on space notification -- Please help me
did u made an ext4 partition? because if u did, use this mod by xtremesilencer. it will take the partition as internal memory
regards - Cartman
Sent from my girls pants
Cartman44 said:
did u made an ext4 partition? because if u did, use this mod by xtremesilencer. it will take the partition as internal memory
Click to expand...
Click to collapse
Thanks for replying..I did everything as he said, but i cant find init.d folder using the root explorer app. Do i need to root my phone for that? I use ICS 4.04 Can you please provide me a link where i can read about rooting my xperia arc? I am not an expert so please provide me with a step by stpe guide's link....
Thanks in Advance..!
P.S : I can see a little hope that i can fix that :fingers-crossed:
You could search this for yourself http://forum.xda-developers.com/showthread.php?t=1874801 or with pictures http://talk.sonymobile.com/thread/38251 Its basically flashing an older kernel then running a rooting program on your pc then flashing back newest kernel.
edit
I think you need root for this mod.
AW: [Q] Low on space notification -- Please help me
sorry, i was at training, so i could not reply that fast.
well, rooting is allways a first step.
i did it that way: (short form only, if u want additional info's, just ask)
1. root
2. put a new rom + gapps on ur sd card
3. flash a prerootet kernel with preinstalled recovery which fits to ur rom
4. flash rom + gapps
5. reboot
6. connect phone to pc
7. backup ur sd card
8. delete ur entire sd card (thats why u have to make the backup)
9. reboot into recovery
10. wipe all
11. search for 'partition sd card'
12. choose ur values that u want
13. reboot into system
14. connect to pc
15. put all files back on sd card
16. download the mod and put in on sd too
17. reboot into recovery
18. flash the mod
19. wipe all
20. reboot
21. YOU'RE DONE!!
press thanks if it helped
regards - Cartman
Sent from my girls pants
edit: for custom kernel u need to unlock ur bootloader
Cibhin said:
Thanks for replying..I did everything as he said, but i cant find init.d folder using the root explorer app.
Click to expand...
Click to collapse
You need a kernel with init.d support.
Cartman44 said:
sorry, i was at training, so i could not reply that fast.
well, rooting is allways a first step.
edit: for custom kernel u need to unlock ur bootloader
Click to expand...
Click to collapse
cool bro..!! So before i root, i need to unlock my boot-loader am i right? or i can start to flash the kernal directly?
Odp: [Q] Low on space notification -- Please help me
Cibhin said:
cool bro..!! So before i root, i need to unlock my boot-loader am i right? or i can start to flash the kernal directly?
Click to expand...
Click to collapse
Correct - bootloader has to be unlocked to flash any custom kernel.
Sent from my Jelly LT15i using xda app-developers app
AW: [Q] Low on space notification -- Please help me
Cibhin said:
cool bro..!! So before i root, i need to unlock my boot-loader am i right? or i can start to flash the kernal directly?
Click to expand...
Click to collapse
unlock the bl before flashing
u can do it woth the official method (which i used) or the testpoint method (don't ask me about this, i just read it in some threads)
regards - Cartman
Sent from my girls pants
I have rooted my device successfully. Still counl'int find init.d folder from root explorer,but i can see a init folder. should i copy the file in init folder and reboot? Please reply...!!!
AW: [Q] Low on space notification -- Please help me
Cibhin said:
I have rooted my device successfully. Still counl'int find init.d folder from root explorer,but i can see a init folder. should i copy the file in init folder and reboot? Please reply...!!!
Click to expand...
Click to collapse
no, you need a kernel with init.d support
Sent from my girls pants
Cartman44 said:
no, you need a kernel with init.d support
Sent from my girls pants
Click to expand...
Click to collapse
can you peovide me a link where i can find the kernal .ftf for my xperia arc with init.d support?
Cibhin said:
can you peovide me a link where i can find the kernal .ftf for my xperia arc with init.d support?
Click to expand...
Click to collapse
just download cm10 with fusion kernel
Sent from my girls pants
Cartman44 said:
just download cm10 with fusion kernel
Sent from my girls pants
Click to expand...
Click to collapse
God..! Please be more specific...
With google, i got this
http://forum.xda-developers.com/showthread.php?t=1926299
As he said i flashed using flashboot mode, and then he says Flash modues, i dont know what to do then..!!! My phone stuck in a black screen after a logo. I went to CMW mode.. So should i copy those .zip files to my sd card and install them?? Please do reply me..!!
Cibhin said:
God..! Please be more specific...
With google, i got this
http://forum.xda-developers.com/showthread.php?t=1926299
As he said i flashed using flashboot mode, and then he says Flash modues, i dont know what to do then..!!! My phone stuck in a black screen after a logo. I went to CMW mode.. So should i copy those .zip files to my sd card and install them?? Please do reply me..!!
Click to expand...
Click to collapse
You need newest CM10 zip file from here http://get.cm/?device=anzu&type=nightly and a modules.zip for your kernel.
copy these two files to your sdcard
boot into cwm
wipe data format system and cache
choose install zip from sdcard option and flash CM10 zip then modules zip
reboot
pypcier said:
You need newest CM10 zip and a modules.zip for your kernel.
reboot
Click to expand...
Click to collapse
Thank you soo much for the link.. Can you also provide me with the module.zip for my kernel please?
or can i use the ArcFussion V4 's modules? Is this process dangerous ? IS there any chance for bricking my phone?
Cibhin said:
Thank you soo much for the link.. Can you also provide me with the module.zip for my kernel please?
or can i use the ArcFussion V4 's modules? Is this process dangerous ? IS there any chance for bricking my phone?
Click to expand...
Click to collapse
Modules.zip is inside of fusion kernel rar file : D No there is no risk in flashing wifi modules because these are just a files required for a custom kernel to work properly. I mean like a drivers in windows so the wifi can work.
Just remember to format system, data, cache partitions in CWM before flashing anything. And I forgot about this http://goo.im/gapps/gapps-jb-20121011-signed.zip these are the newest google apps for JB without this Play store, google maps etc wont work.
Wow... Excellent Thank You soo much guys... I dont know how but i ve got cyanogenMod on my phone... I cannot download the internet setting, HD videos are not playing, Games are not working (but can install) the low space notification i Gone..!! I havent install the gapps yet.. Only if i do will i get those resolved???? Or if i flash my kernel back to LT15i_4.1.B.0.587_Kernel?? PLease do reply me..
And one more thing, i know i am not supposed to ask this, but since i am a newbi please help.. WHich mod or ROM is the best, as far from your experience..? For daily use and rare gamming..? Please do reply me...
P.S : I owe you guys more than hitting a Thanks button

System modifications don't stick?

Hi guys, I've looked all over XDA and I can't seem to find anything related to this, so here goes.
I have a rooted HTC One m8 a custom Marshmellow 6.0.1 Rom with TWRP installed.
however, when I try to install mods that modify the system, like busybox or audio mods, they never install and the changes don't stick when I reboot my phone. (e.g; busbox will say it's not installed after I reboot when it clearly has been, but everything done is reverted after I reboot the phone.) Does this mean my phone is NAND locked or something? or does it have something to do with /vendor restoring things? I've looked in /vendor and /system/vendor but none of them have any of the named files busybox or any lib or /etc files that should be replaced upon reboot, so idk where to go from there. Do I just delete the entire /vendor folder?
I really want to get this to work, but none of my mods will install because they keep asking me to install busybox, which I must have done 1,000 times by now, but the changes always revert on reboot.
Can anyone help me please? Thank you
The system is write protected now. You need to flash a permissive kernel. ElementalX works good.
Above suggestion works, or you can also flash the write protection mod (wp_mod) posted in the following ROM thread:
http://forum.xda-developers.com/htc-one-m8/development/rom-stock-unlocked-developer-sense-7-t3262894
I was looking for that link, but didn't find it. Thanks for jumping in buddy!

[F3111][stock][N] Superuser mod

Flash in recovery, or extracts files and copy manually in recovery. Tested with Dark Sense theme..
levone1 said:
Flash in recovery, or extracts files and copy manually in recovery. Tested with Dark Sense theme..
Click to expand...
Click to collapse
Can someone please explain what this file is? Is it an app or a wallpaper or a root?
Samuel3806y said:
Can someone please explain what this file is? Is it an app or a wallpaper or a root?
Click to expand...
Click to collapse
Superuser mod is a modification to the Java framework in the phone, which enables you to apply changes that would otherwise require a signature verification check,. So, the theme applied in the screen shot, would not apply properly to a device without Superuser mod.
As far as the specifics of this particular file and device, it's been so long that I don't really remember it...
levone1 said:
Superuser mod is a modification to the Java framework in the phone, which enables you to apply changes that would otherwise require a signature verification check,. So, the theme applied in the screen shot, would not apply properly to a device without Superuser mod.
As far as the specifics of this particular file and device, it's been so long that I don't really remember it...
Click to expand...
Click to collapse
Hey, I don't really know how to flash or apply this mod, can you please provide a guide on how to apply the theme please

Categories

Resources