[Q] Enable JIT help me - Optimus One, P500, V General

hi can some one tell me how to Enable JIT on my Optimus One.
I need a very simple guid.
Thy.

imapjonny said:
hi can some one tell me how to Enable JIT on my Optimus One.
I need a very simple guid.
Thy.
Click to expand...
Click to collapse
Root your phone
Install custom recovery
Download flashable zip that enables JIT
flash it

kite86 said:
Root your phone
Install custom recovery
Download flashable zip that enables JIT
flash it
Click to expand...
Click to collapse
I'm pretty sure that he wants a easy and detailed guide.
Domenic.

1. Does Z4Root work on this work?
2. What is a good custom recovery to use? does cwm work?

imapjonny said:
hi can some one tell me how to Enable JIT on my Optimus One.
I need a very simple guid.
Thy.
Click to expand...
Click to collapse
Once you've got the custom recovery on it's easy. Copy the jit enabling zip file to the root of your sdcard, reboot into recovery and choose flash zip from the recovery menu.

yes z4root is working!
I need a giud how to install custom recovery to

imapjonny said:
I need a giud how to install custom recovery to
Click to expand...
Click to collapse
http://androidforums.com/getitnowma...ry-optimus-one-p500-thunderg.html#post1896517
To use copy flash_image and recovery-RA-GNM-thunderg-1.1.0.img to the root of your sdcard.
To flash: via adb shell or terminal type this from root # shell
Code:
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
# cat /sdcard/flash_image > /system/bin/flash_image
# chmod 755 /system/bin/flash_image
# mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak
# mount -o remount,ro -t yaffs2 /dev/block/mtdblock1 /system
# flash_image recovery /sdcard/recovery-RA-GNM-thunderg-1.1.0.img
# reboot recovery
Key combo to boot custom recovery from powered off is vol_down + home + power and release keys at LG splash.
Click to expand...
Click to collapse

I m realy new in this scene
what is adb shell and where can i get it ?

imapjonny said:
I m realy new in this scene
what is adb shell and where can i get it ?
Click to expand...
Click to collapse
You can download Android SDK - this shell is part of this development tool

imapjonny said:
I m realy new in this scene
what is adb shell and where can i get it ?
Click to expand...
Click to collapse
Or root and get terminal app.
Either way, I tweaked mine for a vm.heapsize of 48mb.
JIT sure is handy but what about GPU accel?

I have flashed with jit zip.
I test the phone before,
with linpack,average result 3.5M
After flash with jit,actual result 7.8M
During the normale use i don't see evident boost performarce,
but for me is a good update.
Bye.

Sorry, but I thought Android 2.2 had the JIT compiler built in? It's turned off on the Optimus T?
This is my wife's phone, and in general it has good performance. But Angry Birds runs a slow on some of the screens. I was wondering if enabling the JIT compiler might help.
BTW, I've rooted the phone already to modify the SMS send limits.

Froyo normaly make active jit,
but on O1 this feature is not active by default.
If you have rooted the phone,install the recovery menu and flash with jit zip.

greno1 said:
But Angry Birds runs a slow on some of the screens. I was wondering if enabling the JIT compiler might help.
Click to expand...
Click to collapse
No that does not help, I have tested that. Removing the ads with adfree android seems to help a little bit, but generally the phones cpu has not enough power for angry birds.

The Angry Birds developers are working in a lower spec version that will run on 600mhz Arm6 processors more smoothly.

Just in case, figured someone would want it at some point.
dl-dropbox-com/u/13427114/signed_thunderc_thungerg_jit_disable.zip
(add http and replace - for dots)

Noejn said:
Just in case, figured someone would want it at some point.
dl-dropbox-com/u/13427114/signed_thunderc_thungerg_jit_disable.zip
(add http and replace - for dots)
Click to expand...
Click to collapse
you can also delete /data/local.prop and reboot too.

Or, flash this one which will not only enable JIT and change the vm.heapsize to 48mb but also enable hardware acceleration. Homescreen should be snappier.
dl"dot"dropbox"dot"com/u/13427114/mone/o1_jit-hwacc_enabler.zip
(add http and replace "dot" for .)

