ROM Bootloops after adding modded apks into rom zip - AT&T Samsung Galaxy Note II

when i add my themed/modded apks to my ROM.zip and flash,it bootloops...when i flash them in a zip via recovery the apks work fine. but if i put them into the rom and flash the rom,it bootloops...ive tried copying the original resources.arsc file to modified apks but still same result...i made sure they kept the original META-INF folder when compiling with apk-multi-tool....any ideas on how i can get this sucker to boot correctly?? im tired of taking my otterbox off to pull the battery.lol any help would be MUCH appreciated..

meta-inf was my first question, updater script ok???

cdshepherd said:
meta-inf was my first question, updater script ok???
Click to expand...
Click to collapse
updater script is untouched...same rom with stock untouched apps boots fine...but when i add my modded apps it loops....im out of ideas...META-INF is original....resources arse is original...

Cmon, anybody???

Mikekelso421 said:
Cmon, anybody???
Click to expand...
Click to collapse
There's got to be something in the zip with the apps that your missing?
What os are you using and what method are you using to unzip and zip the rom
Sent from my SGH-I317 using Tapatalk 2

Also did you try fixing permissions after boot loop?
Sent from my SGH-I317 using Tapatalk 2

WEAPON OF CHOICE-apk multi-tool
TEAR DOWN MODE-decompile/recompile
i always keep original META-INF since theyre system apps..
just simple theming and a couple minor mods added.recompile.Done.
like i said before,it works 100% when flashing in Theme.zip, but if i add it to a ROM.zip it loops.. it makes ZERO sense that it isnt working.even after copying over the original Resources.arse to modified apk. the Meta-Inf is already the original so i didnt try copying over from the original. i figured that if it works when flashing in recovery,it should work when inserting into ROM.....could be wrong though.

cdshepherd said:
Also did you try fixing permissions after boot loop?
Sent from my SGH-I317 using Tapatalk 2
Click to expand...
Click to collapse
i didnt try fixing permissions after flshing..i went into a bootloop so i had to pull battery...Or are you asking if i fixed permissions IMMEDIATELY after flashing ROM, BEFORE booting into the rom? not exactly sure how you meant it.

Mikekelso421 said:
i didnt try fixing permissions after flshing..i went into a bootloop so i had to pull battery...Or are you asking if i fixed permissions IMMEDIATELY after flashing ROM, BEFORE booting into the rom? not exactly sure how you meant it.
Click to expand...
Click to collapse
After it bootloops. Pull batt and try to fix permissions. Maybe it will help
Sent from my SAMSUNG-SGH-I317 using Tapatalk 2

Mikekelso421 said:
i didnt try fixing permissions after flshing..i went into a bootloop so i had to pull battery...Or are you asking if i fixed permissions IMMEDIATELY after flashing ROM, BEFORE booting into the rom? not exactly sure how you meant it.
Click to expand...
Click to collapse
Right, fix permissions in recovery after flashing but before restarting.
Sent from my SAMSUNG-SGH-I317 using Tapatalk 2

Has nothing to do with permissions or recovery...
And I did not see this mentioned so I assume this is the problem...
You are including Meta-Inf but that is also directly tied to android manifest.xml
So make sure you are dragging the old meta-inf and manifest as they must match. Thats what forms the signature.
On a dirty flash the signatures were already matched in the ROM so they were not checked again.
On a clean flash the signatures are not matching hence system apps not loading causing bootloops or constant boot animation.....
-Scott

Related

[Q] How to replace dialers?

