Enhanced Camera.apk - Samsung Epic 4G Touch

Everyone seems to be asking for a silent camera app, also some desire one with better image/video capturing. There is one in existence however, most wouldn't know this (unless you use the 'search' function) because it's in the I9100 forum. Yes, it does work with our phone but I wanted something that was build from our source and that's up to date. I decided to take the best of both and combine them. This is the Camera.apk from Calkulin's 2.8.1 (EL29) ROM but with the edits from Potatoman's incorporated into it.
Check out Potatoman's thread to see the bitrates and sampling rates if you're curious. Instructions on how to put this in /system/app are in Patatoman's thread also. Let me know if for some reason they didn't work and I'll see what I can do. I've tested it on mine so I know it works I just haven't had a chance to test the sampling and bitrates.
Also, there's a media_profiles.xml that may or may not be useful. I use it anyway. That goes in /system/etc with no special permissions. Just give it the same as the stock one.
Lastly, in no way do I take credit for this. All I've done is combine work from two great devs - they did all the dirty work. If you'd like to thank or donate to someone then donate/thank one of them, or both
Cheers and enjoy.
EDIT: Figured I would add this here for those that aren't sure how to replace a /system file.
For a file explorer (eg. Root Explorer) make sure the system is mounted as r/w. Copy the app from your sdcard to the /system/app directory. Change permissions to rw-r-r. Reboot. I also set the owner and group to root but you shouldn't have to.
For terminal
Code:
su
mount -o remount,rw /dev/block/mmcblk0p9 /system
cp /sdcard/path/to/app /system/app
chmod 644 /system/app/Camera.apk
Reboot
Only if you have to should you just install it like a regular app. If you have to, just click on the app in your file explorer and select 'install'. This will install it to the /data/app directory. This should never have to be done though.

Just make sure you reboot
Sent from my SPH-D710 using xda premium

Thanks for the update. The higher bitrate camp.apk was posted in the theme/app section.

Excellent find... much obliged!
Sent from the last remaining Prime; Leader of the Autopads.

Didn't get it where the volume rocker takes picture though
Sent from the near past

Wait... so this particular .apk does not include the snap photo via volume rocker functionality?
I am just going by the previous post.
Sent from one impressive piece of technology.

No not yet anyway. It just has the higher bitrate and sampling rate right now. I'm new to .dex edits so I'll keep updating it as I learn more. I know there's a power button mod for it but from what I've read its still buggy.
Sent from my SPH-D710 using XDA App

KCRic said:
Everyone seems to be asking for a silent camera app, also some desire one with better image/video capturing. There is one in existence however, most wouldn't know this (unless you use the 'search' function) because it's in the I9100 forum. Yes, it does work with our phone but I wanted something that was build from our source and that's up to date. I decided to take the best of both and combine them. This is the Camera.apk from Calkulin's 2.8.1 (EL29) ROM but with the edits from Potatoman's incorporated into it.
Check out Potatoman's thread to see the bitrates and sampling rates if you're curious. Instructions on how to put this in /system/app are in Patatoman's thread also. Let me know if for some reason they didn't work and I'll see what I can do. I've tested it on mine so I know it works I just haven't had a chance to test the sampling and bitrates.
Also, there's a media_profiles.xml that may or may not be useful. I use it anyway. That goes in /system/etc with no special permissions. Just give it the same as the stock one.
Lastly, in no way do I take credit for this. All I've done is combine work from two great devs - they did all the dirty work. If you'd like to thank or donate to someone then donate/thank one of them, or both
Cheers and enjoy.
Click to expand...
Click to collapse
For noobs like me, do you just put the camera apk in your storage and install it using installer app?

Nice find! I just switched from Calkulin 2.8.1 to TNz Blend ROM and will love to have Calkulin's camera app with the Blend ROM... Best of both worlds! Will flash this tomorrow and report back.
Sent from my GT-P7510 using Tapatalk

Could not sleep so decided to install it now, not letting me though. Tried to install through the package installer but it won't go... Perhaps I cannot install it on a different ROM (running TNz Blend)
Sent from my SPH-D710 using Tapatalk

