The Cause Of Bootloops From Wiping Data on Themes - Motorola Triumph

I have been trying endlessly to find the cause of the bootloops when you factory reset(wipe data/cache)> I believe I have narrowed it down to either in the framework-res.apk(however I do not believe it is the battery mod causing this). Its not the reboot recovery mod either because I made a version of my theme of the stock deodexed theme with no mods, and just modded services.jar to change some colors around and it still bootlooped.
But the normal unthemed stock deodex template you can wipe data(however I believe the android keyboard fc's everytime)
I need some advice/help from some of the experienced devs out here. At first I thought it was because of compressing the .jars when modding them(for example serives.jar) however I realized that if the stock deodexed template or ROM didnt bootloop on data wipe, it couldnt be that because when deodexing you have to compress the .jar's when adding the classes.dex using 7zip or somthing.
I also took a version of my theme that has the reboot recovery mod, and the 1% battery mod(both of which I confirmed not to be causing it by process of elimination) and unzipped the .jars I had modified, and zipped them up with no compression, and it still bootlooped.
It seems like its a combination of several things. If anyone out there experienced with theming and how the framework works that can help I'm all ears because I want my ROM to wipe data on the first release to give the best possible install without them having to go back to stock to wipe data. Hoewever at the moment it just bootloops if I wipe data.
I am at a complete loss lol! It's so frustrating and confusing!

Have you been unzipping and rezipping with the latest version of apktool (1.4.2, unofficially distributed by Brut.all)? And if so, then... I may be at a loss for words too. Then again I haven't wiped data in a while, but never had any issues either...
The very act of recompiling those files might result in smaller ones (blame apktool not me)... maybe that's the reason?
Going to check that out on my BL right now.

Extra thought: Where are you wiping data from? I remember on my old Optimus, if you wiped data from the regular phone, it would crash the phone into a bootloop too. But if you did it from recovery, everything was fine.

Recovery. I never wipe from phone menu. Its somewhere in the framework Res but I don't know what it is!
Sent from my MOTWX435KT using Tapatalk

How does your phone look with the stock framework-res applied?
Is there a bare minimum of a /data structure you can flash back onto your phone to get it to worK? If so, you could make a /data-flashing update.zip instead. A little hacked, but it would still work...

Tried that. Too many permission complications!!
Sent from my MOTWX435KT using Tapatalk

Is there a way to just delete stuff until you can't delete any more, and then make a nandroid backup of that specific image, and then make the image flashable?
Or just delete all your data or something, then Nandroid it... I dunno. Opening images for editing is too much of a pain.
Stupid permissions, why can't everything be more like Windows?

If you use the latest CWM(5.0.2.3) with the blue text it defaults to making .tar backups instead of .img nandroids. But if you wanna unpack a nandroid use a tool called unyaffs.exe compiled for windows.
The new CWM can be found in a flashable zip here:
http://forum.xda-developers.com/showthread.php?t=1282951
And I'll attach the unyaffs.exe program. You just use it through the command prompt and change directory to where you unyaffs.exe is located at and put you system.img or data.img in there with it and call unyaffs system.img or unyaffs data.img. It will extract everything to that folder. Pretty neat its how I made the stock ROM for this phone originally!

One of these days, you devs gotta tell me where you find these tools, after I googled and googled and only came up with a Python script! (Heck, even the name "unyaffs" sounds familiar.)
Is there an easy way to throw those files back together? I mean, the structure would probably be the worst part, but from what it sounds like you can just throw a bunch of files together by practically appending to them... (Edit: from the unyaffs source page. "Now it can only extract images created by mkyaffs2image" probably answers my question.)
again, not like I know what I'm doing. But ah well .w.
Edit 2: Herp derp, this would be a little easier from Linux... I think. But I really, really don't want to put Linux on my computer.
Edit 3: I suddenly don't feel totally stupid... http://forum.xda-developers.com/showpost.php?p=16084313&postcount=17

Try this; wipe data, flash, wipe cache, wipe dalvik, and fix permissions. I just did that testing my rom. It booted. I didn't flash back to stock. But, my dumb ass didn't include the set up wizards in my rom so I really couldn't do much. Had to restore. I always flashed with this procedure with my vibrant with no problems. Hoping it will work for y'all.
Sent from my MOTWX435KT using xda premium

Does your rom have a modded framework. Like reboot recovery, themes or 1% battery mod?
Sent from my MOTWX435KT using Tapatalk

b_randon14 said:
Does your rom have a modded framework. Like reboot recovery, themes or 1% battery mod?
Sent from my MOTWX435KT using Tapatalk
Click to expand...
Click to collapse
Reboot/recovery in power menu, and 100 charging/100 discharging battery mod. Tried it again, it booted, but had a slew of acore FCs. It boots though.

Dan_Brutal said:
Reboot/recovery in power menu, and 100 charging/100 discharging battery mod. Tried it again, it booted, but had a slew of acore FCs. It boots though.
Click to expand...
Click to collapse
As cool as that is, I don't think that counts... hmm. Is your framework-res.apk signed? I had bootloop issues with an unsigned framework-res.apk (just pushing it over, file-explorer style), and then force-close up the wazoo when I signed it.
Ironically, I solved the problem by putting the framework-res.apk into a flashable zip and, well, flashing it.
Feels weird man. This is like deja vu or something...

primetechv2 said:
As cool as that is, I don't think that counts... hmm. Is your framework-res.apk signed? I had bootloop issues with an unsigned framework-res.apk (just pushing it over, file-explorer style), and then force-close up the wazoo when I signed it.
Ironically, I solved the problem by putting the framework-res.apk into a flashable zip and, well, flashing it.
Feels weird man. This is like deja vu or something...
Click to expand...
Click to collapse
And why wouldn't it count? Signed with testkey x509.pem and testkey.pk8.

Dan_Brutal said:
And why wouldn't it count? Signed with testkey x509.pem and testkey.pk8.
Click to expand...
Click to collapse
Because ACore force-closes just don't make a working rom Although they're... marginally closer to it.

primetechv2 said:
Because ACore force-closes just don't make a working rom Although they're... marginally closer to it.
Click to expand...
Click to collapse
True, but I got the system to boot without a loop.
Sent from my Motorola Triumph using xda premium

Yeah I'm giving up lol. My rom will ist not wipe data and if you do wipe data then you will have to restore a stock backup for data!
Sent from my MOTWX435KT using Tapatalk

Related

[Data Backup and Restore] Backup and Restore /data just like Bonsai

First I'd like to thank the Bonsai team (Mammon88 and Randy_T) for their work.
This little set of files is totally based on their work, I just modified it a bit.
I asked permission before releasing this, and I've left the GPL notices intact.
All changes can be seen by inspecting the files in the zip.
Thank you Team Bonsai!
:[Disclaimer]:
You assume all risks in using these files. Not me, you!
I will attempt to help if anything goes wrong.
But don't try blaming me for something you chose to do.
:[Description]:
There are two ClockworkMod zips, I'll break it down for each file.
ncDataBackup.zip:
This file simply backs up the /data folder to a gzip file on your SD card (exactly like the Bonsai Rom does).
The only difference is that it will store the file in a different folder and file name on your SD card.
The file is stored @ /sdcard/data-backup/backup-data.cpio.gz​
ncDataRestore.zip:
This file first deletes everything in the /data folder.
I figured this would be best so there are no conflicts with files that are already in the /data folder.
[NOTE]:: This also means that if the Rom your are using installs anything into the /data folder, it will be lost during the restore!
Then it simply restores the /data folder from the aforementioned backup file (exactly like the Bonsai Rom does).​
:[Purpose]:
I made this so I never have to setup a home screen again (or loose mms history, call logs, etc)!
For people who are using Roms that don't already preform a backup and restore of the files in /data.
And as an alternative to a bit for bit nandroid backup / restore of the /data partition.
:[Disadvantages]:
As stated, the restore will delete everything in the /data folder before performing the restore.
So anything put there by the Rom you are installing will be lost!
I wouldn't Expect this to work coming from or going to CyanogenMod, but feel free to test for me.
:[Benefits]:
Restores home screens, mms history, call logs, etc...
Can be used whenever for whatever reason (always good to have more options for backup / restore IMO).
:[Usage]:
Boot into ClockworkMod.
ALWAYS DO A NORMAL NANDROID BACKUP WITH CLOCKWORKMOD.
Install the ncDataBackup.zip, it will preform the data backup.
Install your favorite Rom.
Install the ncDataRestore.zip, it will preform the data restore.
Reboot the phone.​
:[Testing]:
This has been tested while running Bonsai v2.0.1.
This has also been tested coming from Bonsai v2.0.1 going to Quantum v2.7.
I only had one FC (gmail) when going to Quantum from Bonsai, and that's because Quantum's gmail wasn't updated.
I simply cleared gmail's data and cache and all was well (then I updated gmail through the market).
[NOTE]:: Both of these Roms are DK28 builds and support EXT4! Your mileage may vary!
:[Feedback]:
Please post your results, good or bad, I'd like to know how well this works for other Roms.
I'm thinking of making a backup/restore zip generator program so this method can be used for other phones.
So if you try this please post your results.
:[Changelog]:
[03-05-2011]
Upgraded files to Bonsai 3.x.
Now uses an included busybox, this should allow support for more Roms/devices(?).
Zip file names have changed.
Also changes have been made to the script output.
Tested on Bonsai 3.x
=]
simply perfect, thank you good Sir. Runin Bon201
Sent from my SPH-D700 using XDA App
Ty man, digging utilities.
Sent from my SPH-D700 using XDA App
Awesome thanks
Sent from my SPH-D700 using Tapatalk
Thanks for this! I had my phone freak out on boot up during the zipalign process, which pretty much killed my /data directory. I had just installed Bonsai 3 the other night and realized the backup it made was not the normal CWM img backup! With your zip I was able to restore the gzip that bonsai 3 created to my phone.
Perhaps there were other built in ways to do the restore but your zips took care of my problem!
Great work!
juise said:
Thanks for this! I had my phone freak out on boot up during the zipalign process, which pretty much killed my /data directory. I had just installed Bonsai 3 the other night and realized the backup it made was not the normal CWM img backup! With your zip I was able to restore the gzip that bonsai 3 created to my phone.
Perhaps there were other built in ways to do the restore but your zips took care of my problem!
Great work!
Click to expand...
Click to collapse
Glad it was of use to you.
Should be an update coming to these in a day or two, not much changed other than including a copy of busybox in hopes of supporting more Roms/devices.
=]
awesome work man. i love this. now its easier to switch roms
This is really awesome! Thanks man.
I did try this the other night switching from Bonsai to SFR, but it got stuck on the bootup screen. Any one else try this for SFR?
Sent from my SPH-D700 using XDA Premium App
I got stuck on the bootup screen as well
Sent from my SPH-D700 using Tapatalk
Thanks! I'm kinda surprised CWM doesn't do this out of the box.
musclehead84 said:
I got stuck on the bootup screen as well
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
Thanks for the information. At least I know it's not just me. I tried the rom a couple times even restoring from Market with poor results but will probably try again sometime. May need a clean ODIN restore.
Sent from my SPH-D700 using XDA Premium App
Those having problems...
The backup / restore process was altered just a bit with the release of Bonsai 3.0.0.
I mentioned an update to these files yesterday, I'm going to work on that now and get it finished.
I'm not saying that the new changes will fix the problems, but there's a chance.
BBL with the update.
=]
Updated, check OP.
Those who are freezing at the bootscreen, please report back if you test this.
-ps these files clear out davlik-cache, so the 1st boot after a restore will take a while (but should not freeze @ the samsungmobile screen).
=]
nubecoder said:
Updated, check OP.
Those who are freezing at the bootscreen, please report back if you test this.
-ps these files clear out davlik-cache, so the 1st boot after a restore will take a while (but should not freeze @ the samsungmobile screen).
=]
Click to expand...
Click to collapse
Thanks for the update Nubecoder.
Are the files on the opposite updated or are you still working on them?
Sent from my SPH-D700 using XDA Premium App
This work fine for me today switching between ROMs. The only issue I had was that it didn't seem to restore the apps2sd apps.
Sent from my SPH-D700 using Tapatalk
mattallica76 said:
This work fine for me today switching between ROMs. The only issue I had was that it didn't seem to restore the apps2sd apps.
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
Maybe I will try it again.
Sent from my SPH-D700 using XDA Premium App
mattallica76 said:
This work fine for me today switching between ROMs. The only issue I had was that it didn't seem to restore the apps2sd apps.
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
Ya it doesn't handle apps on the SD.
Only the stuff in "/data".
[edit]
pjjohn73 said:
Are the files on the opposite updated or are you still working on them?
Click to expand...
Click to collapse
Had no idea what you meant there for a little while...
Yes the files in the OP have been updated.
=]
nubecoder said:
Ya it doesn't handle apps on the SD.
Only the stuff in "/data".
[edit]
Had no idea what you meant there for a little while...
Yes the files in the OP have been updated.
=]
Click to expand...
Click to collapse
LOL. Sorry about that. Auto correct did not like OP I guess, and I did not notice the typo. My bad. Thanks for the answer.
Sent from my SPH-D700 using XDA Premium App
nubecoder said:
Ya it doesn't handle apps on the SD.
Only the stuff in "/data".
[edit]
=]
Click to expand...
Click to collapse
Ok, makes sense. Curious, what does Bonsai do that keeps the apps on SD synced with the OS that this tool does not?
And thanks again for this. It has saved my bacon a number of times.
mattallica76 said:
Ok, makes sense. Curious, what does Bonsai do that keeps the apps on SD synced with the OS that this tool does not?
And thanks again for this. It has saved my bacon a number of times.
Click to expand...
Click to collapse
I would be curious as well, only thing i can think of is when Bonsai runs it does not wipe data, if you install a rom that wipes data before install it will wipeout .andriodsecure on the sd card.