how should i install this? (Searched over the net and couldn't find how to install)
Will this increase my gaming and mobile performance ??
I have lg official 2.3.3 Rom, With franco kernel and also have SetCpu installed.

globeent1980 said:
how should i install this? (Searched over the net and couldn't find how to install)
Will this increase my gaming and mobile performance ??
I have lg official 2.3.3 Rom, With franco kernel and also have SetCpu installed.
Click to expand...
Click to collapse
Its enabled by default
Sent from my LG-P500

Related

[ThinkTank / WIP]Possible Alternate Root / No Boot Unlock Required

Okay I posted this also in the Themes forum for Nexus but I wanted to see if anyone could assist. Someone in the theme forum asked about the bootanimation.zip that shows us the cool animation during boot, while reading this it reminded me of the behold 2. See below
What are the permissions for bootanimation.zip if they were left open to non root then this may-b a way to get root with unlocking the bootloader. This would be the same approach that was used to root the behold 2 where the "try3" file was renamed to play_logo . play_logo then was used to root and after root was opened it would make play_logo_real play which was the boot animation. I may be wrong but couldnt this be a possibility. Thanks, any help is appreciated. Im wondering if Zinx could chime in...
How are you going to write to the bootanimation.zip without root? Further, do you intend to replace the recovery or update custom roms? I am just trying to figure out the purpose of root and flashing other customized images.
seraph1024 said:
How are you going to write to the bootanimation.zip without root? Further, do you intend to replace the recovery or update custom roms? I am just trying to figure out the purpose of root and flashing other customized images.
Click to expand...
Click to collapse
You can always write if I am not mistaken using the low-level write dd if/of command. We would use the bootanimation.zip to run the root command. An example is in the Samsung Behold 2 it was done as follows:
Example
echo "#!/system/bin/sh
/data/local/try3 /system/bin/sh
mount -o rw,remount /dev/st9 /system
cat /system/bin/sh > /system/bin/su
chmod 04755 /system/bin/su
/system/bin/playlogo_real" > /system/bin/playlogo
Click to expand...
Click to collapse
This is how it was done. I am wondering if the same can be done on the nexus using bootanimation.zip as it executed at startup. We would basically modify the bootanimation.zip to the above and add a line for it to execute the boot image. By gaining root this way we would still be able to put on a custom recovery and roms without unlocking the bootloader in theroy. The try3 file was created by Zinx and used by Maxisma to bring root to the behold 2. I am pretty sure this may work on the Nexus 1. I hope this helps.
Ok. I don't have a locked phone that I can play with at the moment. I'll make up a package for you tomorrow. Can you test it for me?
seraph1024 said:
Ok. I don't have a locked phone that I can play with at the moment. I'll make up a package for you tomorrow. Can you test it for me?
Click to expand...
Click to collapse
Okay XDA is back up. Yes I can test. Oh man if this works there will be absolutely no need to unlock the boot loader... Thanks
seraph1024 said:
Ok. I don't have a locked phone that I can play with at the moment. I'll make up a package for you tomorrow. Can you test it for me?
Click to expand...
Click to collapse
Hey Seraph1024 take a look at this. Its too big for XDA so I put it up on pastebin. http://pastebin.com/f62780d32 Its what is contained in the try3 file. Zinx used it in flashrec
No joy.
Code:
$ getprop | grep product.model
[ro.product.model]: [Nexus One]
$ pwd
/data/local
$ ls -al try3
-rwxrwxrwx 1 0 0 74512 Jan 25 13:26 try3
$ id
uid=2000(shell) gid=2000(shell)
$ ./try3 /system/bin/sh
[1] Killed ./try3 /system/bin/sh
$ id
uid=2000(shell) gid=2000(shell)
Exploit does not work.
I was that close to rooting today until i saw this now its made me double think again lol I've been waitin for a custom rom by cyanogen until i rooted, and since its pretty much almost here i was going to root. bah guess i'll wait until CM gets released!
flak0 said:
You can always write if I am not mistaken using the low-level write dd if/of command.
Click to expand...
Click to collapse
You can't on this phone. There are two ARM cores - one running the low-level stuff (bootloader, radio) and the other running Linux.
Without the engineering bootloader (or some exploit) we don't have access to the baseband ARM core, and therefore don't have access to its MMU, which is programmed to deny read/write access to protected areas of the flash - such as the bootloader and splash screens. Even with root, Linux can't access that stuff.
It's going to be really hard to find a kernel exploit for the N1 to get root. Most exploits involve mapping memory to the zero page and then triggering a null pointer de-reference bug in the kernel. But the N1's kernel won't allow such mappings.... I believe the minimum address for mmap on the N1 is around 64k. (It's in the kernel config.)
This is a tough nut to crack.
The behold root was done that way because there's no way to flash the partitons on it.
You still need root in the first place to write to that file. The droid guys have been looking a while for a new root exploit but didnt find one. The problem is that all known exploits have been closed in 2.1.
We need to wait for someone to find a new one that works. Then this would be a real posibility, and there' no need to hijack playlogo.
for what its worth, if you need a lab rat i do not have my phone rooted yet and i am willing to test some things if anyone needs...
i dont plan on rooting it until the ball really gets rolling with everything and until I am 100% satisified with the phones performance
kam187 said:
You still need root in the first place to write to that file.
Click to expand...
Click to collapse
That's what I though. And like it was posted earlier, I don't think there is a exploit since this phone is done differently. I am busy for the next couple of days but if anyone want to "try", I'll make up something but I really doubt any of the old stuff will work on this phone.

[FYI] dalingrin's 1.1Ghz Eclair kernel works on Honeycomb

The Honeycomb thread is getting swamped right now, so i thought i would make this for those interested.
The install of this is identical to the Froyo install method (but the Froyo kernel does not work! Use the Eclair) -
Plug in the SD card to your computer (Linux/Mac is preferred)
Download the Eclair 1.1Ghz Kernel Zip file
Extract the zip somewhere you know.
Open the SD card, and in the /boot partition, replace the uImage on the card with the one from the zip
*This is where linux works best*
If you have a linux/mac box, open the /data partition, and clear the contents of the dalvik-cache folder (but not the folder itself).
Running quadrant advanced on this build -
Before OC - 1450
After OC - 1838
And things are a bit smoother. Once again, thanks for your great work devs, and for your kernel dalingrin!
Thank you!!!
Divine_Madcat said:
The Honeycomb thread is getting swamped right now, so i thought i would make this for those interested.
The install of this is identical to the Froyo install method (but the Froyo kernel does not work! Use the Eclair) -
Plug in the SD card to your computer (Linux/Mac is preferred)
Download the Eclair 1.1Ghz Kernel Zip file
Extract the zip somewhere you know.
Open the SD card, and in the /boot partition, replace the uImage on the card with the one from the zip
*This is where linux works best*
If you have a linux/mac box, open the /data partition, and clear the contents of the dalvik-cache folder (but not the folder itself).
Running quadrant advanced on this build -
Before OC - 1450
After OC - 1838
And things are a bit smoother. Once again, thanks for your great work devs, and for your kernel dalingrin!
Click to expand...
Click to collapse
Thanks!
I tried the Froyo 1.1 and it was a no go, tried this and first boot hung, but second boot I'm up and going setCPU sees 1.1Ghz (no SU though).
I am on a mac, where is the /data partition?
dambrosioj said:
I am on a mac, where is the /data partition?
Click to expand...
Click to collapse
Hmm.. perhaps i wrongly assumed it would show up like it did on Linux (ubuntu) systems. It should show up as a partition just like /boot does. Perhaps somebody with a Mac can double check this for me?
Clear dalvik cache using adb
adb remount
adb shell rm -rf /system/sd/dalvik-cache
For the windows users out there...
Edit: Not actually sure if this will work as I'm currently burning the Honeycomb image as we speak....
Is there a way to clear Dalvik from the device like maybe in terminal?
Novarider said:
Is there a way to clear Dalvik from the device like maybe in terminal?
Click to expand...
Click to collapse
I am not sure, but really, i would advise clearing the cache before the first boot-up on the different kernel. It really reduces the amount of possible problems, though i guess you may be able to boot up OK without doing it.
Novarider said:
Is there a way to clear Dalvik from the device like maybe in terminal?
Click to expand...
Click to collapse
Anything you can do with adb shell you can do in the terminal. So if the shell command is
adb shell rm -rf /system/sd/dalvik-cache
Just go into the shell and do
rm -rf /system/sd/dalvik-cache
Also, I can confirm booting with the 1.1ghz kernel in Honeycomb.
dirtygreek said:
Anything you can do with adb shell you can do in the terminal. So if the shell command is
adb shell rm -rf /system/sd/dalvik-cache
Just go into the shell and do
rm -rf /system/sd/dalvik-cache
Also, I can confirm booting with the 1.1ghz kernel in Honeycomb.
Click to expand...
Click to collapse
No root access on honeycomb so no shell
so copy JUST the uImage file from "kernel-1100mhz-omap3630.zip" to the boot partition (which shows up as the only browseable partition in Windows)?
i'm getting the blinking "Android" turquoise text while trying to boot after doing that
So far this is working great for me. Thanks for the tip!
I reverted mine...
Maybe I did something wrong, but I found that the touch responsiveness went into the toilet
Put it back the way it was.
Can't wait til we can install and boot this thang internal-like
-K
jleecong said:
Thanks!
I tried the Froyo 1.1 and it was a no go, tried this and first boot hung, but second boot I'm up and going setCPU sees 1.1Ghz (no SU though).
Click to expand...
Click to collapse
So it hung a few times and loaded once more, but now will not load with the 1.1 kernel. Had no problems with this on Froyo.
I will say is doesn't freaze, it just is stuck at ANDROID_ (flashing)
jleecong said:
So it hung a few times and loaded once more, but now will not load with the 1.1 kernel. Had no problems with this on Froyo.
I will say is doesn't freaze, it just is stuck at ANDROID_ (flashing)
Click to expand...
Click to collapse
Same here...
jleecong said:
So it hung a few times and loaded once more, but now will not load with the 1.1 kernel. Had no problems with this on Froyo.
I will say is doesn't freaze, it just is stuck at ANDROID_ (flashing)
Click to expand...
Click to collapse
Because you use the eclair one, not froyos.
Sent from a NC on [email protected] using tapatalk pr0z
camwinnn said:
Because you use the eclair one, not froyos.
Sent from a NC on [email protected] using tapatalk pr0z
Click to expand...
Click to collapse
That, and you may have issues if you didn't clear dalvik..
kaicherry said:
Maybe I did something wrong, but I found that the touch responsiveness went into the toilet
Put it back the way it was.
Can't wait til we can install and boot this thang internal-like
-K
Click to expand...
Click to collapse
Once you've booted just lock the nook and then unlock it. This an issue with current kernels compiled from source.
FWIW, I have updated my original thread.
camwinnn said:
Because you use the eclair one, not froyos.
Sent from a NC on [email protected] using tapatalk pr0z
Click to expand...
Click to collapse
I tried the 1.1 Froyo kernel (that still works fine with Froyo) before this post with Honeycomb, it did NOT work, but the Eclair kernel did as the OP said.
Divine_Madcat said:
That, and you may have issues if you didn't clear dalvik..
Click to expand...
Click to collapse
Yes I cleared dalvik... Like I said it booted twice and didn't boot about 20 times.
If it work for others GREAT! I'm just posting my feedback. Applying Honeycomb v.02 now.
Booting Honeycomb .02 with the 1 Ghz kernel... The 1.1 did the same thing. Either way this is rockin!
Won't boot for me using the Eclair 1.1 kernel. I cleared dalvik, but won't get past the turquoise "ANDROID" with the blinking cursor.

[MODULE | TEST] Native Wifi Tethering / Netfilter | by AnDyX

NEEDED MEDIUM / HIGH ANDROID KNOWLEDGE
Hello, guys, as some of you know, AnDyX (X8 forums, please give him a thumbs up for this) managed to build a module for hijack kernel to enable NetFilter, that includes Iptables, and of course and not less important Native wifi tethering.
So this is the current installation method (need to be runned again on reboot):
1. Download .zip (MD5: 7006E968E6C9B30E643ECB49756A2C25)
2. ADB Shell / Console emulator
Code:
busybox mount -o remount,rw -t yaffs2 `mount | busybox grep /system | awk '{print $1}'` /system
chmod +x /system/xbin/iptables
sh /system/xbin/full_iptables.sh
busybox mount -o remount,ro -t yaffs2 `mount | busybox grep /system | awk '{print $1}'` /system
3. Now module should be loaded.
Will upload full working and permanent module soon...
Already replied in the X8 thread - seems to install fine, but initial cursory testing with proxy scripts failed.
Have not tried tethering yet, but will do tomorrow assuming I have time at work!
Is this just "for the moment" and will be gone when I reboot ?
Otherwise thanks
wow! i really need this for ssh tunneling and proxy..heh2
EDIT:i just found an app called droidproxy for proxying my ip..so just need this module for tunneling..
Hmm, if you guys manage to get this module to a stable state..... *lost in dream*
Is there anything this little phone can't do? (exception : flash)
Guys, uploaded last version, thanks to AnDyX, needed testers (preferible with 3G data plan).
Cheers.
D4.
@dark
all i need to flash it in cwm is that correct. i am going to try.
edit: got first reboot as i enabled the 2g connection. lolz
i think its only supports usb tethering, is that correct, are you also working on wifi tethering.
thanks another grt job.
shravanchoudhary9 said:
@dark
all i need to flash it in cwm is that correct. i am going to try.
edit: got first reboot as i enabled the 2g connection. lolz
i think its only supports usb tethering, is that correct, are you also working on wifi tethering.
thanks another grt job.
Click to expand...
Click to collapse
First, this is not my work. Second, Instructions and details are on first post, did you even read it?. Third, Title it's NATIVE WIFI TETHERING, how you dare to ask if this is USB tethering?
No offends of course, but please read before asking
D4rKn3sSyS said:
First, this is not my work. Second, Instructions and details are on first post, did you even read it?. Third, Title it's NATIVE WIFI TETHERING, how you dare to ask if this is USB tethering?
No offends of course, but please read before asking
Click to expand...
Click to collapse
omg sorry dude, i was that much excited that i skipped the "wifi" and only read native tethering so please sorry and i already hitted my thanks andyx and you also.
.
also i have flashed that.
D4rKn3sSyS said:
Guys, uploaded last version, thanks to AnDyX, needed testers (preferible with 3G data plan).
Cheers.
D4.
Click to expand...
Click to collapse
Hi, I can test. I'm using your cyanocomb and I have unlimited data. But I don't have Android knowledge. All I can do is flash things with CWM...
Sent from my U20i using XDA App
SamuelDebruyn said:
Hi, I can test. I'm using your cyanocomb and I have unlimited data. But I don't have Android knowledge. All I can do is flash things with CWM...
Sent from my U20i using XDA App
Click to expand...
Click to collapse
I assume you can use adb?
on your pc open cmd and do the following (after you flashed it with cwm)
1)adb shell -after this, it will go into your phones' terminal
2) /system/xbin/full_iptables.sh
3) exit
4) adb shell dmesg > dmesg.txt
5) adb shell lsmod > lsmod.txt
6) adb shell iptables -L > iptables.txt
7) adb shell iptables -t nat -L >> iptables.txt
and post dmesg.txt,lsmod.txt and iptables.txt on the module's thread (in the x8 forums).
make sure to include what device you are using. Also test using Wireless Tether for Root Users (from market) and post results there too.
EDIT: If you do not know how to use adb, use the batch script provided. Just plug your phone into your computer and make sure USB debugging is enabled (and you flashed v2 of the module).
Awesome work.
Question. this module will allow "Droid Wall" to work correctly?
I think it should...
It should, once they get it working.
WiFi tethering working now
WiFi tethering working now with V-3
some one please make easy installation of V-3 Module
mukptl said:
WiFi tethering working now with V-3
some one please make easy installation of V-3 Module
Click to expand...
Click to collapse
Thanks for the info, ill build some easy script as son as I get home
here is flashable Netfilter v003
Eyama said:
here is flashable Netfilter v003
Click to expand...
Click to collapse
Thanks, but just for be clear, with that zip you still need to do commands from console emulator on first post
yes i konow but mukptl just want to have flashable modules
Q: what is about .apk that AnDyX made and is posted in his thread named signedwireless_tether_2_0_7.apk?
Eyama said:
yes i konow but mukptl just want to have flashable modules
Q: what is about .apk that AnDyX made and is posted in his thread named signedwireless_tether_2_0_7.apk?
Click to expand...
Click to collapse
It's a software modded that can run the right scripts to enable wifi tethering (so you install zip, then run sh commands, and then install apk for tethering)
Thanks for info. i will wait for you to make proper script beacuse i know that you are genius