AntikytheraTech said:
Could not sleep so decided to install it now, not letting me though. Tried to install through the package installer but it won't go... Perhaps I cannot install it on a different ROM (running TNz Blend)
Sent from my SPH-D710 using Tapatalk
Click to expand...
Click to collapse
Yes you can....push to system/app....set permissions up like the other apps there....the click and install
Sent from the near past

Danial723 said:
Yes you can....push to system/app....set permissions up like the other apps there....the click and install
Sent from the near past
Click to expand...
Click to collapse
How do you set the permissions without using ADB? I only ask because I have never used it (clearly). But maybe now is the time.... :-S
Sent from my SPH-D710 using Tapatalk

AntikytheraTech said:
How do you set the permissions without using ADB? I only ask because I have never used it (clearly). But maybe now is the time.... :-S
Sent from my SPH-D710 using Tapatalk
Click to expand...
Click to collapse
You'll need a file explorer app like Root Explorer. You can also use a terminal emulator app. With the file explorer you copy the app from your sdcard to the /system/app directory. Make sure sure the system is mounted in r/w also. That will overwrite the original, now all you have to do is set permissions which are rw-r-r.
Just to be safe, reboot. If you had a shortcut for it on your homescreen you'll have to put it back there.
For terminal
Code:
su
mount -o remount,rw /dev/block/mmcblk0p9 /system
cp /sdcard/path/to/app /system/app
chmod 644 /system/app/Camera.apk

Danial723 said:
Didn't get it where the volume rocker takes picture though
Sent from the near past
Click to expand...
Click to collapse
I figured I would test to see if it had that function since Calkulin's camera does. I'm able to take pictures with the volume rocker. Are you not?

sratwars said:
For noobs like me, do you just put the camera apk in your storage and install it using installer app?
Click to expand...
Click to collapse
No,u need to put apk in /system/app folder but you need to be rooted to put apk's in that folder.
But u can try just installing it regularly,sometimes that works too for some apps.

(For noobs like me, do you just put the camera apk in your storage and install it using installer app?)
no. read instruction before replying PLEASE!

*xda_ace=spades. said:
(For noobs like me, do you just put the camera apk in your storage and install it using installer app?)
no. read instruction before replying PLEASE!
Click to expand...
Click to collapse
And read the dates before you revive a 5 month old thread PLEASE!

Related

Installing an app to the System

Hello I got a question. So pretend I wanted to make ADW EX as a system app how should I do that. Also I have tried it using root explorer but I keep getting Force closes when I put it as a system app. Any suggestions would be nice. Thanks
Sent from my T-Mobile G2 using XDA Premium App
lainvalenajr said:
Hello I got a question. So pretend I wanted to make ADW EX as a system app how should I do that. Also I have tried it using root explorer but I keep getting Force closes when I put it as a system app. Any suggestions would be nice. Thanks
Sent from my T-Mobile G2 using XDA Premium App
Click to expand...
Click to collapse
Did you set the permissons correctly? And did uninstall it before you moved it?
[sig]off topic is a great place to get my post count up, role on 1000[sig]
cjward23 said:
Did you set the permissons correctly? And did uninstall it before you moved it?
[sig]off topic is a great place to get my post count up, role on 1000[sig]
Click to expand...
Click to collapse
Set permission correctly.... Haven't installed it though. Will try
Sent from my T-Mobile G2 using XDA Premium App
In terminal
Su
mv /data/app/com.android.ADWEX.launcher-1.apk /system/app/ADWLauncher.apk
That's exmaple how to do it.. jus put the proper name for adw ex and from there should be good i, I do ths with LP all the time
Well if you're using a custom rom then you can open the rom .zip with something like 7zip, navigate to system>app then drag and drop ADW EX in there. Flash the rom like normal and you're done. That's how I do it.
There's also the terminal method mentioned by ilostchild, though what was forgot is mounting the system as rw
mount -o remount,rw /system
There's also ADB which is done the exact same way aside from having to tell adb to operate in a shell.
KCRic said:
Well if you're using a custom rom then you can open the rom .zip with something like 7zip, navigate to system>app then drag and drop ADW EX in there. Flash the rom like normal and you're done. That's how I do it.
There's also the terminal method mentioned by ilostchild, though what was forgot is mounting the system as rw
mount -o remount,rw /system
There's also ADB which is done the exact same way aside from having to tell adb to operate in a shell.
Click to expand...
Click to collapse
Sick...didn't realize how easy it is. Thanks!
Sent from my T-Mobile G2 using XDA Premium App