ROM Flashing Leftovers?

Has anyone else noticed leftover apps or info from your previous ROM that should not be in your current ROM? I am noticing this after the GB leak and the GB leaked based ROMs.
This is my process whenever I flash a ROM.
Boot into hboot and flash radio if neccessary.
Boot existing ROM and remove radio file from root of SD card.
Boot into recovery and clear data/factory reset. Wipe cache. Wipe Dalvik. Wipe battery stats. Fix permissions.
Flash ROM in recovery.
Flash kernel in recovery if neccessary.
(I don't use any type of app backup like Titanium or something like that. I just don't mind putting my apps back on because I don't have much to begin with.)
Now some examples, I flashed Teslacoil which I was running for about a week. It has a file manger app that I did not download. Then I flashed dhemke17's plain debloated GB ROM. The File Manager app remained in there which I thought was a little weird because he didn't say he was going to include it but I didn't pay much attention to it.
Then I flashed jcases GB ROM and played with it a little and noticed I couldn't lock GPS for the weather clock. Flashed back to dhemke's ROM and couldn't get a lock with the clock either but the first time it locked fine.
It seems like to me when flashing between other chef's roms it may be carrying over apps and/or info. This might be why we have been seeing extremes from both sides of some have been having great experiences and others it doesn't work for them at all.
Maybe flashing back to stock first before flashing to a new rom may he in order, I know we had to do that with some of the old skool winmo phones (remember those days?).
Anyhow, has anyone noticed these types of instances. Those of you who may be flashing to another's rom try to take notice and see if anything carries over.
Thanks gang!
And just to be sure, I do a wipe everytime I flash someone else's ROM.
Sent from my ADR6400L using Tapatalk
This also might be why some devs have been seeing their work in others Roms without being given credit.
Just guessing on this one.
Sent from my DROID PRO using Tapatalk
I also noticed, I don't like Sense so I normally change some of files to get a Sense-reduced experience from the GB Roms since we don't have a Senseless GB rom yet. I use Root Explorer to change the extension to .bak, when flashing the rom and doing this process for the new rom it would have the new file and still have the .bak file. So it would have like a Rosie.APK file and a Rosie.APK.bak file.
Sent from my DROID PRO using Tapatalk
I've also noticed something similar.. I also wipe on every install even updates to the rom i'm currently running. What I noticed is that after about five to ten minutes the wallpaper will change back to a custom one that I have saved on my sd card. Also when I turn on wifi it still remembers my password and connects to my network. to me if it isn't wiping these things it may not be wiping things that will conflict with any changes to my rom.
Now what I do is wipe data factory reset 3x, wipe cache, wipe davlick 2x, wipe battery stats ..thats clears out the issue I explained above.
To my knowledge that is just the built in restore Froyo has. You probably click to allow Google to store/backup your apps on setup, right?
Built in restore or you are not wiping.
Devs are seeing their work elsewhere because "devs" are asses.
Sent from my LG Revolution
jcase said:
Built in restore or you are not wiping.
Devs are seeing their work elsewhere because "devs" are asses.
Sent from my LG Revolution
Click to expand...
Click to collapse
OK so why am I seeing the .bak files when I change roms? It only does it from the rom right before it. Like I said I flashed from Tesla to dhemke and it had the file manager app. Then I flashed to your rom this was your first GB leak. It did not have the file manager but the weatherclock was not finding my current location. I flashed back to dhemke and this time there was no file manager app and weatherclock would not find current location. Flashed back to Tesla then back again to your rom jcase because you updated yours and file manager was there and weatherclock locked.
If the devs are being asses that's fine I was just throwing that out there, but I am sure our phones are not complete wiping when going from gb rom to gb rom. Like I said I wipe everything everytime because I don't have much crap to begin with and I am used to reinstalling my crap from the winmo days.
Try to flash and see if anything carries over.
And the wallpaper and wifi settings like others suggested is from your g account.
Sent from my ADR6400L using Tapatalk
This happens when you don't wipe and clear cache
Sent from my ADR6400L using XDA Premium App
Well I do wipe everything before each install via recovery. Read the first post for exact steps I take when flashing. When it boots it seems fresh, I have to resync my gmail account, download and install market apps, reinstall my apps that I sideload via sd card, etc. Just the apps that are in the core rom like in the system/apps folder are still there. I was just on chingys gingeritis version IV then flashed and wiped to version VI. On version IV I changed a few files to add .bak extension to get a senseless version like the Rosie.apk. After I flashed to version VI I went into system/apps and the .bak files were still there.
Again to my knowledge this is only happening with GB based roms. If I am wiping the wrong way please let me know that is why I posted my steps in the first post but that is how I wiped and flashed this whole time. The only thing I can think of is wiping, flash the rom, then wipe again. Or wipe via the settings menus.
Before someone flashes, could they try editing a core app in the system/apps folder with a .bak extension. Then wipe and install your ROM, and see if that .bak file is still there? Thank you.
Sent from my ADR6400L using Tapatalk
From looking at the updater-script file of the rom I flashed (1.13.605.7 Debloat/Deodex), it does a rm -rf /system
If your rom's updater-script file does not do that, then you should contact the head dev and ask them to add it in.
If it does have that, then there is definitely something going wrong to cause files to be left behind since that command is literally, "force recursive remove /system"
JM2c
P.S. BTW, wiping does not erase anything in /system. A rom that includes a file manager will have it in /system.
So the rom you flashed after the one with the file manager didn't erase /system before flashing its changes..

[REQUEST] Platypus Egg Kernel flashable

I posted this in the general section, but no one has answered it. Please release the platypus egg kernel as a .zip file or post a link to where I can download the kg2 odin file so that I can flash the bali port. I want voodoo and refuse to flash an entire rom just to get voodoo.
check the heimdall thread i have it posted there last 2 pages
heimdall isnt working on my computer unless you posted an odin file in that thread its not going to help me.
Unless you are in love with the Samsung launcher vs. GOv2's Launcher Pro (or my preferance: download ADW.Launcher), there is no reason not to upgrade to GOv2 and get all the other tweaks in addition to the Kernal.
I know you say you've had trouble in the past, but just try it like this:
1) Boot in to CWM with the GOv2 zip on the sdcard.
2) Check your mounts
3) Run a backup
4) Check your mounts
5) Wipe data, wipe cash, wipe dalvik-cache
6) Check your mounts
7) Flash GOv2
8) Check your mounts
9) Advanced-Restore data partition only
10) Check your mounts
11) Reboot
Best case, everything works great and you just upgraded the Kernal as well as many other good things / tweaks, while still keeping all your apps and all your config.
Worst case, just boot in to CWM and restore what you currently have. You only waste about 15min of your life in trying, and I don't see how GOv2 could have any drawbacks over stock+bali (other then the alternate Launcher and themed icons/widgets - I installed AWD, unthemed all my icons, and I love the transparent-black widgets).
You should NEVER need to Odin unless you can't get in to CWM (which should never happen).
NOTE: When I say check your mounts, each partition on that CWM page should read "unmount" (meaning they are currently mounted). Check your mounts before/after each step, including before the final reboot.
I know how to check mounts. I want to keep touchwiz because of the themes. I really like the stock themes, and none of the launchers from the market have the option to view the app drawer as a list. if they did, i would consider using one of them. the stock themes are not really what is important. viewing the app drawer as a list is. my process thus far has been as follows: odin to kd1, kies to kj2, root, backup, flash rom, then restore system only from the backup. it hasnt been stable enough so far, but right now i am considering trying it a little different. i am going to get back to stock kj2, then delete all bloatware and all google apps from the system, then backup, then flash, then restore system from the backup, then reinstall any apps i want from the market. I also have the .apk file for play store, so i am also going to delete market and market updater before backing up. then after restoring system, i am just going to install google play store from my sd card. if anyone has any thoughts, please respond soon. i already odined back to kd1, getting ready to do kies to kj2. that takes a few minutes as i have to unplug the phone from the pc and reinstall the drivers through kies.
But I would prefer to just flash the kernel. I dont see any reason why they wouldnt release it.
well, after a very lengthy and complicated process, i finally have the platypus kernel on kj2. here is what i did. i started kies mini but didnt plug my phone in yet. i just went to menu and install driver. then i odined. after reboot, unplug the phone, back to kies, install drivers again. plug phone in and update firmware through kies. after reboot, unplug and install driver again. turn on usb debugging and root through super one click. reboot. install drivers again. then go through the system and delete all google and tmobile apps. get cwm running and take a backup. connect mass storage and copy b2tb to sd card. flash according to instructions. reboot. let the phone sit while i walk my dog. come back, boot into recovery, select advanced restore, system only. fix permissions, wipe dalvik, reboot. reinstall desired apps through market website. that was all last night. today i supercharged. so far so good.
well, its been almost 24 hours since i finished everything up. stable so far. no random reboots, no force closes, no screen lag or freeze, no crashes. i kept my backup from before the flash, just in case. gonna give it another day or two to make sure everything really is stable, then take a backup of the current setup. once i do that, im leaving this phone the hell alone lol.
To clear the record, I never had trouble flashing roms except for once and it was because i flashed cwm through rom manager before i knew not to do that. my most recent trouble started when i attempted to move dalvik to my ext2 partition. something went wrong when i attempted to move dalvik, and it got deleted. i had a backup and tried to restore, but got an md5sum mismatch. i did a factory reset through voodoo and it screwed up my apn settings. i restored default settings, but it didnt work. so basically after much trial and error, i have a stable advice again.
Do you still want this as a flashable zip???
Sent from my SPH-D710 using xda premium
ReActiveDisorder said:
Do you still want this as a flashable zip???
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
I would like this as a flashable .zip, cant find it anywhere.
so if i flash GoV2 , ill get kj2 and all the other goodies? cause i am having a hard time finding stuff on here. and honestly once i get gov2 on my soon to be sidekick. thats all im doing to it since its dead here. i hear its the best
I'm on Generic Ginger 3.8 with the platypus egg V1 kernel, blaze 4g radio. Kicks ass! Battery life is amazing... I just wanted to flash the kernel on some other roms..
Sent from my SGH-T839 using xda premium
HateMeILoveIt said:
I'm on Generic Ginger 3.8 with the platypus egg V1 kernel, blaze 4g radio. Kicks ass! Battery life is amazing... I just wanted to flash the kernel on some other roms..
Sent from my SGH-T839 using xda premium
Click to expand...
Click to collapse
i don't have a flashable zip unfortunately, but what i've been doing is flashing the zimage thru Odin. if that helps you at all, if you're comfortable with Odin, i've been meaning to upload the tar file for the kernel that i made to this thread:
http://forum.xda-developers.com/showthread.php?t=1538576
WolfV2 said he would add it to the OP once i uploaded it. other than that, ReActiveDisorder had made a flashable zip, but i see that all his links have been removed.
edit: there's also nxd's tutorial on flashing a kernel with Hemidall here:
http://forum.xda-developers.com/showthread.php?t=1665150
yogi2010 said:
i don't have a flashable zip unfortunately, but what i've been doing is flashing the zimage thru Odin. if that helps you at all, if you're comfortable with Odin, i've been meaning to upload the tar file for the kernel that i made to this thread:
http://forum.xda-developers.com/showthread.php?t=1538576
WolfV2 said he would add it to the OP once i uploaded it. other than that, ReActiveDisorder had made a flashable zip, but i see that all his links have been removed.
edit: there's also nxd's tutorial on flashing a kernel with Hemidall here:
http://forum.xda-developers.com/showthread.php?t=1665150
Click to expand...
Click to collapse
Thanks a alot, man. Appreciate it.
Sent from my SGH-T839 using xda premium
HateMeILoveIt said:
Thanks a alot, man. Appreciate it.
Sent from my SGH-T839 using xda premium
Click to expand...
Click to collapse
Wait hold up, what am I thinking... had a little brain freeze there!. You could just use nxd's build of the Bali Kernel for KJ2:
http://forum.xda-developers.com/showthread.php?t=1663622
That also has the keystroke logger removed, AND a patch to improve keyboard responsiveness and efficiency!
yogi2010 said:
Wait hold up, what am I thinking... had a little brain freeze there!. You could just use nxd's build of the Bali Kernel for KJ2:
http://forum.xda-developers.com/showthread.php?t=1663622
That also has the keystroke logger removed, AND a patch to improve keyboard responsiveness and efficiency!
Click to expand...
Click to collapse
Sweetness! Thanks again.
Sent from my SGH-T839 using xda premium
HateMeILoveIt said:
Sweetness! Thanks again.
Sent from my SGH-T839 using xda premium
Click to expand...
Click to collapse
no problem, enjoy. if you haven't already, read the thread to see how to play with the timer and column delay settings for the keyboard!
Moved thread to general where it should be