I want to use the dialer from the PlurStar theme with REVOlution. How would I do that?
I pulled the dialer .apk from the theme and tried to install it but it wouldn't work. I figure I need to use adb and just pull out the old dialer and replace it with the new one. Am I correct? How would I do that? What would I need to type in adb?
Thanks.
I'm thinking that you need to include that apk into a zip file that can be flashed via recovery...
What does that involve? I'm assuming I can't just put it in a plain old zip file.
I remove and replace files in the rom zip using winrar, then flash the zip to the phone. Sometimes it works sometimes it wont, who knows maybe one day well see a Phatman rom lol.
_MetalHead_ said:
What does that involve? I'm assuming I can't just put it in a plain old zip file.
Click to expand...
Click to collapse
Well kind of... If you look for the SU apk (the new one) you'll see that it was an APK but it could not be directly installed so it was converted into a zip file. I know that there is more than just compressing the file,some additional files must be put in the zip as well so the recovery manager can extract it on the phone. I'd download the zip and check what it is inside besides the apk itself. You can also ask one of the dev to make it a zip for you.
Well I just used Regaw's zipmaker to do it, and it flashed but my dialer is still the same.
WhOops wrong thread.
Like phatman said, just take the Rom, extract it, look for system/app, drop the dialer in there and zip it back up. That's what I just got done doing this weekend with calks Rom, so I could have a dialer with vibration reenabled.
Sent from my PC36100 using XDA App
Yeah I just finished putting together my zip, but I didn't do it with a ROM, I did it with the REVOlution theme. I just extracted it, dropped the dialer .apk in to it and recompressed it. Going to try flashing it in a little bit.
Didn't work. Got an error that says "can't find update script". I think it has something to do with needing to resign the zip, which I don't know how to do.
_MetalHead_ said:
Didn't work. Got an error that says "can't find update script". I think it has something to do with needing to resign the zip, which I don't know how to do.
Click to expand...
Click to collapse
Use winrar and dont unzip the ROM, the program will add/remove files without actually unzipping, like I said, its a hit or miss, or worst case you get a boot loop.
Just use the ROM and swap the dialers. U won't have to wipe or anything to reflash. I used 7z, extracted to a folder, swapped dialers then rezipped without any problems flashing.
Sent from my PC36100 using XDA App
phatmanxxl said:
Use winrar and dont unzip the ROM, the program will add/remove files without actually unzipping, like I said, its a hit or miss, or worst case you get a boot loop.
Click to expand...
Click to collapse
K, I'll try that next. TY
Thanks for the advice everyone.
i'm also interested in changing my dialer...can't we just adb push the dialer apk to /system/app/ from Recovery and have it work?
Max_Pain said:
i'm also interested in changing my dialer...can't we just adb push the dialer apk to /system/app/ from Recovery and have it work?
Click to expand...
Click to collapse
Yes...unfortunately, some of us are too stoopid to get adb to work...
awenthol said:
Yes...unfortunately, some of us are too stoopid to get adb to work...
Click to expand...
Click to collapse
Lol same here, I only got it to work during my g1 days. After that it was a no go, not sure if its user error or my computer. Find a solution to your dialer yet?
It's on the back burner right now. I'm currently beta testing RegawMOD so I'm not going to mess with the dialer until I'm done with it. I will try swapping the apks in winrar though as soon as I am done with the beta test. Kinda getting burned out on constantly flashing all day long. I need to get some sun lol

[Q] ROM Malice Boot animation

Hey guys, I flashed the new Malice Rom (3/20/12), and I was wondering how I can switch the zombie boot animation. I know where to put the zip file, (/system/media) Somehow I cannot seem to get other ones to work. I made sure the replacement files mirror the original. Do I need to flash the entire file as opposed to just replacing the files using root explorer? Thanks in advance.
EDIT: I renamed it to bootanimation.zip, etc.
Copy and then Change permision file in root explorer rw-r-r
Send from Brightside Room
I tried what you said, and the permissions show the same, but its not working. other thoughts?
Lucky Duck said:
I tried what you said, and the permissions show the same, but its not working. other thoughts?
Click to expand...
Click to collapse
Ok, maybe it cause your custom boot animation not valid..
Send from Brightside Room
Well, I tried a couple other ones, and no dice. Could it be that the rom itself only allows that one(or none)?
Download rom toolbox and get the boot animations from there. By far the easiest way.
Sent from my SGH-T989 using XDA
That worked! Thanks!

[MOD]No increasing ring tone - LJ2 - i317

