delete - Nexus 9 General

Nvm
delete me

USBhost said:
in terminal
su
mount -o remount rw /system
rm -rf /system/app/*/*/./*.odex
rm -rf /system/priv-app/*/*/./*.odex
Click to expand...
Click to collapse
From what I see that command will not deodex. It will delete the odex files and crash your system.

prdog1 said:
From what I see that command will not deodex. It will delete the odex files and crash your system.
Click to expand...
Click to collapse
Hmm i did that and im fine
So thats not how you deodex
So how do you do that in terminal

USBhost said:
Hmm i did that and im fine
So thats not how you deodex
So how do you do that in terminal
Click to expand...
Click to collapse
look inside the apk and see if have a classes.dex. Also look to see if the odex files are actually gone. File structure is different. In system/app there are app folders. Inside folder is apk, arm64 folder and lib folder. Inside arm folder is odex file. If do then it worked but don't see how. Classes.dex contains all the smali code for the apk and is the same as what is in the odex file.
---------- Post added at 08:26 PM ---------- Previous post was at 08:17 PM ----------
rm -rf odex*
rm is the command to delete things.
-r means recursively delete directories. -f means don't ask questions, and don't complain. -rf means both of those things together.
odex* expands to the names of files that start with "odex" (including directory names, since in Unix-like systems -- including Android -- directories are really just a special kind of file.)
More than likely the script you typed in terminal didn't work or all your apps should have crashed..

prdog1 said:
look inside the apk and see if have a classes.dex. Also look to see if the odex files are actually gone. File structure is different. In system/app there are app folders. Inside folder is apk, arm64 folder and lib folder. Inside arm folder is odex file. If do then it worked but don't see how. Classes.dex contains all the smali code for the apk and is the same as what is in the odex file.
Click to expand...
Click to collapse
so your saying what i did should have not worked
but all the odex files are gone from my system
Edit i know -rf was not needed just remembered

USBhost said:
so your saying what i did should have not worked
but all the odex files are gone from my system
Click to expand...
Click to collapse
It caches those files on boot. If cache is cleared they will FC and no way to get them back without flashing the stock image. Real deodex decompiles the apk and odex file and combines them into one file. Odex becomes classes.dex in the apk file.

prdog1 said:
It caches those files on boot. If cache is cleared they will FC and no way to get them back without flashing the stock image. Real deodex decompiles the apk and odex file and combines them into one file. Odex becomes classes.dex in the apk file.
Click to expand...
Click to collapse
o ok

USBhost said:
o ok
Click to expand...
Click to collapse
Your ok if never clear cache.

Related

adding apps to rom package

If I wanted to add all of my apps to the Rom package to avoid reinstalling them one by one where would I add them before resigning it and flashing?
rom116 said:
If I wanted to add all of my apps to the Rom package to avoid reinstalling them one by one where would I add them before resigning it and flashing?
Click to expand...
Click to collapse
/data/app
if the folder isnt there then make it
10 char
data/app
Do you mean system/app?
He means /data/app/
What about adding system apps (Mobile Defense or PDFViewer)? Do you have to do anything different?
If you search my posts in replies, there is a script that I used to install all my apps when I reflash.
...
..
.
jcase
The phone looks for apps in /data/app as well as /system/app
Disk space on the system image is very limited though, so if you're sticking a bunch of apps in there you'll run out of space though, which is why you'll want them in /data/app instead.
I keep a backup of all of my programs in a folder on my sd card called apps. I can install all my apps after a flash in under a minute and its a lot easier to keep the folder up to date than to edit every rom package to put them in there.
Either from a terminal downloaded from the market or adb on your pc use:
su
cd sdcard/apps(or folder name if apps is not used)
busybox install *.apk /data/app
You will need to add the following to lines to the update script as well If you do not Set_Perm it will not allow you to install new apps on a clean format, Also if a app crashes on launch install it manually then go into the data/dalvik-cache folder and copy the corrosponding .odex file and have it install to the data/dalvik-cache Enjoy.
copy_dir PACKAGE:data DATA:
set_perm 1000 1000 0771 DATA:app
pjsockett said:
I keep a backup of all of my programs in a folder on my sd card called apps. I can install all my apps after a flash in under a minute and its a lot easier to keep the folder up to date than to edit every rom package to put them in there.
Either from a terminal downloaded from the market or adb on your pc use:
su
cd sdcard/apps(or folder name if apps is not used)
busybox install *.apk /data/app
Click to expand...
Click to collapse
Where do you download the apk files so that you can do this? I'm sorry, but Im new to this and your idea sounds very easy to do.
Make a folder called data. Put a folder called 'app' inside of it.
Add to update script:
copy_dir PACKAGE:data DATA:
Or, just do it (as i do) in a seperate update.zip. The update script is META-INF\com\google\android\update-script.
Thanks
xtremeskier97 said:
Where do you download the apk files so that you can do this? I'm sorry, but Im new to this and your idea sounds very easy to do.
Click to expand...
Click to collapse
Probably the most user friendly way to get your apps would be to download astro file manager and use the apps backup feature. It puts all of the apps into a backup folder on your sd card. Other wise you could do
cp data\app\* \sdcard\apps
from an adb shell which would be the faster option but trickier if your not familiar with it
FireSokar said:
You will need to add the following to lines to the update script as well If you do not Set_Perm it will not allow you to install new apps on a clean format, Also if a app crashes on launch install it manually then go into the data/dalvik-cache folder and copy the corrosponding .odex file and have it install to the data/dalvik-cache Enjoy.
copy_dir PACKAGE:data DATA:
set_perm 1000 1000 0771 DATA:app
set_perm 1000 1000 0771 DATA:data
set_perm 1000 1000 0771 DATA:dalvik-cache
**EDIT*** Also if your app Force Closes find /data/data folder and find the folder that matches your app and copy it to /data/data of your rom folder before packaging and add it.
Click to expand...
Click to collapse
Re-Read the entire quoted post its been corrected to help with any issue you will run into during this.
Instead of
cd sdcard/(folder)
busybox install *.apk /data/app
is there a command such as
install sdcard/(folder)/*.apk /data/app
Or should I just try and find out and hope my phone won't blow up. Not home at the moment to test it.
When i add a folder named data/app to a rom and try flashing it it says no digest for the apps i tried to add anyone help?
pjsockett said:
Probably the most user friendly way to get your apps would be to download astro file manager and use the apps backup feature. It puts all of the apps into a backup folder on your sd card. Other wise you could do
cp data\app\* \sdcard\apps
from an adb shell which would be the faster option but trickier if your not familiar with it
Click to expand...
Click to collapse
I just tried that and and it was giving me some errors.
what i found to work was to do:
1. make sure there is a folder called "apps"
2. adb shell
3. cp data/app/* /sdcard/apps
(notice the difference in the slashes (forward vs backwards)
pjsockett said:
I keep a backup of all of my programs in a folder on my sd card called apps. I can install all my apps after a flash in under a minute and its a lot easier to keep the folder up to date than to edit every rom package to put them in there.
Either from a terminal downloaded from the market or adb on your pc use:
su
cd sdcard/apps(or folder name if apps is not used)
busybox install *.apk /data/app
Click to expand...
Click to collapse
+1
Thank you this has come in handy, and you still get Market Update Notifications!!

[Q] Deleting a folder with a ridiculously large amount of subfolders

For some reason the app Text+ has made a folder in sdcard/android/data with a massive amount of subfolders.
After entering com.gogii.textplus, there are two initial subfolders. The subfolders contained within them both repeat their own 5 or so folder sequence (For example: storage/emulated/0/data/com.gogii.texplus/storage/emulated/0/data/com.gogii.textplus....etc etc
I just want to delete the damn thing, but every app I use crashes when I try to delete it. I have no idea how deep the rabbit hole goes, but ES file manager did mange to over 10k before crashing.
Any advice?
silverwater25 said:
For some reason the app Text+ has made a folder in sdcard/android/data with a massive amount of subfolders.
After entering com.gogii.textplus, there are two initial subfolders. The subfolders contained within them both repeat their own 5 or so folder sequence (For example: storage/emulated/0/data/com.gogii.texplus/storage/emulated/0/data/com.gogii.textplus....etc etc
I just want to delete the damn thing, but every app I use crashes when I try to delete it. I have no idea how deep the rabbit hole goes, but ES file manager did mange to over 10k before crashing.
Any advice?
Click to expand...
Click to collapse
Did you open /Setup/Apps and delete the app itself rather than just trying to delete the folders?
yes
lewmur said:
Did you open /Setup/Apps and delete the app itself rather than just trying to delete the folders?
Click to expand...
Click to collapse
Yep, haven't had it installed for awhile actually
Perhaps via adb shell
or via a terminal emulator
$ su
# rm -rf /data/media/0/data/com.gogii.textplus/
Worth a try, anyway.
Any reason you are using /storage/emulated as the root instead of /data/media/ ?
nothing doing
bftb0 said:
Perhaps via adb shell
or via a terminal emulator
$ su
# rm -rf /data/media/0/data/com.gogii.textplus/
Worth a try, anyway.
Any reason you are using /storage/emulated as the root instead of /data/media/ ?
Click to expand...
Click to collapse
It was in sdcard/android/data/, but I tried to cut and paste it somewhere else to she if that would help. Now its in another folder in the /sdcard
silverwater25 said:
It was in sdcard/android/data/, but I tried to cut and paste it somewhere else to she if that would help. Now its in another folder in the /sdcard
Click to expand...
Click to collapse
Have you tried using RootExplorer to delete the parent folder?
Yes. I've also tried ES file manager and Rom Toolbox.
Twrp has a built in file manager... I don't know if cwm has one too (if you use cwm)
Sent from my Nexus 7 using xda premium

Problem with Re-ODEX

Hi , I have some problems.
I take services.jar and services.odex from last official 4.3 and deodex him.Make some changes in classes.dex and then re-odex again.
I use this command in terminal emulator to ODEX back
Code:
dexopt-wrapper /sdcard/app/services.jar /sdcard/app/services.odex /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/sec_edm.jar:/system/framework/seccamera.jar:/system/framework/scrollpause.jar:/system/framework/stayrotation.jar:/system/framework/smartfaceservice.jar:/system/framework/abt-persistence.jar:/system/framework/secocsp.jar:/system/framework/sc.jar:/system/framework/commonimsinterface.jar
After that i copy signature from original services.odex to patched services.odex
Code:
busybox dd if=/sdcard/app/original.odex of=/sdcard/app/patched.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
Make CWM zip and flash it ,wipe cache and dalvik-cache , reboot and phone goes to bootloop.
Where I was wrong ?
Any ideas , no one knows ?
Look for a script called "dexo" on XDA. You flash the script, which installs it into the bin folder, then you can use the terminal to run a command like "dexo -all" to redoex system and framework.
It works 100% for me. No hassle.
Kryten2k35 said:
Look for a script called "dexo" on XDA. You flash the script, which installs it into the bin folder, then you can use the terminal to run a command like "dexo -all" to redoex system and framework.
It works 100% for me. No hassle.
Click to expand...
Click to collapse
Yea , I know it , but I want to reodex only one .apk or .jar , not all folder.
I found solution for now
Well, if ALL the files in the folder are already odex'd, it will simply skip those and do the one that isn't (if that makes sense).
mom4ence said:
Yea , I know it , but I want to reodex only one .apk or .jar , not all folder.
I found solution for now
Click to expand...
Click to collapse
You can set up dexo to only reodex specific files with a .txt file on your sdcard. What was your solution you found, btw? Having similar issues myself

Copying folder to another in zip packages

Hi,
I want to create an updater-script file that copies /sdcard/data to /data,
How can i do this? dd and cp commands say 'cannot find /sdcard/data/*: no such file or directory'
I don't want to integrate files in the zip package
Is there a way or a command to do that?
I searched on the web, but seems i cannot a working solution, maybe you can anwser
Well your query is wrong.updater-script is for flashable zips and in your case you don't want to integrate the files in the zip right?
Try using this command via terminal :
#cp ~/sdcard/data/*your data /data
what are you trying to do?? o_0
files in sdcards have ownership system:sdcard_rw and permissions something like ----rwx-r-x
to copy files with cp to /data.. you need to be root on terminal/adb shell
the copy will change ownership to root:root while keeping permissions intact...
with such odd permissions and ownership for files in /data .. you are looking at a bootloop..
you'd have to fix permissions for each and every thing incase you really need to copy it
can you tell what are you trying to copy.. and what's in /sdcard/data :|
Hi, sorry for my late reply
I will try that command and post result, :good:
It worked, thanks

[MOD] [I8200N] deodexed stock rom apps

DEODEXED APPS​
Here is the stock app and framework files from new firmware I8200NXXUAOA1 for Samsung Galaxy VE (I8200N).It have all apps so and the bloatware.After install you can delete any bloatware you want.Maybe it is safe for all versions!!!
What is Odex and Deodex ROM
What is an ODEX file?
In Android file system, applications come in packages with the extension .apk.
These application packages, or APKs contain certain .odex files whose supposed function is to save space.
These ‘odex’ files are actually collections of parts of an application that are optimized before booting.
Doing so speeds up the boot process, as it preloads part of an application.
On the other hand, it also makes hacking those applications difficult because a part of the coding has already been extracted to another location before execution.
What is an DEODEX file?
Deodexing is basically repackaging of these APKs in a certain way, such that they are reassembled into classes.dex files.
By doing that, all pieces of an application package are put together back in one place, thus eliminating the worry of a modified APK conflicting with some separate odexed parts.
So, Deodexed ROMs (or APKs) have all their application packages put back together in one place,
allowing for easy modification such as theming. Since no pieces of code are coming from any external location,
custom ROMs or APKs are always deodexed to ensure integrity.
all apps are full working and not yet any bugs
Code:
[COLOR="red"][B][U]* I can give ABSOLUTLEY no gurantee!!
All you do with your phone will be on your own.
I'm not responsible if your phone will brick or whatever...[/U][/B][/COLOR]
Code:
[B][COLOR="Red"]Rrequirements :[/COLOR][/B]
[B]Root [URL="http://forum.xda-developers.com/galaxy-s3-mini/general/s-iii-mini-ve-i8200-n-t2826565"]Hot To Root[/URL]
Adb [URL="http://forum.xda-developers.com/showthread.php?t=2588979"]How to Install[/URL]
Phone drivers[/B]
How To Install :
1. download the zip file
2. extract it
3. connect your phone
4. usb debugging on
3. paste the app and framework file into
GT-I8200N\Card folder which you find it on your computer
4 .install adb drivers
5. open cmd and type
Code:
adb shell
[COLOR="red"][I][SIZE="3"](if you are using adb shell in su for the first time,
keep phone screen on.
After entering "su" code, super user request prompt in phone.
Press allow )[/SIZE][/I][/COLOR]
su
stop
mount -o rw,remount /system/ /system/
cp /storage/extSdCard/app/* /system/app/ (wait...)
rm /system/app/*.odex (wait...)
cp /storage/extSdCard/framework/* /system/framework/ (wait...)
rm /system/framework/*.odex (wait...)
mount -o ro,remount /system/ /system/
reboot
How To check if you done
1. open cmd and type
Code:
adb shell
su
cd /system/app
or
cd /system/framework
ls
2. now you see all your system apps.if doesnt exist .odex file and you dont have any errors or bugs your ok
DOWNLOAD:
the file
credits:
@Snoop05 for adb installer
@j.posarekar70 for deodex guide
This work for the version i8200L?
Nice all ok
Test done
SAMSUNG
GALAXY S3 MINI
GT-I8200N
Willian182 said:
This work for the version i8200L?
Click to expand...
Click to collapse
try it i dont know.take a backup first.maybe you have error with nfc you can delete the apk .try it and tell me please
..................
Como lo descargo soy nuevo en esto.
Sent from my GT-I8200N using XDA Free mobile app
Thanks for this apps pack! It saves my phone. Best regards.
download link
download link is broken
Is it possible to unroot the deodexed stock rom?
I got some Apps which refuse to work if they detect a rooted phone...

Categories

Resources