[Q] Factory reset a rooted KF2 - 7" Kindle Fire HD Q&A, Help & Troubleshooting

I would like to know if I factory reset my rooted KF2, will it revert back to the stock state? I am asking cos I deleted some system /app files and I think it causes my business calender failed to sync with gmail.
thinking if reverted to stock,then all the default apk or installed software will be restored and I can re-root the kindle again.Possible?
Any help is greatly appreciated. thank you

http://forum.xda-developers.com/showthread.php?t=1923612

kinfauns said:
http://forum.xda-developers.com/showthread.php?t=1923612
Click to expand...
Click to collapse
Thanks for the link but it said reset does not unroot the device.
I am abit confuse, if i factory reset a rooted kindle:
1. Do i need to root again?
2. Does all the kindle default software and apk in the system/app be restored? I deleted some.....
3. Will all the above brick my device?
Thank you

...
alkemist80 said:
…I made sure to delete any files I put in system/apps and anywhere else in the system folders. The factory reset will not clear those files out.
Click to expand...
Click to collapse

Yes, but it also says that anything placed into the /system directory needs to be removed when returning to stock. By extension, anything removed from the /system directory needs to be replaced to return it to a stock state. A factory reset only touches the /data and /cache directories and will not undo anything done to the /system directory.
1. Answered in post #7 of the link above
2. Answered in this post
3. Depends on the files you've manipulated in the /system directory

kinfauns said:
Yes, but it also says that anything placed into the /system directory needs to be removed when returning to stock. By extension, anything removed from the /system directory needs to be replaced to return it to a stock state. A factory reset only touches the /data and /cache directories and will not undo anything done to the /system directory.
1. Answered in post #7 of the link above
2. Answered in this post
3. Depends on the files you've manipulated in the /system directory
Click to expand...
Click to collapse
Thank you so much. Is it possible to advise me which file is necessary(in system/app) for sync gmail in business calender? i only remember i deleted the default calendar.apk. Tried restoring but not working

In other words, once you delete an apk from system/app, its gone for good.
The factory rest uses the files in system to restore itself. If it was a file you downloaded and placed there, then its not horrible. If its stock KFHD system file, then you will need to find another source to replace it..

alkemist80 said:
In other words, once you delete an apk from system/app, its gone for good.
The factory rest uses the files in system to restore itself. If it was a file you downloaded and placed there, then its not horrible. If its stock KFHD system file, then you will need to find another source to replace it..
Click to expand...
Click to collapse
Oh no..... any source you can recommend? thks

Probably someone with a KF2. I had the HD but I returned mine, I can't help you there.
For sync issues, you can read my notes here. This was done on a KFHD, this may help you, though I didn't test it with google calendar and no longer have the device, but it activated stock android sync (to google). You need to be rooted and at least have gmail installed.
http://forum.xda-developers.com/showthread.php?t=1897380
You may want to read the sticky about backing up your device.
Edit: Thought you had the KFHD but re-read and noticed KF2 instead, but I edited my post to reflect.

Related

[FIXED] [Q] XT860 - Broke my /system/app folder...