Well I'm not sure why Samsung does this, however it drives me nuts. So here is the phone.apk without the increasing ringtone stuff.
Flash in recovery.
You must delete the "SecPhone.odex" in /system/app after installing. Until I can make a time to have the zip do it. Thanks
Click here to download
Enjoy!
I was looking for a way to disable this.. thanks!
Thanks man.. awesome mod...needed this
I flashed from recovery, rebooted and it said updating apps,starting apps, had my wife call but it still does that lame ascending ringtone. I tried rebooting and now every time it reboots it says updating apps, starting apps.. sucks lol takes a little longer to start up now. Any way to fix? I also found the file you talked about deleting but it said it was read only.
redrider54 said:
I flashed from recovery, rebooted and it said updating apps,starting apps, had my wife call but it still does that lame ascending ringtone. I tried rebooting and now every time it reboots it says updating apps, starting apps.. sucks lol takes a little longer to start up now. Any way to fix? I also found the file you talked about deleting but it said it was read only.
Click to expand...
Click to collapse
I had the same problem with it not working then used rom toolbox pro to kill the said file rebooted and works perfectly.
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
Wow I was waiting for this mod!!! Sham on you Sammy for making this wonderful Dev make it right. I for sure didnt forget to hit the thanks button on this one!
Worked like a charm. Had to delete the odex file, then the mod took. A cache/dalvik wipe took care of the "upgrading apps" screen. My ringtones start loud and stay that way. Many thanks!
Sent from my SAMSUNG-SGH-I317 using Tapatalk 2
I can't seem to find the "secphone.odex" file. Only secphone.apk.
Sent from my SAMSUNG-SGH-I317 using Tapatalk 2
wblteen said:
I can't seem to find the "secphone.odex" file. Only secphone.apk.
Sent from my SAMSUNG-SGH-I317 using Tapatalk 2
Click to expand...
Click to collapse
Are you running a custom ROM? If so, you're probably already deodexed.
OK. I got ya. I still get the "updating apparently" on restart. I have cleared caches.
Sent from my SAMSUNG-SGH-I317 using Tapatalk 2
wblteen said:
OK. I got ya. I still get the "updating apparently" on restart. I have cleared caches.
Sent from my SAMSUNG-SGH-I317 using Tapatalk 2
Click to expand...
Click to collapse
Not sure I can be of much more help if you're on a deodexed ROM already. I've stuck with rooted/de-bloated stock for the time being. Wiping the caches solved it for me, aside from the first boot after the cache wipe, of course, but I'm still fully odexed aside from that one file I deleted.
It worked for me this time, thinfs different from the first try, im now on the lite de-bloated stock rom and modded kernel
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
So it looks like I need to modify the zip install to remove the .odex file.
Makes sense since de-odexing turns the .odex into a classes file inside the apk, which is then edited. I'll edit the zip today to remove to .odex file.
antiochasylum said:
So it looks like I need to modify the zip install to remove the .odex file.
Makes sense since de-odexing turns the .odex into a classes file inside the apk, which is then edited. I'll edit the zip today to remove to .odex file.
Click to expand...
Click to collapse
The att note 2 owners don't get how lucky they are to have you here... yet...
Sent from my GT-N7100 using Tapatalk 2
Any chance to incorporate call recording into this?
Found here from international version: http://forum.xda-developers.com/showthread.php?t=1938808
Reb0rn said:
The att note 2 owners don't get how lucky they are to have you here... yet...
Sent from my GT-N7100 using Tapatalk 2
Click to expand...
Click to collapse
+1 I am patiently waiting for his release, big fan of his work
Sent from my SGH-I317M using xda premium
antiochasylum said:
So it looks like I need to modify the zip install to remove the .odex file.
Makes sense since de-odexing turns the .odex into a classes file inside the apk, which is then edited. I'll edit the zip today to remove to .odex file.
Click to expand...
Click to collapse
Did this ever get done, sir?
antiochasylum said:
Flash in recovery. Even if you aren't de-odexed this should still work. In the zip I did not have it delete the .odex extension in /system/app. So after you flash this feel free to delete the SecPhone.odex, or leave it, your choice.
Click to expand...
Click to collapse
I installed and it did not work. I then used Root Explorer to delete /system/app/SecPhone.odex, cleared caches, rebooted and it works fine.
Thanks for the utility it was greatly needed.
9wire said:
Did this ever get done, sir?
Click to expand...
Click to collapse
I have not yet. I'm sorry. Can anyone do it for me? Busy at work at the moment.
How to revert?
antiochasylum said:
Well I'm not sure why Samsung does this, however it drives me nuts. So here is the phone.apk without the increasing ringtone stuff.
Flash in recovery.
You must delete the "SecPhone.odex" in /system/app after installing. Until I can make a time to have the zip do it. Thanks
Click to expand...
Click to collapse
I fully agree with you, this volume increase doesn't make any sense however, is there a way to revert back to the previous state should something go awry? Thanks.

