Stock SystemUI for verizon[SOLVED] - Samsung Galaxy Nexus

I forgot to backup my systemui and need it back. Can't figure how to get it from Google factory image. I need the factory 4.2.2 odex version. Thanks
Sent from my Galaxy Nexus using xda app-developers app

To get it from the factory image, you need to mount system.img (filesystem aka fs is ext4) to some folder, you'll then be able to see the contents of the /system partition and copy systemui back to the device, setting permissions right.
Sent from my Nexus

I'm kinda lost. Can this be done on phone or windows.
Sent from my Galaxy Nexus using xda app-developers app

I found some ext4 and ext2 programs got it extracted in windows thanks.

Good. Please post the name of the program you used to mount the system.img for future reference, edit the thread title to include [SOLVED], and report the thread for closing. Thanks.

Solved
Here's the link to the thread I used for extracting my system.img.
http://forum.xda-developers.com/showthread.php?t=2294909
Troy

Related

[Q] How do I write an update script?

How Do I make an updater.script to flash a zip through recovery that flashes framework, system/apps, data/apps, and bootanimations into CM9 alpha5?
deciple said:
How Do I make an updater.script to flash a zip through recovery that flashes framework, system/apps, data/apps, and bootanimations into CM9 alpha5?
Click to expand...
Click to collapse
Just take an existing script like my KGBlues CM9 theme and make all the right directories and put your files in there. Then remove the files from the theme.
Sent from my SPH-D700 using xda premium
What kenny said unless you want to write your own commands to mount system and have it rewrite what your trying to replace. If you know linux coding its not too hard or if you take a look at someone elses updater..and follow the commands you can edit the ui_print to what ever you want . Id say go look at shanes updater script...cuz his will mount everything unmount and wipe caches...I think.
Sent From My SPH-D700 Running Android 4.0
Ok, I looked at booth of their scripts and what do I add for flashing boot animation.zips? Also do I need yo add anything to write to data/app?
Sent from my SPH-D700 using xda premium
deciple said:
Ok, I looked at booth of their scripts and what do I add for flashing boot animation.zips? Also do I need yo add anything to write to data/app?
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
If the script says anything like rewrite or has "rw" look at it and duplicate but change the directory such as it may say rw /system/app change the last folder to /system/media.
Sent From My SPH-D700 Running Android 4.0
In my updater script this will mount the system and will replace the /system/framework, /system/app, /system/media.
which is usually for themes the framework-res.apk, the systemui.apk, and the bootanimation.zip.
If you want it to replace /data/app then look at the previous commands and edit the directory to delete your desired app and the next command it will extract it and you need to create that folder and place the app and make sure the command is rewritten to that directory. Hope this helps.
For example you want to add XDA.apk then you would do this.
run_program("/sbin/busybox", "mount", "/data");
delete("/data/app/XDA.apk");
package_extract_dir("data", "/data");
run_program("/sbin/busybox","unmount","/data")
Now its correct sorry I forgot /data is where apps are.
That's pretty cool, thanks, that helps big time.
Sent from my SPH-D700 using xda premium
deciple said:
That's pretty cool, thanks, that helps big time.
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
Plus if you use the script from my theme it mounts system already.
Sent from my SPH-D700 using xda premium
kennyglass123 said:
Plus if you use the script from my theme it mounts system already.
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
That's part if this code
It mounts the directory this case being the /data
Sent From My SPH-D700 Running Android 4.0
so if i wanted to rewrite nv/nvm file what woull it look like?how would i start the script?please help,ty
Test
XDA Premium
................
XDA Premium

How to extract stock ROM to retrieve certain files

Hello all,
I sold off my note 2 but i miss the ringtones that it had. I want to extract them from the stock ROM and use it in my current device.
I extracted the .tar.md5 file and a few .img files appeared. I tried to extract / view the system.img file but I couldn't. These programs couldn't read the .img files.
What should i do?
You need to convert system.img file to ext4
Then you can mount that on Linux.
Or
Simply request someone to port from device, that will be easy with root explorer.
Sent from my GT-N7100 using xda premium
dr.ketan said:
You need to convert system.img file to ext4
Then you can mount that on Linux.
Or
Simply request someone to port from device, that will be easy with root explorer.
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
Thank you for pointing me into the right direction.
I used this Wonderful tool and avoided opening the file in Linux
http://sourceforge.net/projects/androidicsjbext/

[Q] Clockworkmod backup wont delete