EDIT: Fixed! Procedure I used was to download Danifunker's system dump, move it to /sdcard/ via adb push, then run the following:
Code:
adb shell
su dd if=/sdcard/mmcblk1p21.img of=/dev/block/mmcblk1p21
This completely refreshed my /system folder. Original post below:
--------------------------------------------------------------
Hello XDA forumgoers, longtime reader first time poster here. I'm currently posting because I made a few mistakes. Several mistakes, actually.
1. In my quest to de-bloat my XT860, I accidentally removed one file too many, which caused my phone to mysteriously not have a cell signal. (com.motorola.service.main kept crashing.) So I hit the forum and grabbed a system dump from this thread (thanks Willis111):
http://forum.xda-developers.com/showthread.php?p=17501981
I had bought the phone with some version of Cyanogenmod Recovery installed by the previous owner, so I was able to use that and ADB to stick the .apks and .odex files in the /system/app folder, chmod 644 them, and even factory reset for good measure.
2. As I soon found out, I had somehow made things worse. The phone, when boot into, shows the "press android to begin" page, but com.motorola.service.main and some other apps keep FCing on me, and I can't progress past that screen. In my haste, I didn't backup any of my system folders at all, though, I still backed up my apps with Titanium.
Tl;dr:
presumably none of the /system/app apks boot, most notably com.motorola.service.main. How do I fix this? Can I?
Try to flash
http://forum.xda-developers.com/showthread.php?t=1288823
You also need to chown 0:0 both the apk and the odex
Have you tried using my original system dump? It was taken with dd, so things like symlinks and the other sort should be functional. The only caveat is that a number of apps were frozen at the time, so you may need to unfreeze them with titaniumbackup.
http://www.multiupload.com/SORQERFAYT
DoubleYouPee: Is this that chinese rom I've heard of? I heard that if I flash this, I can't root my phone. So I think I'll save this one as a last resort.
eww245: chown'd, no result.
daniflunker: how do I open this?
jonsicoli said:
DoubleYouPee: Is this that chinese rom I've heard of? I heard that if I flash this, I can't root my phone. So I think I'll save this one as a last resort.
eww245: chown'd, no result.
daniflunker: how do I open this?
Click to expand...
Click to collapse
What about rootkeeper?
DoubleYouPee said:
What about rootkeeper?
Click to expand...
Click to collapse
I can't get past the "click android" screen, so I probably can't install or run it. Any way to do it via adb or Cyanogenmod Recovery?
I really appreciate the help.
jonsicoli, if you want to restore your *entire* /system folder (not just apps) you would run a similar command-set as this.
1. Copy the file to the internal memory
adb push c:\path.to.folder\mmcblk1p21.img /sdcard
the file will be located in the root of the sdcard (or you could drag and drop the file in USB storage mode)
2. Do a full restore on system memory *I have not checked to ensure this is working... but a command similar to this should work
adb shell
su dd if=/sdcard/mmcblk1p21.img of=/dev/block/mmcblk1p21
- wait -
(it would have to write about 500mb and replace all of the contents of /system )
reboot
_______________________________________________________
Okay, if you just want to look at the files, you could use a linux machine to mount the filesystem (it is a standard ext3 FS) or you could do what I have done on my windows system:
Install EXT2FsD from http://sourceforge.net/projects/ext2fsd/files/latest/download?source=files
Then install OSFMount from http://www.osforensics.com/tools.html
Point the OSFMount program to the img file that you downloaded and assign it a drive then voilla!
I am pretty sure this is a bit of overkill, but this should completely restore your system close to factory (minus the APKs that were upgraded/disabled, plus the fact root was done)
Thanks Danifunker! I reset my entire /system folder, and restoring my user app backup. I'm just relieved to have my phone back. Now to mark this thread as solved.
Awesome!!!!!! Glad to hear my system dump works! Thanks for testing
My command lines were written correctly also I guess?
Sent from my XT860 using XDA App
searched for like 8 hours until i found this thread. Just what i needed, i had system image for 2.3.6 from your other post but no command.

[Q] [HELP NEEDED!] CameraApp.apk and CameraApp.odex

I was messing around with the root files when I deleted the CameraApp.odex file by accident. Now the stock camera app disappeared from the menu, and I am unable to get it back anyhow. My CameraApp.apk is still the stocked one, but I can't back the .odex file. Can anyone help by extracting the CameraApp.odex file from their root folders and uploading it?
Thanks so much in advance, this is killing me :crying:
chunwee said:
I was messing around with the root files when I deleted the CameraApp.odex file by accident. Now the stock camera app disappeared from the menu, and I am unable to get it back anyhow. My CameraApp.apk is still the stocked one, but I can't back the .odex file. Can anyone help by extracting the CameraApp.odex file from their root folders and uploading it?
Thanks so much in advance, this is killing me :crying:
Click to expand...
Click to collapse
The CameraApp.apk > http://www.4shared.com/android/qWylbCjC/CameraApp.html
The CameraApp.odex > http://www.4shared.com/file/eDu3vGeH/CameraApp.html
After replace the CameraApp.apk you need to install it like any other app. Just click and let the phone install, cause if you uninstall yours to make it works only like that, or doing factory reset and the system will install the app, but there is no need for a factory reset...
Good luck
When I copied the files to my root, the camera crashed when I opened it. However, it worked when I installed the apk directly from my sd. Guess im unable to get it to work as a system file anymore, unless I do a factory reset, which I am pretty much unwilling to do. Thanks anyway!
chunwee said:
When I copied the files to my root, the camera crashed when I opened it. However, it worked when I installed the apk directly from my sd. Guess im unable to get it to work as a system file anymore, unless I do a factory reset, which I am pretty much unwilling to do. Thanks anyway!
Click to expand...
Click to collapse
I told you to install normally the Camera.apk.
after install and reboot, search and see if you don't have the file in your root...
The .odex you'll probably need to paste, not sure...
Edit... sorry, I said after replace on the other reply... anyway, hope it helps.