[MOD] No navi button MOD for JB/ICS Razr M xt907 Roms

No USER friendly! Sorry I can't create update.zip
Need Safestrap for BackUP and change permissions (chmod -R 755 /system/framework/framework-res.apk).
This mod can open for you full screen display in Razr M without loose toggle bar, just copy framework with style what you want to /system/framework dir, and change permission to file.
Files in zip for 4.1.1 & 4.0.4 Android.
noVbutton - no navibar in Vertical orientation, yes in Horizontal
noV-Hbutton - no navibar in Vertical orientation, no in Horizontal
origin - original file
Of course you can change all manually if decompile framework-res.apk and find file named dimens.xml
<dimen name="navigation_bar_height">18.0dip</dimen>
<dimen name="navigation_bar_height_landscape">18.0dip</dimen>
<dimen name="navigation_bar_width">42.0dip</dimen>
link to framework-res.apk http://forum.xda-developers.com/attachment.php?attachmentid=1763662&d=1361913475
Thank you! I've been trying to figure out if this could be done. Swapped in your file using Root Explorer on the phone, everything crashed (kinda expected). Rebooted, changed permissions, and now she's working great!
jjlangen said:
Thank you! I've been trying to figure out if this could be done. Swapped in your file using Root Explorer on the phone, everything crashed (kinda expected). Rebooted, changed permissions, and now she's working great!
Click to expand...
Click to collapse
Ugh, tried to follow in your footsteps but got totally screwed. Wasnt able to chmod, tried rebooting and stuck in bootloop
Developer only?
Does this work for the developer and regular versions? Anyone tried this with the official JB OTA from Verizon?
I used Root Explorer, not a terminal. Running on stock Verizon Jelly Bean, retail version.
Sent from my XT907
It Works!
Yeah, FINALLY! Get rid of that craptastic waste-of-space navbar.
If anybody want to know, here's how I did it:
Note: I used root explorer
1. I used my windows 7 machine to extract the version of framework-res I wanted.
In my case, i'm on the 4.1.1 JB Verizon OTA, so I chose the 4.1.1 noV-Hbutton.
2.Copy the framework-res of your choice to the root of your internal storage card.
3. Using your file manager (Root explorer in my case) copy the framework file from your internal storage to "\system\" NOT "\system\framework\". Note, if you do this step and it asks you if you want to overwrite "framework-res.apk" STOP!
4. Using your file manager, write down the permissions for your existing "\system\framework\framework-res.apk".
5.Go to the framework-res.apk you just copied "\system\framework-res.apk" and change permissions to match those of your existing framework-res file.
6. AFTER the permissions have been changed and verified (I exited completely out of root explorer, then re-opened it and double checked that the permissions where the same) you can safely move and over-write the file in "\system\framework\".
7. Here's the reason. If you just copy the modified framework file straight from your internal memory to its home in "\system\framework\" the permissions won't be right, and there is a VERY good chance you will end up in an endless bootloop. Copying the file to "\system" first gives you the opportunity to modify its permissions BEFORE overwriting the existing framework file.
Good luck!
Update: Not sure why, and it isn't causing any problems, but every time I reboot the phone, it goes through the "android is upgrading your apps" dialogue".
Guess I got lucky avoiding a bootloop. I just copied the new file, went to /system/framework, renamed the current file, and pasted in the new one. Then all the applications crashed, I rebooted, and changed the permissions. I did have to sign back into all my accounts (Google, Facebook, etc), but zero issues since then.
I'm still loving it! The nav buttons took up so much space. The new version of LMT that you can trigger from the bottom makes it perfect.
http://forum.xda-developers.com/showthread.php?t=1330150
Op you rock man! Thanks ks a ton!
Sent from my SCH-I815 using Tapatalk HD
kensdavid said:
Ugh, tried to follow in your footsteps but got totally screwed. Wasnt able to chmod, tried rebooting and stuck in bootloop
Click to expand...
Click to collapse
same thing happened to me
I got moved the new framework file into the folder except I accidentally deleted it at the same time. Everything started to "stop working" and after I did a hard reset recovery (wipe data/factory reset + wipe cache partition) it stays stuck on the "android" boot loop (past the motorola logo) any help on restoring my phone??
The framework in the OP doesn't work with Eclipse Rom so I recompiled it from the eclipse framework. Same instructions as OP just different file.
So to recover, this is for Eclipse 1.1 no buttons
https://www.dropbox.com/s/5ruaj1rr6klmici/framework-res.apk
If I helped you out toss the OP and I a thanks plz :good:
Stock TB
Clienterror said:
The framework in the OP doesn't work with Eclipse Rom so I recompiled it from the eclipse framework. Same instructions as OP just different file.
So to recover, this is for Eclipse 1.1 no buttons
If I helped you out toss the OP and I a thanks plz :good:
Click to expand...
Click to collapse
I would like to do this for TB. Are you using apktools?
im running cm10 beta on my razr m and i found that simply adding "qemu.hw.mainkeys=1", to the end of your build.prop without the " then reboot. This will make the bottom nav bar disappear.
I found this by accident attempting to make the nav bar translucent so im not sure why it works, but it does for me.
theycallmekenny said:
im running cm10 beta on my razr m and i found that simply adding "qemu.hw.mainkeys=1", to the end of your build.prop without the " then reboot. This will make the bottom nav bar disappear.
I found this by accident attempting to make the nav bar translucent so im not sure why it works, but it does for me.
Click to expand...
Click to collapse
It causes systemui.apk to FC on stock based ROMS. Great for CM10 based ROMs.
From the RAZR M
hillmom said:
I would like to do this for TB. Are you using apktools?
Click to expand...
Click to collapse
Yea just decompile the framework from the rom you want and edit the lines in the op to all zeros. It's located in the "values/dims.xml" (I think). Recompile apk then drop in the meta folder from the original framework inside the new framework (I used 7zip). Just copy to phone, set permissions, and reboot.
Sent from my XT907 using Tapatalk 2
Clienterror said:
Yea just decompile the framework from the rom you want and edit the lines in the op to all zeros. It's located in the "values/dims.xml" (I think). Recompile apk then drop in the meta folder from the original framework inside the new framework (I used 7zip). Just copy to phone, set permissions, and reboot.
Sent from my XT907 using Tapatalk 2
Click to expand...
Click to collapse
Thanks. I must be missing something because every time I try to recompile I get the error'
Could not find sources.
Never mind, I made a dumb noob mistake. Got it. Thanks!
hillmom said:
Thanks. I must be missing something because every time I try to recompile I get the error'
Could not find sources.
Never mind, I made a dumb noob mistake. Got it. Thanks!
Click to expand...
Click to collapse
No problem, after you do it once it isn't a big deal
Sent from my XT907 using Tapatalk 2
hillmom said:
Thanks. I must be missing something because every time I try to recompile I get the error'
Could not find sources.
Never mind, I made a dumb noob mistake. Got it. Thanks!
Click to expand...
Click to collapse
So what was the mistake you made when trying to recompile?
Sent from my XT907 using Tapatalk 2
sniperkill said:
So what was the mistake you made when trying to recompile?
Sent from my XT907 using Tapatalk 2
Click to expand...
Click to collapse
I'm using APK Multi Tool, and I didn't install the framework-res.apk for 4.1.1 first.
Sent from my XT907 using Tapatalk 2
hillmom said:
I'm using APK Multi Tool, and I didn't install the framework-res.apk for 4.1.1 first.
Sent from my XT907 using Tapatalk 2
Click to expand...
Click to collapse
Oh, and okay. I know when jelly bean and ICS first came out everyone was having a hard time with recompiling the .apk's from ics and jb. I haven't tried it since. I'm assuming that they must have fixed all that by now?
Sent from my XT907 using Tapatalk 2
sniperkill said:
Oh, and okay. I know when jelly bean and ICS first came out everyone was having a hard time with recompiling the .apk's from ics and jb. I haven't tried it since. I'm assuming that they must have fixed all that by now?
Sent from my XT907 using Tapatalk 2
Click to expand...
Click to collapse
Yes, they did update them. I tried earlier with an older utility, and was getting really frustrated because I couldn't get the apk to recompile. APK Multi Tool os awesome, I need to play with the themeing tools it has.
Sent from my XT907 using Tapatalk 2

