Hey all, I thought I would put together a quick guide on how to port modules built for other devices. Since we share the same CPU as the One X and many other phones it's possible some of the mods for them are compatible with our phones too. In this case I was wanting to give coolbho3000's overclock module a try to see if it would work.
Please keep in mind that this will not always work and it's still better to try and use a module built specifically for your setup. Using a module that's not made for your device can cause all kinds of issues and seriously affect system stability. Always make sure you read the original instructions to make sure you understand how it works and how it's intended to be used.
Neither me, XDA or the module's author are responsible for anything that happens to your device. You and you alone are responsible for your actions.
First thing you'll want to do is try to load it as is, it probably won't work but it'll at least give you a place to start. In this case I'm using the overclock module from the One X so I used:
Code:
adb push krait_oc.ko /data/local/krait_oc.ko
adb shell
su
insmod /data/local/krait_oc.ko
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If it is successful it won't say anything, but there you can see it failed as expected. In order to find out why it failed we'll need to run dmesg and look for where it tried to load it.
Code:
dmesg | grep "krait_oc"
There we can see module_layout is where the issue is. What we can do now is pull one of the already installed modules off of the device and use it as a reference, in this case I used lcd.ko since it has an easy name to type. Grab your two modules and using linux run modprobe to find a value for module_layout. (If you only have Windows available skip to next step)
Code:
modprobe --dump-modversions lcd.ko
Now that we know what to look for open up the module in a hex edit and search for "module_layout." Immediately before it you will see the value that needs to be changed, but, keep in mind that it is little endian so the bytes are read backwards. In the view of lcd.ko on the right you can see the value we previously got of '37 19 bc d3' is saved as 'd3 bc 19 37'.
Change those four bytes to match and then save the module under a new name so it is not confused with the original.
Once you save the edited module its time to push it to the device again and try once more.
And success! Sometimes you'll also need to edit the module to accept the current kernel version you are using, but the process should be similar as to what's here.
So, uhhhh . . . you gonna share that modded kernel?
utnick said:
So, uhhhh . . . you gonna share that modded kernel?
Click to expand...
Click to collapse
Kernel is still the same, this is just for the modules
*sigh* I wish I knew what that meant. Can I ask to you to explain it to me please? And does this mean you have the ability to port the kernel to OC an EVO LTE?
Got overclock working fine. Great thanks Haus
Can anyone make a zip? Pretty please.
You can't make a zip. you have to mod the ko file yourself and launch it yourself.
utnick said:
*sigh* I wish I knew what that meant. Can I ask to you to explain it to me please? And does this mean you have the ability to port the kernel to OC an EVO LTE?
Click to expand...
Click to collapse
Think of modules as sort of like an add-on for kernels, except that they're saved as part of the ROM instead of on boot. I used the one-x overclock module here, but since it's not made for the evo it may not be completely stable. Plus there are other changes that need to be made to the thermal profiles according to his original post.
Ideally coolbho3000 will be willing to create one for us and officially support it. I've already reached out to him about it so hopefully we'll hear something back soon.
Hey I know quadrants don't mean much but do you think you could get us a screenshot of our phones scores when overclocked?
Thanks for the guide by the way I will definitely try this when I have time...
Red.
So glad you're here haus :thumbup:
Sent from my EVO using xda premium
it there a way to remove a module, and replace a new edited ported *.ko?
all of this is done in recovery?
if trying to replace a module should just get to modding the kernel itself?
Great guide, I've been looking for something like this. So could I use this method to get USB hosting working? I know the one x (AT&T), has a custom kernel that supports it.
XDA University is Coming! Can't wait to learn more...
Immediately before it you will see the value that needs to be changed, but, keep in mind that it is little endian so the bytes are read backwards. In the view of lcd.ko on the right you can see the value we previously got of '37 19 bc d3' is saved as 'd3 bc 19 37'.
Click to expand...
Click to collapse
That's not little endian and reading backwards is not little endian when the original is not big endian. Little/big endians are in terms of byte size orders.
Good tutorial.
exSD said:
That's not little endian and reading backwards is not little endian when the original is not big endian. Little/big endians are in terms of byte size orders.
Good tutorial.
Click to expand...
Click to collapse
Thank you, but "byte size orders?"
xHausx said:
Thank you, but "byte size orders?"
Click to expand...
Click to collapse
Byte value order. Hex value.
thanks a lot
thanks a lot for your tutorial, and congrats,
i tried your tutorial and i cant modprob on linux, i atached the screenshot of what happenz,
i try "modprobe --dump-modversions usbhid.ko" and i receive a blank line with nothing, i tried with other modules and it do the same, but for the one who was extracted from my phones modules folder, it works,
and i also have a daught, i search for "module_layout" only or any other values?
hackerse7en said:
thanks a lot for your tutorial, and congrats,
i tried your tutorial and i cant modprob on linux, i atached the screenshot of what happenz,
i try "modprobe --dump-modversions usbhid.ko" and i receive a blank line with nothing, i tried with other modules and it do the same, but for the one who was extracted from my phones modules folder, it works,
and i also have a daught, i search for "module_layout" only or any other values?
Click to expand...
Click to collapse
Make sure you have spaces between your arguments. It also depends on what value it's telling you is incorrect, it may be different depending on which one you're trying to use.
xHausx said:
Make sure you have spaces between your arguments. It also depends on what value it's telling you is incorrect, it may be different depending on which one you're trying to use.
Click to expand...
Click to collapse
i already did that i think itś something wrong with the module because i put them i the same directory and the exact same commands and it just dont work, i atached some screenshots and the modules.
thanks for helping me
hackerse7en said:
i already did that i think itś something wrong with the module because i put them i the same directory and the exact same commands and it just dont work, i atached some screenshots and the modules.
thanks for helping me
Click to expand...
Click to collapse
i just cant undestand, if someone can help me.
Related
thanks to pof and olipro for betatesting
this is probably the easiest way to cook your hermes rom.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
-it supports several ways of adding files to the rom: drag and drop or browsing
-easy removal of files in the rom
-easy way of editing the volumelayout (initflashfiles.dat)
-easy compiling
-easy dumping
-a console that shows you whats going on
-registry editing ( not yet fully functional, leave your fingeres off that )
well everything is easy
i'm sorry for this crappy presentation, it's late now and i'll have to go to the hospital tomorrow and i'll be off for a few days.. feel free to ask pof/olipro if you got some questions
a quick introduction on how to add your own theme (.tsk) file to a rom:
1.) download it and extract
2.) install the java runtime (required for achefs script, i inted to port his script to c or c# but that might take a while) , the run time can be found in "install me first"
3.) start the executable
4.) you will notice that all buttons except "select source rom" are grayed out.. push "select source rom" and browse into 'ROMS\' select the 'Clean-WM6-OS.nb' rom there
5.) now "dump rom" and "compile rom" became available... we don't need to dump the rom for this purpose (do this if you want to edit the initflashfiles or if you want to remove files from the rom) at this stage don't push anything
now comes the fun part
6.) simply drag and drop the tskfile(s) of your choice into the "files to be added" listbox
7.) now give your romfile a name using the outputrom editbox
8.) you're done, click "compile rom" and lean back.
yes, rom cooking was never that easy and enjoyable
last warning, use this at your own risk. this is beta software. i'm not responsible if your device gets damaged during any of this nor is your provider or xda-developers.
edit: ai ai ai, i cant believe i've actually packaged the "branded sheep".. sorry guys... it's fixed now contains the real vanilla rom
besides that you can now download the thing without any rom at all...
download: http://rapidshare.com/files/18812655/_romkoch_full.rar.html (with wm6.0 vanilla rom)
download: http://rapidshare.com/files/18811961/_romkoch_light.rar.html ( without wm6.0 vanilla rom )
installation notes: v0.1 has a small bug that prevents you from having foldernames with spaces so for this first release install to c:\xda-dev\kitchen or something like that.. make sure there are no spaces
well done, thanks for the kitchen!
WOW! This has been a big week for the hermes. Thanks dutty for a great and easy way to use a lot of great tools. Thanks for the help and the next step forward!
WOW! That's fantastic!
I'm sorry for asking, but, can *someone* who is good at cooking please provide a tutorial on how to add a program from a .cab file? I have the tools to open the cab file, but, what do I do with the pieces?
Sorry, one final question. The 'clean' WM6 rom.. Is it the vanilla rom? or K's rom? or...?
I'm pretty sure the clean one is vanilla.
LegolasTheElf said:
Sorry, one final question. The 'clean' WM6 rom.. Is it the vanilla rom? or K's rom? or...?
Click to expand...
Click to collapse
seems to be kyphur's rom. I just used the tool to flash a slightly modified rom and it shows xda-live on today screen.
Holy crap, this is gonna take all the technical know-how out of it. On one hand, that's great for people like me because we can start cooking ROMs without knowing what we're doing. On the other hand, that really sucks for people like me because we can start cooking ROMs without knowing what we're doing.
But THANK YOU! Now I can get started and fill in a lot of the gaps later (though I'm not sure whether that's a good thing or not).
And Vista compatible, I see? Very nice!
richy240 said:
Holy crap, this is gonna take all the technical know-how out of it. On one hand, that's great for people like me because we can start cooking ROMs without knowing what we're doing. On the other hand, that really sucks for people like me because we can start cooking ROMs without knowing what we're doing.
But THANK YOU! Now I can get started and fill in a lot of the gaps later (though I'm not sure whether that's a good thing or not).
And Vista compatible, I see? Very nice!
Click to expand...
Click to collapse
thanks.. dont be afraid there is really not much you can do wrong that will brick your device.. just watch out that your rom isnt getting too big..
in the next version i'll implement checks that prevent the creation of a rom thats too big, then theres no danger at all
LegolasTheElf said:
how to add a program from a .cab file?
Click to expand...
Click to collapse
open the cab with wince cab manager, extract files and drag&drop them to the kitchen, edit initflashfiles.dat to tell the specific location of the files on imgfs, if the cab also contains registry settings add them to default.hv (or user.hv if the settings are on HLMU), that should be enough for most of the apps
Thanks Dutty !
WIll test this right away be flashing my Extra Device.
dutty.... you are the man!!!!
I keep getting an error when I try to dump the ROM. Please see attached TXT file.
richy240 said:
I keep getting an error when I try to dump the ROM. Please see attached TXT file.
Click to expand...
Click to collapse
i got it.. i will throw a fix at you in a minute
dutty said:
interesting.. which .netframe work do you have installed? which rom did you cook? can you check the console? what was the last command it tried to execute before it crashed?
Click to expand...
Click to collapse
I've got .NET 1.1 and 2.0 installed. (Does that seem strange to anyone? Wouldn't one upgrade the other?) It happens on any ROM I try. The last line in the console says, "---->Done Executing: Tools\viewimgfs.exe"
dutty said:
i got it.. i will throw a fix at you in a minute
Click to expand...
Click to collapse
F'in sweet.
richy240 said:
I've got .NET 1.1 and 2.0 installed. (Does that seem strange to anyone? Wouldn't one upgrade the other?) It happens on any ROM I try. The last line in the console says, "---->Done Executing: Tools\viewimgfs.exe"
Click to expand...
Click to collapse
both 1.1 and 2.0 operate independentily to one another....
Could not find a part of the path 'C:\Documents and Settings\leroy\Desktop\ROM\Koch\_hermeskochv01\dump'.
Click to expand...
Click to collapse
could not find a part of the path?? sounds like a subfolder is missing.. hmm, maybe the path is to long, try to shorten it -
edit: yep, i will fix this properly.. for now please make sure the path name has no spaces and is short i.e. C:\xda-dev\romkitchen
removed the hotfix, it's not necessary.
dutty said:
but the errormessage your .net stack generated is weird
could not find a part of the path?? sounds like a subfolder is missing.. hmm, maybe the path is to long, try to shorten it
Click to expand...
Click to collapse
Bingo. I moved the directory to D:\ and it works.
Edit: This thread has been moved to General since Android Port has been accomplished. ~TheRomMistress
tutorial originally posted by bojan6
Please read this before start asking questions
1.Android is in testing development.
2.Is not working fully.
3.You can't install Android in your phone.
4.You can run Android in your phone with Haret and see how it look but:
5.There are no working wifi, bluetooth,phone calls, battery, usb conection, ac charger connection and many other things....
6.All drivers and kernel are still under construction.
7.Now you know that Android is not working fully in our phone.
8.If you still want help and test build that is OK.
Now to run Android properly in your phone !
1.Download any of the builds we have around here.
2.Do backup on your sdcard or if you have additional one use this one.
3.Extract the file with android in your sdcard.
4. Check all the files are inside (sdcard/Android/AndroidApps"folder", media"folder",root"folder",clrcad"file",rootfs"fil e",startup"file",system"file",zImage"file",initrd" file")
5. If you want you can take everything from Android folder and pest it in root of the sdcard but you have to change default text (set cmdline"rel_path=Android change to set cmdline"rel_path=" or set cmdline"rel_path=sdcard") tri with one if is not working try with the other one. I thing the best is leave all files and folder in default Android folder and just copy this folder to your sdcard.
6.Check your zImage and Startup is for Toshidroid :OP (TG01).
7.First RUN haret without CLRCAD.
8.It take no more than10 min to run for the first time.
9. If it take more time RESTART the phone by pressing the POWER BUTTON for 10/20 sec it will restart and back to windows.
11.Try to do the same one more time.
12.If it still not booting to Android and you receive any error messages. Check your sdcard if there is space left in it. Check error message if it say that it can find some file or it can't create a data.
13. Delete everything from your sdcard and format it to fat32.
14.Start from the beginning.
15. If it still not booting to Android then check if you have all files and all set how it has to be.
16. Don't forget you can broke your phone. And we are not responsible for any damage you cause to your phone.
17.It is all up to you.
19. If I forget something sorry about just ask there are other memebers who will try to help you if they can.
20. Sorry for my English mistakes. I'm trying to fix them. :OP
Thanks to all people who try their best to make that possible: Markinus, Arash18k,Bally3,Endrix,Nyl,Arnookie and all other.
******************************
There are 2 active projects.
Android on TG01
PLEASE FOLLOW MARKINUS THREAD FOR UPDATES
http://forum.xda-developers.com/showthread.php?t=846777
Other resources..
http://gitorious.org/linux-on-wince-htc/linux_on_wince_htc/commits/linux-on-tg01
ToshDroid.
The main man behind the ToshDroid project is Endri Bezati
PLEASE FOLLOW ENDRIX THREAD ""ToshDroid" FOR UPDATES
http://forum.xda-developers.com/showthread.php?t=788860
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The android screen (1.5 cupcake) on Tosh TG01 was taken from intomobile.com
There is no android for HD2 or Acer F1/s200 (and these phones have bigger community) so I don't think someone here will run android on TG01 until it comes for one of these two mentioned above...
you are right..
however I have googled and found these.
http://htcandroid.xland.cz/
http://xdandroid.southcape.org/
I am not into programing but it might give some head start to who want to make it happpen..
I don't know how to go about porting android to TG01, but I'm looking into it... don't know if it will go anywhere but what the hell, it's worth a try.
Source code for the Acer Liquid and the Xperia X10, two Snapdragon phones with both Kernel Source code available
Wyatt said:
I don't know how to go about porting android to TG01, but I'm looking into it... don't know if it will go anywhere but what the hell, it's worth a try.
Source code for the Acer Liquid and the Xperia X10, two Snapdragon phones with both Kernel Source code available
Click to expand...
Click to collapse
Maybe one of the ROM developers can have a look at these and convert the drivers to TG01?!
gamerr120 said:
Maybe one of the ROM developers can have a look at these and convert the drivers to TG01?!
Click to expand...
Click to collapse
I'm downloading 10.04 release of ubuntu, once that is done, i'll compile the kernels and have a go at making android boot with haret on the TG01, tomorrow is my day off so i'll keep you updated if I get anywhere or not
nice on man, that sounds awesome. I'll be at school :/ I wish I could learn how develop like you guys..... maybe this summer?
here is haret for the snapdragon... found it a while back somewhere i don't remember....
thor2002ro said:
here is haret for the snapdragon... found it a while back somewhere i don't remember....
Click to expand...
Click to collapse
Anyone test, i can't now until tomorrow....
Wyatt said:
I'm downloading 10.04 release of ubuntu, once that is done, i'll compile the kernels and have a go at making android boot with haret on the TG01, tomorrow is my day off so i'll keep you updated if I get anywhere or not
Click to expand...
Click to collapse
Good news...
can't wait for the result..
gamerr120 said:
Anyone test, i can't now until tomorrow....
Click to expand...
Click to collapse
Don't know much about Android. But I think Haret is only a bootloader. You still need the Android files to boot.
anon-4 said:
Don't know much about Android. But I think Haret is only a bootloader. You still need the Android files to boot.
Click to expand...
Click to collapse
I have posted a request in android forum. see if any body come here and give us hand,
http://forum.xda-developers.com/showthread.php?p=6341361#post6341361
anon-4 said:
Don't know much about Android. But I think Haret is only a bootloader. You still need the Android files to boot.
Click to expand...
Click to collapse
Yep Haret kills the WinMo kernel to boot another one, i've got the Xperia X10 and Acer Liquid Kernels source code, so i'm going to build them just to see how far it will go and hopefully create a starting point for Android on TG01
Just to keep you updated, i'm not getting anyware for the moment, but i'm not giving up, if anyone has got any info on building a linux kernel for snapdragon please post it
Google Nexus one, acer liquid and many other devices have Snapdragon and Android.
If it's found some info about linux kernel on them, it would be a good starting point, don't you think?
EDIT: I've just google a little and found this:
NEXUS ONE KERNEL POSTED
Cyanogen has developed a web for developing nexus one kernel. So, maybe, you can find something there.
Here you can find a kernel for Nexus One
And here you can find the kernel source for the Acer Liquid
Wyatt said:
Just to keep you updated, i'm not getting anyware for the moment, but i'm not giving up, if anyone has got any info on building a linux kernel for snapdragon please post it
Click to expand...
Click to collapse
Hi, have you installed ubuntu 10.4 yet? Do you like it?
I ask because I am on 9.10 and thinking about upgrade
a_petrov303 said:
Hi, have you installed ubuntu 10.4 yet? Do you like it?
I ask because I am on 9.10 and thinking about upgrade
Click to expand...
Click to collapse
Yep, i've installed the 10.04, and it's pretty cool, on my dell precision m6500, i had a probleme getting the wifi working but other than that it runs like a charm
Has anyone got any idea on how to find the 'RAMADDR' and 'RAMSIZE' for haret ?
these are for HTC diamond witch has 192 mb ram
set RAMSIZE 0x7800000
set RAMADDR 0x10000000
Yeah but it is specific to every phone... so I either somebody already know them, or I need a way to find them..
This guide is for reodexing your SGS3, such as UltimaROM, Omega, Foxhound, CodecROM, _null, Sotmax and others (I'm just listing off the top off my head).
It's not terribly tough and 100% of the credit belongs to rujelus22 for his amazing work on his AIO tool. This guide is just for deodexing/odexing, but you can use that tool for other things.
Firstly, why would you want to odex your ROM?
Well, this will help you understand more:
http://www.xda-developers.com/xda-tv-2/pro-tip-number-5-why-you-should-odex-and-deodex-xda-tv/
It's very useful and saves on battery life and makes the phone slightly more responsive.
Consider:
When you have downloaded and installed your chosen ROM you should odex it back up for the speed and agility odexing affords you. However you should ONLY do this after you are happy with your setup. I.E., install any mods you wanted and then Odex your phone.
If you want to add mods later, say, perhaps, your developer releases a new mod, or patch for your ROM you will NEED to Deodex the ROM before applying a patch or new mod. This is important. Please do not pester your dev about an error if you have not done this.
In my opinion, it can take maybe 30 minutes to Deodex, apply your mods/patch, and then Reodex using this tool, but the benefits are worth it.
You should also perform these actions AFTER a successful boot. You should flash the ROM. Boot. skip the setup pages and get to the homepage, then do this odexing.
How to do it:
Firstly, head off over to Rujelus22's AIO script thread and download it:
http://forum.xda-developers.com/showthread.php?t=1955745
Don't forget to click "Thanks"
Make sure you also download these the Android-SDK and the Java Development kit. The SDK is necessary for the Deodexing, I believe, in case you want to do that later:
http://forum.xda-developers.com/showpost.php?p=33268059&postcount=2
After that, extract the AIO script somewhere useful where you can find it again and run the "Start_AIO.bat" file. This will set up some folders in the directory you extracted to and then open the start page
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
After this make sure your phone is plugged into you computer and that USB Debugging mode is on in the Developers Options. ALSO, you must have an "Insecure Kernel" such as any custom kernel (Siyah, Perseus, Boeffla) or Wanam/zoot1's repacked stock kernel.
If you do not have an Insecure Kernel head off to Chainfire's adbd Insecure thread: http://forum.xda-developers.com/showthread.php?t=1687590
You might considering buying it on Google Play, if you like, but there is a free XDA version.
After you are plugged in, on USB debugging and have an Insecure Kernel, load the AIO script and choose option "22" which reads "Odex the ROM on your phone". You will be given the opportunity to take a nandroid backup at this point.
Sit back and let it do it's thing. It will take about 10 minutes, and it will seem to hang on the clean up bit. Fear not, because it IS doing something. Your phone will automatically reboot when it has finished.
You're done! Once you have done that little bit of setting up... in future it is as easy as opening the script, hitting 22 and sitting back.
Notes/FAQ:
Sometimes it can constantly loop around the first page as though it is doing a first run. To solve this, go into "AIO_FOLDER/tools/Settings/" and create a new .txt file called "firstrun". Make the contents of the file 1. Just "1" and nothing else.
Sometimes it can say that you don't have remount access and the Odex option will not show. Similar to the point above, go into "AIO_FOLDER/tools/Settings/" and make a .txt file called "remount" and place a single 1 in the folder.
Deodexing can take some time. Be patient.
Can any ROM be Odexed this way, such as CyanogenMod, for example?
I think so, yes. As long as the script can find the bootclasspath!
Kryten2k35 said:
I think so, yes. As long as the script can find the bootclasspath!
Click to expand...
Click to collapse
Thanks. I'll give it a try. I've always stuck with Odexed ROMs for all the reasons that Adam discussed in the video, so I'd be very pleased if I could Odex CM. Best of both worlds.
When i select 99 and 4 and 2 the script closes...:/
Also all odexing options are greyed out...i followed the instructions just fine,any help?
nfsmw_gr said:
When i select 99 and 4 and 2 the script closes...:/
Also all odexing options are greyed out...i followed the instructions just fine,any help?
Click to expand...
Click to collapse
This might help
http://forum.xda-developers.com/showpost.php?p=39378436&postcount=164
Make that edit to the "script.bat"
Kryten2k35 said:
This might help
http://forum.xda-developers.com/showpost.php?p=39378436&postcount=164
Make that edit to the "script.bat"
Click to expand...
Click to collapse
idk speed of the rom is same as deodexed will see about battery life:silly:
Kryten2k35 said:
This might help
http://forum.xda-developers.com/showpost.php?p=39378436&postcount=164
Make that edit to the "script.bat"
Click to expand...
Click to collapse
Woot woot!
Working like a charm now,thanks!
Maybe you should add this to the op?
I still can't select 99->4->2 but now odexing options are available!
Nice tut, I'm a big fan of reodexing since I first tried it, :thumbup:
I'm kind of new to this things and have to questions;
1.- First specifically to UltimaROM, does it have to be odex ?
2.- When it says I should do it after I have the Rom as I want it, it does not interfere with installing apps right?
Tuckycv said:
I'm kind of new to this things and have to questions;
1.- First specifically to UltimaROM, does it have to be odex ?
2.- When it says I should do it after I have the Rom as I want it, it does not interfere with installing apps right?
Click to expand...
Click to collapse
You do not have to odex if you don't want to, but I personally recommend it.
And installing apps from the Play Store will be 100% fine on an odex'd ROM.
However, ANY mod that changes a system app is likely to interfer. In this case you can deodex, then flash the mod, then reodex (optional).
This is mainly for those that flash, then don't mod. However modding is not impossible and it's worth the extra 10 minutes to do this.
I have installed everything according to the tutorial. But in the cmd window..its written Your Kernel does not support this feature [adb remount]
I am using the perseus Kernel. I insecured the kernel using "adb insecure" from chainfire. I think it was not needed but i did it when nothing was working. It still does not work
any help?
P.S. debugging is enabled
EDIT : SOLVED -------> USING THIS http://forum.xda-developers.com/showpost.php?p=39378436&postcount=164
Dang it, I feel like an idiot. I cannot figure out how to setup the variable path from the instructions. Do I need to make a new one in both system and user, or do I edit one that is already there?
What do I name them?
I tried to reodex UltimaRom v11 and had to modify the script too (set remountavlible=yes) in order to see option 22 so you might want to write that in the OP Kryten, it could prevent the question from being asked over and over
Maybe it is specific to some roms ?
I do everything as I should,but after I press any button after it says "Press any key to continue" at the screen with the snake head (Or whatever that is),it will give me an empty command prompt.No menu,no nothing.Any ideas guys?It's really starting to get on my nerves...
How to know if my phone was odexed?
After running script it says:
The phone rebooted, but there is no *odex files in System/App. Strange..
Hey there! Just want to confirm something.. It is said in the OP that we have to "deodex" to flash a new mod or patch. Is a ROM upgrade considered a patch? Do I have to deodex first to flash a new ROM version? Or it is safe to just flash the new ROM version while I'm still odexed and just re-odex after upgrading the ROM?
Thanks!
I have an odex folder on my internal SD card. Folder size is almost 500mb. Can I delete this folder.
Sent from my GT-I9300 using Tapatalk 2
I can't seem to make it work.. It is always saying it can't find the Android SDK (look at the attached photo), but I've already installed everything. Java and Android SDK. What could be the problem? Both Java and SDK are installed in C:/
flipward said:
I can't seem to make it work.. It is always saying it can't find the Android SDK (look at the attached photo), but I've already installed everything. Java and Android SDK. What could be the problem? Both Java and SDK are installed in C:/
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=39378436&postcount=164
This Tool has been replaced by - Junohttp://forum.xda-developers.com/showthread.php?p=45990300#post45990300
Please visit the new thread!
For older Thread click the button below.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Welcome To Sony System App Editor Ver.1.1Installation
Please follow the instructions carefully, cause this is very crucial to the programs working.
Step 1
Download the following resources :
Android SDK (drawPatch9)
Java SE Runtime Environment 7 (Java)
Step 2
Go to Advanced System Properties.
It should look like this:
Go to Environment Variables, then create a new System Variable, having name JAVA_HOME and value according to the path where you have installed the JRE(7).
It should look like this:
Now after creating the JAVA_HOME variable, search for Path system variable in the System Variables list. Now this is a bit tricky. Once found click on it and then on Edit. Now if your value is ending with ";" (without quotes) then just add the path to your JRE(7) bin folder. If the ";" is not present then just add it and follow the rest of instruction as given.
It should look like this:
Now just Save it. (Just keep on clicking OK it will be done automatically.)
Step 3
Download Ver.1.1.zip.
[*] Download
[*] Size: 17.85 MB (18714229 bytes)
Now Extract the zip where ever you want in your computer.
Step 4
Open the folder in which you have extracted the files and then the res directory in it.
Now make sure that the folder looks like this -
If you want you can add your modified resource files too.Note: If you are using any other ROM or PHONE of Sony (This program might be compatible with all types of Phones and Roms though!), then you should over-write the already present resource files in the res directory with your own ROM or PHONE resource files. (This is important!)
Now open the program by executing - Sony System App Editor.bat, like this -
Then type LOADRESOURCES, and let the program install the required resources. Once done add your APK file to this program's directory and get started, cause you are all done!
It should look like this:
How to use?
Step 1
Make sure you have the original version of the system apk. (This is important cause in other situations I cannot guarantee it's working as I haven't tested it. ) Copy it to the program's main directory.
Now open the Program by executing - Sony System App Editor.bat, and type only the name of the System app.
For eg.: If you want to edit UxpNxtLockScreen.apk, then copy it to the main directory, and then by executing the program type UxpNxtLockScreen. (Notice no .apk!)
Now press Enter and let the program handle the rest.
Still it should look like this:
Now check for any errors in the Apktool output screen, if none found you are good to go or else I don't know what to do?...p)
If everything went fine it should look like this -
Step 2
Edit your APK to your carnal needs! But still make sure everything you do is syntactically correct and there are no erroneous codes.
For editing APK's go to the working folder of the program, and look for the folder that is named after the file-name of your System Apk.
It should look like this:
Now open it and start editing.
Step 3
Now assuming you have finished editing the System app, execute the main program once again - Sony System App Editor.bat.
Type the APK's file-name (no exts.) which you where editing, and press enter.
It should look like this:
Make sure everything goes right and check for any errors in the APKTOOL output screen, cause program at the current stage will still produce a build even if there is any error with apktool! (Will be solved soon.)
Now assuming you have checked everything and nothing is wrong, then you are good to go! And still it should look like this -
Step 4
Assuming that everything has been fine till now, so then you can have your APK file in the build folder of the Program's main directory.
It should look like this:
Now copy it to a place where you can create a flash-able zip out of it! :laugh:
Note: If you want to start modification of the new apk file of the same name, first delete the folder in the working directory of the previous APK's file-name. (It's important.)
Condition of it's use
Please use this program at your own risk. It has only been tested to mod UxpNxtLockScreen.apk.
This program utilizes a technique that I learned while creating my first mods, and was not able to find a perfect tutorial.
The technique this program utilizes might not be applicable for all types of System Apps.
The program is just created by me today (23/9/13), so please bear with it's simple and non-wanting UI and features.
So start using it and start modding today! - Become a World-Class Developer! (.........:laugh:...............:laugh:........)
Download Ver.1.1Please wait till this program is completely face-lifted!Credits
Apktool developer for developing such a great tool.
Google for making such a wonderful OS!
Me for making it's modification so simple! (divinemamgai)
This Tool is gonna suffer from Face-Change! So please co-operate.
@divinemamgai
Awesome.
I just edited my lockscreen using this, removed the clock(as I requested in PM)
Thanks a lot.
heatseeker_x04 said:
@divinemamgai
Awesome.
I just edited my lockscreen using this, removed the clock(as I requested in PM)
Thanks a lot.
Click to expand...
Click to collapse
Hey dude use the latest version to be sure of not getting into any trouble! :laugh:
divinemamgai said:
Hey dude use the latest version to be sure of not getting into any trouble! :laugh:
Click to expand...
Click to collapse
sure, I will download it.
hey man i try use your tool this hopefully helping me,,, thanks so far so good as i use
Encang_Rojali said:
hey man i try use your tool this hopefully helping me,,, thanks so far so good as i use
Click to expand...
Click to collapse
Welcome but please try the new Tool! As it is the better than this one.
divinemamgai said:
Welcome but please try the new Tool! As it is the better than this one.
Click to expand...
Click to collapse
where is the NEW tool? cant u share ?
Encang_Rojali said:
where is the NEW tool? cant u share ?
Click to expand...
Click to collapse
Dude see the main post of this thread and you will get it, or just search for Juno! :laugh:
Can I use this in Fedora ?
Little Zed said:
Can I use this in Fedora ?
Click to expand...
Click to collapse
I guess but I'm not sure cause there maybe some functions used in this program which might not be available in Fedora. I have developed it in Windows, so I think you can try out and tell me what happens. But as far as I'm know it my not work.
divinemamgai said:
I guess but I'm not sure cause there maybe some functions used in this program which might not be available in Fedora. I have developed it in Windows, so I think you can try out and tell me what happens. But as far as I'm know it my not work.
Click to expand...
Click to collapse
So. You mean no linux support?
Sent from my ST25i using Tapatalk 2
Little Zed said:
So. You mean no linux support?
Sent from my ST25i using Tapatalk 2
Click to expand...
Click to collapse
Dude I don't have Linux system, so I can't test, all I'm asking you is to test it and tell me if it works or not?
divinemamgai said:
Dude I don't have Linux system, so I can't test, all I'm asking you is to test it and tell me if it works or not?
Click to expand...
Click to collapse
Will surely test with WINE software on linux.
Sent from my ST25i using Tapatalk 2
OK... Thanks bro...
Sent from my Xperia U using XDA Premium 4 mobile app
Little Zed said:
Will surely test with WINE software on linux.
Sent from my ST25i using Tapatalk 2
Click to expand...
Click to collapse
And he is not saying it metaphorically.... ...
divinemamgai said:
And he is not saying it metaphorically.... ...
Click to expand...
Click to collapse
Ok then ket's port this to linux.
Sent from my ST25i using Tapatalk 2
Little Zed said:
Ok then ket's port this to linux.
Sent from my ST25i using Tapatalk 2
Click to expand...
Click to collapse
Dude just so you know I was referring to the word WINE in your previous post. , and hey can you continue this discussion in the new thread please.
To start off, credit goes to @GioBozza, @CappyT, @pioccd, @TotemFallico, @SimoIanni. They made this mod. All I did was port it to the V20.
ORIGINAL THREAD (go drop a "Thanks"): https://forum.xda-developers.com/nexus-6p/development/wakeblock-blocking-drain-late-t3526313
Next, some caveats:
Neither I nor the users mentioned above take any responsibility for anything that goes wrong with you installing this.
I have personally tested this on the H918 on the 10k firmware. I see no reason for it not to work on other variants, BUT MAKE BACKUPS!!!
This mod is unofficial, and will remain so, meaning I may not be able to update it for every release, whether that be a new Android version for the V20, or a new mod version.
This is for STOCK ONLY.
This mod requires ROOT.
Again, MAKE BACKUPS!!!!!!!!!
Instructions (READ THROUGH THEM FIRST):
Backup `/system/framework/services.jar` and `/system/framework/oat/arm64/services.odex` (The latter is only relevant for ODEXed ROMs).
Download and install the app from the linked thread.
Download the `services.jar` file attached or linked in this post.
Copy it to your device somewhere safe (such as `/sdcard/`).
Use either the command line or a root file explorer to copy the downloaded JAR to `/system/framework/`, overwriting the current one. (YOU MADE A BACKUP, RIGHT?)
Make sure its permissions are set to 0644 (rw-r--r--).
Use either the command line or a root file explorer to delete the `services.odex` file that you made a backup of I'm sure C_C.
Reboot.
(If you have TWRP 3.1.1-1, you'll have to keep the backups on your device somewhere, since it doesn't support MTP right now!)
If all went well, your phone will boot successfully and you'll have some pretty fine control over your wakelocks. If not, restore your backups using the TWRP file manager and try again.
If you have any questions about the installation process, ask here. Otherwise, ask on the linked thread.
Nice job!
Good job everyone!
Sent from my LG-US996 using Tapatalk
Excellent work! Been hoping this would get unoffiical support.
Edit: Damn, doesn't seem to boot on NotSoStock for the H918. I wonder if Tilde changed something in services.jar
@Zacharee1 nice find.
What are you using to compare before and after results of the mod?
Using the link you posted and github I've added the the mod to my rom all seems well but not sure which app will measure this best?
Also is there an app or something you are using to control which wakelock you want to block?
I tried the playstore version, but says device not supported...
Either way it doesn't seem to have any negative effects so far so I guess I'll just wait for a few days to see if there are any noticeable improvements...
Thanks for your work and contributions to this community!
Hopefully you'll still be using this device by time I finally go public with oZoP! Hopefully soon, but can't really say how much longer. Still many, many hours
stangdriver44 said:
@Zacharee1 nice find.
What are you using to compare before and after results of the mod?
Using the link you posted and github I've added the the mod to my rom all seems well but not sure which app will measure this best?
Also is there an app or something you are using to control which wakelock you want to block?
I tried the playstore version, but says device not supported...
Either way it doesn't seem to have any negative effects so far so I guess I'll just wait for a few days to see if there are any noticeable improvements...
Thanks for your work and contributions to this community!
Hopefully you'll still be using this device by time I finally go public with oZoP! Hopefully soon, but can't really say how much longer. Still many, many hours
Click to expand...
Click to collapse
I'm using Wakelock Detector Free to see which wakelocks are still happening. Some of them can't be blocked without causing systwm_server to continually crash, so you have to be careful.
The core kid is unsupported on this phone, not the app. If you swipe to the wakelocks tab, you should see a bunch.
I'm going to be on this phone for at least 2 years, so no worries there.
Aaren11 said:
Excellent work! Been hoping this would get unoffiical support.
Edit: Damn, doesn't seem to boot on NotSoStock for the H918. I wonder if Tilde changed something in services.jar
Click to expand...
Click to collapse
Did you set the permissions correctly?
d
stangdriver44 said:
@Zacharee1 nice find.
What are you using to compare before and after results of the mod?
Using the link you posted and github I've added the the mod to my rom all seems well but not sure which app will measure this best?
Also is there an app or something you are using to control which wakelock you want to block?
I tried the playstore version, but says device not supported...
Either way it doesn't seem to have any negative effects so far so I guess I'll just wait for a few days to see if there are any noticeable improvements...
Thanks for your work and contributions to this community!
Hopefully you'll still be using this device by time I finally go public with oZoP! Hopefully soon, but can't really say how much longer. Still many, many hours
Click to expand...
Click to collapse
Hi, the playstore app says "Unsupported" because it checks for official build of WakeBlock, now I am on DU wich is Unofficially supported and my home screen looks like this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If yours looks like this too you can proceed blocking wakelocks. Please refeer to this thread to see which wakelocks to block(remember that the WakeBlock app asks for the block time in milliseconds so you need to add 3 zeros to the guide's times)
SimoIanni said:
d
Hi, the playstore app says "Unsupported" because it checks for official build of WakeBlock, now I am on DU wich is Unofficially supported and my home screen looks like this
If yours looks like this too you can proceed blocking wakelocks. Please refeer to this thread to see which wakelocks to block(remember that the WakeBlock app asks for the block time in milliseconds so you need to add 3 zeros to the guide's times)
Click to expand...
Click to collapse
He changed some classpaths, so the service didn't bind. It's all working now.
Zacharee1 said:
Did you set the permissions correctly?
Click to expand...
Click to collapse
Yep. Chmod 0644
Aaren11 said:
Yep. Chmod 0644
Click to expand...
Click to collapse
Strange. If you send me the working jar, it probably won't be hard to edit, since NSS is deodexed.
SimoIanni said:
d
Hi, the playstore app says "Unsupported" because it checks for official build of WakeBlock, now I am on DU wich is Unofficially supported and my home screen looks like this
If yours looks like this too you can proceed blocking wakelocks. Please refeer to this thread to see which wakelocks to block(remember that the WakeBlock app asks for the block time in milliseconds so you need to add 3 zeros to the guide's times)
Click to expand...
Click to collapse
OP is correct... It was am error on myside and have since fixed and been blocking away those dang wakelocks!
Haven't really ever used anything that gve me control like this to pick and choose which ones! Very nice, now the problem is figuring out which ones to block! Haha
I have started lite with mainly just gms.core and will go from there.
Thank you for your work and thanks OP for bringing this here!
Awesome thank you!
Sent from my LG-H918 using XDA-Developers Legacy app
Quick update:
Don't use WakeBlock to block WifiOffDelayIfNotUsed. Your phone will reboot when connected to WiFi, disconnected from power, and put to sleep. This wakelock has been causing me some headaches, so here's an experimental JAR that just disables the wakelock altogether. Test it using the same instructions as in the OP (it does boot; I tested that far), and report any weird behavior. I won't be able to fix anything that happens because of this, but it'll be good for others to have that information.
If this goes well, I think I'll try packaging this into an AROMA installer. I've always wanted to try making one of those.
Aaren11 said:
Yep. Chmod 0644
Click to expand...
Click to collapse
Alright. I reuploaded the services.jar. Try it now.
Zacharee1 said:
Alright. I reuploaded the services.jar. Try it now.
Click to expand...
Click to collapse
Thank you! Sorry I was unable to reply yesterday. I'll give it a try
Edit: No luck unfortunately, still fails to boot. I've attached the services.jar from NSS 6.5
Just tried this on stock H910 and it couldn't get past the ATT logo. I replaced the .jar file and changed the permissions to 0644. Did I need to delete the .odex file in the .jar?
Will this work on G5?
Looks very interesting - out of curiosity has anyone had the dreaded "anx_wlock" kernel wakelock/battery drain on the V20 and managed to fix it with this?
Thanks. Works great on WETA 5.0.7 H918