Hi
When i try to java -jar baksmali.jar -x framework.odex
i get
Code:
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find sup
erclass Ljunit/framework/TestCase;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadSuperclass(ClassPa
th.java:784)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:
668)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280
)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:16
3)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(Cla
ssPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:98)
at org.jf.baksmali.main.main(main.java:278)
Error while loading class Landroid/test/AndroidTestCase; from file framework.ode
x
Error while loading ClassPath class Landroid/test/AndroidTestCase;
G:\SGS 2\Tools to build custom rom\smali\fd>
I think i need to find the PATH for it but on witch jar??
Thanks.
I think you need to tell baksmali to add core-junit to the bootclass path. The command will now be:
Code:
java -jar baksmali.jar -c :core-junit.odex -x framework.odex
Thanks alot MongooseHelix it worked.
Thanks again
MongooseHelix said:
I think you need to tell baksmali to add core-junit to the bootclass path. The command will now be:
Code:
java -jar baksmali.jar -c :core-junit.odex -x framework.odex
Click to expand...
Click to collapse
was very helpfull..
but,
Now how i odex it back again with the core-junit.odex ?
(So that it would be back to how it was)
and then replace the new framework.odex with the old one with the Authentication and signature ?
dex
Anybody can help ??
MongooseHelix said:
I think you need to tell baksmali to add core-junit to the bootclass path. The command will now be:
Code:
java -jar baksmali.jar -c :core-junit.odex -x framework.odex
Click to expand...
Click to collapse
Doesn't work... I get same error. I've been sitting for a full day trying to work this out.
DarkNiz said:
Doesn't work... I get same error. I've been sitting for a full day trying to work this out.
Click to expand...
Click to collapse
put all the files from framework folder together and then try.
who can help how to odex it back again with the bootpath?
demon9 said:
put all the files from framework folder together and then try.
who can help how to odex it back again with the bootpath?
Click to expand...
Click to collapse
Yeah, I figured it out eventually, just forgot to update this thread. Putting it back into odex form is a bit of a hassle. I haven't tried it yet but here is how to do it - http://forum.xda-developers.com/archive/index.php/t-1208320.html
DarkNiz said:
Yeah, I figured it out eventually, just forgot to update this thread. Putting it back into odex form is a bit of a hassle. I haven't tried it yet but here is how to do it - http://forum.xda-developers.com/archive/index.php/t-1208320.html
Click to expand...
Click to collapse
thanks.
maybe do you know how to deal with RTL problem ? i mean which file exactly to change in the framework. this will really help me.
and anyway i will wait for an update if you Succeed to do it...
demon9 said:
thanks.
maybe do you know how to deal with RTL problem ? i mean which file exactly to change in the framework. this will really help me.
and anyway i will wait for an update if you Succeed to do it...
Click to expand...
Click to collapse
I honestly don't know. I eventually gave up. I tried to modify android.policy.odex, so that I could add Reboot, Recovery and Download options to the phone's shutdown event but it ended in constant bootloops after I odexed back the .dex file, so I just did a restore on my phone. I tried this for almost a week but I just can't justify spending more time on it.
Related
As i dont have access to a linux box, would somebody mind uploading an unpacked factoryrs.rfs from the OFFICAL JI6 build?
Uploading it now.
lqaddict said:
Uploading it now.
Click to expand...
Click to collapse
You sir, are a saint!
Here you go http://www.megaupload.com/?d=3DM54Q10
ahh, that rfs isnt unpacked
well does anyone have to skills to unpack it? you can get the actual file from the above post
im pretty sure you need linux to do so, but i might be wrong
*edit* posted tut to unpack it
mopodo said:
I came from HTC Hero to the Samsung Galaxy S GT-I9000
So I had never problems with cooking something up, but in the Galaxy I faced .rfs files and a flashing tool I can't use on linux...
So I searched through some boards to find a way to extract the .rfs files here a working guide for the S I9000.
What you need
Linux (tested with Debian testing)
It's pretty simple, execute this commands as root on your computer
SHORT WAY (thanks to mimocan)
Code:
# mount -o loop factory.rfs /some_dir
LOOOONG WAY
Attatch the rfs file to the loop device
Code:
# losetup /dev/loop0 /somedir/factoryfs.rfs
Create a directory to mount the device
Code:
# mkdir /somedir/mnt
Mount the device
Code:
# mount /dev/loop0 /somedir/mnt
the content of the rfs is NOT saved on the sdcard! you have to copy it!
Now you can copy the content from the /sdcard/tmp directory to the sdcard
Code:
# cp -R /somedir/mnt /somedir/factoryfs
hope this is helpful for someone
Click to expand...
Click to collapse
You can unpack rfs by loading it through magiciso on windows
Free trial version will work fine hehe
oswade said:
You can unpack rfs by loading it through magiciso on windows
Free trial version will work fine hehe
Click to expand...
Click to collapse
looks just like ultra ISO, and i have ultra ISO ill check it out
uhhh? adb pull /system? and rar it up? or adb pull /?
if you want the full thing? not that complex
Also, You can get a VM setup. To do it in linux.
karimsaud21 said:
As i dont have access to a linux box, would somebody mind uploading an unpacked factoryrs.rfs from the OFFICAL JI6 build?
Click to expand...
Click to collapse
here u go
http://www.megaupload.com/?d=1QHR83RH
rhcp0112345 said:
uhhh? adb pull /system? and rar it up? or adb pull /?
if you want the full thing? not that complex
Also, You can get a VM setup. To do it in linux.
Click to expand...
Click to collapse
ya i wouldve just pulled the system but im not running the OTA on my phone
and i have a sole linux box back home so dont need to install a VM
demo23019 said:
here u go
http://www.megaupload.com/?d=1QHR83RH
Click to expand...
Click to collapse
THANKS!
Here's a NON-flashable, fully deodexed version of the OTA-JI6 /system directory, yeah, I know its not the full contents of factory.rfs, but its a start.
http://www.4shared.com/file/bn2lTCKf/JI6_OTA_Deodexed.html
cheers
Sorry man, misunderstood your request. Let me get on my linux box and unpack it.
Ok, unpacked it, transferring back to my home PC, and will upload to megaupload.
Sorry for the goof.
lqaddict said:
Ok, unpacked it, transferring back to my home PC, and will upload to megaupload.
Sorry for the goof.
Click to expand...
Click to collapse
I unpacked and already uploaded
Sent from my SGH-T959 using XDA App
demo23019 said:
I unpacked and already uploaded
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Thanks demo, didnt see your update.
Thank you everyone, yall have been a great help
Thread moved to Q&A.
Anyone know how to get a script to run at every boot? I've tried putting it in /etc/, /etc/init.d, and modifying the xRecovery init.rc with no luck. Any guidance would be greatly appreciated. Thanks.
have you tried to edit the modded chargemon file? it's a part of Xrec and is a simple script which do the mounting, so appending you things at its end could do the job... I think
Adolf1994 said:
have you tried to edit the modded chargemon file? it's a part of Xrec and is a simple script which do the mounting, so appending you things at its end could do the job... I think
Click to expand...
Click to collapse
Thanks, but no dice. Script still didn't run.
kxhawkins said:
Thanks, but no dice. Script still didn't run.
Click to expand...
Click to collapse
whts the script exactly? u want to execute some other script thru chargemon?
oh btw permission are verified right? (chmod 755 <scriptname>)
Some sysctl settings, like busybox sysctl -w parameter=value
Code:
/system/etc/install-recovery.sh
This file never existed, but it's being called from init.rc during the system boot.
Rename your script accordingly and enjoy.
Cheers,
z
AWESOME, thanks so much. I'll try that in just a second...
Nope doesn't work. Would of been nice if you could of report your results after you tried it. (Changed permissions to 777 as well.)
Tried editing init.rc and a post boot script file also at / both ignored and files reverted back to originals on boot (with 1st Jan 1970 as time-stamp).
There is a init file full of random symbols and a few lines of what looks like it should belong in init.rc (mount /system ect), could this be a signed file that reloads the other files on boot or something similar? (Attached to post, had to be zipped cos this forum has a stupid limit on .txt files.)
Seems SE has gone out of its way to stop commands being executed at boot time! I'm running stock ROM. Anyone got any other ideas?
Figured it (Get in!)
I edited /system/etc/hw_config.sh
Look at that init with HTML viewer and scroll down a lot
Sent from my X10i using XDA Premium App
Hi, i have problem deodexing miro sdsl v1.1. I use xUltimate-v2 3.3 app but every time pull proces stop and never finish to end. I try to putt phone to airplane mode, mount system from recovery... Anybody know what i doing wrong?
bataya said:
Hi, i have problem deodexing miro sdsl v1.1. I use xUltimate-v2 3.3 app but every time pull proces stop and never finish to end. I try to putt phone to airplane mode, mount system from recovery... Anybody know what i doing wrong?
Click to expand...
Click to collapse
You can try to not pull apps from phone but unpack files from flashable zip (/app and /framework folders).
tnx, i forgat that i can do that. Rom deodexed...
bataya said:
tnx, i forgat that i can do that. Rom deodexed...
Click to expand...
Click to collapse
That's why I love Android so much. You can do lots of things in so many ways.
Glad I could help.
Anybody try this mod http://forum.xda-developers.com/showthread.php?t=1174202 ?
I always stay without status bar after repacing SystemUI.apk.
bataya said:
Anybody try this mod http://forum.xda-developers.com/showthread.php?t=1174202 ?
I always stay without status bar after repacing SystemUI.apk.
Click to expand...
Click to collapse
I tried that with Zdune's patcher and it worked.
http://forum.xda-developers.com/showthread.php?t=1202866
hm... i dont see option in zune patcher to move notification widget down?
bataya said:
hm... i dont see option in zune patcher to move notification widget down?
Click to expand...
Click to collapse
Its miui isnt it?
Sent from my LG GT540 using xda premium
Noup, CM7 with notification widget moved down. I manage to deodex rom, decompile apk, edit xtml, compile apk, but i doing something wrong... dont know what.
bataya said:
hm... i dont see option in zune patcher to move notification widget down?
Click to expand...
Click to collapse
Sorry, I thought you were talking about center clock. Well try again, it is a tricky job, and is easy to make mistake in the process. In CM settings there is option bottom statusbar so the notification icons are down . I will also try to apply the tweak, if it works will share.
Well, seeing a thread with this name I thought to just join in rather than openning a new one well, I downloaded xUltimate, pulled and deodexed the apks and....now what ? I assume I have to switch the original system files with these new ones, but how ? Sorry for the nooby question
create 2 folder on sdcard, in first copy deodexed file from /system/app, in second from /system/framework then boot in recovery, mount system and sdcard run adb and replace file in /system/app and /system/framework. After that use adb to remove .odex files form /syste/app and /system/framework.
Code:
adb shell
su
cp /sdcard/(noame of the folder)/*.* /system/app/
cp /sdcard/name of the folder)/*.* /system/framework
rm /system/app/*.odex
rm /system/framework/*.odex
reboot
If i miss some command make somebody corect me.
bataya said:
create 2 folder on sdcard, in first copy deodexed file from /system/app, in second from /system/framework then boot in recovery, mount system and sdcard run adb and replace file in /system/app and /system/framework. After that use adb to remove .odex files form /syste/app and /system/framework.
Code:
adb shell
su
cp /sdcard/(noame of the folder)/*.* /system/app/
cp /sdcard/name of the folder)/*.* /system/framework
rm /system/app/*.odex
rm /system/framework/*.odex
reboot
If i miss some command make somebody corect me.
Click to expand...
Click to collapse
Thank you everything works, and my rom is finally fast AND themed Oh, and for anyone reading this: because I have a 150MB system partition I had errors while first trying the cp lines, so I had to first remove the odex files (rm lines) and then use the cp ones to transfer the deodexed files
np ;-)
Sent by tT!
hi guys
im a newbie at deodexing and i have no idea what to do
could some give me step by step instructions and a link to the xultimate.zip
i would really be grateful
thx in advance
mohnim said:
hi guys
im a newbie at deodexing and i have no idea what to do
could some give me step by step instructions and a link to the xultimate.zip
i would really be grateful
thx in advance
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=765270
google is helping always
When I type adb shell it says device not found, do I need to go to fastboot or should I enable USB debugging
Sent from my GT540 using XDA
mohnim said:
When I type adb shell it says device not found, do I need to go to fastboot or should I enable USB debugging
Sent from my GT540 using XDA
Click to expand...
Click to collapse
either USB debugging or recovery mode
i got another method dsixda's kitchen gimme the rom and il do it in no time
hi guys
i have now deodexed the rom i think
i want to apply ics statusbar layout by zdunex25 but his video tutorial and xda tutorial is confusing, so can anyone who has applied the ics statusbar help me out.
thx in advance
i am running ubuntu 12.04 precise pangolin on a wubi install ...i am syncing cm7 sources and my home directory got filled(just 1 gb space left)...is there any way to copy the system folder of repo and paste it on another drive(i have 2 100gig+ vacant drives).....i tried doing that but when i give the command to sync it says permission denied..so what are the permissions and how to set it...my connectivity is damn slow i cant afford to download it all over again......
please i tried googling but nothing relevant was found.....
please any help would be appreciated....
ajay8055 said:
i am running ubuntu 12.04 precise pangolin on a wubi install ...i am syncing cm7 sources and my home directory got filled(just 1 gb space left)...is there any way to copy the system folder of repo and paste it on another drive(i have 2 100gig+ vacant drives).....i tried doing that but when i give the command to sync it says permission denied..so what are the permissions and how to set it...my connectivity is damn slow i cant afford to download it all over again......
please i tried googling but nothing relevant was found.....
please any help would be appreciated....
Click to expand...
Click to collapse
What is your repo path?
Code:
find $HOME -type f -iname*.repo
http://wiki.cyanogenmod.com/wiki/Samsung_Galaxy_S:_Compile_CyanogenMod_(Linux)
im following this tutorial
my repo path is
~/android/system
i want to change to the other vacant drive's that i have ......
ajay8055 said:
http://wiki.cyanogenmod.com/wiki/Samsung_Galaxy_S:_Compile_CyanogenMod_(Linux)
im following this tutorial
my repo path is
~/android/system
i want to change to the other vacant drive's that i have ......
Click to expand...
Click to collapse
Tarball or zip up that android folder by right clicking on it - choose compression method - when done move to your HDD. Then uncompress, CD into android/system then your done.
Sent from my Galaxy Nexus using xda premium
hello,
Can someone help me why i cant install my modded settings.apk to lollipop 5.1?
i did not mod any XML files but edited 2 images from res and signed the apk and tried to install. no positive result.
Someone told me that settings.apk should not be signed.
someone help in this thing.
Thanks in advance
Settings must be signed with the platform key.
MasterAwesome said:
Settings must be signed with the platform key.
Click to expand...
Click to collapse
Can you please detail the step by step.?
When i tried it by signapk.jar I'am getting error while signing the apk after creating .keystore. When i Google'd it i got an info that it is already signed. What should i do to sign and install?
shmshd12 said:
Can you please detail the step by step.?
When i tried it by signapk.jar I'am getting error while signing the apk after creating .keystore. When i Google'd it i got an info that it is already signed. What should i do to sign and install?
Click to expand...
Click to collapse
You don't sign it at all. And you can't install it. You have to flash it with a zip in recovery.
zelendel said:
You don't sign it at all. And you can't install it. You have to flash it with a zip in recovery.
Click to expand...
Click to collapse
When i flashed the zip file it installed well in recovery but when i came to the system from recovery i couldn't find the settings apk installed.
Can you create a working signed zip file to flash in recovery for the attached apk.
Thnaks in Advance
There are plenty of tuts on how to do it yourself. The mount points are very different for each device so you will have to get a zip for your device that works and then just add your apk.
zelendel said:
There are plenty of tuts on how to do it yourself. The mount points are very different for each device so you will have to get a zip for your device that works and then just add your apk.
Click to expand...
Click to collapse
Now im confused on 1 simple thing.
should i add the apk in system/priv-app/settings or system/app/settings ??
shmshd12 said:
Now im confused on 1 simple thing.
should i add the apk in system/priv-app/settings or system/app/settings ??
Click to expand...
Click to collapse
Send me the apk i'll sign it install it using
Bash:
adb push ../Settings.apk /sdcard/
adb shell
su
mount -o remount,rw /system
rm pathToSettings.apk
cp /sdcard/Settings.apk pathToSettings.apk
chmod 0644 pathToSettings.apk
reboot
MasterAwesome said:
Send me the apk i'll sign it install it using
Bash:
adb push ../Settings.apk /sdcard/
adb shell
su
mount -o remount,rw /system
rm pathToSettings.apk
cp /sdcard/Settings.apk pathToSettings.apk
chmod 0644 pathToSettings.apk
reboot
Click to expand...
Click to collapse
Bro, here is the apk
the above mentioned apk is the wrong one!!!
please find the right apk from below attachment
thanks a lot
note that this is the settings.apk for hammerhead running LP 5.1
shmshd12 said:
Bro, here is the apk
the above mentioned apk is the wrong one!!!
please find the right apk from below attachment
thanks a lot
note that this is the settings.apk for hammerhead running LP 5.1
Click to expand...
Click to collapse
Aosp?
MasterAwesome said:
Aosp?
Click to expand...
Click to collapse
YES...EXTRACTED FROM GROGG'S rom 5.1
@MasterAwesome
Waiting for your signed settings.apk !!!
when will i get it ?
shmshd12 said:
@MasterAwesome
Waiting for your signed settings.apk !!!
when will i get it ?
Click to expand...
Click to collapse
Crap, I totally forgot about it... I was building something else. I'll upload it soon
Can someone else sign this or make a flashable zip?
shmshd12 said:
Can someone else sign this or make a flashable zip?
Click to expand...
Click to collapse
Relax and give him time. You would have had it by now had you done your own research and docent yourself.
zelendel said:
Relax and give him time. You would have had it by now had you done your own research and docent yourself.
Click to expand...
Click to collapse
I google'd a lot and I'm tired!!
That's the reason i started thread!!
shmshd12 said:
I google'd a lot and I'm tired!!
That's the reason i started thread!!
Click to expand...
Click to collapse
I think you mistake this for a support site. If you searched then you really didnt look very hard
http://forum.xda-developers.com/gal...tutorial-making-flashable-zips-edify-t1611615
That gives you everything you need to know to make it.
zelendel said:
I think you mistake this for a support site. If you searched then you really didnt look very hard
http://forum.xda-developers.com/galaxy-nexus/themes-apps/tutorial-making-flashable-zips-edify-t1611615
That gives you everything you need to know to make it.
Click to expand...
Click to collapse
Parsing error occurs while installing!!
So i need to sign the apk right?
In the above mentioned thread it only shows how to create a flashable zip or signed zip!!! I need to sign the apk!!
shmshd12 said:
Parsing error occurs while installing!!
So i need to sign the apk right?
In the above mentioned thread it only shows how to create a flashable zip or signed zip!!! I need to sign the apk!!
Click to expand...
Click to collapse
First off. No you should never sign a system APK. If you do it will conflict with the system Sig that all system apps use.
I told you once already. You cant install the apk that way. It has to be flashed in recovery.
zelendel said:
First off. No you should never sign a system APK. If you do it will conflict with the system Sig that all system apps use.
I told you once already. You cant install the apk that way. It has to be flashed in recovery.
Click to expand...
Click to collapse
but @MasterAwesome said that Settings must be signed with the platform key in the second post!! so are you telling that he is wrong?
I did a flashable zip by ZipMe app from playstore and flashed it...still the settings apk was not found in the app drawer!!!