[RECOVERY] ClockWorkMod Installer - Windows v5 - Linux v4

This is only for use on the X10 Mini Pro.
Credits go to nobodyAtall & D4rKn3sSyS for the actual CWM files. Other credits in the README.txt file.
Both version currently use CWM v3.x r5
Windows
Requirements:
Windows PC
USB Cable
Phone driver installed
Android Version 2.1 Stock ROM (2.1.1.A.0.6) (May work on Froyo and Gingerbread ROM's but any custom ROM should have a recovery already installed)
Usage:
You need to set your phone in Debugging Mode.
Connect your phone to your computer
Open up install.bat and follow the instructions inside that.
CWM Usage:
When booting your phone and when the 'Sony Ericsson' letters appear, press and release continuously the 'back' button.
Once you are in the CWM recovery, use the volume keys to navigate upwards / downwards, the 'home' or camera button key to select, the 'back' key to go back.
Last Update:
21-03-2012 v5
Updated Superuser apk and su to version 3.0.7
Replaced SuperOneClick with alternative method
Prefixed relative paths with %~dp0 to complete full paths. This is to combat over zealous group policies. Thanks go to satanselbow
Linux
Requires your phone to be ROOTed but there is now a ROOTer for Linux that can ROOT your phone if not already done. Can be found in this forum.
Requirements:
*nix PC/Laptop
USB Cable
Android Version 2.1 Stock ROM (2.1.1.A.0.6) (May work on Froyo and Gingerbread ROM's but any custom ROM should have a recovery already installed)
Usage:
You need to set your phone in Debugging Mode
Connect your phone to your computer
Open up terminal
Go to the directory it is extracted to
Start the installer by typing "sh cwm-x10minipro.sh"
CWM Usage:
When booting your phone and when the 'Sony Ericsson' letters appear, press and release continuously the 'back' button.
Once you are in the CWM recovery, use the volume keys to navigate upwards / downwards, the 'home' or camera button key to select, the 'back' key to go back.
Last Update:
23-Sept-2011 (v4)
Fixed question about USB Debugging
Fixed permissions on ADB
Links:
Original X10 Mini CWM Thread: http://forum.xda-developers.com/showthread.php?t=1105745
Original X10 Mini Pro CWM Thread: http://forum.xda-developers.com/showthread.php?t=1106146
Changes:
The changes for the latest version are included in the relevant sections above. A more detailed list of changes across all versions is in the CHANGES.txt file that is in the archive file.
Download:
Windows: Download
Linux: Download
Please do not re-host or re-release without permission.
Don't forget if you found this helpful please push the "Thanks" button
copy failed read only file system
is this basically a batch file?
because if so i could port it to linux for you
mopgawka - Did you get the correct mtdblock number. The file would set the system dir as r/w to enable you. The mtdblock number is the number directly after the text mtdblock, in the image below it is 0.
Another question was there an error after the "Getting ROOT rights" text? This was the bit that caused me the most issues.
x10man - Yes it is just basically a batch file. If you want to port to linux then go ahead
ClockWorkMod Recovery Installer for X10 Mini Pro by rect2409.
Requirements and credits are listed in the README.txt file.
Please make sure requirements are met before continuing.
...
..
Для продолжения нажмите любую клавишу . . .
Starting ADB Server if not started.
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Getting ROOT rights.
rootsh: permission denied
Usage: mount [-r] [-w] [-o options] [-t type] device directory
Enter the mtdblock number listed "/dev/block/mtdblock? on /system"
Enter mtdblock number: 0
Mount system as R/W.
mount: Operation not permitted
Do you already have a recovery installed? (Y/N):n
Pushing recovery tar file.
failed to copy 'recovery\recovery.tar' to '/system/bin/recovery.tar': Read-only
file system
Pushing chargemon.
failed to copy 'recovery\chargemon' to '/system/bin/chargemon': Read-only file s
ystem
Setting permissions for recovery tar file.
Unable to chmod /system/bin/recovery.tar: Read-only file system
Setting permissions for chargemon.
Unable to chmod /system/bin/chargemon: Read-only file system
Stopping ADB Server.
* server not running *
..
i always rooted
Ok, Currently working on a new version which hopefully fixes your issues.
Thanks I will dl it and take a look later and post the result here
Sent from my U20i using XDA App
how did you root your phone? I also don't have a script called "rootsh". also you can check if you are rooted with "id". many ppl like me are just rooted after entering the shell
also it's better to use "su" when calling commands that have to be done by root: "su - -c 'mount xyz' "
also don't forget the "*" if you check for keyboard inputs (there are people that may miss the key they wanted to push .D)
good luck.
Finnaly! Thank you! Would love to see cwm being imported in the slades kernel, that way we never have to deal with broken files!
Snoopo said:
how did you root your phone? I also don't have a script called "rootsh". also you can check if you are rooted with "id". many ppl like me are just rooted after entering the shell
also it's better to use "su" when calling commands that have to be done by root: "su - -c 'mount xyz' "
also don't forget the "*" if you check for keyboard inputs (there are people that may miss the key they wanted to push .D)
good luck.
Click to expand...
Click to collapse
Yeah I just noticed that i left rootsh in there. Was just something I was playing with.
One thing I hate is Permission Denied error's with adb... Oh fun.
damn. i just did the port and managed to delete the files. DAMN windows temp file thingys anyway tommorow it will be done
TY man u awesome!!!!! thx u all work fine!!!!
rect2409 said:
mopgawka - Did you get the correct mtdblock number. The file would set the system dir as r/w to enable you. The mtdblock number is the number directly after the text mtdblock, in the image below it is 0.
Another question was there an error after the "Getting ROOT rights" text? This was the bit that caused me the most issues.
x10man - Yes it is just basically a batch file. If you want to port to linux then go ahead
Click to expand...
Click to collapse
In linux we used to set the mount point to a variable and then issuing the r/w command. I don't know how you can do this trick in windows.
Code:
mtd=mount | grep system | awk '{print $1}'
echo "Mounting /system rw"
mount -o remount,rw -t yaffs2 $mtd /system
The question about the mount point isnt in the newer version. It just assumes that the system mtdblock is 0.
If it causes a problem in the future I may change it back to selecting the mtdblock number but from all the times I have tried the mtdblock on the x10 mini pro has always been 0.
In windows the answer is just saved as a variable that you assign to the question.
Sent from my X10 Mini Pro using XDA App
Updated with v3.
Just added new way of gaining ROOT access and another check to make sure phone is ROOTed.
EDIT: Oops forgot I had posted last :/ Sorry
3.2.0.0-r3 is old newest is 3.2.0.0-r5
I tried to fix permissions but it's been doing that for almost an hour now... Is that normal, to take that long? Should I remove the battery?
EDIT: Forget it, after looong time waiting, it's finished
EDIT 2: It erased all my preferences! Is that supposed to happen?
I have never had to fix permissions myself so I don't know the process it uses. You could try in the CWM thread where they should be able to help you. Link is http://forum.xda-developers.com/showthread.php?t=1106146
Sorry
quangnhut123 - I don't have that version of CWM and the CWM thread only has r3. If you have r5 then could you give me the files please and will update it.
rect2409 said:
I have never had to fix permissions myself so I don't know the process it uses. You could try in the CWM thread where they should be able to help you. Link is http://forum.xda-developers.com/showthread.php?t=1106146
Sorry
quangnhut123 - I don't have that version of CWM and the CWM thread only has r3. If you have r5 then could you give me the files please and will update it.
Click to expand...
Click to collapse
r5 is the one with multiboot i believe
x10man said:
r5 is the one with multiboot i believe
Click to expand...
Click to collapse
Ahhh. Okay didn't realise that.
Have uploaded a version that includes r5 for the people that have to have the latest... Also kept v3 up as all that has changed is the CWM version.

[Overlay] Enable Night Light, Auto-Brightness, Ambient Display & more on Treble ROM

[Overlay] Enable Night Light, Auto-Brightness, Ambient Display & more on Treble ROM
Hello.
By default, phhusson's generic AOSP Treble ROM is bare bones. That means it does not include features such as Night Light, Ambient Display, or Adaptive Brightness. Luckily all you need is the right overlay and you can bring these features back.
I tested this on the Huawei Mate 10 Pro and everything seems to work save for the lift-to-wake gesture. I am not sure if a simple overlay can enable that, as I already target the right boolean value for it. As for Adaptive Brightness, the lux and corresponding backlight values were borrowed from the Huawei Mate 9's framework-res.
Update 2/19/18
With the release of phhusson's Android 8.1 Oreo Treble GSI, I thought I would take the time to update my overlay as well with a new feature: Always on Display. You can download the overlay from the attachment in this comment, and install it using the same set of instructions below (don't install the overlay attached in this post if you want AOD). Please read the warnings carefully. I accept no responsibility for anything you do with your phone.
Update 2/6/18
I have updated the attached framework overlay to include the following features:
WiFi automatic wakeup
Pinner service for the default camera app and critical framework files
This should work on any device that can boot phhusson's Treble ROM.
Installation Instructions
Download the attached overlay
With root, push the overlay to /vendor/overlay. Create the folder if it doesn't exist.
Run the following command in a rooted terminal or ADB shell:
Code:
chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay;chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay/framework-res__auto_generated_rro.apk
Reboot
XDA Labs adds emojis in the command for some reason. Open this thread in a browser to get the right command.
Why do you need to run that command? Without it, the overlay won't be seen as installed and isn't enabled. I'm not sure why, but according to phhusson it's an SELinux-related issue and this command fixes that.
Enjoy!
What is the code?
独影阑珊 said:
What is the code?
Click to expand...
Click to collapse
Code:
chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay;chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay/framework-res__auto_generated_rro.apk
Why?
独影阑珊 said:
Why?
Click to expand...
Click to collapse
It does not work because you have included spaces in the command that are not there.
tusko5 said:
It does not work because you have included spaces in the command that are not there.
Click to expand...
Click to collapse
Oh, thanks.
Hello, not working on mate 9, all commands OK - no output error (I added mount -o rw,remount /system and mount -o rw,remount /vendor) to copy your files, but even after reboot no new things
EDIT : after "installing" the app (click on it with a root explorer), all options are now visible but not working
how can i get the root access on the rom?
It is also not working on honor v9 .
mrassol said:
Hello, not working on mate 9, all commands OK - no output error (I added mount -o rw,remount /system and mount -o rw,remount /vendor) to copy your files, but even after reboot no new things
EDIT : after "installing" the app (click on it with a root explorer), all options are now visible but not working
Click to expand...
Click to collapse
If you install it as a regular app, it won't work. It MUST be pushed to /vendor/overlay manually, and you MUST run that command.
javawppp said:
how can i get the root access on the rom?
Click to expand...
Click to collapse
Install phhusson's SuperUser from the Play Store.
独影阑珊 said:
It is also not working on honor v9 .
Click to expand...
Click to collapse
Did you follow the steps exactly? This can't be installed like a regular app.
you did'nt read my post
I did all you wrote (I even add mount -o rw,remount /system and mount -o rw,remount /vendor) and nothing changed
AFTER that, I install the apk from /vendor/overlay using a root explorer and now the options are visible, brightness is working (I didn't saw it first), night mode is also working, ambiant display is also working but the option to turn on phone on pickup don't work.
So my bad, I didn't test it so much
MishaalRahman said:
If you install it as a regular app, it won't work. It MUST be pushed to /vendor/overlay manually, and you MUST run that command.
Install phhusson's SuperUser from the Play Store.
Did you follow the steps exactly? This can't be installed like a regular app.
Click to expand...
Click to collapse
When I try to open it as a regular app , my phone display it can not open .I am sure it be pushed to /vendor/overlay .,and I have run the commed and rebooted system at least 5 times.but it still useless.(I am sorry my English is poor.)
独影阑珊 said:
When I try to open it as a regular app , my phone display it can not open .I am sure it be pushed to /vendor/overlay .,and I have run the commed and rebooted system at least 5 times.but it still useless.(I am sorry my English is poor.)
Click to expand...
Click to collapse
You are running phhusson's AOSP Treble ROM, correct? What device?
MishaalRahman said:
You are running phhusson's AOSP Treble ROM, correct? What device?
Click to expand...
Click to collapse
Yes,My device is Honor V9.
独影阑珊 said:
Yes,My device is Honor V9.
Click to expand...
Click to collapse
Ah, okay. That is the Honor 8 Pro's Chinese version. Have you tried this ROM? https://forum.xda-developers.com/honor-8-pro/development/rom-t3714728 I was told by the dev that he included these features by default. You flash it the same way with phhusson's ROM.
MishaalRahman said:
Ah, okay. That is the Honor 8 Pro's Chinese version. Have you tried this ROM? https://forum.xda-developers.com/honor-8-pro/development/rom-t3714728 I was told by the dev that he included these features by default. You flash it the same way with phhusson's ROM.
Click to expand...
Click to collapse
Thanks,I will try it.
Took me a while to get it to work on my mate 10 pro, then realised I had to manually set the permissions on the folder, and file for it to work. Great job!
Is there a way I could edit the minimum and maximum brightness it reaches?
Thanks again
etern1ty said:
Took me a while to get it to work on my mate 10 pro, then realised I had to manually set the permissions on the folder, and file for it to work. Great job!
Is there a way I could edit the minimum and maximum brightness it reaches?
Thanks again
Click to expand...
Click to collapse
Ah, I forgot about that. I believe the folder permissions are 755 and the APK should be 644, correct? As for setting the brightness, do you want to increase the minimum and lower the maximum of the adaptive brightness?
MishaalRahman said:
Ah, I forgot about that. I believe the folder permissions are 755 and the APK should be 644, correct? As for setting the brightness, do you want to increase the minimum and lower the maximum of the adaptive brightness?
Click to expand...
Click to collapse
Yeah, that sounds right I just matched the other folders and APKs. I was hoping to decrease the minimum (so it's darker), I don't notice a big effect on my mate 10 pro.
Is there a guide for going about this? I'm interested to learn how to make these sorts of modifications myself.
Cheers
etern1ty said:
Yeah, that sounds right I just matched the other folders and APKs. I was hoping to decrease the minimum (so it's darker), I don't notice a big effect on my mate 10 pro.
Is there a guide for going about this? I'm interested to learn how to make these sorts of modifications myself.
Cheers
Click to expand...
Click to collapse
Decompile my overlay. Look in /res/values/arrays.xml. Look at "config_autoBrightnessLcdBacklightValues" array and change the first item, <item>6</item> to <item>1</item>. Build the APK, sign it, and then push.

Categories

Resources