[Q] [sola]Illumination Bar isn't working with jelly bean - Sony Xperia P, U, Sola, Go

I've found this page.It's about Illumination Bar API.
What does it mean / make? Does it make changes about jb illumination bar issue? If not, what can we do to fix this issue?

JohnHK said:
I've found this page.It's about Illumination Bar API.
What does it mean / make? Does it make changes about jb illumination bar issue? If not, what can we do to fix this issue?
Click to expand...
Click to collapse
Originally posted by akkufix
For those who are interessted in a working illumination-bar...
Here it is.
Rename "hw_config.sh.txt" to "hw_config.sh", adb push it to /system/etc (overwrite original) and chmod it to 644 (rw_r__r__).
Maybe you need to give write-permitions on /system/etc to do it.
adb shell -> su -> mount -o rw,remount /system and if necessary chmod 777 to /etc.
Don't forget to re-set right permitions after you copied the file.
Reboot and illumination-bar will come up while device is booting.
This should work for most roms ported from Go.
Comparing hw_config.sh before overwrite the original file. If this is different, you could take out the "ALS" part from mine and put it in yours.
Should also work with Cyanogen-mod-rom, because directories are the same.
You also could change parameters in ALS-part to make bar flashing or react in another way.
But, pls. have a look in datasheet first, because you may get over-current your LED, if you change wrong register. So, be carefull with i.e. 0x0a
Changing parameters on $kblight path aren't dangerous, but may cause non-function of the bar. Just re-write "old" value then.
You can find datasheet for as3677 here, by clicking on "Download":
http://www.ams.com/eng/Products/Lighting-Management/Lighting-Management-Units/AS3677
Enjoy... 
Sent from my Sony Xperia™ sola using XDA Premium
---------- Post added at 10:34 PM ---------- Previous post was at 10:31 PM ----------
See here http://forum.xda-developers.com/showthread.php?t=2258416
Sent from my Sony Xperia™ sola using XDA Premium

Please explain more!!
Ben Ling said:
Here it is.
Rename "hw_config.sh.txt" to "hw_config.sh", adb push it to /system/etc (overwrite original) and chmod it to 644 (rw_r__r__).
Maybe you need to give write-permitions on /system/etc to do it.
adb shell -> su -> mount -o rw,remount /system and if necessary chmod 777 to /etc.
Don't forget to re-set right permitions after you copied the file.
Click to expand...
Click to collapse
You know that I need more discussion . Please give more details.
I've navigated to system/etc and I've found the file already with the name "hw_config.sh" not "hw_config.sh.txt"

1. What do you mean by "adb push" ?
2. How to set the right permissions?
3. What is "ALS" part?

Having looked in to it a bit for my XU I think the problem as it stands is that the Jelly Bean ports for XSola and XU don't have the correct libraries to use the hardware on those devices. The libraries from ICS don't appear to work so can't be used and the ones from the official XGo and XP Jelly Bean releases are specific to those devices and so don't work.
Using rundgong's IlluminationReceiver (available here, though you may already have it) you can get some functionality back but it's not perfect.
Also, I'm not sure about the XSola port of JB but on the XU versions they came with a library that was originally from CyanogenMod and it seems to use the led bar for standard android notifications rather than the power led. This means that if you have the Illumination Notification app (also from rundgong) the two can clash and you end up with both trying to control the led bar.

JohnHK said:
1. What do you mean by "adb push" ?
2. How to set the right permissions?
3. What is "ALS" part?
Click to expand...
Click to collapse
i'm not sure too...
Please remove the Xperia sola photo by me... @JohnHK
I have PM you twice but you didn't remove or reply me.
Thanks.

Related

[THEME] Gingerbread Theme V2 (NO ATT)+Black Browser

