Downgrading 4.2.2 AOSP to 4.1.2 Sense - Sprint HTC One (M7)

MAKE SURE TO MAKE A BACKUP OF INTERNAL STORAGE BEFORE YOU TRY THIS. IT WORKED FOR ME, BUT YOUR RESULTS MAY VARY!
I did not make this file, it was made for the Note 2, unfortunately I can't find the original thread for it. I had assumed it would not work for us, because the Note 2 had an actual SD card slot, and our phone does not. Anyway, I just tried it and sure enough, it does work perfectly.
If you decide you want to flash back to a 4.1.2 Sense rom from a 4.2.2 AOSP rom go ahead and wipe your phone like you normally would, flash the rom of your choosing, and then flash this file before you reboot. Only thing you'll have left after you reboot the phone, is the "0" folder. But it's empty since it moved all your files back to where they should be. Make sure you delete that "0" folder after the reboot. When I rebooted to TWRP after setting up, it appeared I had nothing on internal storage because it was still reading the "0" folder.
I'm very happy that this file actually works so now I can play with all the roms I want without the headache.
Me or the original creator of this file are not responsible for what you chose to do with your phone! That said it worked for me, and it SHOULD work for you.

Thanks for sharing.

Thanks for taking the leap and trying this out and then sharing.
Sent from my HTCONE using Tapatalk 2

Added this to my FAQ Guide Q14

Worked like a charm. Thanks! :good:

Thanks OP, worked perfectly for me as well.
For anyone who didn’t know about this problem before flashing a 4.2.2 ROM (like me!), and doesn’t have a back-up of their internal SD, I found one way to retrieve it. Although there was nothing too terribly important on it, I experimented with ADB while in recovery and found that I could pull a copy of the entire internal SD with one command. For anyone else who finds themselves in this position and wants to try it, the command I used is:
Code:
adb pull /sdcard/ c:\sdcard\
This is probably dirt simple for most folks here, but I had to try a few times before figuring out how to do it without it simply dumping ALL the files right into my tools folder! That will work, but it can be a mess to sort out. The command above will create a folder in the root directory of your PC named sdcard and very neatly plop all the files in the correct place. You can change the destination to suit your needs, of course, but the above worked for me.

Tried it from the q/a thread. Works great dude, thanks a lot.

Awesome! Will try this today, thanks for sharing.
Sent from my HTC d3rpONE using Tapatalk 4 Beta

Thanks for this. May push me over the edge to try some AOSP.
Sent from my rooted HTC One...

Flashed this coming from vanilla root box to tranquil rom, tried deleting the 0 file and it won't let me. I go to recovery, it's still reading the 0 file but it doesn't have anything in there but the twrp file. Help please. Because it wont even let me put anything in the 0 folder to flash.
Sent from HTCONE using Tapatalk 2

I'm having the same problem wished someone could help me out
Sent from my HTC One using Tapatalk 4 Beta

Killer-B said:
Flashed this coming from vanilla root box to tranquil rom, tried deleting the 0 file and it won't let me. I go to recovery, it's still reading the 0 file but it doesn't have anything in there but the twrp file. Help please. Because it wont even let me put anything in the 0 folder to flash.
Sent from HTCONE using Tapatalk 2
Click to expand...
Click to collapse
wfee said:
I'm having the same problem wished someone could help me out
Sent from my HTC One using Tapatalk 4 Beta
Click to expand...
Click to collapse
While in Tranquil, use Total Commander or Root Explorer file explorer to delete the 0 directory. This will break the symlink and TWRP will look at the right directory after that.
Sent from my HTC d3rpONE using Tapatalk 4 Beta