[TWEAK] build.prop w/Mac Installer & Backup 1-23-2012

I have taken and expanded on this thread.
I added the following.
Allows the phone to sleep better
ro.ril.disable.power.collapse=1
Saves power when phone is sleep
pm.sleep_mode=1
Allows your wifi to scan less, saving more battery
wifi.supplicant_scan_interval=180
Helps Scrolling Responsiveness
windowsmgr.max_events_per_sec=180
Increase overal touch responsivenss
Debug.performance.tuning=1
Video.accelerate.hw=1
Raises quality of JPEG images
ro.media.enc.jpeg.quality=90
Change the Dalvik VM heap size
dalvik.vm.heapsize=48m
Render UI with GPU
debug.sf.hw=1
I tried adding the market fixes from this thread but it doesn't seem to work on stock.
To install
rename your current build.prop in /system/ to build.prop.bak and copy this build.prop to /system/ and reboot.
Make sure the file permissions are rw-r--r-- or chmod 644
I recommend using root explorer. Below is the file permissions diagram if you use root explorer to change them.
XX0
X00
X00
All installers include a backup script as of 1-23-2012
If you have an error with the installer. Unplug your kindle wait a couple seconds and plug it back in. Make sure to eject and the sdcard from the computer and click disconnect on the kindle.
Download the automated Mac installer for stock here. | Download the build.prop for stock here.
Download the automated Mac installer for Paul's Modaco stock here.
Download the automated Mac installer for CM7 here. removed for now| Download a build.prop for kindle fire CM7 here.
If you have any suggestions please share them with me so I can add them.
If you wanna buy me a drink for my time go Here.
I'm assuming this is for stock KF firmware?
Correct this tweak is for the stock firmware.
Will this allow the market to show more apps, right now with stock build prop a lot of apps are not available
Nope. This does nothing for the Market. I don't think anyone has been successful in getting the market hacks to work yet.
Permissions?
Are you sure about those permissions? Everything I'm reading is suggesting it should be :
rw-r--r--
Or
XX0
X00
X00
I'm pretty sure. 777 is what mine was pre-editing. I am running the build.prop I have available above and it is working fine for me. I think you may be referring to the default.prop which has the permissions you listed.
Is this compatible with CM7?
Okay, I may have been mistaken. I checked the permissions of my build.prop.bak and they were listed as I posted above so I figured it should be the same. Would permissions change from renaming a file?
Also, I haven't touched default.prop.
Sent from my SGH-T959 using XDA App
I have had problems with permissions changing when moving them to the computer but not sure I'd just renaming them would do it. Are you able to check your active build.prop?
Matt V said:
Is this compatible with CM7?
Click to expand...
Click to collapse
I don't think you should use this with CM. If you want to post a link where I could download a copy of yours I will add the edits and make one for CM. Although I am sure some are already there.
northmendo said:
I have had problems with permissions changing when moving them to the computer but not sure I'd just renaming them would do it. Are you able to check your active build.prop?
Click to expand...
Click to collapse
Unfortunately I already replaced my build.prop with the one you posted. I have my permissions currently set to the same values as my .bak and have since rebooted with no issues. Should I be experiencing issues if my permissions are incorrect? Also, searching other forums (for other devices) and looking at the build.prop on my phone (Samsung vibrant) the permissions are rw-r--r--.
Sent from my SGH-T959 using XDA App
For anyone wanting to try this on CM7, don't do it because it doesn't work. In fact it turned the display 90* but still left the touch functions in the area they should be in, took me forever with playing with the buttons and a display that didn't match to get it fixed.
northmendo said:
I don't think you should use this with CM. If you want to post a link where I could download a copy of yours I will add the edits and make one for CM. Although I am sure some are already there.
Click to expand...
Click to collapse
Here's the CM7 build prop. Let me know what you can do with it and I'll give feedback.
Matt V said:
For anyone wanting to try this on CM7, don't do it because it doesn't work. In fact it turned the display 90* but still left the touch functions in the area they should be in, took me forever with playing with the buttons and a display that didn't match to get it fixed.
Click to expand...
Click to collapse
That'll be the ro.sf.hwrotation=270 setting.
tduermeier said:
Are you sure about those permissions? Everything I'm reading is suggesting it should be :
rw-r--r--
Or
XX0
X00
X00
Click to expand...
Click to collapse
You are correct, rw-r--r-- are the proper permissions for build.prop
Has anyone tried incorporating any of the Amazon build.prop stuff into ones for CM7 to see if they could get the Kindle reader application to allow you to read magazines and other documents that you have set up in the documents of the reader software? I have a few magazines that I do like to read on my Fire and would hate to give them up by switching ROMs but if that was the ONLY thing I lost I would live.
Thanks working great here on stock kindle rom rooted. Seems a bit snappier after implementing said tweaks.
neilrl79 said:
You are correct, rw-r--r-- are the proper permissions for build.prop
Click to expand...
Click to collapse
Thanks for the feedback I am going to test and change the post.
Weird, I am looking at the permissions on the build.prop listed above from CM7 and the permissions are 755.

