Could somebody let me know the file perissions of the following? - Verizon Droid Incredible 2

Hi,
I'm trying to get my app working on the incredible 2.
Would it be possible for somebody to do an "ls -l" on the following directory:
/sys/devices/platform/leds-pm8085/leds/amber
I am interested to see what the file permissions of the "brightness" file are.
Thanks
Andrew

/sys/devices/platform/leds-pm8058/leds/amber
Permissions for brightness in that directory are
-rw-r--r-- system system

Moved to proper forum.

LowFire82 said:
/sys/devices/platform/leds-pm8058/leds/amber
Permissions for brightness in that directory are
-rw-r--r-- system system
Click to expand...
Click to collapse
Thanks for the information and the correction of my inability to type, that's just what I expected.

Related

SDK tools vs Terminal (BootAnimation)

Hi all,
I am looking to put a customer boot animation and everyone is showing directions for using SDK. Can you instead of using SDK do this on a terminal from within the phone:
mv /sdcard/bootanimation.zip /system/customize/resource
mv /sdcard/SCP_animation_Final.mp3 /system/customize/resource
this is assuming I have already remounted the drive with rw access and the files that I am looking for are there.
Is there anything involved in removing files from the resource directory when placing new boot animation? Also, when you "adb push" is that just moving the files to that directory and removing anything that may be there?
I am receiving the following error:
# mv /sdcard/bootanimation.zip /system/customize/resource
failed on 'bootanimation.zip' - Cross-device link
tonyh703 said:
I am receiving the following error:
# mv /sdcard/bootanimation.zip /system/customize/resource
failed on 'bootanimation.zip' - Cross-device link
Click to expand...
Click to collapse
an easier way i found of doing it is to try:
download 'Boot Animation Changer LITE' from the market place
Using a file manager like ASTRO Navigate to the /sdcard/bootanims/STOCK folder
Delete the file 'bootanimation' in this directory
paste your version of the bootanimation.zip file
Open up 'boot animation changer lite' click on animations->Stock->change to boot animation->select 480X 800
reboot phone and u should be able to see your bootanimation
thanks, I ended up doing the SDK tools way, it wasnt that hard it was just stupid I couldnt do it from my phone. Thanks for the tips
tonyh703 said:
thanks, I ended up doing the SDK tools way, it wasnt that hard it was just stupid I couldnt do it from my phone. Thanks for the tips
Click to expand...
Click to collapse
Using the way i posted, you can change the bootanimation using nothing but your phone.

[Q] How to change Bluetooth MAC Address