Hello,
I wanted to change my kernel today, back to stock, so I tried to recover a previous backup I had from clockworkmod. But when I tried to recover it said "Md5 mismatch". So I went to Youtube to figure out why this was, I followed the instructions but there is no file path for my backups. I tried all of the different file paths "/data" that was empty, "/mnt/shell/" and that was empty as well, as well as a few other file paths. I eventually gave up looking for the backup and decided to erase the backup I made. But when I tried to delete it it said "There was an error renaming your backup. Please choose a unique and valid file name for your backup." I tried renaming it something else but it still says the same thing. Anyone know what I can do here, I just want this file off of my phone. Any help would be much appreciated!
Extra info. When I made the backup I decided to rename it as "5-14(Before custom kernel) but when I got the prompt to change name, I tried changing it to a valid name. Now the name is stuck?
I've also included some pictures to help understand my situation.
Rename the folder download to backup or backups and check
Sent from my GT-S6102 using xda app-developers app
rahulsnair said:
Rename the folder download to backup or backups and check
Sent from my GT-S6102 using xda app-developers app
Click to expand...
Click to collapse
I renamed the folder on my PC and it worked fine. But nothing changed. I looked in ES file explorer and folder name is still "download" and wont change
May be some problem with rom manager.Try renaming using "root explorer". If you want to get your stock kernal you can flash it using kernal flasher.
Sent from my GT-S6102 using xda app-developers app
rename the folder that contains all backuped files (without space). put that folder in another folder named "backup". put backup folder in another folder named "clockworkmod". put clockworkmod folder in data/media using any root explorer (enable mount option in setting). try to restore
I used the root browser included in rom toolbox and that seemed to work. Thank you for your replies! I truly appreciate it
Sent from my Galaxy Nexus
Thank you for your reply. Luckily I didn't have to go through that process, it seemed to go away after using root browser. Thanks again!
Sent from my Galaxy Nexus
No solution found yet for this error.
Hi,
Yesterday i made a backup using ROM manager v5.5.3.7 (free)
For some reason i made a second backup by accident, and something went wrong.(probably lack of disk space)
I now have 2 backups, i would like to delete one. (since i'm running short on disk space)
Tried too delete it but i got the "There was an error renaming your backup. Please choose a unique and valid file name for your backup." error.
I tried everything provided in this thread without any succes. (sorry for replying on this kinda old thread)
Anyone has an idea how to help me out?
Running CM11 (nightly) with stock kernel CM.
Thx for any help!
Update:
Nevermind, went into recovery and deleted the corrupted one!

Command line interface twrp

Hey guys got a question.... I was on the cyanogenmod thread and I someone posted a possible workaround for the freezing at the boot screen on 4.3 roms... I was told to delete the bootanimation.zip from system/media/ but I can't find it in there... There isn't even a media folder in system from what I see. (keep in mind I'm using the file manager inside of TWRP to try to locate it) I was wondering what the command is to delete the file using the terminal emulator or whatever selection I need to use to delete the zip.
The problem with it locking on the bootsplash seems to be that it couldn't get passed the bootanimation.zip file.
It looks like the method of using ODIN to flash a rooted stock rom manages to erase the bootanimation.zip, where as TWRP was leaving it there. If you get stuck there, go into recovery and fire up a command line interface (TWRP has one) and rm the bootanimation.zip file. I'll look back a few posts to find the path and post it here. Other than that make sure you are flashing the latest gapps and wipe your data and you should be good to go. Some folks have gotten away with a dirty flash but you'll have to uninstall/reinstall a bunch of apps.
Click to expand...
Click to collapse
Sent from my SGH-T999 using XDA Premium 4 mobile app
RedJack117 said:
Hey guys got a question.... I was on the cyanogenmod thread and I someone posted a possible workaround for the freezing at the boot screen on 4.3 roms... I was told to delete the bootanimation.zip from system/media/ but I can't find it in there... There isn't even a media folder in system from what I see. (keep in mind I'm using the file manager inside of TWRP to try to locate it) I was wondering what the command is to delete the file using the terminal emulator or whatever selection I need to use to delete the zip.
Sent from my SGH-T999 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
rm /file/location/here.zip
And if you can't see something in recovery like that, make sure the partition is mounted.
Sent from my SGH-T999L using Tapatalk 4

Script to move files from System to Preload

Installer Script to move files from System to Preload
First of all, credits to Mattix for the original Move script and no idea who to credit for the symlink creator script.
This script (with some minor editing) will move select files from the system/app root folder to the preload/symlink/system/app folder. It will also create the necessary symlink files back to system/app for the moved files.
Prerequisites:
Download and install Notepad++.
It is not recommended to use a standard text editor to edit android files.
A good zip utility like WinRar or 7Zip.
Guide:
Please note - you must have enough available room in the Preload partition to move the existing files. Using Rom Toolbox/root explorer, scroll the tools at the bottom over to and select 'prefs', select the 'Show storage bar' checkbox.
This will give you the storage bar like in the screenshot below.
Using a zip file manager like WinRar or 7Zip, open (do not extract) the 'Move_Apps' file within the zip and when asked, select notepad++ as your editor and change the filename highlighted in red, exit and save.
Also, filenames are case sensitive. Make sure you input the full filename with the file extension:
Code:
#!/sbin/sh
#
# Created by Mattix724
# Move Apps
# v1.0
cd system/app
mv [COLOR="Red"]Sample.apk [/COLOR] /preload/symlink/system/app
Copy and paste the line with the filename as many times as you need to for any other files you want to move. Flash the zip in recovery.
Please make a backup prior to using this or any file management tool
That's it, have fun. Tnx - TD
Oh hey, look what we have here! If anyone wants some help using this script I'll be more than happy to help. Just shoot me a private message and I'll get back to ya.
Sent from my SPH-D710 using XDA Premium 4 mobile app
This may be a stupid question but when I open it in notepad++ its only giving me 10 lines .how do I add more lines.each line is numbered 1through 10 .I cant paste any more.
Just go to the end of line 9 and hit enter or to the empty line 10 and hit enter.
Then you should be able to right click and paste on the new blank line.
I'm not sure if the blank line is necessary at the end but I notice it in a lot of stuff so I just leave it there.
tdunham said:
Just go to the end of line 9 and hit enter or to the empty line 10 and hit enter.
Then you should be able to right click and paste on the new blank line.
I'm not sure if the blank line is necessary at the end but I notice it in a lot of stuff so I just leave it there.
Click to expand...
Click to collapse
Ok thanks TD.I will have to try it tomorrow.iam going to try to move 32 apk files over, there mostly small (k) but more space in system/apps should increase speed .I hope ( running recalked ):good:
mholloway said:
Ok thanks TD.I will have to try it tomorrow.iam going to try to move 32 apk files over, there mostly small (k) but more space in system/apps should increase speed .I hope ( running recalked ):good:
Click to expand...
Click to collapse
I usually just have the entire rom unzipped somewhere and copy and paste the entire filename.apk from the folder itself. It's easier for me to do it that way than trying to type them all in.
tdunham said:
I usually just have the entire rom unzipped somewhere and copy and paste the entire filename.apk from the folder itself. It's easier for me to do it that way than trying to type them all in.
Click to expand...
Click to collapse
For me to do that could I use my nandroid back up.move it to pc, then open with winrar.?
mholloway said:
For me to do that could I use my nandroid back up.move it to pc, then open with winrar.?
Click to expand...
Click to collapse
I think you can open a backup but it's easier to find stuff in the rom.zip.
tdunham said:
I think you can open a backup but it's easier to find stuff in the rom.zip.
Click to expand...
Click to collapse
Lol, yea I was thinking that after I posted.iam going to try it your way, rather move the stuff then to type all the apks. Thanks TD
You could always have the script opened on your computer and have a file browser on your phone open so you can just take a quick glance at the phone and type the name of the app into the script.
On another note, after seeing TD bring this back from the dead I thought about what else can be done to this script to make it even better... This weekend I'll be seeing what else can be done using this shell script.
Sent from my SPH-D710 using XDA Premium 4 mobile app
Question, if I unzip the rom zip and move what I want from system to preload do I then delete apk in system and after flashing rom flash the symlink tool?
mholloway said:
Question, if I unzip the rom zip and move what I want from system to preload do I then delete apk in system and after flashing rom flash the symlink tool?
Click to expand...
Click to collapse
You could move apps to the preload partition by doing it that way, the ROM zip should already have a command to set the symbolic links after flashing everything.
This script was created after I released an early deodexed Jellybean build and I wanted to move the SystemUI back to the system partition because I thought it was silly of Samsung to move an important system application to the preload partition. I thought it would help decrease the boot time a little bit, it probably didn't speed it up enough to be noticeable to the average user but in my opinion it was slightly faster to boot up to the lock screen.
Then I decided to move all of the "bloat" to the preload partition as well as any of the Google apps that can be downloaded from the Play Store. But now most of those aren't even needed in the system or preload unless you want the extra space in your data partition for other things like apps, games, data, etc...
Sent from my SPH-D710 using XDA Premium 4 mobile app
mholloway said:
Question, if I unzip the rom zip and move what I want from system to preload do I then delete apk in system and after flashing rom flash the symlink tool?
Click to expand...
Click to collapse
You can't do the rom zip this way because it needs the symlinks to boot.
Maybe in the next release I will change the way it does symlinks but right now I'm afraid the rom just wouldn't boot if you start rearranging the system and preload files before flashing.
Mattix724 said:
You could move apps to the preload partition by doing it that way, the ROM zip should already have a command to set the symbolic links after flashing everything.
This script was created after I released an early deodexed Jellybean build and I wanted to move the SystemUI back to the system partition because I thought it was silly of Samsung to move an important system application to the preload partition. I thought it would help decrease the boot time a little bit, it probably didn't speed it up enough to be noticeable to the average user but in my opinion it was slightly faster to boot up to the lock screen.
Then I decided to move all of the "bloat" to the preload partition as well as any of the Google apps that can be downloaded from the Play Store. But now most of those aren't even needed in the system or preload unless you want the extra space in your data partition for other things like apps, games, data, etc...
Sent from my SPH-D710 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thanks, I wanna try moving some things that isnt just apps like some services dont know actually names off hand but basically leaving system ui and sec settings in system for theming .
---------- Post added at 11:53 AM ---------- Previous post was at 11:48 AM ----------
tdunham said:
You can't do the rom zip this way because it needs the symlinks to boot.
Maybe in the next release I will change the way it does symlinks but right now I'm afraid the rom just wouldn't boot if you start rearranging the system and preload files before flashing.
Click to expand...
Click to collapse
Ok .last night I did try it with a nandroid but had a md5 mismatch, I have the link from bil for deleting the md5 #so I will try that later.
tdunham said:
You can't do the rom zip this way because it needs the symlinks to boot.
Maybe in the next release I will change the way it does symlinks but right now I'm afraid the rom just wouldn't boot if you start rearranging the system and preload files before flashing.
Click to expand...
Click to collapse
I may be wrong, but I think he was asking if he could unzip the ROM zip to move apps from the system to the preload partition. If this is the case, once you've moved the apps you want to move just zip the ROM back up and then it is ready to flash. You will need to wipe both the system and preload partition prior to flashing the newly modified zip.
This way it is as if it's a fresh install, the apps go where you want them, and you can still preserve user data.
Sent from my SPH-D710 using XDA Premium 4 mobile app
Mattix724 said:
I may be wrong, but I think he was asking if he could unzip the ROM zip to move apps from the system to the preload partition. If this is the case, once you've moved the apps you want to move just zip the ROM back up and then it is ready to flash. You will need to wipe both the system and preload partition prior to flashing the newly modified zip.
This way it is as if it's a fresh install, the apps go where you want them, and you can still preserve user data.
Click to expand...
Click to collapse
The way the current E4GT roms are written, you can't take the Rom.zip and just rearrange things because the installer script does the preload symlinks one file at a time. I've changed this in the Shostock rom and also I think in my ReCalked Odexed release so symlinks are all done from a separate script file.
Bilgerryan may fix this in his next release and I will do the same in the next ReCalked but it won't work the way they are written now.
Plus, the Preload partition is limited on space too. You can't just dump the entire contents of system/app into it. It just won't fit without some serious debloating of both folders first.
I'll just fix the script in ReCalked for Mholloway and post a link here after I upload it maybe. Or maybe I'll just add the new lockscreen mods if I have time and upload the new version to my thread so he can play with it.
tdunham said:
I'll just fix the script in ReCalked for Mholloway and post a link here after I upload it maybe. Or maybe I'll just add the new lockscreen mods if I have time and upload the new version to my thread so he can play with it.
Click to expand...
Click to collapse
Thank you so much, but do whats easier for you.I would think your a busy man with all that your invoved here, with all your mods . Just the thought of you willing to do that is very appreciated.
Uploading a modified version of ReCalked. Stripped down to a little over 400mb. It's getting late, I'll try to post it in the morning if it makes it ok.
Sorry, having trouble getting the file uploaded. I'll try again and see how it goes.

Categories

Resources