mrrogers1 said:
While in Tranquil, use Total Commander or Root Explorer file explorer to delete the 0 directory. This will break the symlink and TWRP will look at the right directory after that.
Sent from my HTC d3rpONE using Tapatalk 4 Beta
Click to expand...
Click to collapse
I added a few lines to the "updater-script" so that it would delete the "0" folder (as failsafe, in case .sh script didn't delete it) but I need someone to test it. I only added two lines to the actual updater script file so it "should" work. Someone PM me and I'll send you the link.
EDIT:
http://www.mediafire.com/download/628ko5rmqjr5qdw/restore-sdcard-after-downgrade-EWG-Test.zip <--I AM NOT RESPONSIBLE FOR ANY DAMAGE CAUSED BY THIS ZIP. FLASH AT YOUR OWN RISK.

ericwgarza1 said:
I added a few lines to the "updater-script" so that it would delete the "0" folder (as failsafe, in case .sh script didn't delete it) but I need someone to test it. I only added two lines to the actual updater script file so it "should" work. Someone PM me and I'll send you the link.
EDIT:
http://www.mediafire.com/download/628ko5rmqjr5qdw/restore-sdcard-after-downgrade-EWG-Test.zip <--I AM NOT RESPONSIBLE FOR ANY DAMAGE CAUSED BY THIS ZIP. FLASH AT YOUR OWN RISK.
Click to expand...
Click to collapse
Doesn't work for me, I get error when trying to flash
Sent from my HTCONE using Tapatalk 4 Beta

thatotherguy.. said:
Doesn't work for me, I get error when trying to flash
Sent from my HTCONE using Tapatalk 4 Beta
Click to expand...
Click to collapse
I just tested and uploaded a corrected version. I flashed it successfully via my recovery (TWRP) and verified that it deletes the "/data/media/0" folder. Let me know if you have any problems with the new zip. For the people who downloaded this previously, you will need to re-download. My bad on the silly error. :silly:
Link for fixed zip: http://www.mediafire.com/?v26rw54gwgbg19w

ericwgarza1 said:
I just tested and uploaded a corrected version. I flashed it successfully via my recovery (TWRP) and verified that it deletes the "/data/media/0" folder. Let me know if you have any problems with the new zip. For the people who downloaded this previously, you will need to re-download. My bad on the silly error. :silly:
Link for fixed zip: http://www.mediafire.com/?v26rw54gwgbg19w
Click to expand...
Click to collapse
I can confirm it's working
Sent from my HTCONE using Tapatalk 4 Beta

I flash this and it works. However when I use twrp again, 0 folder gets created but nothing else go to that folder except the backup files.
Sent from my HTCONE using xda app-developers app

erikivy said:
Thanks OP, worked perfectly for me as well.
For anyone who didn’t know about this problem before flashing a 4.2.2 ROM (like me!), and doesn’t have a back-up of their internal SD, I found one way to retrieve it. Although there was nothing too terribly important on it, I experimented with ADB while in recovery and found that I could pull a copy of the entire internal SD with one command. For anyone else who finds themselves in this position and wants to try it, the command I used is:
Code:
adb pull /sdcard/ c:\sdcard\
This is probably dirt simple for most folks here, but I had to try a few times before figuring out how to do it without it simply dumping ALL the files right into my tools folder! That will work, but it can be a mess to sort out. The command above will create a folder in the root directory of your PC named sdcard and very neatly plop all the files in the correct place. You can change the destination to suit your needs, of course, but the above worked for me.
Click to expand...
Click to collapse
I should start doing this before every flash. because last night I tried a 4.2.2 rom that didn't boot up and when I went into recovery TWRP was reading from the /0 directory and I didn't have any backup roms to reflash.... so I got worried that I was going to lose all my sdcard data and RUU restore my phone
so if youre phone ever gets stuck with no rom in your directory to flash and you have a working ADB. just move the rom to your ADB directory and type: adb push nameofrom.zip /sdcard/ while in TWRP. once its done pushing the file will show up when you go through the install directory and if you're going back to a 4.1.2 rom make sure you push the restore-sd.zip. I think it's time to invest in an USB-OTG flash drive as a security blanket.
wasn't sure if this method was covered before but just in case things f up. :thumbup:
---------- Post added at 04:07 PM ---------- Previous post was at 04:01 PM ----------
james33440 said:
I flash this and it works. However when I use twrp again, 0 folder gets created but nothing else go to that folder except the backup files.
Sent from my HTCONE using xda app-developers app
Click to expand...
Click to collapse
install esfileexplorer and delete the 0 folder in sdcard directory.

Digitalkarma said:
I should start doing this before every flash. because last night I tried a 4.2.2 rom that didn't boot up and when I went into recovery TWRP was reading from the /0 directory and I didn't have any backup roms to reflash.... so I got worried that I was going to lose all my sdcard data and RUU restore my phone
so if youre phone ever gets stuck with no rom in your directory to flash and you have a working ADB. just move the rom to your ADB directory and type: adb push nameofrom.zip /sdcard/ while in TWRP. once its done pushing the file will show up when you go through the install directory and if you're going back to a 4.1.2 rom make sure you push the restore-sd.zip. I think it's time to invest in an USB-OTG flash drive as a security blanket.
wasn't sure if this method was covered before but just in case things f up. :thumbup:
---------- Post added at 04:07 PM ---------- Previous post was at 04:01 PM ----------
install esfileexplorer and delete the 0 folder in sdcard directory.
Click to expand...
Click to collapse
I don't see that directory at all. However, once I make a backup it is created still.
Sent from my HTCONE using xda app-developers app

thanks I needed that!

Related

[Q] Where are my Clockwork backup files?

Hi,
Ive always used CWM to make my recoveries. But now, with Nexus 7 (CWM touch 6.0.1.9), Im unable to locate the backup files. There is no BACKUP folder in the clockwork folder and while I did a search using google and found many answers for my question, none of them was right. And I didnt make update from 4.1.2 - I cleaned the whole device and flashed stock 4.2.1 via fastboot, so I dont believe there is some directory tree change mess. And there is no BLOBS folder either.
I just flashed the ROM, rooted it using Toolkit, flashed CWM, made a backup - and boom, nothing there, while it is visible in both CWM recovery and ROM manager. I tried renaming the backup in ROM manager and searching for its new name using File Manager (with root privileges), but I was unsuccessful ...
So, please help me or provide me with a relevant link as I dont like TWRP ...
EDIT: I deleted the /SDCARD/CLOCKWORK folder and flashed TWRP. Now, I returned to CWM, made a backup using CWM and not only I dont see the backup itself, it didnt even recreate the CLOCKWORK folder. I just made a full search in the whole filesystem and there is nothing with "clock" in name (nothing relevant). Where is the backup hidden?????
Tried using it today. Its in some God forsaken rabbit hole. First enable root in es file explorer settings. Then look in system for data, media and eventually clockworkmod. That's the help I can give u.
Sent from my Nexus 7 using xda app-developers app
r3a1ist said:
Tried using it today. Its in some God forsaken rabbit hole. First enable root in es file explorer settings. Then look in system for data, media and eventually clockworkmod. That's the help I can give u.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Thanks, but that not the place for me. /data is empty and the only folder found containing "clock" in the file structure is /sstorage/emulated/0/clockwork ... the same as /sdcard/clockwork I was talking about. only three small files and thats it, no BACKUP or BLOBS.
GOT IT!!! I dont know why it wasnt visible with rooted File Manager, but I tried ES and its there ... bam ... THANKS A LOT!
Now, whats the best way to save this stuff to a computer?
its because Jellybean 4.2 uses diff storage paths...
Android 4.2 significantly changes the way how sdcards are handled internally, your data is moved from /sdcard/ into /sdcard/0 on first boot (0 is the 'home directory' of the default user). If you go back to 4.1.2: Don't forget to move the data in 0/ back to the root of your sdcard.
Click to expand...
Click to collapse
Ather said:
its because Jellybean 4.2 uses diff storage paths...
Click to expand...
Click to collapse
Well, Im aware of that. But that doesnt explain why the files are under /data/media/clockwork. Neither it does explain why it wasnt shown/found by File manager with root privileges - although I guess its the problem of the File manager, as ES File Explorer sees that without any problems ...
Now, I switched CWM to save to TAR and made a backup. It created a folder "/data/media/clockwork/backup/2013-01-08-1214" with 9 files, size about 1,1GB. Is it sufficient for me to copy this file to my computer? Im talking about backing up the backup (heh) ...
Also, is it ok that files cache.ext4.tar, data.ext4.tar and system.ext4.tar are 0mb? Thanks!
EDIT: I tried moving a backup folder to my pc, making factory reset, copying it back to where it was and restoring - everything works fine. Although I dont get why google messed the sw insides so much - my Nexus S seems to be much better in the matter of directory tree - and doesnt wipe all my files when doing stock restore from PC ...

[Q] Please Help!! (TWRP BACKUP)

Please help me! I was on Sense 5 rooted with twrp installed. Decided id try out the new CM 10.1 for the HTC ONE. So i backed up my system, data and everything else and proceeded to install CM. Decided it wasnt for me, went to TWRP, went to restore and there are no files there? What happened? I can see I only have 6GB storage available so the file is there somewhere!! How do i flash the backup? i read about a twrp utility or that the file structure is off?
Thanks for your help!!
UPDATE: When I go into a file manager, the backup from today is there.. it is in TWRP> BACKUPS> HT34JXXXXXX> (2013-05-14 @ 8:06 AM)
and inside that folder are the usual backup files. BUT IT STILL WONT SHOW UP IN TWRP WHEN I PRESS "RESTORE"
Anyone? I'm dieing here!!!
Reflash recovery, and see if now work.
I've restored yesterday my backup and no prob with TWRP.
And search your file in sdcard/0
If it will not work, reflash rom.
Don't know if this happened but I had a galaxy s3 before I got the htc one and I understood that cyanogenmod is a 4.2.2 type of rom and we have a 4.1.2 rom. A lot of peeps in the galaxy's forum would have trouble going back to touchwiz roms because the say flashing a 4.2.2type of rom partitions the memory files differently so then the 4.1.1 stock or custom roms. You may have to somehow unroot the phone and "push" the phone back to stock using your computer. People had to do that before with the s3. Hope that helps maybe. I have to go to work now. Good luck
Should I try to flash clockwork mod? Just go into the play store, download and flash from within the app? I don't understand I made a full nandroid it is in my phone and on my computer.. Why can't twrp recognize it?
Okaay said:
Should I try to flash clockwork mod? Just go into the play store, download and flash from within the app? I don't understand I made a full nandroid it is in my phone and on my computer.. Why can't twrp recognize it?
Click to expand...
Click to collapse
CWM can't restore TWRP backup.
If you backupped your rom with TWRP, this will restore it.
Did you try to see in sdcard/0?
Guich said:
CWM can't restore TWRP backup.
If you backupped your rom with TWRP, this will restore it.
Did you try to see in sdcard/0?
Click to expand...
Click to collapse
This is in the stock cm10 file manager. This is the exact backup I'd like to restore but when I go into the recovery and press on restore, nothing shows please keep responding!!!!
For team win recover the files need to be in /sdcard/0 the number zero or it won't be recognized. Move the directory structure to /sdcard/0. Also copy the directory with the backup to your computer in case.
Can we see the whole directory structure of where these files are located? like /recovery/2012305/ or where ever it happens to be?
nullkill said:
For team win recover the files need to be in /sdcard/0 the number zero or it won't be recognized. Move the directory structure to /sdcard/0. Also copy the directory with the backup to your computer in case.
Can we see the whole directory structure of where these files are located? like /recovery/2012305/ or where ever it happens to be?
Click to expand...
Click to collapse
Yeah man, I'll post the pics. Here they are looks as though it is in 0/
I just backed up the cm ROM just to see what would happen and now when I go to restore, the cm10 backup is the only one there and I can't locate it in file manager anywhere
Sent from my HTC One using xda app-developers app
Okaay said:
Yeah man, I'll post the pics. Here they are looks as though it is in 0/
I just backed up the cm ROM just to see what would happen and now when I go to restore, the cm10 backup is the only one there and I can't locate it in file manager anywhere
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
Search the SD card for boot.emmc.win you should get two results one from the original backup and one from the new one. You need to get both the backups together. Also copy your original backup to your computer so you have a copy of it in case you need to wipe or something.
nullkill said:
Search the SD card for boot.emmc.win you should get two results one from the original backup and one from the new one. You need to get both the backups together. Also copy your original backup to your computer so you have a copy of it in case you need to wipe or something.
Click to expand...
Click to collapse
This is what I see... Someone please help, the backup I wanna restore is already I'm TWRP folder on the internal storage but no files show up when I try the "restore" option in the recovery
Sent from my HTC One using xda app-developers app
Okaay said:
This is what I see... Someone please help, the backup I wanna restore is already I'm TWRP folder on the internal storage but no files show up when I try the "restore" option in the recovery
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
OK so did you copy your backup to your computer yet???? Well if not now would really really be the time to do that. Looks like there is a issue with how CM is doing the SD card and TWRP. So first copy the backup off of your phone. Should I say it again? COPY THE BACKUP OFF YOUR PHONE. Now go get the correct RUU for your phone. Run that sucker and restore the phone to stock. You will need to relock your bootloader. Once that is done put TWRP back on your phone and copy your backup to the phone.
Ran into this myself. Because of 4.2.2's support for multiple users, it segments the internal storage into pieces(i.e. 0 for first user, 1 for second user, 2, 3, so on). I didn't realize this and had to start from scratch.
Copy your TWRP backup(and anything else you don't want to lose) to your computer and delete the 0 file. Re-add your files to the internal storage(be sure to keep a copy on your computer). Then reboot into bootloader, fastboot erase cache, reflash, and reboot into recovery. Don't let the CM10.1 ROM start up, otherwise you'll be doing it again.
Alternatively, use the All-In-One toolkit to adb sideload a non-CM10.1 ROM onto your phone, delete the 0 folder(after transferring to your computer what you don't want to lose, of course), reboot recovery, and attempt to restore.
Thanks guys, got it working
Sent from my HTC One using xda app-developers app
This is the same problems people with the GNex came across moving back from 4.2.2 to 4.1.2 last year - you have to remember the internal memory changed and manually move fles to the non-0 folders! You guys should read up more before jumping head long into a new Android version!
Glad it's sorted now though
nullkill said:
For team win recover the files need to be in /sdcard/0 the number zero or it won't be recognized. Move the directory structure to /sdcard/0. Also copy the directory with the backup to your computer in case.
Can we see the whole directory structure of where these files are located? like /recovery/2012305/ or where ever it happens to be?
Click to expand...
Click to collapse
OOPs--sorry this must be an HTC specific problem--sorry for poking my Samsung nose in...
Maybe I am not understanding the thread but--
In my Galaxy Note2 all my TWRP backups, and I have about 5, are all in ext.sd. card and I have used it to restore on several occasions--could be a device specific situation, but in Note2 it's fine to have them in ext.sd card.

Flashing an 4.2.2 rom and file structure issue.

I decided to start this thread as both assistance for some as well as a collaberation on workarounds when you a person flashes a 4.2.2 rom coming from a 4.1.2.
Just like some (maybe most) I flashed CM 10.1 and played around a bit with it and decided it was just not ready to be run as a daily. Being the flashalohic that I am, I made sure I backed up before flashing CM 10.1 so when I went into recovery and went to restore imagine my surprise when it was blank, yep nothing was there. Why did this happen? Well doing some research and reading/searching I found out that the update from Android 4.1.2 to 4.2.2 changes the file structure of the 'virtual' sdcard on our devices. Actually it changes it for every device. What has changed is that the ability to add user accounts, similar to any regular computer, has been implemented. However, if the proper steps are not taken before you flash a new 4.2.2 Rom, you will end up with a huge mess and run out of room on your device in a hurry.
The actual location when viewed with a root file manager has been here on 4.1.2:
/data/media
And though you will see the same files in /sdcard and /storage/sdcard0, those are just symlinks to the same info, just like a shortcut (on a windows box) or alias (on a mac box). Once you flash a 4.2.2 ROM, the actual location gets changed (and all the files moved) to here:
/data/media/0
And the symlinks get changed to /sdcard/0 and /storage/sdcard0/0. On the surface, no big deal, right? Wrong. The problems arise if the version of your custom recovery is not compatible with a 4.2.2 ROM. If it is not and you keep flashing 4.2.2 ROMs you might soon end up in trouble. If, while using the 'older' custom recovery, you continue flashing, your sdcard ends up somewhere around here:
/data/media/0/0/0/0/0/0 (etc.) with all your files copied to every '0' directory and your symlinks end up the same way, and your device quickly runs out of space (the dreaded "your device is low on storage" message).
This may also make it very difficult to restore your nandroid of a 4.1.2 ROM as well. If you are already in that situation, not to worry, the solution for that is later in this post.
So far I have only been able to to copy all the files found in the last /data/media/0/0/0/0 (?) folder to my computer. Then using a file manager that will show hidden files and folders, copy/move the files in the last '0' directory to:
/data/media/0
And then use file explorer to delete all the other '0' directories until I have just this one:
/data/media/0
leaving nothing else in the symlinks but /sdcard/0 and /storage/sdcard0/0. This techniques is if you end up with a huge file structure.
****BACK UP YOUR SD CARD FIRST!!!!! before deleting any 0 folders!!!****
NOTE: A reboot of your device is essential at this point.
If after flashing a 4.2.2 ROM you decide you don't like it and want to restore your nandroid to your saved 4.1.2 ROM, how does that work out?
1.) Get yourself a (good) root file browser.
2.) Brows to /data/media/0
note: this is where android (and almost everything else that uses a Linux kernel) mounts anything that is considered "external" storage.
3.) Do all of your file fixing from here. It will make changes universally.
4.) select all within /data/media/0 and then paste everything back into /data/media selecting merge and/or overwrite. Once done, just delete the /data/media/0 folder, reboot your phone and Profit.
This is a pain and I agree but at this point is the only way I know how to get around this. If anyone knows other ways please share.
* While writting this I came across this info from user elfaure. I havent tried this yet as I am at work and get crappy signal but please post results if you try and if it works, please thank him! *
elfaure: Ok folks for next guy who decides to upgrade to 4.2 but does NOT want the multi-user environment, give this a try.
1. Download the attached file
2. Remove the .txt extension
3. Copy it to your /data directory
4. Open Android Terminal Emulator (Free Market app if you don't already have it)
5. At the prompt type "cd /data"
6. Type "chmod 644 .layout_version" on the file in /data (/data/.layout_version)
Code:
cd /data
chmod 644 .layout_versionNow when you upgrade to 4.2 you should stay single user and have no /data/media/0 directory when you are done. If anyone tries this please let me know if it works and thank me if it does.
ps-its just a special file in a special location, the presence of which tells Android NOT to upgrade your system to a multi-user environment. If you later decide you want multi-users, delete the file and reflash (from recovery) the stock or custom firmware or ROM or recovery. If your custom ROM or recovery wipes the entire /data partition less /data/media including this file, obviously then this will not help, but with latest versions of ROMs and recoveries that should not happen any more.
http://forum.xda-developers.com/showthread.php?p=40911246#post40911246
It also looks as if he may be working on a script to help as well and I will keep track and update as needed.
So far this is what I have come up with and I hope it helps some and I hope others that are smarter than I can correct me if I am wrong on any of the above or other add information on other ways to correct this.
I think this is part of my issue but I don't have any 0 folder under data?
I too flashed the 4.2.2 ROM, and noticed that every everything on my sd card had somehow moved to my internal memory? When I went to reflash the ROM it failed. It I also tried to reflash the ROM I was originally running and it too failed. Luckily I was able to do a nandroid restore so the phone is "usable" but TWRP 2.5 still does not see my my external sd and that seems to be that make reason I can not do anything within in the recovery.
Any suggestions?
The op is telling you exactly how to fix it.
lizardking7112 said:
I think this is part of my issue but I don't have any 0 folder under data?
I too flashed the 4.2.2 ROM, and noticed that every everything on my sd card had somehow moved to my internal memory? When I went to reflash the ROM it failed. It I also tried to reflash the ROM I was originally running and it too failed. Luckily I was able to do a nandroid restore so the phone is "usable" but TWRP 2.5 still does not see my my external sd and that seems to be that make reason I can not do anything within in the recovery.
Any suggestions?
Click to expand...
Click to collapse
Let my clarify:
I have used two different file managers and even used to terminal emulator using ls -la to make sure i have no hidden files
sdcard0/data/ there is no media directory
Maybe this isn't my problem, since I don't see any file/dir with a 0, but all this mess started when I loaded up a 4.2.2 ROM?
Everyone should check this out to aid you in your flashing addiction.
Happy flashing!
http://forum.xda-developers.com/showthread.php?p=42237249
Sent from my HTCONE using Tapatalk 2
I flashing an aosp Rom and nothing in my sd card changed. Maybe I'm lucky?
Sent from my HTCONE using Tapatalk 4 Beta
Good information
so does this work? will i be able to nad back to sense and all my files are in the right place?
I couldn't get it to work, the attachment. However the new recovery I linked to looks to have promise but I haven't tested it yet cause I'm remote right now and need my phone at the moment. Will give it a go this weekend.
Sent from my HTCONE using Tapatalk 2
Seems @imneveral0ne has found a way to assist folks that like to go between 4.2.2 and 4.1.2
Check out his thread here.
http://forum.xda-developers.com/showthread.php?p=42512892
Sent from my HTCONE using Tapatalk 2
Weighing in, worked like a charm for the most part. TWRP recreated another TWRP folder inside its original TWRP folder (it has to be left at /data/media/0/TWRP for you to be able to reinstall a nandroid backup) [also forgoing obvious yo dawg joke here], but besides that my phone is back to being right as rain.
Nice write up on this issue. Thanks
sent via my tranquil⊙NE
I'm sure it wouldn't work for doing a nandroid restore, but on my Galaxy Nexus I would just make certain I had the latest version of TWRP, boot into recovery, format the SD card, and then push the rom files to /data/media/ and flash. That is my only complaint about this change, really...truly "clean" installations are inherently more risky or difficult, dependent on your knowledge level.
It won't let me delete folder 0 no matter what. Inside that folder is a ViperRom folder that won't delete as well no matter what I do!
Thanks for this info. I think I'm going to take the plunge this weekend so this will be very helpful info.
Sent from my HTC ONE using xda app-developers app
I think it moved my ROM data into the 0 folder, how do I get it out? Everything else from the 0 folder is deleted except for ViperROM's folder, and whenever I try to move or delete it, it just fails the operation. I already have a copy out of the 0 folder, but I still want it out, because otherwise I can't flash things, since it just shows the the almost* empty sdcard/0 folder. Help? Should I just put my mods in the 0 folder and deal with it?
Bseagull said:
I think it moved my ROM data into the 0 folder, how do I get it out? Everything else from the 0 folder is deleted except for ViperROM's folder, and whenever I try to move or delete it, it just fails the operation. I already have a copy out of the 0 folder, but I still want it out, because otherwise I can't flash things, since it just shows the the almost* empty sdcard/0 folder. Help? Should I just put my mods in the 0 folder and deal with it?
Click to expand...
Click to collapse
No. There is a script out there you can flash that will help. Check out post # 10.
Sent from my One using Tapatalk 4
So can we delete the legacy file now? I haven't done anything with my internal storage since coming from 4.1.2 for the first time. It looks like twrp 2.6.3 copied all my files correctly to the 0 file but all the files are still also in "legacy" folder. Is it duplicate that I can delete from legacy or are they just symlinked? I am never going back now that we have official 4.3 release.
ivwonka said:
So can we delete the legacy file now? I haven't done anything with my internal storage since coming from 4.1.2 for the first time. It looks like twrp 2.6.3 copied all my files correctly to the 0 file but all the files are still also in "legacy" folder. Is it duplicate that I can delete from legacy or are they just symlinked? I am never going back now that we have official 4.3 release.
Click to expand...
Click to collapse
I am not certain to be honest. It looks like the file structure didn’t change with the release of 4.3 so it’s possible that they are symlinked. If all your files are moved to the /0/ folder and you have nothing in the legacy folder it would make sense that you would be able to but I have yet to test this.
I suppose this weekend I could back up the phone and file tree and give it a shot
Thanks for the response. I haven't tested out yet either but will post back if I do.

TWRP Restore Empty

Hi all,
I am trying to restore a twrp backup that I made, but when I go to twrp and click restore I get a black screen where it should show me the backup file, yet I can navigate via the pc to phones internal storage to TWRP/BACKUPS/2013-06-19--12-07-12/ and all the win files and md5 files are in that folder, tried making that folder into a zip and flashing like you would a normal rom install but it just fails. Please help folks!
never mind, figured it out
germinus said:
never mind, figured it out
Click to expand...
Click to collapse
You should really write a quick method of what you done to fix it incase anyone with the same problem ends up on this post in the future...
Sent from my HTC One using xda premium
redbull123 said:
You should really write a quick method of what you done to fix it incase anyone with the same problem ends up on this post in the future...
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
Sure I just figured it was me being stupid and most people would know!, for some reason, twrp was only reading the sdcard but the backup was actually stored in /data/media/twrp/backups (no idea why it started doing this, I actually have 2 HTC ones both being sent back to vodafone and never had this prob on the first unit), anyway, I downloaded a app called root explored which enabled me to copy the backup file from data/media/twrp/backups to the sdcard/twrp/backups folder and then I could restore
I am sure there is a reason why I had this problem but I wouldn't have a clue as to why! But anyway that's how I solved it, I am sure there is an easier way tho!
germinus said:
Sure I just figured it was me being stupid and most people would know!, for some reason, twrp was only reading the sdcard but the backup was actually stored in /data/media/twrp/backups (no idea why it started doing this, I actually have 2 HTC ones both being sent back to vodafone and never had this prob on the first unit), anyway, I downloaded a app called root explored which enabled me to copy the backup file from data/media/twrp/backups to the sdcard/twrp/backups folder and then I could restore
I am sure there is a reason why I had this problem but I wouldn't have a clue as to why! But anyway that's how I solved it, I am sure there is an easier way tho!
Click to expand...
Click to collapse
It does this with 4.2.2 I think it sucks actually because if you want to copy a back up to/from your computer you have to use adb push or copy it over to your sd, then move it into /data/media

[SPH-L720] [NG2] Original TouchWiz NG2 Bloat

If you accidentally deleted an application that you wanted later or just simply desire the files for development of custom TouchWiz based roms (or any other reason) and don't want to fish for them on a stock device, then here they are
These files are from the unmodified but rooted NG2 software. The only modification was that the device was rooted, so obviously @Chainfire's supersu is not part of the original files.
[sph-l720-system-app.rar - RAR archive] [MD5=(pending)] [File Size: ]
for all files in the /system/app directory: DOWNLOAD HERE
[sph-l720-system-priv-app.rar - RAR archive] [MD5=(pending)] [File Size: ]
for all files in the /system/priv-app directory: DOWNLOAD HERE.
**EDIT **
Note these are NOT flashable ZIPs. These are archives of each directory for cherry-picking the bloat apps.
**EDIT 2014 OCT 25TH***
Will not be making flashable ZIPS. If you so desire to do so, go for it. I now have the S5 and no free time as it is.
typefortytardis said:
If you accidentally deleted an application that you wanted later or just simply desire the files for development of custom TouchWiz based roms (or any other reason) and don't want to fish for them on a stock device, then here they are
These files are from the unmodified but rooted NG2 software. The only modification was that the device was rooted, so obviously @Chainfire's supersu is not part of the original files.
for all files in the /system/app directory: DOWNLOAD HERE
for all files in the /system/priv-app directory: DOWNLOAD HERE.
Click to expand...
Click to collapse
Thanks for this brother & correct me if I'm wrong, but shouldn't this be in the 'Themes & Apps' section?
Parkourkid93 said:
Thanks for this brother & correct me if I'm wrong, but shouldn't this be in the 'Themes & Apps' section?
Click to expand...
Click to collapse
You know what maybe. I'm sure anyone whom would use this would be for modding and making of TouchWiz based roms, but if this is the wrong place for this I do apologize.
typefortytardis said:
You know what maybe. I'm sure anyone whom would use this would be for modding and making of TouchWiz based roms, but if this is the wrong place for this I do apologize.
Click to expand...
Click to collapse
No big deal, most likely if it belongs in another section a mod will let inform you that its being moved, I was just curious, just downloaded, going to flash a tw ROM & test a few of these , did you pull these yourself by the way?
Parkourkid93 said:
No big deal, most likely if it belongs in another section a mod will let inform you that its being moved, I was just curious, just downloaded, going to flash a tw ROM & test a few of these , did you pull these yourself by the way?
Click to expand...
Click to collapse
Yes I did. I simply took them from a stock rom. Which I'm sure anyone could do - just I know I never thought to until i'm at a point where I have no choice but to flash back to stock. So now everyone has them handy.
They are simple file copies. It's not a flashable zip. Extract and use adb to push or simply copy to your device. Again these are mainly for those who are building custom TouchWiz based roms and want to include some of the bloat - but can be used by those who need some of the applications for whatever reason. But they aren't flashable and some probably will have to be replaced using adb push.
I will try to work on a flashable zip but that will take me some time. Also a flashable zip file doesn't help those whom say only want Sprint's Zone app for example but don't need the rest of the bloat. Just saying. But will post when I have made flashable zips for all-in-one bloat.
typefortytardis said:
Yes I did. I simply took them from a stock rom. Which I'm sure anyone could do - just I know I never thought to until i'm at a point where I have no choice but to flash back to stock. So now everyone has them handy.
They are simple file copies. It's not a flashable zip. Extract and use adb to push or simply copy to your device. Again these are mainly for those who are building custom TouchWiz based roms and want to include some of the bloat - but can be used by those who need some of the applications for whatever reason. But they aren't flashable and some probably will have to be replaced using adb push.
I will try to work on a flashable zip but that will take me some time.
Click to expand...
Click to collapse
Okay good, just making sure & I know, I barely use abd plus i'm already laying down, just got done playing Diablo 3, so I'm just going to push em using ES File Explorer lol
Parkourkid93 said:
Okay good, just making sure & I know, I barely use abd plus i'm already laying down, just got done playing Diablo 3, so I'm just going to push em using ES File Explorer lol
Click to expand...
Click to collapse
Someone else chime in here if this is wrong:
but... some of the touchwiz apps will refuse to work thru a simple file copy from within the device. If that happens, some of it - keyword "some" will be fixed by using a custom recovery like philz-touch or CWM or TWRP and clearing both cache and dalvik-cache after doing the file copy - at least that worked on 4.3 and 4.2.2. But KitKat has changed some things so I'm not sure.
If anyone else has dealt with this, please do comment....
When pushing .apks with ES or Root Explorer (my personal favorite) you do need root and need to place in the correct folder (system/app, system/priv_app, or system/lib if it's a lib file) and be able to change permissions - usually to rw, r, r.
... So definitely pay attention where you copy the files from and where ya put 'em.
If not done, they will not work.
Hope this helps someone!
Just wanted to let those of you whom are watching this thread know that due to personal stuff I have no time to make flashable ZIPs anytime soon but if anyone wants to take a stab at it before I get to it then be my guest
Will this zip file work on ASOP rom?
Sent from my SPH-L720 using XDA Premium 4 mobile app
axs3543 said:
Will this zip file work on ASOP rom?
Sent from my SPH-L720 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
No most of these apps need a TW framework.
Sent from my SPH-L720
Maybe I am missing it, or it's named something funny..but I am not seeing the stock messaging app in either of those zips. I apologize if it's right in front of me, but I don't see it!
Edit: I'm an idiot, I found it. SecMMS.apk. But it wont install, just says "App was not installed." Why would that be?
Did you manually push it to system/priv-app folder, set permissions, and reboot?
Don't try to just click on it and install via context menu
Sent from my SPH-L720 using XDA Free mobile app
Recorded Video Playback
I get "Unable to play video" message when I try to play back a video I recorded (I can play it on my computer)
carefree12 said:
I get "Unable to play video" message when I try to play back a video I recorded (I can play it on my computer)
Click to expand...
Click to collapse
Are you using a TW based rom? What file format is the video in? Will it play in another app, such as MX Player (great app btw I prefer it to any stock video app - I delete them)?
mxmr said:
Did you manually push it to system/priv-app folder, set permissions, and reboot?
Don't try to just click on it and install via context menu
Sent from my SPH-L720 using XDA Free mobile app
Click to expand...
Click to collapse
Yes I copied it to the system folder and then tried to install it. What do you mean by set permissions? For arguments sake I gave it rwxrwxrwx permissions and it still will not install.
vadyr56 said:
Yes I copied it to the system folder and then tried to install it. What do you mean by set permissions? For arguments sake I gave it rwxrwxrwx permissions and it still will not install.
Click to expand...
Click to collapse
Make sure you copy it to /system/priv-app folder, and set permissions to rw-r--r-- (644) NOT rwxrwxrwx, otherwise it will not work.
Reboot and you should be good to go.
mxmr said:
Make sure you copy it to /system/priv-app folder, and set permissions to rw-r--r-- (644) NOT rwxrwxrwx, otherwise it will not work.
Reboot and you should be good to go.
Click to expand...
Click to collapse
Rebooting and trying now, hoping my error with the permissions was the issue. Also, I'm not finding the stock calculator app in these archives. I may be being stupid again though, I apologize if that's the case.
Edit: No luck with the push, permissions, reboot attempt. I don't get what I could be doing wrong. And I'm definitely in the correct folder.
vadyr56 said:
Rebooting and trying now, hoping my error with the permissions was the issue. Also, I'm not finding the stock calculator app in these archives. I may be being stupid again though, I apologize if that's the case.
Click to expand...
Click to collapse
I attached the stock calculator app to this post
Edit: No luck with the push, permissions, reboot attempt. I don't get what I could be doing wrong. And I'm definitely in the correct folder.
Click to expand...
Click to collapse
One more time verify permissions are set correctly..they should match all of the other apps in the folder. Reboot to recovery and wipe cache/dalvik and try rebooting. Hopefully that works.
mxmr said:
I attached the stock calculator app to this post
Click to expand...
Click to collapse
Oh geez yup I'm an idiot again, thank you for providing that. Not sure what I'm doing wrong with the mms app though. Wondering if I should just install the bloated ROM and debloat it myself

Categories

Resources