How would you push an .apk to your system/app?

The best way to push an app to your system/app file with out bricking your phone?
na4hotx said:
The best way to push an app to your system/app file with out bricking your phone?
Click to expand...
Click to collapse
Um that isn't going to brick you. Especially since you're talking about system app. Worst thing to happen would be a reboot if you touched an app which was currently running.
But I've been using root explorer and it works great. Or if the file is on my computer I use adb push. Or even a flashable zip if you really are worried.
Sent from my SGH-T999 using Tapatalk 2
As he said. Nothing else really needed to be said, good answer.
Sent from my SGH-T999 using xda premium
I used a file browser app and installed it over the existing one. Every time after that I was getting an error something .goo not responding. (SecPhone.apk) Trying to restor the call recording feature. I ended up doing a restore back to square one. No if I use root-explorer will it make a difference or should I use dab push? I would not know how to begging with that. could I use terminal and instal like I would if I was using the cwmtr.img install directions. but direct it to system/app?
na4hotx said:
I used a file browser app and installed it over the existing one. Every time after that I was getting an error something .goo not responding. (SecPhone.apk) Trying to restor the call recording feature. I ended up doing a restore back to square one. No if I use root-explorer will it make a difference or should I use dab push? I would not know how to begging with that. could I use terminal and instal like I would if I was using the cwmtr.img install directions. but direct it to system/app?
Click to expand...
Click to collapse
Which file browser app did you use? Did you remember to set the permissions for the newly copied apk? Permissions in /system/app should be rw-r--r
Sent from my SGH-T999 using Tapatalk 2
No I did not set permissions. If I use Root-Explorer will that allow me to set permissions? I used Smanager to move the file.
Ctrl+C then Ctrl+V
Can I use RootExplorer to zip file them flash it? Or just move using RE?
na4hotx said:
No I did not set permissions. If I use Root-Explorer will that allow me to set permissions? I used Smanager to move the file.
Click to expand...
Click to collapse
Yes, Root Explorer will allow you to change permissions as long as you aare rooted.
na4hotx said:
Can I use RootExplorer to zip file them flash it? Or just move using RE?
Click to expand...
Click to collapse
Root Explorer is a file manager, use to move the file to the appropriate folder and set permissions and reboot. I know you can create a zip & tar file, don't know if it would be flashable though.
na4hotx said:
No I did not set permissions. If I use Root-Explorer will that allow me to set permissions? I used Smanager to move the file.
Click to expand...
Click to collapse
Smanager isn't a good file system tool. Try root browser lite tap and hold functioning is perfect. Has options for copy paste and permissions
saldebot said:
Yes, Root Explorer will allow you to change permissions as long as you aare rooted.
Root Explorer is a file manager, use to move the file to the appropriate folder and set permissions and reboot. I know you can create a zip & tar file, don't know if it would be flashable though.
Click to expand...
Click to collapse
Yeah it can't make flashable zips. Just storage zip files
Sent from my SGH-T999 using Tapatalk 2
I am using Frosty JB v6. I asked in the developer thread and I got a reply http://forum.xda-developers.com/showthread.php?t=1874063&page=546
I tried using RootExplorer and I was still getting error messages after be booting. Is there a way to make it flash able? What am I doing wrong or is it just never going to work? Do I need to start looking for a rom that has it functional on the build?
Did you reset permissions to match the rest of the files in the folder?
And you probably need to wipe dalvik and cache in recovery.
Sent from my SGH-T999 using xda app-developers app
na4hotx said:
I am using Frosty JB v6. I asked in the developer thread and I got a reply http://forum.xda-developers.com/showthread.php?t=1874063&page=546
I tried using RootExplorer and I was still getting error messages after be booting. Is there a way to make it flash able? What am I doing wrong or is it just never going to work? Do I need to start looking for a rom that has it functional on the build?
Click to expand...
Click to collapse
Use root browser lite, you can get it from the market it's a freeware then copy the app you want to system/app ....no permission stuff needed
DocHoliday77 said:
Did you reset permissions to match the rest of the files in the folder?
And you probably need to wipe dalvik and cache in recovery.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
this. Also, you didn't odex your ROM did you?
deziguy420 said:
Use root browser lite, you can get it from the market it's a freeware then copy the app you want to system/app ....no permission stuff needed
Click to expand...
Click to collapse
Please know what you're talking about first before posting suggestions. Especially when it pertains to system directory permissions. System/app directory uses rw-r--r-- as the permissions. Meaning owner has read write permissions while everyone else only has read. Not setting permissions correctly can lead to many many many issues.
Sent from my SGH-T999 using Tapatalk 2
There is application on the market called system application mover
Sent from my SGH-T999 using xda premium
I vote for a rom that has it and works where you don't need to mod stuff, yet. Learn all this stuff with something you don't need, like a sound mod (DSP) or something.
simple video
http://www.youtube.com/watch?v=mJGbiSkom9M