Is it possible to change it using root or adb please?
Why would you want to?
Nope. Impossible
NeoTechni said:
Why would you want to?
Click to expand...
Click to collapse
just wanted to clone my wife's one for the hands free in the car to avoid having to switch through the menu in the car.
I was unable to locate /pds as per http://pocketnow.com/tweaks-hacks/motorola-atrix-4g-how-to-change-wi-fi-and-bt-mac from http://forum.xda-developers.com/showthread.php?t=992326. I suspect every phone maker puts Bluetooth address where they wish...
However I was able to locate a zero byte bt_mac_addr file with no extension in /proc folder. It is empty both when bluetooth is on and off.
I hope someone more technically skilled than me can figure out if it can be populated to change the bluetooth address succesfully.
Thanks in advance
I looked at the '/proc/bt_mac_addr' file again using root explorer this time and can see my bluetooth mad address in it and could edit the address and change permissions to it but the modifications don't stay saved even after reboot though the root explorer says changes saved successfully. Can someone help me modifying the file please.
I'm on rooted 2.3.3
/proc is a virtual Filesystem provided by the Linux Kernel. The changes you made there won't persist a reboot cause it only gets saved in Ram.
Thank you. Does it mean I need a script of some type? Is it possible to achieve a change some other way? The pocketnow article seems to do it for the motorola phone but by modifying text file in another folder which I cannot find.
I followed the same process as follows using below commands
C:\Program Files\Android\android-sdk\platform-tools>adb push C:\APK\bt_mac_addr /sdcard/download/bt_mac_addr
1 KB/s (18 bytes in 0.015s)
C:\Program Files\Android\android-sdk\platform-tools>adb shell
$ su
su
# cp /sdcard/download/bt_mac_addr /proc/bt_mac_addr
cp /sdcard/download/bt_mac_addr /proc/bt_mac_addr
cp: can't create '/proc/bt_mac_addr': File exists
Is there another file I can change for it maybe?
Thanks again for all the help.
If you really want to do it then you can (On stock rom) use the same trick that is used for adb remount (Put an echo whatever into into /etc/install-recovery.sh)
You need to make sure it runs as root as well
Have a play around.
Installing the insecure adb apk (From Paul Modaco).
and
adding to the end.
/system/xbin/echo 8D:64:22:01:E2:A9 > /proc/bt_mac_addr
looks like it should work.
(If you have an unlocked bootloader then you can just do it from init.semc.rc in the initramfs)
Or you can look at the method (I posted the manual method in the rooting/insecure adb thread).
This presumes that this is actually working (Its possible you might have to restart a service to actually change it).
just make a simple init.d script
Thank you both. I Will look at it when i'm at the pc. A bit scared having never done anything similar. I Appreciate your guidance very much
Sent from my R800i
Thanks again for your previous replies. I tried "/system/xbin/echo 00:01:02:03:04:05 > /proc/bt_mac_addr" using script manager with superuser permissions granted and running in root mode but it gives the following error: "echo: write error: Input/output error". Same problem in gscript unfortunately.
Would you please tell me what this means and kindly suggest what I should do. I have not figured out yet how to do adb insecure or init.d but hope you could suggest the best way after seeing the above error.
Thanks in advance
ps3taker said:
Thanks again for your previous replies. I tried "/system/xbin/echo 00:01:02:03:04:05 > /proc/bt_mac_addr" using script manager with superuser permissions granted and running in root mode but it gives the following error: "echo: write error: Input/output error". Same problem in gscript unfortunately.
Would you please tell me what this means and kindly suggest what I should do.
Thanks in advance
Click to expand...
Click to collapse
You probably have to remount /system writable
Atarii said:
You probably have to remount /system writable
Click to expand...
Click to collapse
Thank you - I tried this but still same error
ps3taker said:
Thank you - I tried this but still same error
Click to expand...
Click to collapse
try this:
Code:
echo "00:01:02:03:04:05" > /proc/bt_mac_addr
DooMLoRD said:
try this:
Code:
echo "00:01:02:03:04:05" > /proc/bt_mac_addr
Click to expand...
Click to collapse
Thanks - I tried this but it still gives the same input/output error unfortunatelly
Besides mounting system as rw via script manager option I also enabled run at boot, run on network change, run as root but still no change before and after reboot.
I hope you could think of something please. Maybe /proc folder needs to be mounted rw but i'm not sure how or if it is not rw already - root explorer has no problem openning it rw straight away...
Thanks again for everybody's help in advance
ps3taker said:
Thanks - I tried this but it still gives the same input/output error unfortunatelly
Besides mounting system as rw via script manager option I also enabled run at boot, run on network change, run as root but still no change before and after reboot.
I hope you could think of something please. Maybe /proc folder needs to be mounted rw but i'm not sure how or if it is not rw already - root explorer has no problem openning it rw straight away...
Thanks again for everybody's help in advance
Click to expand...
Click to collapse
It won't work as that interface is read only
Sent from my R800i using XDA App
Thanks for trying to help.
I wonder if there is another file somewhere. Any idea what Play's equivalent of Motorola's Atrix 4G folder called "/pds" is - as it it seems to work for them: http://pocketnow.com/tweaks-hacks/motorola-atrix-4g-how-to-change-wi-fi-and-bt-mac
Thanks again for all the help - it was exiting to try scripts and other things you pointed me to.

ICS Keyboard download