This version has no ATT, White notification text, fixed signal bars, and no FC's! Based on Adeo, so you keep the reboot functionality. This works for me on the new 1.5.2 SBF as well as Adeo. the "newbackup" framework apk is NOT deodexed, and from the new 1.5.2 SBF.
I still need to take new screenshots without the ATT and white notification text, but nothing else changed, so you should be able to use your imagination
New Black Browser (still unfortunately black text and a white text box until I can get apktool to actually build the browser apk).
For those who would like to know, I'm using Launcher Pro Plus, Light Grid LWP, and Beautiful Widgets with the small Super Clock and Simplicity theme with no background. Androdena weather icons.
If you want to revert, please follow the instructions with the framework-old and services-old files renamed to framework-res.apk and services.jar (remove .zip).
For the Black Browser, please just re-run with the backup browser apk.
To install the Browser, copy (cp) your current /system/app/Browser.apk to /mnt/sdcard, then adb push the downloaded apk to your phone in a directory of your choosing, and with root, run cp /path/to/Browser.apk /system/app/Browser.apk and reboot.
If you are deodexed, and you follow these instructions to a tee, there shouldn't be issues. No guarantees if not, though I'm running the new SBF non-deodexed, and no issues.
Here are modified instructions copypasta'd from Designgears (thanks man!):
First, Rename the downloaded services.zip to services.jar (due to xda's upload restriction on .jar files).
[/B]
run "Shell Root" from SuperOneClick, wait until it says you have root.
Enter adb shell from command line, You should have root(#) access:
adb shell
Mount the system directory as read/write:
mount -o rw,remount /dev/block/mmcblk0p12 /system
Make a new directory on /data for your framework file:
mkdir /data/framework
Exit shell:
exit
Then from the directory of the downloaded files, run:
adb push framework-res.apk /data/framework
adb push services.jar /data/framework
Enter ADB Shell:
adb shell
Copy your new files to their proper location:
cp /data/framework/services.jar /system/framework
cp /data/framework/framework-res.apk /system/framework
Reboot:
reboot now
Phone will flash a red led. Just let the phone reboot (it will take up to a minute, so just be patient!).
IF YOU GET ANY READ ONLY ERRORS WHILE INSTALLING, MAKE SURE YOU'RE IN A ROOT SHELL (IF NOT, TYPE SU), THEN RUN THE FOLLOWING BEFORE TRYING THE FAILED STEP:
mount -o rw,remount /dev/block/mmcblk0p12 /system
nice
i want it
but dammmn its alot of work
I think fastboot might be unnecessary, however for some reason, I've had the best results using super one click every time.
Really, it takes 5-10 minutes, and some copy pasting...I've already done the hard stuff.
Im planning on releasing a shell script to be run in the folder with the files on the phone with terminal emulator, but want to polish the theme a bit more.
Sent from my MB860 using XDA App
thanks, i'll be bookmarking this page for updates.
synergye, you can remove AT&T from the status bar if you change framework-res.apk/res/layout/status_bar.xml, and carrier length and padding to zero on line 5.
Also, the phone will reboot itself with the reboot now command, it just takes a bit (45-60 seconds). Do that instead of pulling the battery.
Good luck on getting the white text and removing AT&T from the task bar.
Can't wait
shawnbuck said:
synergye, you can remove AT&T from the status bar if you change framework-res.apk/res/layout/status_bar.xml, and carrier length and padding to zero on line 5.
Also, the phone will reboot itself with the reboot now command, it just takes a bit (45-60 seconds). Do that instead of pulling the battery.
Click to expand...
Click to collapse
Thank You very much Shawn! I'm going to change the original post, and remove ATT ASAP.
synergye said:
Thank You very much Shawn! I'm going to change the original post, and remove ATT ASAP.
Click to expand...
Click to collapse
Glad to help
Also, this theme won't mix with Adeo because of the reboot option it uses.
shawnbuck said:
Glad to help
Also, this theme won't mix with Adeo because of the reboot option it uses.
Click to expand...
Click to collapse
I'm actually using Adeo with it right now and still have the reboot option. I would assume this is because I modified the framework-res apk from Adeo.
Thats great, going to install this right now.
Shawn, I've tried droiddraw, microsoft's xml editor, excel, eclipse, wordpad, and notepad won't actually open the status bar xml. What am I missing?
It's a proprietary compiled XML format. To unpack it, you need to use apktool.
http://code.google.com/p/android-apktool/
Use:
apktool d framework-res.apk framework-res
apktool b framework-res.apk framework-new.apk
IMPORTANT:
Make sure you have the META-INF files inside the new apk. The easiest way of doing this is repacking the apk as something new, pulling out the compiled XML files, then adding them into the original apk.
On a side note, its nice to see an honest representation of what data connection the phone is getting.
I have a question. The data/framework folder we create, is there any reason why we cannot do it from a folder on our sdcard like how we pushed the deodex file over from designgears? Is this just your preference to have it in data or is it 100% required? Just curious cuz after we do all this we will have an empty data/framework folder just sitting there.
There's no reason it can't be in an already existing folder, or just data.
@Sean, thanks for the help, didn't know I'd be using apktool for that.
Sent from my MB860 using XDA App
synergye said:
There's no reason it can't be in an already existing folder, or just data.
@Sean, thanks for the help, didn't know I'd be using apktool for that.
Sent from my MB860 using XDA App
Click to expand...
Click to collapse
Thanks. There is a minor typo in your instructions. You forgot a space between CP and / for the service.jar line. You will get a directory does not exist without that space
Copy your new files to their proper location:
cp /data/framework/framework-res.apk /system/framework
cp/data/framework/services.jar /system/framework
Copy your new files to their proper location:
cp /data/framework/framework-res.apk /system/framework
cp /data/framework/services.jar /system/framework
Some reason my signal icons are not showing up properly and stays on white even though i have full bars. also the signal part is still black
NguyenHuu said:
Thanks. There is a minor typo in your instructions. You forgot a space between CP and / for the service.jar line. You will get a directory does not exist without that space
Copy your new files to their proper location:
cp /data/framework/framework-res.apk /system/framework
cp/data/framework/services.jar /system/framework
Copy your new files to their proper location:
cp /data/framework/framework-res.apk /system/framework
cp /data/framework/services.jar /system/framework
Some reason my signal icons are not showing up properly and stays on white even though i have full bars. also the signal part is still black
Click to expand...
Click to collapse
Thank you for your correction.I believe this is because I replaced only one set of radio icons, so.if you're roaming, etc, they'll revert. Ill unify them later today. Also, the data portion stays white as if it's uploading and downloading until.it connects.
Sent from my MB860 using XDA App
Another note: after you push framework it will auto reboot, no need to enter in a command. So you push services.jar first, then push framework or else it will reboot before you can do it. Not sure if it will also auto reboot if you push services.jar, but it does with framework-res.apk.
I also noticed that graphics were replaced that were unrelated to the status bar such as graphics for various menu items and popups. It made them have white text on light grey background, which was hard to see. I went through the original framework and compared it with the gingerbread one and only moved over miles that were related to the status bar.
it looks better now, just missing the icons for the signal bars for normal state and also getting rid of the at&t text. Thanks for the mod!
@synergye
Would changing the images in the framework file work? Or would we need to take any special care? I mean, if we update the images only in the framework file and push that to our phone, would it work?
diablo009 said:
@synergye
Would changing the images in the framework file work? Or would we need to take any special care? I mean, if we update the images only in the framework file and push that to our phone, would it work?
Click to expand...
Click to collapse
yeah that's what i did too to replace the images that were misplaced. just change up the images in framework-res, then follow the directions in the OP to push it back in. i did it several times today.
you still gotta be wary of making your own though cuz some of the pngs are .9 extensions, those are tricky. but if you just copying and pasting images from other frameworks over, that should be fine.
NguyenHuu said:
yeah that's what i did too to replace the images that were misplaced. just change up the images in framework-res, then follow the directions in the OP to push it back in. i did it several times today.
you still gotta be wary of making your own though cuz some of the pngs are .9 extensions, those are tricky. but if you just copying and pasting images from other frameworks over, that should be fine.
Click to expand...
Click to collapse
I only want to change the status bar to something dark, and the battery icon to be one with numbers so I can take off the battery level app.

[REQ] HTC Sense 3.0 LWP

http://forum.xda-developers.com/showthread.php?t=977912
Does anyone know if there is a working version for the Atrix? Id love to get this to work.
Thanks.
I'm no expert, and it's not my style, but I'll give it a try and report back in a few minutes.
EDIT: I got it partially working, I installed the apk in the zip, and moved the files in the system/lib directory of the zip file to /system/lib. after that you can use the wallpaper without a force close, but it doesn't fill the screen. I'll try one more thing and include a screenshot.
you'll need to pull the files from an htc device that is qhd. I think the sensation is qhd, but I'm not sure.
Sent from my MB860 using XDA App
downtrodn said:
http://forum.xda-developers.com/showthread.php?t=977912
Does anyone know if there is a working version for the Atrix? Id love to get this to work.
Thanks.
Click to expand...
Click to collapse
What part do u like about it?
I used Alien ROM + theme + Sensual GingerBread
Looks alot like it. check them out
I just want the live wallpaper since I'm a camera man, I love the bokeh
My gf has the evo 3D tried to don't the apk but only found android live wallpaper apk.
Sent from my MB860 using Tapatalk
i pulled the files from an HTC Sensation rom and sure enough it works fine, and is the right resolution for our screens. I can't make an update.zip though, i tried a few dozen times and only get errors.
uiskibum said:
i pulled the files from an HTC Sensation rom and sure enough it works fine, and is the right resolution for our screens. I can't make an update.zip though, i tried a few dozen times and only get errors.
Click to expand...
Click to collapse
Anyway to install as a apk? I appreciate the hard work
Sent from my MB860 using Tapatalk
nope it's not as simple as an apk install. I'll write up something tomorrow and include the files in a .zip.
Sent from my MB860 using XDA App
If you stuff your phone I take no, zero, none, nada, zip, zilch responsibility for it.
The following method is for adb, you could most likely use root explorer of file expert, but you need a file manager that lets you remount system as read/write. It assumes you know how to get the files to your phone/sd-card and have the android sdk, and know how to use it. I also assume that you know how to backup, have backed up and know how to restore (nandroid, rom manager, tibu, whatever).
1. Start a windows command prompt; if you can't do this, then stop right here.
2. type 'adb shell'
3. see code block below
Code:
su (accept prompt on phone if needed)
mount -o remount,rw /dev/mmcblk0p12 /system
cd [PATH TO FILES]
cp Mode10Wallpapers.apk /system/app
chmod 644 /system/app/Mode10Wallpapers.apk
cp libicule.so /system/lib
chmod 644 /system/lib/libicule.so
cp libiculx.so /system/lib
chmod 644 /system/lib/libiculx.so
cp libmode10_alpha.so /system/lib
chmod 644 /system/lib/libmode10_alpha.so
cp libmode10_wallpapers.so /system/lib
chmod 644 /system/lib/libmode10_wallpapers.so
cp libmode10Graphics_alpha.so /system/lib
chmod 644 /system/lib/libmode10Graphics_alpha.so
You should now see the HTC Sense LWP option in your live wallpaper selector. If not reboot and see if that does it. Setting the permissions is key.
You can do the same with root explorer/file expert by copying the files to the appropriate folder (apk to /system/app and the *.so to /system/lib) and changing permissions, you just have to remount /system as read/write for the files to actually copy over.
If you stuff your phone I take no, zero, none, nada, zip, zilch responsibility for it.
First time I tried this I did a bulk chmod on /system/lib and on the next reboot
I was stuck in recovery. So as painstaking as it is the one by one method of copying and permission setting is the safest (for me at least).
THIS IS NOT CWM FLASHABLE
Thanks for this!
Im lost! when I get to "cp Mode10Wallpapers.apk /system/app" dos tells
me that there is no such file, and doesn't do anything..
I have it on my C:\ just sitting there... no special file or folder.
Anyways, what does the "CP" stand for? just curious...
Thanks!!! Looking so forward to this
ssmr2t said:
Thanks for this!
Im lost! when I get to "cp Mode10Wallpapers.apk /system/app" dos tells
me that there is no such file, and doesn't do anything..
I have it on my C:\ just sitting there... no special file or folder.
Anyways, what does the "CP" stand for? just curious...
Thanks!!! Looking so forward to this
Click to expand...
Click to collapse
.......
are the files on your phone? I had mine in /sdcard/download/htclwp. so the line of "cd [LOCATION OF FILES]" for me is cd /sdcard/download/htclwp
all the commands listed are for once you have an adb shell session running.
I'll update my post to include that bit.
cp is a linux/unix command for copy.
Hey thanks a lot, it worked. I see the LWP in my wallpaper drawer, but it FC's on me... I also checked off all permissions.
Oh well...
Is there any way to port over the "weather" LWP from the new Evo 3d? ? NOW THATS A WALLPAPER that would be sick to see on our devices!!!
ssmr2t said:
Hey thanks a lot, it worked. I see the LWP in my wallpaper drawer, but it FC's on me... I also checked off all permissions.
Oh well...
Is there any way to port over the "weather" LWP from the new Evo 3d? ? NOW THATS A WALLPAPER that would be sick to see on our devices!!!
Click to expand...
Click to collapse
if it's force closing then you should recheck the permissions on all the files (and make sure they all copied over), and try a reboot. this does work.
uiskibum said:
if it's force closing then you should recheck the permissions on all the files (and make sure they all copied over), and try a reboot. this does work.
Click to expand...
Click to collapse
You are Awesome! It worked via root explorer. I want to thank you for your time, hard work, and being a Guinea pig. as a result of a semi brick, i think thats what that was?
If you want to do any more htc wallpapers i have all the stock ones from the HTC Evo 3D. Again..............
Thank you! you rock!
uiskibum said:
if it's force closing then you should recheck the permissions on all the files (and make sure they all copied over), and try a reboot. this does work.
Click to expand...
Click to collapse
What should the permissions be?
Sent from my MB860 using XDA Premium App
I didn't set any permissions. Just copied over the files to the correct folders mounted and rebooted.
Sent from my MB860 using Tapatalk
Permissions (if set by root explorer or other) should be:
HTML:
Read Write Execute
Owner X X
Group X
Others X
uiskibum said:
Permissions (if set by root explorer or other) should be:
HTML:
Read Write Execute
Owner X X
Group X
Others X
Click to expand...
Click to collapse
Thanks, is that for all the files?
Sent from my MB860 using XDA Premium App
ssmr2t said:
Hey thanks a lot, it worked. I see the LWP in my wallpaper drawer, but it FC's on me... I also checked off all permissions.
Oh well...
Is there any way to port over the "weather" LWP from the new Evo 3d? ? NOW THATS A WALLPAPER that would be sick to see on our devices!!!
Click to expand...
Click to collapse
God, that's one annoying signature you got there, lol.
msd24200 said:
Thanks, is that for all the files?
Sent from my MB860 using XDA Premium App
Click to expand...
Click to collapse
yes, for all the copied files.
Sent from my MB860 using XDA App

[Q] How to flask apk

What is the nessary steps to delet a apk and replace with a new one using root explorer. I'm on a miui rom and i am having proplems sending and reciving a picture or a video. I have a fixed mma.apk to solve this proplem but not
sure on the proper steps to do this. I tryed to find this answer in different forums but no luck. Hopefully some one can give me the answer. (Thanks)
I don't know about root explorer, I've always used Terminal Emulator (It's free)
Then you can move or copy the mms.apk to the system folder.
cp /sdcard/Mms.apk /system/app/
---------- Post added at 05:58 PM ---------- Previous post was at 05:55 PM ----------
OhioYJ said:
su
cp /sdcard/Mms.apk /system/app/
Click to expand...
Click to collapse
That's just an example, and you'll need to use the command su first to gain root access. You'll have to point it to wherever the mms.apk is.
cp - copy
mv - move
I found when I did this before (Miui 1014 MMS worked for me just the way I flashed it), my messaging disappeared from the bar at the bottom, but reappeared with the apps. I just had to move the shortcut back to the bottom.

Edited OPSystemUI.apk and now I think my system is bricked.

I have a OnePlus 3T running Nougat 7.1.2 and OxygenOS. I simply edited the carrier_label in the extended status_bar.xml in the opsystemui.apk, and then replaced the old opsystemui.apk. I changed the permissions to rw-r-r (that's correct, right? I'm not really sure, little new at this). Now when I boot my phone, I just get a black screen. But if I hold the power button the options for power and reboot still show up. I'm guessing I need to replace the opsystemui.apk with the old one or fix the permissions, right?
I used twrp and superuser to root my phone, and I can still access the boot/recovery menus. So I can still access the phone using terminal and adb shell, can anyone give me step by step directions on how I can fix my phone? Or at least point me in the right direction? the systemui was located in system/priv-app/opsystemui/opsystemui.apk but it doesn't show up in the system/ folder when i type "ls" or "cd priv-app".
Edit: Oops, just found out you have to mount the system/ folder in rw mode, I can access the priv-app folder now. How do I reset the permissions, and what should i set them too?
Edit2: I set the permissions to 755 (rwxr-xr-r). Still not working...
Can anyone help?
iLaysChipz said:
Can anyone help?
Click to expand...
Click to collapse
Try deleting any folder in /data/data that has systemui in it also on MM there's a file in /data/user/system/0/permission.xml or something similar see if that's on nougat and try deleting it also you prob shouldn't modify any apk with out being deodexed
Sent from my LGLS676 using Tapatalk
Edit and permissions should be set to 644 on apk directory's are 755

[APP][ROOT] kz Torch - Brightness adjustable torch

Hello everyone. Just as I was looking to find a way to make flashlight icon in quick toggles to work on Lineage OS 15.1, I found out a way that we can adjust the brightness of flashlight.
It is easy to use. Not complex. Just a seekbar which you can set the level of brightness with and that's all. kz Torch won't be listed in app drawer of launcher. You need to hold down the torch icon in quick toggles in order to go to its settings.
You can find the sourcecode on GitHub. See below for more project information.
I think that's all what I need to say. Go download it from Google Play Store: https://play.google.com/store/apps/details?id=io.github.berkantkz.kztorch
XDA:DevDB Information
kz Torch, App for the LG G4
Contributors
berkantkz, kessaras
Source Code: https://github.com/berkantkz/kzTorch
Version Information
Status: Stable
Current Stable Version: 1
Stable Release Date: 2018-05-17
Created 2018-07-08
Last Updated 2018-07-08
berkantkz said:
Hello everyone. Just as I was looking to find a way to make flashlight icon in quick toggles to work on Lineage OS 15.1, I found out a way that we can adjust the brightness of flashlight.
It is easy to use. Not complex. Just a seekbar which you can set the level of brightness with and that's all. kz Torch won't be listed in app drawer of launcher. You need to hold down the torch icon in quick toggles in order to go to its settings.
I think that's all what I need to say. Go download it from Google Play Store: https://play.google.com/store/apps/details?id=io.github.berkantkz.kztorch
Click to expand...
Click to collapse
it wont need root access if in init i set the files permissions to 777. what do you think ?
Since i cant find the fix for torch , until we fix it, do you like my idea ?
Remove root access and me change file permissions ?
Code:
chmod 0777 /sys/class/leds/led:flash_0/brightness
chmod 0777 /sys/class/leds/led:flash_1/brightness
chmod 0777 /sys/class/leds/flashlight_front/dual_brightness
chmod 0777 /sys/class/leds/led:torch_0/brightness
chmod 0777 /sys/class/leds/led:torch_1/brightness
chmod 0777 /sys/class/leds/red/brightness
chmod 0777 /sys/class/leds/blue/brightness
chmod 0777 /sys/class/leds/green/brightness
chmod 0777 /sys/class/leds/wled/brightness
chmod 0777 /sys/bus/platform/drivers/qcom,camera-flash/qcom,camera-flash.85/leds/torch-light0/brightness
chmod 0777 /sys/bus/platform/drivers/qcom,camera-flash/qcom,camera-flash.85/leds/torch-light1/brightness
These are all the leds. Wanna do it this way for now ?
kessaras said:
it wont need root access if in init i set the files permissions to 777. what do you think ?
Since i cant find the fix for torch , until we fix it, do you like my idea ?
Remove root access and me change file permissions ?
These are all the leds. Wanna do it this way for now ?
Click to expand...
Click to collapse
Seems possible but I think it still will require root access for those who do not use your boot image.
In addition, only
Code:
blabla/leds:torch_1/brightness
will be okay since I only used it to write the settings. Never tried the others if they work ?
berkantkz said:
Seems possible but I think it still will require root access for those who do not use your boot image.
In addition, only
Code:
blabla/leds:torch_1/brightness
will be okay since I only used it to write the settings. Never tried the others if they work
Click to expand...
Click to collapse
What others ?
It's LG g4 exclusive and I don't see any other development out there.
Me ThePiGuy and sfx we work together and we have a parallel equal development in our trees
Edit:
We have two LEDs on the back. You can improve this app more to use one of them or both
Also if you keep root , it will most likely work for other phones too.
But in our case , please make root not a must have. Let the app work without root and ask for root if it can't edit the file
kessaras said:
Seems possible but I think it still will require root access for those who do not use your boot image.
In addition, only
What others ?
It's LG g4 exclusive and I don't see any other development out there.
Me ThePiGuy and sfx we work together and we have a parallel equal development in our trees
Edit:
We have two LEDs on the back. You can improve this app more to use one of them or both
Also if you keep root , it will most likely work for other phones too.
But in our case , please make root not a must have. Let the app work without root and ask for root if it can't edit the file
Click to expand...
Click to collapse
I will test the other paths then ?
Yeah, I always appreciate your work. I wish I had enough space for LOS15.1 in order to work on the tree.
I guess root always will be must have. Yes, of course it can be unnecessary if the app can write the settings w/o having root access but otherwise, users would need to flash something in order to set permissions on boot up. Or they would need root access for first time in order to set permissions automatically right after boot up.
berkantkz said:
I will test the other paths then
Yeah, I always appreciate your work. I wish I had enough space for LOS15.1 in order to work on the tree.
I guess root always will be must have. Yes, of course it can be unnecessary if the app can write the settings w/o having root access but otherwise, users would need to flash something in order to set permissions on boot up. Or they would need root access for first time in order to set permissions automatically right after boot up.
Click to expand...
Click to collapse
perfect ! so without root, and if it gives error for file access, ask for root.
Have fun and if you need anything related , don't hesitate to ask
kessaras said:
it wont need root access if in init i set the files permissions to 777. what do you think ?
Since i cant find the fix for torch , until we fix it, do you like my idea ?
Remove root access and me change file permissions ?
Code:
chmod 0777 /sys/class/leds/led:flash_0/brightness
chmod 0777 /sys/class/leds/led:flash_1/brightness
chmod 0777 /sys/class/leds/flashlight_front/dual_brightness
chmod 0777 /sys/class/leds/led:torch_0/brightness
chmod 0777 /sys/class/leds/led:torch_1/brightness
chmod 0777 /sys/class/leds/red/brightness
chmod 0777 /sys/class/leds/blue/brightness
chmod 0777 /sys/class/leds/green/brightness
chmod 0777 /sys/class/leds/wled/brightness
chmod 0777 /sys/bus/platform/drivers/qcom,camera-flash/qcom,camera-flash.85/leds/torch-light0/brightness
chmod 0777 /sys/bus/platform/drivers/qcom,camera-flash/qcom,camera-flash.85/leds/torch-light1/brightness
These are all the leds. Wanna do it this way for now ?
Click to expand...
Click to collapse
Don't we only need to change the permissions for the rear led's - I'm assuming the red, green and blue ones are the notification led
ThePiGuy said:
Don't we only need to change the permissions for the rear led's - I'm assuming the red, green and blue ones are the notification led
Click to expand...
Click to collapse
i changed them all. and berk will use them any way he likes. whats the big deal with giving user access to all leds ?
kessaras said:
i changed them all. and berk will use them any way he likes. whats the big deal with giving user access to all leds ?
Click to expand...
Click to collapse
There's no problem
I was just wondering.
Can we find the source code somewhere?
Bleuzen said:
Can we find the source code somewhere?
Click to expand...
Click to collapse
As soon as I get rid of my laziness, I will upload the sources and will inform you.
kessaras said:
Edit:
We have two LEDs on the back. You can improve this app more to use one of them or both
Also if you keep root , it will most likely work for other phones too.
But in our case , please make root not a must have. Let the app work without root and ask for root if it can't edit the file
Click to expand...
Click to collapse
The thing at the bottom is a light sensor for getting the best colour balance - the G4 only has one LED
htr5 said:
The thing at the bottom is a light sensor for getting the best colour balance - the G4 only has one LED
Click to expand...
Click to collapse
That's exactly what I thought up until 2 days ago. We actually have two in the top part
Cihazımı rootlanak istiyorum
mod edit, please use English:
I want to root my device
So what happened does it still require root ? =)
ozukoc said:
So what happened does it still require root ? =)
Click to expand...
Click to collapse
Yes. Since I have switched my G4, I do not work to improve on this anymore.
Anyways, it works well as it is now.
berkantkz said:
Yes. Since I have switched my G4, I do not work to improve on this anymore.
Anyways, it works well as it is now.
Click to expand...
Click to collapse
Yes its working very well, i recently rooted my device and using it, thanks bro =) By the way i think its not relevant probably but i couldnt delete old torch symbol from that navigation menu ( its not working and im on LOS 15.1 with magisk ). Can it be relevant with this ?
ozukoc said:
Yes its working very well, i recently rooted my device and using it, thanks bro =) By the way i think its not relevant probably but i couldnt delete old torch symbol from that navigation menu ( its not working and im on LOS 15.1 with magisk ). Can it be relevant with this ?
Click to expand...
Click to collapse
Well, I have never tried to remove the original one, yet I cannot test since I do not own the device anymore. However, I don't think it can't be removed as the quick toggles layout can be customized. I do not think it might be due to my app as well.
berkantkz said:
Well, I have never tried to remove the original one, yet I cannot test since I do not own the device anymore. However, I don't think it can't be removed as the quick toggles layout can be customized. I do not think it might be due to my app as well.
Click to expand...
Click to collapse
Yes i forgot to tell that i couldnt delete from quick toggle layout. before i was customizing; deleting and adding but now i cant delete it from that layout. Whatever its not that important. Thanks again. =)
Edit: After reboot i managed it.
Wait, im o just dumb enough i cant install this? The google play doesnt have the button to open the app... So it just installs it but does nothing.

Categories

Resources