[GUIDE] ODEX any 4.1.1 JB ROM from official OTA

This will essentially odex all files in your /system/framework and it will do it straight from the Android UI via my personal favorite app ... this is good because it frees up memory, makes UI transitions cleaner, and reduces DVM size.
NOTE: DO NOT TRY TO ODEX YOUR /SYSTEM/APP/ DIRECTORY THEN TRY TO ODEX USING THIS METHOD. YOU WILL HAVE A BAD DAY. 0_o framework must me odexed before system apps
1. download the odex.zip here --> PURPLE
2. extract all files with a file explorer, i prefer root explorer or fx file explorer
3. place the extracted folder and all of it's contents in /data/local/tmp ... so you should have /data/local/tmp/odex/+(misc files in new odex directory)
4. give the new directory and ALL contents FULL permissions - full read, write, and execute perms. You will need to set them all individually. the odex folder, and all contents. your file explorer, if it has taken you this far, should be able to accomplish this. Also, mount your system as writeable as well!
5. download this app TERMINAL EMULATOR dont worry it is free. open the app
Type the following commands - each new line should be executed with the enter key:
su (hit enter, it will ask for root)
/data/local/tmp/odex/odex (hit enter, you will see
you will see a bunch of outputs. there will be a message when it is done (honestly, like 10 seconds if that) saying something like "enjoy your hybrid ROM"
type "reboot recovery" (without the quotes)
device will boot into recovery immediately after you hit enter...
wipe cache and dalvik cache once more each, and reboot your device. PROFIT :good:
*Disclaimer - I don't take donations, just hit the thanks button, and the thanks button for anybody I mention in my thread.
typing su in doesn't request root permission. I am definitely rooted, not sure what's going on.
EDIT: Got it, the su was working but I didn't realize that it might just change from $ to # instead of asking for permission. I also had to grant not just the directory, but all of the files in the odex folder full permission, which might have just been a reading comprehension error on my part. Worked flawlessly after that. On Infamous 2.2
deadpass said:
typing su in doesn't request root permission. I am definitely rooted, not sure what's going on.
EDIT: Got it, the su was working but I didn't realize that it might just change from $ to # instead of asking for permission. I also had to grant not just the directory, but all of the files in the odex folder full permission, which might have just been a reading comprehension error on my part. Worked flawlessly after that. On Infamous 2.2
Click to expand...
Click to collapse
your super user app is probably set by default to allow access. also, i will update the OP to be a little more clear about setting the perms on the directory AND it's contents.
thanks
Forgot to mention that you have to mount your system to writeable.
Sent from my SGH-T999 using xda app-developers app
---------- Post added at 09:32 PM ---------- Previous post was at 09:18 PM ----------
Oh and the old odexme.apk works fine for odexing jb roms.
Sent from my SGH-T999 using xda app-developers app
TarHeelTrigger said:
Forgot to mention that you have to mount your system to writeable.
Sent from my SGH-T999 using xda app-developers app
---------- Post added at 09:32 PM ---------- Previous post was at 09:18 PM ----------
Oh and the old odexme.apk works fine for odexing jb roms.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Ah, yes. I need sleep. Lol
So... shouldn't I see "odex" files in /system/app?
So what's the difference between this and the app that does it automaticly?
Sent from my SGH-T999 using xda app-developers app
I'll wait for the app
Sent from my SGH-T999 using xda premium
scifan said:
So... shouldn't I see "odex" files in /system/app?
Click to expand...
Click to collapse
I don't see the .odex files either...
Sent from my SGH-T999
scifan said:
So... shouldn't I see "odex" files in /system/app?
Click to expand...
Click to collapse
Nabeel10 said:
I don't see the .odex files either...
Sent from my SGH-T999
Click to expand...
Click to collapse
This Odex's the files in your /system/framework
NOT /system/app
WarlockW said:
This Odex's the files in your /system/framework
NOT /system/app
Click to expand...
Click to collapse
Ok, that explains a few things... I'd expected the /system/app folder to also be odexed
Think I restored from Nandroid because I couldn't tell what changed....
Sent from my SGH-T999 using Tapatalk 2
scifan said:
So... shouldn't I see "odex" files in /system/app?
Click to expand...
Click to collapse
No, you shouldn't, because this odexes /system/framework/* not /system/app/*.all
Also, please for the love of hot Asian women people... please read the directions carefully in the OP lol...
If you have used the odex me app... don't use this method... if you odex your system apps, THEN try to odex framework after, you will have issues.
cobraboy85 said:
No, you shouldn't, because this odexes /system/framework/* not /system/app/*.all
Also, please for the love of hot Asian women people... please read the directions carefully in the OP lol...
If you have used the odex me app... don't use this method... if you odex your system apps, THEN try to odex framework after, you will have issues.
Click to expand...
Click to collapse
Understood. Don't odex system apps BEFORE odexing framework, but can we odex system apps AFTER odexing /system/framework? Or better yet, is there any reason to odex system apps after odexing /system/framework?
Thanks in advance for your reply!
__McB__ said:
Understood. Don't odex system apps BEFORE odexing framework, but can we odex system apps AFTER odexing /system/framework? Or better yet, is there any reason to odex system apps after odexing /system/framework?
Thanks in advance for your reply!
Click to expand...
Click to collapse
Yes after you odex your framework you can odex system apps.
The main thing about odexing is your apps load faster and it frees up memory in your /data/ partition because you are removing a good chunk of dalvik cache.
Also does improve performance just a tick, by that I mean general UI responsiveness is improved.
Thanks!
just for the sgh3 or would any work like sgh2?
wondering if this would work for the s2 :fingers-crossed:
DAD12345 said:
wondering if this would work for the s2 :fingers-crossed:
Click to expand...
Click to collapse
No it won't.
Boot class path is different.
But if you change that part in the script it will work.
Will this work on all jb roms. Like 4.2 or is it just for s3 4.1?
sent via note 2 in boss mode @ quad core 1.9ghz
Didn't work for me and the dude was so rude that I asked really made me like unfollow him
Sent from my SGH-T989 using xda app-developers app
It didn't really work, and I gave full permissions as well, should I try again?
Sent from my SGH-T999

Odex ANY touchwiz ROM for the GN2 #moreperformance

“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

Categories

Resources