[Q] Can we change the font?

I have played Android devices for several years and rooted them for several years. The first thing after rooting is to change the font under /system. But I heared that this may coz OS reset!
Did anybody try this? what if we use a softLink for the font file to avoid the checksum comparing?
Any changes to /system will cause the bootloop reset. However, if you pull a file from /system and symlink it to a file not located on system (/data for instance) then the symlink will not cause a bootloop. When fooling with systemui, you can quickly get yourself in trouble if there is a flaw in your files though, so be careful. I would make a nandoird before trying it.
dbh369 said:
Any changes to /system will cause the bootloop reset. However, if you pull a file from /system and symlink it to a file not located on system (/data for instance) then the symlink will not cause a bootloop. When fooling with systemui, you can quickly get yourself in trouble if there is a flaw in your files though, so be careful. I would make a nandoird before trying it.
Click to expand...
Click to collapse
I have instructions on how to do the symlinking in my HD/HD+ Tips thread linked in my signature. But like dbh369 said, be careful. I was able to make a Vietnamese font for a user doing this. Look in the Q&A section, I think.
Sent from my Nook HD+ running CM10 on Hybrid SD
Thanks above two. Are you sure that Stock will check every file under /system? I plan to replace the font file directly and see the result. I will report the result. By the way, if it's reset, I plan to use CM10.1.
songxiny said:
Thanks above two. Are you sure that Stock will check every file under /system? I plan to replace the font file directly and see the result. I will report the result. By the way, if it's reset, I plan to use CM10.1.
Click to expand...
Click to collapse
Yes I am positive, any new or changed file on /system will reset stock. It automatically checks each file it finds and checks to see if it is on its manifest list and if it does not match the manifest or the checksums there, it will reset. So don't even try unless you want to lose everything including your media files.
Sent from my Nook HD+ running CM10 on Hybrid SD
leapinlar said:
Yes I am positive, any new or changed file on /system will reset stock. It automatically checks each file it finds and checks to see if it is on its manifest list and if it does not match the manifest or the checksums there, it will reset. So don't even try unless you want to lose everything including your media files.
Sent from my Nook HD+ running CM10 on Hybrid SD
Click to expand...
Click to collapse
yes, you are right. I tried to modify the font file directly, stock reset. Even I delete the file, it reset. But, your sysLink tips work.
Thanks a lot.

[SOLVED] Deleted bloatware but came back after reboot