[Q] settings app missing

I just flashed the first real version of my new rom, and it appears that the settings app is not installed?!?!?! I have no idea why, I can see it in /system/app with the file browser, but it does not show in my app drawer and if I try to install it it tells me I don't allow unknown sources. but if I click change settings it obviously force closes since settings doesn't exist. does anyone have any idea what could cause this?
The exact same thing just happened to me last night! Ironic...
I have not had time to dig into it again yet (hopefully tonight)... but I also had the setup issue and "this is not a blur device" when trying to use the stock home. I partially suspect the moto setup issue is related to cheescake... once i reinstalled cheesecake, switched to the default server, then setup worked fine...
I'll let you know what I find out about settings tonight... you likewise - let me know what you come up with..
Edit- to explain the cheesecake thing... i think I used a backup or some files from one after I had been checking different servers on cheesecake.. so i think the non-default server settings got transferred over.
Anyone know which files cheesecake affects?
Sent from my mind using XDA
So, I was just giving it another go, and for some reason or another, right after I hit build I decided to go back and change an apk - right before I started the zip-align process... and low and behold there was no Settings.apk in the working folder! Very strange.. i don't recall removing it... So, I tossed it back in.
We'll see what happens.. gotta finish up this draft.
Sent from my mind using XDA
I just had this happen to me last week. I flashed a ROM (don't remember the name) then decided I wanted to try Lithium. I didn't read the small print on the post that says you have to flash Lithium 1.2 first, do a full boot into OS, then reboot and flash 1.2.1. When I flashed directly to 1.2.1 I was missing my Settings just like you described.
Dude, I don't know if you figured it out, bricked your phone, or are furiously busy trying to crank out a new ROM... But, i've come to the conclusion that the mysterious missing Settings.apk has something to with the xml edits and/or recompiling the apk. Had another round of flashing, and I made a couple extra update.zips this time along with the full rom.
So, initially after flashing the rom, I went and checked with root explorer and the settings.apk was physically there.. but was not being recognized by the system (I think TB showed it as uninstalled). So, I flashed one of my settingsfix.zips that I made - first the one with my xml edits (that had previously been de/recompiled) - and it was a no go - still not seeing Settings. Then I flashed a version from a Stock set, and that fixed it.
I am still having the Accounts Setup issue though - that's my pain in the... But, I made another setupfix.zip and that helped me skip the Account Setup - I can add google accounts with no problem, but when I try to add a yahoo account I get a login failed... and when I check for software updates through settings and try to setup a moto account, I get connection failed...still suspecting cheesecake.
Edit - Yup. Cheesecake - I just reinstalled it - did not hit the top "install necessary files" button - just switched to the default production server, and then went back to settings to check for system update - and this time the moto account was setup no problem, and my device is up to date... What the heck does cheesecake modify?? Where are those servers listed?
still having the issue. the app is there, but will not be recognized, is it a permissions issue? any idea how to fix it?
Did you try just flashing the Settings.apk only? If that's a no go, then its the apk - if it goes, then it's a problem with the rom building...
I can't figure it out yet but I got all of my settings working, inverted.. I think I started from scratch again but flashed it separately.. I haven't had a chance to dig into it again recently.. but yea.. don't know..
Sent from my mind using XDA
alteredlikeness said:
Did you try just flashing the Settings.apk only? If that's a no go, then its the apk - if it goes, then it's a problem with the rom building...
I can't figure it out yet but I got all of my settings working, inverted.. I think I started from scratch again but flashed it separately.. I haven't had a chance to dig into it again recently.. but yea.. don't know..
Sent from my mind using XDA
Click to expand...
Click to collapse
I tried writing a zip to flash it again after install of the rom. next i guess I will try installing the rom by backup, as that will probably work better. I think flashable zips are much better though. I have been using JRW28's inverted settings app, so Maybe I'll grap a normal one from a stock rom and see how that works.
Try signing the Settings.apk - it worked for me. Here's what I figured out so far if you are decompiling apks... (no need for simple image editing/swapping...)
SIGN:
Settings
PerformanceManager
DON'T SIGN:
BatteryManager
DataManager
framework-res
moto-res
blur-res
SystemUI
Not certain about the **-res.apks and SystemUI since I did those so long ago, but.. I got all inverted settings/task manager/Battery&Data manager working!
alteredlikeness said:
Try signing the Settings.apk - it worked for me. Here's what I figured out so far if you are decompiling apks... (no need for simple image editing/swapping...)
SIGN:
Settings
PerformanceManager
DON'T SIGN:
BatteryManager
DataManager
framework-res
moto-res
blur-res
SystemUI
Not certain about the **-res.apks and SystemUI since I did those so long ago, but.. I got all inverted settings/task manager/Battery&Data manager working!
Click to expand...
Click to collapse
good idea, I'll have to try signing them, I hope this ends up being the problem.
The settings apk looks for a signature that matches the major system apks. If it doesn't match it will not run at boot.
Along with that (I think this helps with the signature check), I placed blur-res, framework-res, moto-res, and SystemUI apks in my \Apk_Manager_5.0.2\other folder, then opened the command line on that folder and set the framework dependees or whatever...
CODE:
apktool if framework-res.apk
(hit Enter)
apktool if blur-res.apk
(hit Enter)...
...for all of the apks
Then do your de/recompiling...
Well, I am baffled again.. I threw those new signed/unsigned apks in a rom build I was working on, flashed it, and Setting.apk was missing again... So, I flashed the small update zip with inverted Settings.apk and PerformanceManager.apk I made earlier that day and flashed successfully while on stock. And, Settings.apk came back (and was inverted), but Task Manager force closes - then I tried to flash a restore zip (with stock settings and task manager) - and it restores Settings, but doesn't fix the task manager - So, needless to say, I am back to square one in my understanding of all of this. I am assuming it is merely a signature check issue somehow??
Like I said, I had everything working yesterday on stock 2.3.6 after flashing a small update.zip with new signed Setting.apk and PerformanceManager.apk, and another one with unsigned battery and data manger apps.. Ended up restoring back to stock by the end of the day, and now today those same zip packages don't work like they did yesterday... Are new signatures created each time when the system is installed (or re-installed)? It was the exact same system restore on which I built the new inverted apks - so, I am very confused.
I will get to the bottom of this.. but, if anyone can shed some more light on the situation, that'd be great...
still no luck here either. I got my stuff working as a cwm backup, but it won't boot passed the boot logo (motorola M) now, so who knows. I am busy right now, but after next week I should have a lot more time to work on this.
Just tried another restore.zip, but nothing fixes Task Manager for me now.. Could it be that something is created in /data based on the apk in /system? So, when I flash older stock versions it doesn't fix it, since some link has been created outside of the apk?
Another thing possibly worth noting is that I am working with .apks and their .odex counterparts... but, that shouldn't be making a difference since I am not messing with the odex files.. plus, you've got similar problems, and I am assuming you are working with deodexed apks...
alteredlikeness said:
Just tried another restore.zip, but nothing fixes Task Manager for me now.. Could it be that something is created in /data based on the apk in /system? So, when I flash older stock versions it doesn't fix it, since some link has been created outside of the apk?
Another thing possibly worth noting is that I am working with .apks and their .odex counterparts... but, that shouldn't be making a difference since I am not messing with the odex files.. plus, you've got similar problems, and I am assuming you are working with deodexed apks...
Click to expand...
Click to collapse
yep, I'm using jrw28s inverted settings
Sent from my MB865 using XDA
OK.. Did a little more researching.. And, I think you need to resign all of the moto system apks with the same key.. then the signatures should match up, and apps shouldn't fail to be recognized...
I believe this is only if you are editing the AndroidManifest.xml, otherwise you can just copy the META-INF folder from the original apks with 7zip to retain the signature...
Not sure about the details and if it will actually work, also not sure exactly which apks to re-sign (probably the major 4), but that's my next game plan... trial and error... still trying to make sense of it all.
good idea, I'll have to try signing them, I hope this ends up being the problem.
What I discovered (through numerous trials and error) is that you can't mess with the AndroidManifest.xml... Something gets messed up with the signature (i.e. it doesn't match the framework signatures, or maybe it needs to match all of the moto apk sigs - not sure yet - because sometimes it worked when I pushed them separately), and the system doesn't recognize the apk.
But once I got re-did all of the apks without editing the AndroidManifest - all of my problems went away. I still was able to decompile the apks and edit /res/values xmls, just not that manifest..
So, as for the OP's problem, it looks like JRW's inverted Settings.apk (which were probably created by editing the AndroidManifest), is not matching the signatures of the other major apks in your ROM..
I will still try to figure out how to safely edit the manifest when I get around to it... any hints from JRW28 would be great! Is that the reason you had to originally make a separate update.zip for the inverted settings in Lithium?
Side note, I also figured out my setup issues... it was cheesecake related, along with my Settings.apk missing.
A couple of things finally clicked for me two nights ago...
alteredlikeness said:
What I discovered (through numerous trials and error) is that you can't mess with the AndroidManifest.xml... Something gets messed up with the signature (i.e. it doesn't match the framework signatures, or maybe it needs to match all of the moto apk sigs - not sure yet - because sometimes it worked when I pushed them separately), and the system doesn't recognize the apk.
But once I got re-did all of the apks without editing the AndroidManifest - all of my problems went away. I still was able to decompile the apks and edit /res/values xmls, just not that manifest..
So, as for the OP's problem, it looks like JRW's inverted Settings.apk (which were probably created by editing the AndroidManifest), is not matching the signatures of the other major apks in your ROM..
I will still try to figure out how to safely edit the manifest when I get around to it... any hints from JRW28 would be great! Is that the reason you had to originally make a separate update.zip for the inverted settings in Lithium?
Side note, I also figured out my setup issues... it was cheesecake related, along with my Settings.apk missing.
A couple of things finally clicked for me two nights ago...
Click to expand...
Click to collapse
Thanks, not sure whether I am even going to continue with this or not. With ics stuff starting to roll in I might save my time for that.

