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.
Related
Hey everyone, so I'm just starting to buckle down and learn more about Android Mods. Here's my latest question. I have a few zip files that I always flash on top of a new ROM. These include at the moment, a Rotary Lockscreen and the DroidX boot animation, possibly a circle battery shortly.
My question is, would there be a simple way to merge these zip files so I only have to flash one every time I load a new ROM, or even better, load these into a ROM file before flashing?
Is it as simple as opening the ZIPs, moving the files from one to the other (keeping the directory structure intact) and re-zipping the lot? Or is there something more complicated I need to look at...
Thanks in advance!
Edit: A quick look in one of the files revealed a .xml file with some references to the files to be installed. I assume I would have to edit the .xml to include all the instructions from each mod, but if that's all it takes, that should be easy... Again, I ask all of you... Am I missing something?
PSULightingGuy said:
Hey everyone, so I'm just starting to buckle down and learn more about Android Mods. Here's my latest question. I have a few zip files that I always flash on top of a new ROM. These include at the moment, a Rotary Lockscreen and the DroidX boot animation, possibly a circle battery shortly.
My question is, would there be a simple way to merge these zip files so I only have to flash one every time I load a new ROM, or even better, load these into a ROM file before flashing?
Is it as simple as opening the ZIPs, moving the files from one to the other (keeping the directory structure intact) and re-zipping the lot? Or is there something more complicated I need to look at...
Thanks in advance!
Edit: A quick look in one of the files revealed a .xml file with some references to the files to be installed. I assume I would have to edit the .xml to include all the instructions from each mod, but if that's all it takes, that should be easy... Again, I ask all of you... Am I missing something?
Click to expand...
Click to collapse
i think you need to edit the meta file and the xml file, but this can be done though.
PSULightingGuy said:
Hey everyone, so I'm just starting to buckle down and learn more about Android Mods. Here's my latest question. I have a few zip files that I always flash on top of a new ROM. These include at the moment, a Rotary Lockscreen and the DroidX boot animation, possibly a circle battery shortly.
My question is, would there be a simple way to merge these zip files so I only have to flash one every time I load a new ROM, or even better, load these into a ROM file before flashing?
Is it as simple as opening the ZIPs, moving the files from one to the other (keeping the directory structure intact) and re-zipping the lot? Or is there something more complicated I need to look at...
Thanks in advance!
Edit: A quick look in one of the files revealed a .xml file with some references to the files to be installed. I assume I would have to edit the .xml to include all the instructions from each mod, but if that's all it takes, that should be easy... Again, I ask all of you... Am I missing something?
Click to expand...
Click to collapse
what is the full name of the .xml file you see?
the recovery reads a file called update-script or updater-script inside the zip file META-INF/com/google/android/ directory. you memorize that directory path after messing with enough zip files!
that file tells the recovery what actions to take with which files. for list of very basic commands for this update-script file, i have a guide - http://forum.sdx-developers.com/android-2-1/creating-an-update-zip-list-of-commands/
it is possible to merge update.zip files but its important to understand their structure and how the commands are executed.
also signing .zip files is a whole different topic...
hopefully this helps get you going in the correct direction!
joeykrim said:
what is the full name of the .xml file you see?
the recovery reads a file called update-script or updater-script inside the zip file META-INF/com/google/android/ directory. you memorize that directory path after messing with enough zip files!
that file tells the recovery what actions to take with which files. for list of very basic commands for this update-script file, i have a guide - http://forum.sdx-developers.com/android-2-1/creating-an-update-zip-list-of-commands/
Click to expand...
Click to collapse
Since all the files have this could you copy and paste the codes inside them into one file?
Sent from my PC36100 using XDA App
chandlerw88 said:
Since all the files have this could you copy and paste the codes inside them into one file?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
You would want to read up a little bit and make sure you understand the commands, but yes. You do not want to copy the entire set of commands, just the particular needed lines. Often you don't need to change anything because the script may just say copy this entire system directory and everything in it will go.
Sent from my PC36100 using XDA App
It's pretty basic.
Move all the files into the same zip delete everything in meta-inf except the update script.
Adjust the script accordingly, pay attention to syntax or better yet just look at all the individual scripts and put them together, then remove dupes
As for zip signing..
This is what you need
http://forum.xda-developers.com/showthread.php?t=666441
OK, thanks! This has all helped a lot and I think I nailed the basics that I was shooting for, just haven't been able to test yet since no need to re-flash a working ROM.
My next question is, would there be a way to force files INSIDE an APK? Trying to add a different battery meter (have the images) to framework-res.apk and would love to do that from a boot script... Ideas?
PSULightingGuy said:
OK, thanks! This has all helped a lot and I think I nailed the basics that I was shooting for, just haven't been able to test yet since no need to re-flash a working ROM.
My next question is, would there be a way to force files INSIDE an APK? Trying to add a different battery meter (have the images) to framework-res.apk and would love to do that from a boot script... Ideas?
Click to expand...
Click to collapse
yes, its called 7-zip and its your new best friend in this battle. heres how i learned.
i started ripping apart the things that i liked, including roms themselves. now find an update zip that has the files inside the folders that you will need to add, and you can then recycle that update zip. here it is plain and simple:
1.use 7zip to VIEW; NEVER UNZIP the files(forget about windows zips)
2.check what folder the apps you will be putting in belong in
3.put them in their corresponding folders(some apps are tricky when you need to install their libs too and you dont know it)
4.erase the 3 bottom files in your meta-inf folder
5.resign the rom
6.verify the sign(look for the new certs)
7.move to sd
8.flash rom
9.have a pop,beer, or w/e your vice.(my fave is cherry coke)
if you need help getting started feel free to pm. you dont know who i am, but ive been thru this process many times.
Actually, that's not quite what I'm talking about... I want a flashable zip that will add certain images (the battery meter) to the INSIDE of a .apk file that already exists on the device. Not sure if it's possible, but if so, I'd love to know... If not, I'll try pulling the .apk and using 7-zip...
Ok forum, so I got this idea: because a lot of people ask for CWM packages of this and that, why not let them create CWM flashable stuff without having to beg devs or other users to make them?
I think it saves them (yes, I am talking about YOU!) and us the trouble. So I created these two base CWM flashable zips to get everyone started:
Data_Skeleton.zip - Used for apps that you can uninstall afterwards.
System_Skeleton.zip - Used for anything that should be installed as a system app
Now, a short guide on how to use them:
1. Download the appropriate ZIP for what you plan to package. If you want to make a regular app package use Data_Skeleton.zip, for system apps, use System_Skeleton.zip.
2. Open the zip file with anything else other than Windows Explorer! Use 7zip, winzip, winrar or anything else, just not Explorer!
3. Look inside the zip! DO NOT DELETE ANYTHING! All you need to do is ADD STUFF!
4. Browse into the "data" or "system" zip folders, then down into the "app" folder inside.
5. After you get to the "app" folder, copy and paste the APKs you want to flash in the folder.
REMEMBER: do not DELETE anything! ADD APK files ONLY in the "app" folder.
6. Wait for the APK files you copy to get added to the archive.
7. Close the archive.
8. Rename and copy the archive to your SD card.
9. Boot into CWM and flash the copied zip file you just created.
10. Enjoy!!
Sooooo, quick 10-step process into cooking you own CWM Zips. You can do much more with them than flashing apps, but for general purpose usage, this should be enough!
Thanks and complaints go underneath.
PS: this idea was given to me by lambstone in a separate thread! Thanks a lot mate!!!
Peace,
C.
Nice thread, waiting for other..............
There's market apps that does this I.e apps2zip
Sent from my LG-P999 using Tapatalk 2 Beta-2
Ayysr,
App2zip works well for this purpose, but only when it works. There are apps that can't be zipped correctly, mainly those that rely on libs, media and/or other files that can't be included automagically. Needless to say that some apps (mainly games and such) store data on the SD card.
All of this can be easily accomplished by copying the files in a zip file; also learning something about Android in the process, wouldn't you say?
Peace,
C.
cheatman said:
Ayysr,
App2zip works well for this purpose, but only when it works. There are apps that can't be zipped correctly, mainly those that rely on libs, media and/or other files that can't be included automagically. Needless to say that some apps (mainly games and such) store data on the SD card.
All of this can be easily accomplished by copying the files in a zip file; also learning something about Android in the process, wouldn't you say?
Peace,
C.
Click to expand...
Click to collapse
Your right, I was not trying to deny your effort in any way
Sent from my LG-P999 using Tapatalk 2 Beta-2
I actually wasn't expecting anyone to comment on this thread to begin with
The fact that you mentioned app2zip is perfect! I know the intent is not to deny my effort, in fact, I am happy new information surfaced because it's useful and appropriate.
Very few contribute to such posts with relevant info for others. I think this is the point: sharing insightful and relevant stuff with others. But judging by the number of thanks you have, you already know this very well already
So, thanks! And glad to have you in my thread
Peace,
C.
cheatman said:
I actually wasn't expecting anyone to comment on this thread to begin with
The fact that you mentioned app2zip is perfect! I know the intent is not to deny my effort, in fact, I am happy new information surfaced because it's useful and appropriate.
Very few contribute to such posts with relevant info for others. I think this is the point: sharing insightful and relevant stuff with others. But judging by the number of thanks you have, you already know this very well already
So, thanks! And glad to have you in my thread
Peace,
C.
Click to expand...
Click to collapse
have trying to put 5 apk files on data/app exactly doing what it's in your post, then rename it to apk.zip, but when i'm trying flashing from cwm it's geting error
E:Can't open /sdcard/apk.zip
(bad)
Installation aborted
do I miss something??
edit: i'm using data_skeleton.zip
Make sure you don't extract the ZIP. Open it and add files. If you extract it, you get that error message (usually). That is a problem related to the unzip process in CWM, it's not very "compatible"
I have also re-upped the DATA CWM zip, maybe it got borked in the process. So download again from first post. It works on my tab. You can test it by just getting the zip and flashing it empty, like that.
cheatman said:
Make sure you don't extract the ZIP. Open it and add files. If you extract it, you get that error message (usually). That is a problem related to the unzip process in CWM, it's not very "compatible"
Click to expand...
Click to collapse
No dude, I do not extract the zip file, I do exzctly what you said in 1st post, just open it with winrar, look for Data-app, then adding apk files on app section/folder inside the zip files, i just try once again to make sure, and i just add 1 different apk file, but still not work, btw i always use this same method before when I' want to replace boot animation for ICS CM9 ROM and adding some apk file to ROM file, and it's always work.
cheatman said:
I have also re-upped the DATA CWM zip, maybe it got borked in the process. So download again from first post. It works on my tab. You can test it by just getting the zip and flashing it empty, like that.
Click to expand...
Click to collapse
will try this one..,
EDIT: have try your 2nd Data_skeleton.zip, it's work when flashing from cwm with or without add apk files, but not with previous zip file, thought the problem it's coming from your zip file..,
Glad the second one works!
Thanks for letting me know the first zip was borked!
Its a good thread man, makes creating flash able zips simple, you should also look into zipsigner2 on the play market
Sent from my LG-P999 using Tapatalk 2 Beta-2
Thx for the great work!!
Does this one only works for apks?? say i would like to add some files to system/bin or system/lib what do i need to add??
Thx again
You need to create the appropriate folder structure on your PC/Laptop/Mac drive (system/bin or system/lib as per your example) and add it to the archive.
Do not create the folders directly inside the archive as they seem to get borked. Instead archive the folders after you create them locally. It also works if you extract the skeleton archive as an example, delete the "system" folder from inside it and add to the archive the system folder from your drive to replace the original one.
Sounds more complicated than it is. With these CWM Zips you can create any zip that changes either "/data/*" or "/system/*"
Anything, including full ROMs, libs, firmware etc (i.e. except kernel!) can go inside. Play with them. You can't mess your tab with them. Worst case, you need to flash again your ICS copy and factory reset...
Peace,
C.
yeah jejeje i just mess up i am trying to flash a sound driver for my phone (by the way it works in my live with walkman) but they are not working so.
but it is great because i was able to use your file to flash my phone it seems to be universal.
thx again for your work.
Is it possible for this to work for radio images?
Sent from my Nexus S 4G using Tapatalk 2 Beta-5
No, it can't be used for radio images.
First off, radio images need to be flashed (i.e. not copied to a folder as this script does) and secondly because as far as I know with the latest versions of CWM don't support this anymore.
The old zips used to flash radio don't seem to be supported anymore. I recently encountered this problem while flashing a friend's HTC Buzz/Wildfire. So, no, I have no idea how to flash radio using CWM anymore. You can flash using Odin, though...
Peace,
C.
cheatman said:
You need to create the appropriate folder structure on your PC/Laptop/Mac drive (system/bin or system/lib as per your example) and add it to the archive.
Do not create the folders directly inside the archive as they seem to get borked. Instead archive the folders after you create them locally. It also works if you extract the skeleton archive as an example, delete the "system" folder from inside it and add to the archive the system folder from your drive to replace the original one.
Click to expand...
Click to collapse
Ah, this explains how come my /system/app zips were coming out fine but my /system/framework were messed up, thanks for the explanation.
I wonder if it's possible for a small tutorial in how to add our own text to a zip when it's being flashed.
I guess I could reupload the zips without the intro section (stating my nickname and galaxy tab / version etc.) if I weren't so lazy...
The problem with changing the text is that although a tutorial can be made, it requires external tools and such, which would make this waaay to complicated and out of the scope of this thread.
For your purposes (I assume you are using some version of Windows), here's my advice: extract the Zip archive, look for the "updater-script" file, change it and make sure you run it through a "dos2unix" tool to convert CR/LFs. Then add it back to the archive.
To everyone else: if this doesn't work for you, just stick to adding apps to the zip. You should be safe, there's no need to edit any files anyway!
Peace,
C.
Great, apparently it was just that simple, worked great, <3
Dumb question - is this only for Galaxy tab? Or can I use it on my Captivate?
How can I include extra apps in a ROM im making to be installed as a part of the ROM. Such as root browser, facebook, ROM manager etc
http://www.techknow.t0xic.nl/forum/index.php?topic=1291.0
http://forum.androidspin.com/showthread.php/2260-how-to-add-apps-to-ROM/page2
http://www.modaco.com/topic/341060-adding-apps-to-a-rom-prior-to-flashing/
http://www.miui-au.com/howtos/add-remove-apps-rom/
Qwerty123 \m/ said:
http://www.techknow.t0xic.nl/forum/index.php?topic=1291.0
http://forum.androidspin.com/showthread.php/2260-how-to-add-apps-to-ROM/page2
http://www.modaco.com/topic/341060-adding-apps-to-a-rom-prior-to-flashing/
http://www.miui-au.com/howtos/add-remove-apps-rom/
Click to expand...
Click to collapse
Well can I get something more step by step.
Just copying the apk as in thr last link didn't work for me. I think some apps have to be installed
mansy_gupta said:
Well can I get something more step by step.
Just copying the apk as in thr last link didn't work for me. I think some apps have to be installed
Click to expand...
Click to collapse
Some apps unpack their libs/assets to /data/data/[app-name] during installation or first run so
a) check installed app data which files are used
b) if there are libraries- try moving them to /system/lib and see if app will find it (some use hardcoded paths unfortunately)
c) make a script that during the first boot will copy required files from /system/[custom location] to /data/data/[app name] (better way) or init.d script that will symlink required files from /system/[custom location] to /data/data/[app name]
gen_scheisskopf said:
Some apps unpack their libs/assets to /data/data/[app-name] during installation or first run so
a) check installed app data which files are used
b) if there are libraries- try moving them to /system/lib and see if app will find it (some use hardcoded paths unfortunately)
c) make a script that during the first boot will copy required files from /system/[custom location] to /data/data/[app name] (better way) or init.d script that will symlink required files from /system/[custom location] to /data/data/[app name]
Click to expand...
Click to collapse
How do I do the thing you mentioned in the end
mansy_gupta said:
How do I do the thing you mentioned in the end
Click to expand...
Click to collapse
Here
Check last lines of this script. Script was copied to /data as userinit.sh (IIRC) during firmware installation.
just copy paste the apk in sysyem/app folder..and u r good to go...
Sent from my LT15i using xda premium
manojcitc said:
just copy paste the apk in sysyem/app folder..and u r good to go...
Sent from my LT15i using xda premium
Click to expand...
Click to collapse
For some apps this doesn't work
Tapatalked from Xperia Arc S
just extract the zip rom, after that copy into app folder and readd into zip
Hey guys looking for 2 days now cant find a option: is there anyway to have auto correct on the note 2 stock keyboard?
Sent from my SGH-I317M using xda app-developers app
massih88 said:
Hey guys looking for 2 days now cant find a option: is there anyway to have auto correct on the note 2 stock keyboard?
Sent from my SGH-I317M using xda app-developers app
Click to expand...
Click to collapse
this is not in the correct section. This should have been posted under the Q&A section.....Not development
notified mods to move this....
massih88 said:
Hey guys looking for 2 days now cant find a option: is there anyway to have auto correct on the note 2 stock keyboard?
Sent from my SGH-I317M using xda app-developers app
Click to expand...
Click to collapse
There is a thread in theme section with the stock keyboard... with auto correct, , and long opress for secondary symbol. OR type arsaw and look for his thread..am driving right now, I'll supply the link later if you don't find it
massih88 said:
Hey guys looking for 2 days now cant find a option: is there anyway to have auto correct on the note 2 stock keyboard?
Sent from my SGH-I317M using xda app-developers app
Click to expand...
Click to collapse
Check my thread here: http://forum.xda-developers.com/showthread.php?t=2145815&highlight=samsung+stock+keyboard
contains 'themed" stock samsung keyboard... both auto-correct and non-auto correct versions.
Thanks for the replies. Ya I tried that link. Now I have a red keyboard and no auto correct lol how can I get back the stock keyboard? I deleted the zip but still the red keyboard . All I need is auto correct on stock keyboeard
Sent from my SGH-I317M using xda app-developers app
massih88 said:
Thanks for the replies. Ya I tried that link. Now I have a red keyboard and no auto correct lol how can I get back the stock keyboard? I deleted the zip but still the red keyboard . All I need is auto correct on stock keyboeard
Click to expand...
Click to collapse
Don't know what ROM you are on... your knowledge of pushing apps to /system (ie., via adb), etc., so I'm attaching the stock samsung keyboard (plain grey) with auto-correct functionality. You need to be rooted at least. Copy the attached apk to your phone... then, using your favorite root file manager (like Root Explorer, etc) copy to /system folder first... fix permissions to rw.r..r.. then, MOVE to /system/app. It will ask if you want to replace the current "SamsungIME.apk", answer yes. You should be good to go.
DoctorQMM said:
Don't know what ROM you are on... your knowledge of pushing apps to /system (ie., via adb), etc., so I'm attaching the stock samsung keyboard (plain grey) with auto-correct functionality. You need to be rooted at least. Copy the attached apk to your phone... then, using your favorite root file manager (like Root Explorer, etc) copy to /system folder first... fix permissions to rw.r..r.. then, MOVE to /system/app. It will ask if you want to replace the current "SamsungIME.apk", answer yes. You should be good to go.
Click to expand...
Click to collapse
Yes I am rooted and thanks for helping im coming from a z10 lol. perfect I will do that right away. im on stock rom touch wiz called I think 4.1.2
DoctorQMM said:
Don't know what ROM you are on... your knowledge of pushing apps to /system (ie., via adb), etc., so I'm attaching the stock samsung keyboard (plain grey) with auto-correct functionality. You need to be rooted at least. Copy the attached apk to your phone... then, using your favorite root file manager (like Root Explorer, etc) copy to /system folder first... fix permissions to rw.r..r.. then, MOVE to /system/app. It will ask if you want to replace the current "SamsungIME.apk", answer yes. You should be good to go.
Click to expand...
Click to collapse
ok im a noob tho new to all this. So I downloaded your link. Zip file right? Do I put the whole zip on my phone storage? then flash? I downloaded room file manager and cant find /system apps. Sorry for these probably stupid questions. When I open the zip there are are a few folders.
assets
meta-inf
res
AndroidMainfest
classes
massih88 said:
ok im a noob tho new to all this. So I downloaded your link. Zip file right? Do I put the whole zip on my phone storage? then flash? I downloaded room file manager and cant find /system apps. Sorry for these probably stupid questions. When I open the zip there are are a few folders.
assets
meta-inf
res
AndroidMainfest
classes
Click to expand...
Click to collapse
Those are folders/files in the flashable zip. Let's try the simpliest approach first.
1. Download "Root Explorer (File Manager) from the PlayStore, and install
2. From my post #6 above, save the attached file (SamsungIME.apk)... on your phone's sdcard
3. Open Root Explorer, and navigate to the folder on your phone (sdcard) where you put the SamsungIME.apk... long press it, then select "Copy"
4. now while still within Root Explorer, navigate to /system folder, and hit "Paste" (make sure you mount as R/W.. it's the button at the top. If you are mounted as Read Only, you'll get an error message "You cannot past here because the file system is read only". Just hit the "Mount R/W" toggle at the top of screen.
5. Now, "SamsungIME.apk" is in your /system folder. You need to fix permissions. Long press "SamsungIME.apk" and select "Permissions". There are boxes with green check marks. toggle the boxes so that you only have green check marks in: Owner: R W ; Group: R ; Others: R. Hit "OK"
6. Now, long press "SamsungIME.apk" file again, and select "Move"
7. Navigate to /system/app (you should already be in /system, so just tap the "app" folder
8. Make sure you are still mounted as "R/W", if so, tap the "Paste" key at bottom. this will put "SamsungIME.apk" in the /system/app folder
9. if you did all this correctly, you should be good to go...
Okay I tried finall got it in the right system folder like u explained I attach a picture. Its still not working. Do I just need to reboot or flash? I use goo manager.
Hope I didnt do anything wrong while moving it to app system
Sent from my SGH-I317M using xda app-developers app
massih88 said:
Okay I tried finall got it in the right system folder like u explained I attach a picture. Its still not working. Do I just need to reboot or flash? I use goo manager.
Hope I didnt do anything wrong while moving it to app system
Sent from my SGH-I317M using xda app-developers app
Click to expand...
Click to collapse
It appears you are not understanding some of the android basics...and that can be extremely dangerous... especially since you are rooted. From you screenshot, you show zip files in your /system folder. Per my previous post, I stated to copy "SamsungIME.apk" to /system... fix permissions... then MOVE to /system/app. Your screenshot shows zip files in your /system folder (i.e., "SamsungIME.zip"). My attachment is the apk file itself. So apparently when you downloaded, it zipped it for compression purposes. YOU NEED THE APK. I suspect it is inside that zip file.. so you'll need to know how to unzip that zip.. and get the ".apk" The APKs goes into the /system/app folder (Not /system). Try again, and get the SamsungIME.apk out of that zip... copy that apk to /system.. fix permissions... then move (not copy) to /system/app (it's a sub folder within /system). If this didn't work, you have done something wrong.
Damn I had the feeling some was wrong. So should I get that out of the system folder? How do I do that ? I cant delete or move them. Does it harm if I leave them there? Ya im trying that now how yiu explained the apk I get it . Thanks alot tho for ur patients
Sent from my SGH-I317M using xda app-developers app
massih88 said:
Damn I had the feeling some was wrong. So should I get that out of the system folder? How do I do that ? I cant delete or move them. Does it harm if I leave them there? Ya im trying that now how yiu explained the apk I get it . Thanks alot tho for ur patients
Click to expand...
Click to collapse
I use Root Explorer... if you long press the file, you get the option to delete file. Delete the ".zip" files in /system folder. Your screenshot looks like ES File Explorer (or something similar). You should be able to "select" that zip file, then delete. Go back to my Post#6 and download the APK file (SamsumgIME.apk)... do not zip it... you should be able to download file as apk. Then follow my previous instructions. Again, get the APK file (not .zip) to /system folder.... then fix permissions... then MOVE (don't copy or you will leave a copy of the apk behind in /system) to /system/app folder. System apk files belong in the app subfolder of system (/system/app). When you go to paste the apk in /system/app, you will be asked to replace existing file... replace it. Try again... report back.
Ok thanks will do that tomorow . I use es explorer yes. When I try to delete it says file cannot be deleted. Cant see any apk file I use windows 8 maybe tahts why?
Sent from my SGH-I317M using xda app-developers app
DoctorQMM said:
Don't know what ROM you are on... your knowledge of pushing apps to /system (ie., via adb), etc., so I'm attaching the stock samsung keyboard (plain grey) with auto-correct functionality. You need to be rooted at least. Copy the attached apk to your phone... then, using your favorite root file manager (like Root Explorer, etc) copy to /system folder first... fix permissions to rw.r..r.. then, MOVE to /system/app. It will ask if you want to replace the current "SamsungIME.apk", answer yes. You should be good to go.
Click to expand...
Click to collapse
When I tried to install it!
X App not installed
“ADMIRAL WILL YOU PLEASE COLOR CODE THAT WALL OF TEXT?” – why yes I will.
GREEN = Informational stuff about what we are doing.
BLUE = Instructions for process
RED = IMPORTANCE, PLEASE DO NOT DISREGARD
BLACK = not too important
PINK = very manly
####################################################################
DISCLAIMER – THIS WILL IMPROVE PERORMANCE (again…lolllll) AND FURTHER AND FARTHER OPTIMIZE YOUR DEVICE, SAVE STORAGE SPACE ON YOUR INTERNAL SD, AND PUT YOUR /SYSTEM/FRAMEWORK DIRECTORY AND ALL CONTENTS ON THE MOST POTENT ANABOLIC STERIODS KNOWN TO MAN. I AM NOT RESPONSIBLE IF/WHEN YOU FINISH READING THIS THREAD YOUR DEVICE RUNS OFF WITH YOUR GIRLFRIEND/WIFE/FAMILY/JOB BECAUSE IT IS NOW MORE “MANLEY” THAN YOU (see wut I did there…manley..rofl…).
####################################################################
Ok on to the serious part….
First, why odex? And what does it mean?
1.Odexing has the following benefits: Saves space in your /data directory, speeds up boot times SLIGHTLY, boosts loading of apps (in this case the apps that compose your framework), zip aligns framework and corresponding .odex files, reduced CPU cycles by optimizing framework.
2.So what is an “odex” file? Android applications similar to zip files. APK stands for “android package” and all of them contain java code, which is the second language in android aside from Linux. This code speaks to the device to execute operations that in turn speak to other system files, then ultimately the kernel, hardware, etc etc etc… we’ll not get into that. Java code is packed into a file within the APK called a “classes.dex” file and this file is parsed (copied) by the dalvik JVM and a cache of the processed classes.dex file is stored in the device’s /data/dalvik-cache directory.
An odex file is basically an already processed version of the classes.dex file that is “execution ready” for Dalvik. When xxxx application is “odexed”, the classes.dex is removed from the APK entirely and the information is converted to an odex file, and stored aside its owner APK (or in this case framework file). So rather than have two copies of the same file, and in different locations, you have one copy of that file, in the same location of the APK, all ready to go, and therefore making it more optimized for access by you – the user.
The benefits of doing this are tremendous! I have been doing this to all of my ROMs since I can remember. This process is detailed, but simple, just read carefully. I outlined the directions as simple and clear as I possibly could
On to the fun part>>>>>
FIRST, BEFORE YOU CONTINUE, BEAR IN MIND I DO NOT CURRENTLY HAVE A SCRIPT MADE TO UNDO THIS MOD, ONCE IT IS DONE, IT IS DONE! IT IS SAFE, HOWEVER, JUST FOLLOW DIRECTIONS CAREFULLY!
ALSO, MAKE SURE YOU ALREADY HAVE YOUR FAVORITE THEME INSTALLED! I WILL NOT BE RESPONSIBLE IF YOU APPLY THIS MOD THEN TRY TO FLASH XXXXX THEME AND GET CAUGHT IN A BOOT LOOP BECAUSE YOU COULDN’T DECIDE IF YOU WANTED GREEN OR BLUE BATTERY ICONS THEN CHANGED YOUR MIND ABOUT IT AFTER DOING THIS…..just don’t waste your time posting in this thread if you do that. But if you MUST bother such a story, here is your answer to the problem… “flash your ROM again, no need to wipe data, your device will boot now”############
Instructions:
1.Download Terminal emulator and FX file explorer and FX root add on from market.
2.Download the zip file at the end of this post named “odex.zip” to your device.
3.Open FX file explorer, find the odex.zip file, long press on it and select “open with” then select “Archive Extractor” then hit “extract here”
4.After it is done, you will then find a folder named “odex” in the same location of the downloaded “zip” version. Llong press on that folder and select copy
5.Navigate to the home screen of the FX file app, and select the red system logo (this is the one that allows you to explore as root.
6.Navigate to /data/local/tmp, when you get to tmp, select the icon at the top right corner of the app that says “clipboard” and paste the folder into /data/local/tmp
You should now have a folder there named “odex”
7.Long press on the folder, select “permissions” and check ALL of the 3 boxes for Read, Write, and Exec(ute)… if you have done this successfully the bottom left of that little popup window for setting permissions should say 0777, hit “ok” to commit the changes.
8.Now go into the odex folder, and inside of it repeat step 7 for ALL 5 files. They should all have FULL permissions.
9.After that is done, hit back until you are at the root directory, seeing “System (Root)” at the top of the FX file window with the red box with a # symbol inside of it. You’ll notice as well, the top right corner there is a yellow lock icon, inside a green box. We need that to be red, with an “unlocked” lock icon. Select it, and disregard built in FX file warning about how the world is going to end etc etc etc if you don’t know what you are doing – you know what you are doing, so no worries. If it is already red and “unlocked” then awesome, skip to step 10.
10.Scroll down a bit, and you will see “system” folder, this is your system directory. Go in there, and again make sure we are “red” and “unlocked” in the top right corner. You are a savage animal at this point, on a mission. Your device needs optimizing, disregard doomsday warnings about the T1000 enslaving the human race and how your brother will likely turn into a cylon if you unlock your /system directory (or make it read/writable… which is all this is doing)
NOW! The really fun part. You got your favorite theme? Sweet. Got your odex files all cocked and ready to rock? Check. Got your kids addicted to Teletubbies in case you mess up your ***t and you need like an hour to fix it?!?! Kidding… that won’t happen…
FIRST BEFORE YOU CONTINUE!!!!! PUT YOUR DEVICE INTO AIRPLANE MODE!!!!!!! You do not want to get a phone call or something while this script is executing. Interruptions will be rude and unkind… Please follow this instruction, please. For the love of the last terrible terminator movie.
11.Open terminal emulator, and type the following commands WITHOUT the quotes, hitting enter after each line:
“su” (if it asks for super user permission, grant it, obviously, if it doesn’t ask, you have already granted it)
“/data/local/tmp/odex/odex”
About 8.7 seconds later, it should be done, and you will see a little message saying “reboot to recovery and wipe cache and dalvik cache one more time” at the very end.
12.Hold power button, select “reboot options” then “recovery” hit ok, boom. If you don’t have that neat little modification to your android.policy.jar file, then power off, and boot into recovery by holding the volume up, home, and power button. In that order, until you see something on your screen. If you are NOT RUNNING EXT2… meaning you are not running Malicious ROM and/or you have not used my ext2 modificaitons…. Then simply type “reboot recovery” in terminal emulator, hit enter, and skip all the previous crap in “12”… “but then y u no say that first admiral?” … “Don’t question me son, it is for the good of the nation and humanity, and noobs who would read “oh ok reboot recovery BOOM” then they corrupt a file somewhere because of an unclean shutdown and are back at step -1 of this entire instruction which is restoring their backup… if they were pansy enough to make a backup. The admiral is manley, he has no use for backups. But he also knows what to do in case he needs one and doesn’t have one, cadet.”
ALSO IMPORTANT!!!!! Before you wipe dalvik cache again from recovery… if you are running my ext2 modification for /system /data/ and /cache…. MAKE SURE YOU VERIFY “THE BOX” is checked in twrp settings… you know which one I am talking about at this point. lol. It is the “format with yadda yadda rm command”
Wipe dalvik cache from recovery once more, then reboot the device.
DONE! Your ROM is now odexed!
-Admiral
http://db.tt/na11Ma9L
Another may mod. I'm not the only one who enjoys odexed. I was actually going to make the next release odexed... or was at least tossing the idea around in my head
Sent from my SGH-T889 using xda app-developers app
kintwofan said:
Another may mod. I'm not the only one who enjoys odexed. I was actually going to make the next release odexed... or was at least tossing the idea around in my head
Sent from my SGH-T889 using xda app-developers app
Click to expand...
Click to collapse
Well now you can.
I'm a firm believer in odexing. Most efficient way to run. I'm all about efficiency
Sent from my SM-N900T
Is tweaked odexed?
Sent from my SGH-T889 using xda premium
Tweaked is not odexed by default. You can find out if the ROM you are running is odexed or not by going to /system/framework with a file explorer. If you see a bunch of files in there with ".odex" tags on the tail end of them, then it is odexed.
If they are not there, then it is not odexed.
Sent from my SM-N900T
AngryDinosaur said:
Is tweaked odexed?
Sent from my SGH-T889 using xda premium
Click to expand...
Click to collapse
Non if the custom ROMs are odexed. It's more of a stock thing
Sent from my SGH-T889 using xda app-developers app
Alright
Sent from my SGH-T889 using xda premium
I keep getting this
Sent from my SGH-T889 using xda premium
Can we Odex our roms with XPosed framework mod installed? Or can we only Odex the apps and not system? Thanks a bunch for sharing.
Noellenchris
noellenchris said:
Can we Odex our roms with XPosed framework mod installed? Or can we only Odex the apps and not system? Thanks a bunch for sharing.
Noellenchris
Click to expand...
Click to collapse
you can odex any framework with this...
Not sure what you mean by the second part of your question, though. This is odexing your framework... which is found in /system ...?
ezsoulja said:
I keep getting this
Sent from my SGH-T889 using xda premium
Click to expand...
Click to collapse
For some reason it is thinking you are trying to execute a folder? And not a file?
Not cutting or flaming you in any way, but this is a user error. You typed the command properly, and everything looks like it SHOULD have executed. Go back to the step where you are moving the odex folder to the /data/local/tmp directory, make sure you did everything correctly, and retry.
Admiral Sir Manley Power said:
you can odex any framework with this...
Not sure what you mean by the second part of your question, though. This is odexing your framework... which is found in /system ...?
For some reason it is thinking you are trying to execute a folder? And not a file?
Not cutting or flaming you in any way, but this is a user error. You typed the command properly, and everything looks like it SHOULD have executed. Go back to the step where you are moving the odex folder to the /data/local/tmp directory, make sure you did everything correctly, and retry.
Click to expand...
Click to collapse
i made sure of it, i extracted the folder to the tmp folder and changed the odex folder 1 and 2 to 777 and all the files inside the 2nd odex folder and had both the root of the system and folder unlocked with the red icon. im not sure what could else be missing. im on tweaked 2.4.1 btw
ezsoulja said:
i made sure of it, i extracted the folder to the tmp folder and changed the odex folder 1 and 2 to 777 and all the files inside the 2nd odex folder and had both the root of the system and folder unlocked with the red icon. im not sure what could else be missing. im on tweaked 2.4.1 btw
Click to expand...
Click to collapse
Why do you have two odex folders?
Sent from my SGH-T889 using Tapatalk 2
Admiral Sir Manley Power said:
you can odex any framework with this...
Not sure what you mean by the second part of your question, though. This is odexing your framework... which is found in /system ...?.
Click to expand...
Click to collapse
With XPosed installed it can modify the framework, I'm afraid if I odex the framework, the xposed add on will crash my system. There is also an application on XDA called "Odex Me" which only Odex's the Applications and not the framework, that's what I was talking about in my second part of the question. I suppose I can do a backup and give it a go and see what xposed does.
Also Xposed also does other system mods other than framework. So it may only disable the framework modding portions after I odex the framewok.
Noellenchris
Admiral Sir Manley Power said:
Why do you have two odex folders?
Sent from my SGH-T889 using Tapatalk 2
Click to expand...
Click to collapse
For some reason when I extracted it, that's the way it came.. So it's basically just like the line says /data/local/tmp/odex/odex
EDIT: just removed one of the odex folders from within the odex folder and transfered the files to the first folder and everything worked from that point on..
Sent from my SGH-T889 using xda premium
noellenchris said:
With XPosed installed it can modify the framework, I'm afraid if I odex the framework, the xposed add on will crash my system. There is also an application on XDA called "Odex Me" which only Odex's the Applications and not the framework, that's what I was talking about in my second part of the question. I suppose I can do a backup and give it a go and see what xposed does.
Also Xposed also does other system mods other than framework. So it may only disable the framework modding portions after I odex the framewok.
Noellenchris
Click to expand...
Click to collapse
You'll be fine.
Go ahead and do it. Just make a backup of your /system if you wanna be safe, that's what they are there for
The DL link isn't working
Edit: Got it downloaded and working thanks for the odex man.
P.S What can be modified without messing up the odex for example will xposed framework modules cause the rom and odex to have complications. Thanks in advance
Sent from my SGH-T889 using xda premium
gonnapushthru06 said:
The DL link isn't working
Edit: Got it downloaded and working thanks for the odex man.
P.S What can be modified without messing up the odex for example will xposed framework modules cause the rom and odex to have complications. Thanks in advance
Sent from my SGH-T889 using xda premium
Click to expand...
Click to collapse
It may or may not. Honestly, either way it will require a little bit of work on your part after you flash it (assuming it actually boots, but it should...)
Just, best thing to do, like I said in the OP... Is flash your themes first, then odex. It will save you from the extra headaches and work trying to do the process in reverse.
Admiral Sir Manley Power said:
You'll be fine.
Go ahead and do it. Just make a backup of your /system if you wanna be safe, that's what they are there for
Click to expand...
Click to collapse
I've odex'd and it seems fine with xposed, after reading info on xposed they say it works on deox and odex roms, and it's running smooth. For some reason the screen appears brighter and sharper, probably some mod is not working but either way it is smooth and placebo maybe but looks great. Thanks again. I've done this in the past, but never to the system, just apps.
Noellenchris