[MOD] ICS Keyboard
Push to system/app, set permissions and reboot.
DOWNLOAD LINK
http://db.tt/3VPHiEtR
SCREENSHOT
http://db.tt/FIFnVhmj
Screenshot of permissions
http://db.tt/33IA46O4
Sent from my GT-I9000 using XDA App
Trying this now .
Thanks!!!!!!!!
Im sorry, I used root explorer and put it at system/apps, but nothing seems to appear, what kind of permission should given to the app?
awesomeandroid said:
Im sorry, I used root explorer and put it at system/apps, but nothing seems to appear, what kind of permission should given to the app?
Click to expand...
Click to collapse
That will work, just set permissions as illustrated in screenshot link below and then reboot. The Keyboard will be displayed as 'Android Keyboard' in settings.
Screenshoot of permissions
http://db.tt/33IA46O4
Sent from my GT-I9000 using XDA App
awesomeandroid said:
Im sorry, I used root explorer and put it at system/apps, but nothing seems to appear, what kind of permission should given to the app?
Click to expand...
Click to collapse
first 2 checkboxes ticked on first
only one on second and third
blooruk said:
That will work, just set permissions as illustrated in screenshot link below and then reboot. The Keyboard will be displayed as 'Android Keyboard' in settings.
Screenshoot of permissions
http://db.tt/33IA46O4
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
thanks . I will try now p/s: got it already.
---------- Post added at 07:20 PM ---------- Previous post was at 07:19 PM ----------
genisis7 said:
first 2 checkboxes ticked on first
only one on second and third
Click to expand...
Click to collapse
thanks a lot
The haptic feedback didn't work. Very nice keyboard.
blooruk said:
ICS Keyboard
Push to system/app, set permissions and reboot.
http://db.tt/3VPHiEtR
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Nice one! Thanks man.
works! very nice indeed! No haptic feedback, but i think it's the same problem as seen with the gingerbread one?
Is there a screenshot?
Neo0 said:
Is there a screenshot?
Click to expand...
Click to collapse
Screenshot now in first post
Sent from my GT-I9000 using XDA App
Installed on CM 7.1, works great, no haptic feedback.
French language ok (AZERTY + dico FR, ça roule ).
not able to push thrugh root explorer
hi there..first of all thanks for the new keyboard...love it....now the problem...m currently on miui trying to push the file thrugh root explorer but m constantly getting "not able to change permissions"(on the apk)....secondly when i simply try to copy and move the file in "system/app" m not able to do it..cause i have r/o permission and not able to change permission to r/w there as well...help me with this.
nevermind..its done..
I've managed to push the file to /system/app and set permissions (644).
Then I've rebooted and Android Keyboard is there but when I change the input method to Android Keyboard, the app is always shutting down over and over again (com.android.inputmethod.latin).
Permissions set to 755. No good too!
Any idea?
Edit;
I tryied with adb like this:
Code:
adb install /path/to/tile/LatinIME_2-1.apk
and I got this output
Code:
2470 KB/s (11976931 bytes in 4.734s)
pkg: /data/local/tmp/LatinIME_2-1.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
Awesome! Can im upload this in another forum? (c) include ofc
eerie_silence said:
Awesome! Can im upload this in another forum? (c) include ofc
Click to expand...
Click to collapse
Yes, no problem!
Sent from my GT-I9000 using XDA App
Well, I've managed to install it with some extra help
I'm on 2.3.5 JVT costumized ROM and I did this:
Code:
adb shell
su
mount -o rw,remount /system
Close session and type
Code:
adb push \path\to\file\Latin_2-1.apk /system/app
Then, at your PC, open the apk file with winrar, extract the libjni_latinime.so file that is inside the ./lib/armeabi-v7a/
Then copy this file into your phone's system/lib dir with
Code:
adb push \path\to\.so-file\libjni_latinime.so /system
If no permission to copy, mount system again with rw mode with
Code:
adb shell
su
mount -o rw,remount /system/lib
Then reboot phone.
Please correct me any errors I could have made...
Worked for me
If u cant see it on input languages in root explorer delete LatinIME.apk and then rename the ics keyboard to the LatinIME.apk and push it to apps(adb push LatinIME.apk /system/app) it will be work.
Does anyone know if this will work on Sense?
Also does this give you the new version of voice transcription?

Need help: How do I "correct permissions"?