Deodexed [/app] [/framework] for Version 77.8.10.XT897.Sprint.en.US

Make a nandroid before using
this is for Software Version 77.8.10.XT897.Sprint.en.US
you can check your version Settings > About Phone > SW version
Nothing has been stripped out or changed, this is completely stock.
To be clear it is NOT a full ROM and will replace your
/system/app
/system/framework
folders completely.
If you have added anything to these directories it will be removed.
I added Superuser to system/app is the only modification.
Again make a nandroid before flashing
77.8.10.XT897.Sprint.en.US DeOdexd
-Bryan
Previous deodexed tweaks
Rangerbry said:
Make a nandroid before using
this is for Software Version 77.8.10.XT897.Sprint.en.US
you can check your version Settings > About Phone > SW version
Nothing has been stripped out or changed, this is completely stock.
To be clear it is NOT a full ROM and will replace your
/system/app
/system/framework
folders completely.
If you have added anything to these directories it will be removed.
I added Superuser to system/app is the only modification.
Again make a nandroid before flashing
77.8.10.XT897.Sprint.en.US DeOdexd
-Bryan
Click to expand...
Click to collapse
Will the previous packages (ie 1% battery/toggles, power menu) work with this updated deodexed? I can't get my phone to boot whenever I flash those .zip packages with this system file.
drakeheart77 said:
Will the previous packages (ie 1% battery/toggles, power menu) work with this updated deodexed? I can't get my phone to boot whenever I flash those .zip packages with this system file.
Click to expand...
Click to collapse
No they won't I updated the power menu the downloads on the first post of that thread I'll get battery and toggles working soon.
Sent from my GT-N8013 using Tapatalk 2
Rangerbry said:
No they won't I updated the power menu the downloads on the first post of that thread I'll get battery and toggles working soon.
Sent from my GT-N8013 using Tapatalk 2
Click to expand...
Click to collapse
That's great I appreciate the work! However, after reflashing stock boot and recovery (I have two Nandroids already, one with aarrrrggghs kernel and one with shabby's kernel) and installing the update, I can't seem to get the darn system to boot after flashing the updated deodexed system. I have yet a few more things to try, so I will post an update as well. As far as testing all of this along with your mod zips, I am a willing volunteer! Send me whatever you come up with, I'll run the bugger without fear!
Peace,
-D-
---------- Post added at 03:57 AM ---------- Previous post was at 03:40 AM ----------
Perhaps I should've been more specific:
fastboot flash boot boot.img (taken from shabby's stock files)
fastboot flash recovery recovery.img
voodoo ota rootkeeper protect then unroot
download update
installed
reflashed TWRP and made another Nandroid of updated stock system
...now here's where I get confused on the wipe before install...
do I just wipe cache/dalvik? or those two with factory reset? or a full system wipe?
that last one doesn't make much sense, but in science you analyze all steps, eliminating them, and whatever is left, however improbable, must be the way yadda yadda.
thanx again
-D-
drakeheart77 said:
That's great I appreciate the work! However, after reflashing stock boot and recovery (I have two Nandroids already, one with aarrrrggghs kernel and one with shabby's kernel) and installing the update, I can't seem to get the darn system to boot after flashing the updated deodexed system. I have yet a few more things to try, so I will post an update as well. As far as testing all of this along with your mod zips, I am a willing volunteer! Send me whatever you come up with, I'll run the bugger without fear!
Peace,
-D-
---------- Post added at 03:57 AM ---------- Previous post was at 03:40 AM ----------
Perhaps I should've been more specific:
fastboot flash boot boot.img (taken from shabby's stock files)
fastboot flash recovery recovery.img
voodoo ota rootkeeper protect then unroot
download update
installed
reflashed TWRP and made another Nandroid of updated stock system
...now here's where I get confused on the wipe before install...
do I just wipe cache/dalvik? or those two with factory reset? or a full system wipe?
that last one doesn't make much sense, but in science you analyze all steps, eliminating them, and whatever is left, however improbable, must be the way yadda yadda.
thanx again
-D-
Click to expand...
Click to collapse
Wipe Dalvik should be onlything you have todo when flashing unless someones mods say todo otherwise. also heads up i think Shabbys kernel is just stock no changes to it except he added P's and Q's for the description
Huh...because once I flashed shabby's p & q wifi was completely blacked out...interesting tho. And I did figure it out and am fully DeOdexed with the power boot menu...just used the XDA assistant widget to replace (loosely) the toggles, and I have several widgets that display battery %. I am patient.
Sent from my XT897 using xda premium
drakeheart77 said:
Huh...because once I flashed shabby's p & q wifi was completely blacked out...interesting tho. And I did figure it out and am fully DeOdexed with the power boot menu...just used the XDA assistant widget to replace (loosely) the toggles, and I have several widgets that display battery %. I am patient.
Sent from my XT897 using xda premium
Click to expand...
Click to collapse
Did you flash shabby's kernel on the update? Because both shabby's and arrrghhh's kernels work with the original software version (77.6.36.XT897.Sprint.en.US) only. Modules have been changed in the update and wifi breaks every time.
Yeah..that's where I goofed. Using kernel builds for a completely different software file system/build. I didn't realize at the time that they are software specific.
Sent from my XT897 using xda premium
Whenever I attempt to wipe dalvik cache, I always get this error:
E:unknown volume for path [sd-ext]
If you have apps2sd enabled in your rom the /sd-ext partition holds a separate dalvik cache from internal memory. Because of the way the sd card is mounted, there's no method of mounting an ext partition at this time but TWRP still looks for it when wiping dalvik cache. Its just the way the recovery's wired, but everything's fine.
Thanks ranger by I have been annoyed for the last 3 weeks about the update by moto
Sent from my XT897 using xda app-developers app
Rangerbry said:
Make a nandroid before using
this is for Software Version 77.8.10.XT897.Sprint.en.US
you can check your version Settings > About Phone > SW version
Nothing has been stripped out or changed, this is completely stock.
To be clear it is NOT a full ROM and will replace your
/system/app
/system/framework
folders completely.
If you have added anything to these directories it will be removed.
I added Superuser to system/app is the only modification.
Again make a nandroid before flashing
77.8.10.XT897.Sprint.en.US DeOdexd
-Bryan
Click to expand...
Click to collapse
I am not able to just wipe the dalvik, but I end up factory reset and it works. I have alot of info on my current backup, and I wonder how do you keep the info and still install this update?
SykkNyzz said:
I am not able to just wipe the dalvik, but I end up factory reset and it works. I have alot of info on my current backup, and I wonder how do you keep the info and still install this update?
Click to expand...
Click to collapse
this shouldnt wipe any user data or play store installed apps just make a backup apply it and if anythings missing go back to your backup you just made
Dalvik & cache wipe was all I did, worked like a charm. Also I wanted to point out that the updated power boot menu works flawlessly.
AND I was able to mod my 3G/4G status bar icons using ROM Toolbox Pro. However for some reason that's the only ones it will do, all the other icons it will either run & tell me to reboot then no changes or run the innstall operation for literally over 20 minutes and I have to force-kill the app. I have emailed the dev team about that including a spec report on our phone. Have yet to hear anything back when I do will update again.
P.S. I changed the 3/4G icons to the Droid 4 style where it shows LTE next to the 4G.
Sent from my XT897 using xda premium
Curious... will this fix all the random glitches the update caused?
Also just to be clear... i just install via cwm, wipe cache and devlik and i'm good?
Its late at night and i am probably over thinking things
Sent from my XT897 using Tapatalk 2
That's right on the installation, but myself and the app developer are hashing out how to fix the status bar issues. Some work & the rest don't lol. Good luck!
Sent from my XT897 using xda premium
So far I am waiting for a response from Jared, ROM toolbox developer. I have emailed him my SystemUI.apk and the framework-res.apk so not only will this benefit me but perhaps a future re-vamped ROM Toolbox Pro.
Sent from my XT897 using xda premium
http://forum.xda-developers.com/showthread.php?t=2001226
Check out this latest post from me. Hope y'all find them to be of some use.
Sent from my XT897 using xda premium
What do those files do?
Sent from that one mopho...
They are stock image files to basically start from scratch to build your phone in case of a disaster or soft-brick.
Sent from my XT897 using xda premium

Categories

Resources