[Guide]Some Hints on Deodexing JVR - Galaxy S I9000 Android Development

It seems that deodexing JVR is a bit pain, I installed JVR and tried to deodex but found out busybox not installed,I tried several kernels but the situation persists tried to install busybox from the market and didnt work
anyhow here is how I did
1-Install JVR rom
2-flash CF kernel 4.1 for JVR to have root access (Download from this thread)
3-use Xultimate to pull the framework and application files and deodex them
(download xultimate from here)
Don't forget to delete infoalarm.apk and infoalarm.odex before starting deodexing, this application will stop your work.
you may add this application with the odex file manualy by copying to your /system/app
4-unrar and copy the attched file which is busybox to your sdcard and then copy to /system/xbin
then copy the files from xultimate to your sdcard (done_frame & done_app)
5- your phone to be on debug mode, go to your adb directory and do as below
Code:
adb shell
su
stop
mount -o rw,remount -t ext3 /dev/block/stl9 /system
cp /sdcard/done_app/* /system/app/
cp /sdcard/done_frame/* /system/framework/
rm /system/app/*.odex
rm /system/framework/*.odex
mount -o ro,remount -t ext3 /dev/block/stl9 /system
reboot
you may need to rm the files before cp as there might be lack of space on your /system
Wish it could help

No need for steps 4+5
Just copy your files from done_app and done_frame in an update.zip.
Within your update.zip you have the folders META-INF/com/google/android (with update binary and updater-script) and system/app + system/framework (with your files).
Your updater-script might look like this
Code:
run_program("/sbin/mount", "/system");
delete_recursive("/system/app");
delete_recursive("/system/framework");
package_extract_dir("system", "/system");
Btw,
.../dev/block/mmcblk1p21 /system
Click to expand...
Click to collapse
?
/system is on dev/block/stl9

please tell me, what has busybox to to with deodexing a ROM
JVR deodexed just fine if you use the right methods.
Fully deodexed it right after release, only drawback is (just like JVQ) the browser is lagging. But that we all know

SamHaLeKe said:
please tell me, what has busybox to to with deodexing a ROM
JVR deodexed just fine if you use the right methods.
Fully deodexed it right after release, only drawback is (just like JVQ) the browser is lagging. But that we all know
Click to expand...
Click to collapse
Busybox has nothing to do with deodexing, I just encountered the problem on my phone after flashing JVR with different kernels there was no busybox in /system/xbin so I could not use commands like cp or mounting and ...
I thought some guys like to deodex themself and make their own custom rom as ramad is not going to release a deodexed one for JVR (read this), thus you may follow the method on the first post for deodexing (which needs busybox) or use the other method as the gentelman says on the second post

No need to skip infoalarm. No Problems here while deodexing it...
NVM: Found out its in data now. I will delete it anyway.
EDIT: I dont know what your problem is, but i have busybox with CF Kernel... So this guide sees to be pointless.

yipee......i have deodexed my firmware....awesome...thanks OP

can some one upload the JVR firmware deodexed please

Related

JF 1.5 theme "template"

Does anyone have the slimmed down version of 1.5 we can use just for theming? All the "themes" I see here are the whole 1.5 update, which is close to 40MB.
Here ya go, enter these commands into Terminal Emulator...
Code:
mkdir /sdcard/media/audio/ringtones
mkdir /sdcard/media/audio/notifications
cp /sytem/media/audio/ringtones /sdcard/media/audio/ringtones
cp /system/media/audio/notifications /sdcard/media/audio/notifications
rm -r /system/media/audio/ringtones
rm -r /system/media/audio/notifications
bmfc187 said:
Here ya go, enter these commands into Terminal Emulator...
Code:
mkdir /sdcard/media/audio/ringtones
mkdir /sdcard/media/audio/notifications
cp /sytem/media/audio/ringtones /sdcard/media/audio/ringtones
cp /system/media/audio/notifications /sdcard/media/audio/notifications
rm -r /system/media/audio/ringtones
rm -r /system/media/audio/notifications
Click to expand...
Click to collapse
That just moves your notifications to the sd card, and has nothing to do with creating a template for theming, but thanks for the effort.
I've been trying with process of elimination of what can be removed and what can't, and not loop your phone. Unfortunately I don't know enough about it to know how to properly make the template, and haven't had much luck in trying to make one. I'm sure there will be one when the RC build is released.
The important thing to remember, is you need to change the update-script - otherwise it formats the /system partition causing loops when you remove files.
I could throw a JF1.5 template together that only contains the system apps and the framework-res.apk, but I'd rather not host it for too long. If I put it up, PM you a link, would you download it and take care of the hosting part?
Edit - Alright, I threw something together, should work as a template. Like I said above, all it contains are the system apps, and framework-res.apk. The install script is only to copy those files over, and it is signed. I will PM you a link, please let me know when you have it downloaded.
tehseano said:
That just moves your notifications to the sd card, and has nothing to do with creating a template for theming, but thanks for the effort.
Click to expand...
Click to collapse
Does anyone have the slimmed down version of 1.5 we can use just for theming? All the "themes" I see here are the whole 1.5 update, which is close to 40MB.
Click to expand...
Click to collapse
Sounded to me like he was requesting a "lite version"...
Alright, I have made one, this will also restore the default theme (quicker than re-flashing the full update), including stock text colors. I am going to post a new thread for it though - to get better attention.
Here is the thread I started with the template.

Adfree not working

It's more of a question as to how some ROMs get it working without S-OFF (such as MIUI). How is this achieved?
I've made my own ROM and it's all up and running nicely and AdFree installs/updates to /data by symlinking but ads still appear. Anyone have a solution as I don't really wanna S-OFF unless absolutely neccessary (nearly bricked my phone reverting to stock last time so cba to do it again)
And I've search 'adfree not working' and didn't get an answer for this query so don't flame me - if I'd found the answer this thread wouldn't exist. If there IS a thread detailing how to fix it then if you can direct me I'd appreciate it
OK, I'm a dumbass. Changed my search criteria and found the fix but no idea how to write it into the ROM (want everything in one ROM so don't have to flash multiple ZIPs). Anyone wanna give me a hand or is it as simple as adding it the update script?
I know there is an update.zip in the old cm6 nightly thread for setting up adfree. I think it just copied hosts to data then created the link. There's no reason why you can't add this to the end of the update.zip in your rom...but clearing data will probably break adfree so you may aswell make a second update.zip for adfree so you can flash it when you clear data.
Sent from my HTC Desire using XDA App
Use root tools to manage not to get ads from the integrated ad blocker.
Sent from my LeeDroided Desire HD
I've rooted (last night) on my Desire using unrevoked 3.21 - S-On still - installed AdFree and it didn't seem to do anything - still seem to be getting Ads - is this because I need to S-Off then or install a custom rom instead of the standard 2.29.405.5?
You either need S-OFF or use a ROM which includes the symlink from the /system/etc location to your SD card. I can't work out how to include it in a ROM myself but others have successfully
Can't you push the hosts file using ADB?
ok I thought as much from my googling...
is there a 'newbie's guide to S-Off' anywhere obvious?
Just started downloading the ISO from here: http://alpharev.nl/ just couldn't see any instructions...
cheers
EddyOS said:
You either need S-OFF or use a ROM which includes the symlink from the /system/etc location to your SD card. I can't work out how to include it in a ROM myself but others have successfully
Click to expand...
Click to collapse
just use this symlink in ur Rom script.
for old update-script...
Code:
symlink /data/data/hosts SYSTEM:etc/hosts
for new edify updater-script
Code:
symlink("/data/data/hosts", "/system/etc/hosts");
for manually...
Boot into recovery. mount sdcard, system n data then
cp /sdcard/hosts /data/data/hosts
rm /system/etc/hosts
ln -s /data/data/hosts /system/etc/hosts
but u need to have hosts file in ur sdcard for that...
symlink("/data/data/hosts", "/system/etc/hosts");
I did that the other way round - d'oh!!
This happens if I run a check on the update-script:
66/120: symlink /data/data/hosts SYSTEM:etc/hosts
>> WARNING: data/data/hosts not found in working folder
And then I get this if I do add it:
66/120: symlink /data/data/hosts SYSTEM:etc/hosts
>> ERROR: system/etc/hosts found in working folder
EDIT: Sorted, deleted from /system/etc
EddyOS said:
This happens if I run a check on the update-script:
66/120: symlink /data/data/hosts SYSTEM:etc/hosts
>> WARNING: data/data/hosts not found in working folder
And then I get this if I do add it:
66/120: symlink /data/data/hosts SYSTEM:etc/hosts
>> ERROR: system/etc/hosts found in working folder
EDIT: Sorted, deleted from /system/etc
Click to expand...
Click to collapse
No.No...
just remove hosts file from system/etc and place ur ad block hosts file in data/data folder thats all...n symlink it
Code:
symlink /data/data/hosts SYSTEM:etc/hosts
if u trying to run 9. check update-script for errors than u always getting this error...
Code:
66/120: symlink /data/data/hosts SYSTEM:etc/hosts
>> WARNING: data/data/hosts not found in working folder
forget it...

flashplayer 10.3 not working on rooted evo

my flashplayer 10.3 isnt working never did,on rooted 2.2 evo please help,, thank you!!
Uninstall the update then uninstall flash player (the one that was part of the rom). Then navigate to system/lib and delete libflashplayer.so (I think thats the name of it but I forget) if it is still there. Then download and install flash from the market. That should fix it.
lovethyEVO said:
Uninstall the update then uninstall flash player (the one that was part of the rom). Then navigate to system/lib and delete libflashplayer.so (I think thats the name of it but I forget) if it is still there. Then download and install flash from the market. That should fix it.
Click to expand...
Click to collapse
when i try to deleted the lidflashplayer.so it say cannot be deleted the file system is ready-only, need help....
rotzie said:
when i try to deleted the lidflashplayer.so it say cannot be deleted the file system is ready-only, need help....
Click to expand...
Click to collapse
You can use either root explorer or terminal emulator. You would need titanium backup to uninstall the flash that came with the rom.
If you don't have root explorer here are the terminal commands. Press enter after each command.
Code:
su
mount -o rw,remount /dev/block/mtdblock3 /system
cd system/lib
ls
After entering ls you will see a list of all the files in this directory. Look through it and find the one file that says libflashplayer.so
If you have libflashplayer.so then do these next commands
Code:
rm libflashplayer.so
mount -o ro,remount /dev/block/mtdblock3 /system
If you don't have libflashplayer.so just issue the mount command to set the system back to read-only (mount -o ro,remount /dev/block/mtdblock3 /system).
i have rootexplorer and i got i deleted,did not use titanium,but my 10.3 player sits in my apps just saying uninstalling.no date,no force stop nothing....
I had the same problem.. I deleted the app and went to explorer and deleted the folder and reinstalled.. works fine now

[HOW TO] add extra +700mb to Internal memory storage +600-900MB from /system

[Tweak root] add extra +700mb to Internal memory storage from /cache & +600-900MB from /system folders.
just run terminal with root & paste code
su
chmod -R 777 /cache
mkdir /cache/"your-program-folder"
mount -o bind /cache/"your-program-folder" /storage/sdcard0/"your-program-folder"
add extra +600mb (+900mb if you have LiteRom) from /system folder.
su
mkdir /system/share
chmod -R 777 /system/share
mount -o bind /system/share /storage/sdcard0/sharе
before you can write to /storage/sdcard/share mount it RW
su
mount -o rw,remount /system
after every reboot do it again. how add script to startup folder, any Idea?
all work great. I have 4.5GB + 700MB + 800MB internal storage for my music and maps.
But you cant use any OTA updates because your download /cache folder filed now. Remove all data before update
rm -R /system/share/*
rm -R /cache/*
Re: [Tweak root] add extra +700mb to Internal memory storage
Are you sure you got these commands right? And why don't you just make a script to automatically run these commands at boot? You know, so you don't have to keep running the commands over and over? And you have the work "program" spelled wrong. Its spelled with only 1 "m". Program, not programm.
Sent from my XT907 using Tapatalk 2
Re: [Tweak root] add extra +700mb to Internal memory storage
So what happens if you are using your whole internal sd including this 700 megs and you reboot? Does the system freak out?
Sent from my XT907 using Tapatalk 2
Update
sniperkill
absolutely right. And why don't you just make a script to automatically run these commands at boot?
How, do it, init.rc not work.
Clienterror said:
So what happens if you are using your whole internal sd including this 700 megs and you reboot? Does the system freak out?
Sent from my XT907 using Tapatalk 2
Click to expand...
Click to collapse
everything will be fine, just live little more space on /cache (100mb at least)
UPDATE 1st post. add extra +600mb (+900mb if you have LiteRom) from /system folder. Now I have 6GB internal storage for my music and maps.
su
mkdir /system/share
chmod -R 777 /system/share
mount -o bind /system/share /storage/sdcard0/share
before you can write to /storage/sdcard/shear mount it RW
su
mount -o rw,remount /system
But you cant use any OTA updates because your download /cache folder filed now. Remove all before update
rm -R /system/share/*
rm -R /cache/*
serraxer said:
sniperkill
absolutely right. And why don't you just make a script to automatically run these commands at boot?
How, do it, init.rc not work.
everything will be fine, just live little more space on /cache (100mb at least)
UPDATE 1st post. add extra +600mb (+900mb if you have LiteRom) from /system folder. Now I have 6GB internal storage for my music and maps.
su
mkdir /system/share
chmod -R 777 /system/share
mount -o bind /system/share /storage/sdcard0/share
before you can write to /storage/sdcard/shear mount it RW
su
mount -o rw,remount /system
But you cant use any OTA updates because your download /cache folder filed now. Remove all before update
rm -R /system/share/*
rm -R /cache/*
Click to expand...
Click to collapse
Well, make a new folder on your sdcard, I used root explorer. I called it "67tweaks", I then zipped up the folder, then navigated to my zipped folder and I removed the .zip extension (doing it this way allowed me to make a new text document, but theres prolly an easier way, but this is the way i used) and then I long pressed it so it would let me open it up as a text document. I deleted some jibberish that was inside, I then started with #!/system/bin/sh, then space, then pasted your commands under the space and I then placed the file under system/etc/init.d folder. Now every time I boot up, the script gets run. You can also use an app like "ROM toolbox" and go to scripts and just create a new script and select it to run at boot, or you can use SMmanager and create a script to run at boot.
serraxer said:
sniperkill
absolutely right. And why don't you just make a script to automatically run these commands at boot?
How, do it, init.rc not work.
I'm no dev so I wouldn't be able to make a script to run at boot, but if you don't have init.d support you can add a script to your init.qcom.post_boot.sh file in system/etc folder and it should run at boot.
Sent from my HTCONE using Tapatalk 2
Click to expand...
Click to collapse
Looks right to me.
Thanks for the info. I am learning to love my M more and more.
thinks, I'm going to have a try.
serraxer said:
[Tweak root] add extra +700mb to Internal memory storage from /cache & +600-900MB from /system folders.
just run terminal with root & paste code
su
chmod -R 777 /cache
mkdir /cache/"your-program-folder"
mount -o bind /cache/"your-program-folder" /storage/sdcard0/"your-program-folder"
add extra +600mb (+900mb if you have LiteRom) from /system folder.
su
mkdir /system/share
chmod -R 777 /system/share
mount -o bind /system/share /storage/sdcard0/sharе
before you can write to /storage/sdcard/share mount it RW
su
mount -o rw,remount /system
after every reboot do it again. how add script to startup folder, any Idea?
all work great. I have 4.5GB + 700MB + 800MB internal storage for my music and maps.
But you cant use any OTA updates because your download /cache folder filed now. Remove all data before update
rm -R /system/share/*
rm -R /cache/*
Click to expand...
Click to collapse
I cut and pasted this exactly and it doesn't work. Can you please reply with exact sequences. I keep getting mkdir failed for /cache/your-program-folder, File exists
Will this work on a bionic?
Sent from my DROID BIONIC using XDA Premium HD app

[method] change play store download location

Hi guys, today i am here to tell you a method only tested on a galaxy y, but i hope it will work for all. this is a method to change the download location for play store.
WARNING!!!
1. WARRANTY IS NOW VOID.
2. NOT MY PROBLEM IF SOME APP FAIL.
3. PLEASE, PLEASE, PLEASE DO A NANDROID BACKUP BEFORE THIS.
This is a simple code but it needs root for sure. now the necessities are as follows:
1. A complete nandroid backup
2. Root Permissions
3. Any terminal emulator. e.g https://play.google.com/store/apps/details?id=hecticman.jsterm
4. You need to know the default download location and the mount point of sd card( if that is where you want the new download location )
Now let's start.
Just know this that mnt/sdcard will have to be replaced by your sdcard mount point and data/app will have to be replaced by the default download location. i underlined them for easy understanding.
NOT MY PROBLEM IF THIS FAILS AND YOUR PLAY STORE CRASHES. JUST DO A NANDROID RESTORE.
THERE WILL ALREADY BE A $ AT START SO U DON'T HAVE TO PUT IT.
$ su
# mkdir /mnt/sdcard/playstore
# cp -r /data/app/* /mnt/sdcard/playstore
# rm -rf /data/app
# ln -s /mnt/sdcard/playstore /data/app
Click to expand...
Click to collapse
what the code does:
1. Grant super user permissions
2. Make a directory in sdcard named playstore.
3. Copy all items (recursively) from data/app to sdcard/playstore
4.Symlink the new location to fake the original.
Hitting Thanks can help.
and once again PLEASE BACKUP BEFORE THIS AND RESTORE IF NOT SUCCESSFUL.
This is based on the code used by link2sd.
Could you please double check your code fragments?
For me it looks, like you create a directory "playstore", but then copy to a directory "playstore-temp", which will most like not exist at that moment.
The ln you're using can't realy work as long as the /data/app directory is still in place... so you would first need to delete /rename it.
Just my 2¢
thanks dude
DThought said:
Could you please double check your code fragments?
For me it looks, like you create a directory "playstore", but then copy to a directory "playstore-temp", which will most like not exist at that moment.
The ln you're using can't realy work as long as the /data/app directory is still in place... so you would first need to delete /rename it.
Just my 2¢
Click to expand...
Click to collapse
looks like i was drunk making so much mistakes . corrected it.
It's not so simple if you use Link2SD. If you link some apps to sdext partition, some files in /data/app are symlinks which cannont be copied to /mnt/sdcard/playstore as it's FAT32. You have to try to symlink /app/data to folder on sdext partition. Create a folder /data/sdext2/playstore, copy /data/app/* there, delete /data/app and symlink /data/sdext2/playstore as /data/app. Sdext partition uses linux filesystem and all symlinks should work properly. I haven't tested it yet, but will do in a minute.
EDIT:
It doesn't work with Link2SD. Phone hangs on boot. It's probably cause Link2SD app must be directly in internal memory (so in real /data/app, not symlinked). I'll try to symlink /data/data or /data/dalvik-cache to save some internal memory but I doubt it'll work.

Categories

Resources