[Q] Editing bin and xbin files - Android Q&A, Help & Troubleshooting

can any one tell how to edit binary files present in system and also xbin files.
is their any way to edit .ko and .so files.

Related

[Q] /cache dir

Using root explorer I see my /cache directory contains a lot of .apk files (like "Downloadfile-x.apk where x is from 1 to 12) and some .jpg (corr.) files.
What kind of reposotory is it? Can I remove theese files? Is it safe?
after a backup I removed all files.
No problem

[Q] Is it possible to deodex a framework.odex and odex it with baksmali/smali?

For some reason I need to deodex a framework.odex, that is the /system/framework/framework.odex.
Look at this, there are 2 files list in /system/framework/:
[email protected]:~/experiement# adb -d shell ls /system/framework/frame*
/system/framework/framework.odex
/system/framework/framework.jar
using baksmali, I need to specify -d <Dir>, where <DIR> is a dir containing framework.jar etc.
Obviously this is a recursive loop.
So Is it possible to deodex framework.odex?
BTW, below are my commands to deodex a framework.odex, and its output.
[email protected]:~/experiement# baksmali -a 15 -x framework.odex -d .
#make some changes to some file in out dir and smali it
[email protected]:~/experiement# smali -a 15 -x -o framework.odex.m out/
[email protected]:~/experiement# file framework.odex*
framework.odex: Dalvik dex file (optimized for host) version 036
framework.odex.m: Dalvik dex file version 036
It sound that framework.odex is an odex file while framework.odx.m is not an odex file.
So If I push framework.odex.m to /system/framework/framework.odex, the phone will not boot, I believe.
Is there a way to turn out dir to a new framework.odex file and push it to /system/framework/framework.odex, and the phone will boot OK?
whogiawho said:
It sound that framework.odex is an odex file while framework.odx.m is not an odex file.
So If I push framework.odex.m to /system/framework/framework.odex, the phone will not boot, I believe.
Click to expand...
Click to collapse
I bricked my phone that way.
The smali will not create an odex file, its a dex file.
(Yet, the baksmali will actually read an odex, strange enough.)
You should copy the dex as classes.dex one into the original jar (with 7zip).
If you want the odex you need to "dexopt-wrapper" this new jar (with the classes.dex inside).
I dont think you need the odex for your new jar to work, the classes.dex inside the new framework.jar should suffice. As long as you replace the original framework.jar with with your new jar and delete the original framework.odex. (which no longer fits your new framework.jar anyhow)
Creating the new ODEX on top is optional.
In fact I did all that and it still bricked my phone

[Q] Custom zip how to create a /data/app folder?

I have created a rom zip file with Archi Kitxhen and it Works well, the dir inside the zip file are:
/META-INF
/system
boot.img
I want to add /data/App and be able to fill up with apps that will be in /data/App automaticaly after flashing.
How can I do it manualy?
I tried Android Kitchen in Linux but my rom dont flash after using it
In /META-INF/com/google/android I have:
update-binary
updater-script
I want the Zip file to flash to contain
/Data/App
/META-INF
/system
boot.img
Thank you for the help
You can try the app zipme on playstore
http://forum.xda-developers.com/showthread.php?t=2633379
Thanks I found that I could use Android Kitchen too

Root Explorer Permission change

So im very confused
I'm try to edit the Boot sound.
So i maked my own PowerOn file (sound) and now i changed the Permissions of the file
But where did the PowerOn.ogg have to move (copy)?
My 7 sec. PowerOn.Ogg was already in the /system/media/sounds/ui
And in /system/etc, too
But it didnt work
ByTheWay : in the etc folder are 0 sound files
And in the media folder too (except for the ui folder there are some sounds, but no PowerOn file
Use Rom Tool Box or Root Explorer which must be mounted with -r-w permissions.
and until unless your file is placed under /root folder you can't change the permission for the file.
No chanche
I already mounted as R/W but doesnt work
I said every ROOT BROWSER!!! So romtoolbox is included to Every.
Master english i know

How to change zip files to apk files

How can I change zip files to apk files using es file explorer

Categories

Resources