1% battery mod for Australian XT905 JB

This is a deodexed SystemUI.apk for Australian XT905 telstra stock JB with battery icons for every 1%.
Did for myself but maybe somebody else will use it.
The icons have been taken from here.
NewAustralian said:
This is a deodexed SystemUI.apk for Australian XT905 telstra stock JB with battery icons for every 1%.
Did for myself but maybe somebody else will use it.
The icons have been taken from here.
Click to expand...
Click to collapse
Just installed it. Works very nicely, thank you very much!
keyman91 said:
Just installed it. Works very nicely, thank you very much!
Click to expand...
Click to collapse
Does this work for the US/Verizon version of the phone too? I hate how the stock home screens never show detailed battery %.
colbyman said:
Does this work for the US/Verizon version of the phone too? I hate how the stock home screens never show detailed battery %.
Click to expand...
Click to collapse
I don't think so. As far as I know it has a different version of Android.
colbyman said:
Does this work for the US/Verizon version of the phone too? I hate how the stock home screens never show detailed battery %.
Click to expand...
Click to collapse
It should work... P3droid has an app in the market that does similar too RAZR m toolbox or something like that
Sent from my XT907 using Tapatalk 2
how do i install this? when i try i get "app not installed".
betty.k said:
how do i install this? when i try i get "app not installed".
Click to expand...
Click to collapse
Your phone has to be rooted and you need to have any root explorer installed.
1. I'd suggest to back up SystemUI.apk and SystemUI.odex from the folder /system/app and to think about a recovery plan if something goes wrong.
2. Copy my SystemUI.apk into the folder /system and change its permissions to rw-r--r-- (644).
3. Delete SystemUI.odex from /system/app and move SystemUI.apk file from the folder /system to the folder /system/app with a replacement of the existing file.
4. After a successful replacement you will probably get some errors, all you need is to restart the device.
PS if you don't know or understand anything from the above firstly read about it then act or otherwise you can damage your smartphone.
I'm not responsible if anything goes wrong.
That all makes sense, only thing I don't know how to do is change permissions for the apk. How do I do that?
EDIT: using both es explorer or androzip i'm unable to move the file to the system folder. I have no idea how to get it there. Should I try a different file explorer?
Sent from my XT905 using Tapatalk 2
If you are deodexed rty mod from here
Flash it with TWRP
Not deodexed, no idea how to.
I'm fully rooted, bootloader unlocked, cwm recovery and also safestrapped.
I managed to get it into the system folder but not into the app folder. Lucky I backed up in cwm, phone kinda needs a working system ui doesn't it!
Sent from my XT905 using Tapatalk 2
betty.k said:
Not deodexed, no idea how to.
I'm fully rooted, bootloader unlocked, cwm recovery and also safestrapped.
I managed to get it into the system folder but not into the app folder. Lucky I backed up in cwm, phone kinda needs a working system ui doesn't it!
Sent from my XT905 using Tapatalk 2
Click to expand...
Click to collapse
To change the permissions you need to go to the file properties. After that just cut-paste it into the app folder. Es file explorer always works for me . However it had a strange behaviour when I tried to use 'copy to' or 'move to', so just cut-paste.
Finally got this going thanks to your patience! I had to leave the permissions to rwe and only copy/paste would work for some reason. Had to reset my wallpaper and turn data back on after reboot.
Otherwise all good, thanks!
Sent from my XT905 using Tapatalk 2

Categories

Resources