I was trying to get Polaris Office set up and came across the following:
dave_t321 said:
Put PolarisOffice.apk, libpolarisoffice_Clipboard.so and libpolarisoffice.so in a folder and do this:
Code:
cd [your folder]
adb push PolarisOffice.apk /system/app
adb push libpolarisoffice_Clipboard.so /system/lib
adb push libpolarisoffice.so /system/lib
If you're using windows it might be a good idea to correct the permissions too:
Code:
adb shell
su
chmod 644 /system/app/PolarisOffice.apk
chmod 644 /system/lib/libpolarisoffice_Clipboard.so
chmod 644 /system/lib/libpolarisoffice.so
Click to expand...
Click to collapse
I'm a complete newbie to this stuff and don't known what me means when he says "
Code:
adb shell -> su -> etc..."
Can someone please explain this to me and tell me how I could correct the permissions? I'm already rooted and have the files installed in the correct places but it keeps giving me an error without the permissions corrected.
Not sure why you have to do these things to install Polaris Office...
He means in command line, you type those commands in
adb shell (run a shell in the phone)
su (ask for superuser permission)
and then the next 3 lines, which changes the permissions of those files.
Yeah, like martonikaj said: it's what you write in the command line or a terminal, or whatever you used to install the files to the correct paths. Each line is a command you write and execute.
If you have Root Explorer, or some other file manager that works with root and features permission change, you can do it on your phone:
1 Open the file manager.
2 Locate the file you want to change permissions for.
3 Change permissions to:
Owner: read + write
Group: read
Other: read
4 Repeat for all program files.
rlmaers said:
If you have Root Explorer, or some other file manager that works with root and features permission change, you can do it on your phone:
1 Open the file manager.
2 Locate the file you want to change permissions for.
3 Change permissions to:
Owner: read + write
Group: read
Other: read
4 Repeat for all program files.
Click to expand...
Click to collapse
I have root explorer and did this for all 3 files... still gives me the "unfortunately, polaris office has stopped working" everytime I open the app
Any ideas?

Having trouble modifying /sys files

Hey Everyone,
Trying to modify /sys/module/msm_otg/parameters/usbhost_charge_mode from it's default value of 'Y' to '1' in order to enable usb charging + OTG while using ElementalX's kernel. No matter what I do, I get either access is denied, or when trying to commit a change with sysctl I get nothing as the changes aren't being saved. Been working on this for the past 6 hours and can't figure it out!!! I know there's an easy straight forward way to do this, just can't figure it out!
Please help!!
Thanks,
Noob
Youve mounted R/W right? Or should I say write? Ahah software puns.
Sent from my Nexus 7 using XDA Free mobile app
Mounted as r/w and rooted...
THEBANDIT420 said:
Youve mounted R/W right? Or should I say write? Ahah software puns.
Sent from my Nexus 7 using XDA Free mobile app
Click to expand...
Click to collapse
Yeah, meant to add that detail last night but forgot in my frustration. Mounted as R/W, also, did a chmod 777 on the file as well to verify perms were correct.
Tried doing all this work via terminal vi which didn't work, then tried doing an adb pull, update the file adb push, which resulted in a permissions failure. Everything leads me to believe that my root isn't a FULL root; however, I can't find another method of performing said root. Used WugFresh Nexus Root Toolkit v1.8.3 to perform root.
Thanks for your help man,
Noob
Anyone?
Can anyone help? This is driving me absolutely insane!
n00b5auc3 said:
Can anyone help? This is driving me absolutely insane!
Click to expand...
Click to collapse
Try to do that with Root Explorer
Here's what I've done so far
matcho13579 said:
Try to do that with Root Explorer
Click to expand...
Click to collapse
Just tried what you suggested, it appeared to save; however, upon verification, the file reverted from '1' back to 'Y'.
So far I've tried:
Using a chmod 777 on the file via su terminal, edit file with vi, attempt to save - result - failure..
Using ES File Explorer with root permissions and mount /system in RW enabled, nav to file and edit with ES text editor, save - result - failure...
Mount /system as RW using some app I can't remember, then navigate using ES File Explorer to location, edit using ES text editor, save - result - failure...
adb pull on the file, update, adb push back to location - result - failure
su attempt to delete, move, and rename file in an effort to replace it - result - failure....
I'm pretty sure whoever made that file had ninja training, because every time I try to touch it it totally evades me. -_- Anyways, thanks for the help in advance.
n00b
Anyone? Bueller.... Bueller?
Someone has to have ran into this problem before....

Categories

Resources