Hi!
I have rooted my phone, and deleted bloatware using uninstall.
After reboot, the apps returned, so I deleted /system/apps/*.apk (relevant) files (I'd also like to know what are the *.odex files if someone can kindly tell me )
Then, I rebooted again, and again they were... I have read in previous threads that flashing the kernel is needed. Is that so? And if so, how can it be done?
Thanks!
barashe said:
Hi!
I have rooted my phone, and deleted bloatware using uninstall.
After reboot, the apps returned, so I deleted /system/apps/*.apk (relevant) files (Id also like to know what are the *.odex files if someone can kindly tell me )
Then, I rebooted again, and again they were... I have read in previous threads that flashing the kernel is needed. Is that so? And if so, how can it be done?
Thanks!
Click to expand...
Click to collapse
You need a custom kernel with /system write permission (unsecured kernel) .
You will not be able to install ota updates if you mess with /system files.
Thanks!
alray said:
You need a custom kernel with /system write permission (unsecured kernel) .
You will not be able to install ota updates if you mess with /system files.
Click to expand...
Click to collapse
Downloaded and installed ElementalX-m7 kernel and now they are all gone!
barashe said:
Downloaded and installed ElementalX-m7 kernel and now they are all gone!
Click to expand...
Click to collapse
for future reference, you can also stay on stock kernel (dont really know why ) and do the changes in custom recovery (eg TWRP)
if you want a relatively easy file manager for custom recovery, check out Aroma File Manager... that would save you the hassle of using an adb shell
oh, and if all is good now, can you also edit main thread title to include [SOLVED], thanks
edit the first post -> at the bottom of the edit window, click Go Advanced, and then you can edit main title

Help.. phone bricked, deleted /carrier applications

I was trying to cleanup carrier bloatware off my phone and I think I deleted some apps that were critical.
I deleted ItsOnService.apk (NetworkSystemProvider) and ItsOnUID.apk. Unfortunately I didn't make a backup of them. Then, wifi and LTE/3g stopped working (even if Wifi is connected, internet is permanently not available).
The worst part of this is that the issue persists after reflashing back to stock. The problem is I don't think the stock roms contain the /carrier directory. And now I cannot complete the setup wizard because at first boot, I'm forced to select a wifi network and once I connect internet is not available, so the wizard won't proceed.
Is there anything I can do? If someone were to send me the missing APKs could I use recovery mode and sideload them?
Chanman said:
I was trying to cleanup carrier bloatware off my phone and I think I deleted some apps that were critical.
I deleted ItsOnService.apk (NetworkSystemProvider) and ItsOnUID.apk. Unfortunately I didn't make a backup of them. Then, wifi and LTE/3g stopped working (even if Wifi is connected, internet is permanently not available).
The worst part of this is that the issue persists after reflashing back to stock. The problem is I don't think the stock roms contain the /carrier directory. And now I cannot complete the setup wizard because at first boot, I'm forced to select a wifi network and once I connect internet is not available, so the wizard won't proceed.
Is there anything I can do? If someone were to send me the missing APKs could I use recovery mode and sideload them?
Click to expand...
Click to collapse
do you still have the rooted system image on ur sdcard?? just reroot
Google~Android said:
do you still have the rooted system image on ur sdcard?? just reroot
Click to expand...
Click to collapse
I do have the rooted image, as well as the stock image, I have applied both, the problem still exists. I think when I reroot or reflash it's not writing the /carrier directory, that must have come from somewhere else. I confirmed this by unpacking the TOT file and looking inside, it has all the apps, but it does not have the /carrier directory. Do you have ItsOnService.apk and ItsOnUID.apk? Maybe I could try sideloading them?
Chanman said:
I do have the rooted image, as well as the stock image, I have applied both, the problem still exists. I think when I reroot or reflash it's not writing the /carrier directory, that must have come from somewhere else. I confirmed this by unpacking the TOT file and looking inside, it has all the apps, but it does not have the /carrier directory. Do you have ItsOnService.apk and ItsOnUID.apk? Maybe I could try sideloading them?
Click to expand...
Click to collapse
nope i don't have a g4 as of now...shud be here in a week
Chanman said:
I was trying to cleanup carrier bloatware off my phone and I think I deleted some apps that were critical.
I deleted ItsOnService.apk (NetworkSystemProvider) and ItsOnUID.apk. Unfortunately I didn't make a backup of them. Then, wifi and LTE/3g stopped working (even if Wifi is connected, internet is permanently not available).
The worst part of this is that the issue persists after reflashing back to stock. The problem is I don't think the stock roms contain the /carrier directory. And now I cannot complete the setup wizard because at first boot, I'm forced to select a wifi network and once I connect internet is not available, so the wizard won't proceed.
Is there anything I can do? If someone were to send me the missing APKs could I use recovery mode and sideload them?
Click to expand...
Click to collapse
You need to know exactly what you deleted. The itsonuid is in the system/priv-app directory. I didn't see the itsonservice but didn't spend much time looking. You need to know if you deleted things out of carrier partition or vendor partition or both... Get a list together...
Agimax said:
You need to know exactly what you deleted. The itsonuid is in the system/priv-app directory. I didn't see the itsonservice but didn't spend much time looking. You need to know if you deleted things out of carrier partition or vendor partition or both... Get a list together...
Click to expand...
Click to collapse
Thanks, I can confirm what you're saying, I did find ItsOnUID in system/priv-app, so at least I can restore that one. However, I am pretty sure ItsOnService is in /carrier and I deleted it using ES File Explorer. I had deleted ItsOnUID with Titanium Backup. Titanium Backup was not able to find ItsOnService, so that's why I had used ES File Explorer, which confirms that ItsOnService must have been in /carrier.
Since it looks like there is no /carrier directory in these TOT files, is there some other way I can get ItsOnService.apk? Can anyone out there send it to me?
Chanman said:
Thanks, I can confirm what you're saying, I did find ItsOnUID in system/priv-app, so at least I can restore that one. However, I am pretty sure ItsOnService is in /carrier and I deleted it using ES File Explorer. I had deleted ItsOnUID with Titanium Backup. Titanium Backup was not able to find ItsOnService, so that's why I had used ES File Explorer, which confirms that ItsOnService must have been in /carrier.
Since it looks like there is no /carrier directory in these TOT files, is there some other way I can get ItsOnService.apk? Can anyone out there send it to me?
Click to expand...
Click to collapse
Might be a little late but here ya go.
2348z said:
Might be a little late but here ya go.
Click to expand...
Click to collapse
Thanks a lot!!!
Chanman said:
Thanks a lot!!!
Click to expand...
Click to collapse
No problem buddy. ?

Categories

Resources