rooted-device

Android: how to grant 666 privs to a device via ueventd.rc

为君一笑 提交于 2021-02-08 22:31:10
问题 I need to access an USB camera connected to my (rooted) Android. I'm on a Samsung Galaxy S4 with Android 4.2.2. I want to access it with a normal app, so I need the device to be world readable. I can connect via shell and type root@android:/ # su root@android:/ # cd /dev root@android:/dev # chmod 666 video4 and it works. But each time I disconnect the camera, and reconnect it, I have to do it again. Via shell I can remount the root file system r/w mount -o rw,remount -t rootfs rootfs / and

Android: how to grant 666 privs to a device via ueventd.rc

和自甴很熟 提交于 2021-02-08 22:30:55
问题 I need to access an USB camera connected to my (rooted) Android. I'm on a Samsung Galaxy S4 with Android 4.2.2. I want to access it with a normal app, so I need the device to be world readable. I can connect via shell and type root@android:/ # su root@android:/ # cd /dev root@android:/dev # chmod 666 video4 and it works. But each time I disconnect the camera, and reconnect it, I have to do it again. Via shell I can remount the root file system r/w mount -o rw,remount -t rootfs rootfs / and

Android: how to grant 666 privs to a device via ueventd.rc

谁都会走 提交于 2021-02-08 22:21:43
问题 I need to access an USB camera connected to my (rooted) Android. I'm on a Samsung Galaxy S4 with Android 4.2.2. I want to access it with a normal app, so I need the device to be world readable. I can connect via shell and type root@android:/ # su root@android:/ # cd /dev root@android:/dev # chmod 666 video4 and it works. But each time I disconnect the camera, and reconnect it, I have to do it again. Via shell I can remount the root file system r/w mount -o rw,remount -t rootfs rootfs / and

Android: how to grant 666 privs to a device via ueventd.rc

余生长醉 提交于 2021-02-08 22:14:47
问题 I need to access an USB camera connected to my (rooted) Android. I'm on a Samsung Galaxy S4 with Android 4.2.2. I want to access it with a normal app, so I need the device to be world readable. I can connect via shell and type root@android:/ # su root@android:/ # cd /dev root@android:/dev # chmod 666 video4 and it works. But each time I disconnect the camera, and reconnect it, I have to do it again. Via shell I can remount the root file system r/w mount -o rw,remount -t rootfs rootfs / and

Android: how to grant 666 privs to a device via ueventd.rc

天涯浪子 提交于 2021-02-08 22:14:30
问题 I need to access an USB camera connected to my (rooted) Android. I'm on a Samsung Galaxy S4 with Android 4.2.2. I want to access it with a normal app, so I need the device to be world readable. I can connect via shell and type root@android:/ # su root@android:/ # cd /dev root@android:/dev # chmod 666 video4 and it works. But each time I disconnect the camera, and reconnect it, I have to do it again. Via shell I can remount the root file system r/w mount -o rw,remount -t rootfs rootfs / and

Android: how to grant 666 privs to a device via ueventd.rc

强颜欢笑 提交于 2021-02-08 22:12:35
问题 I need to access an USB camera connected to my (rooted) Android. I'm on a Samsung Galaxy S4 with Android 4.2.2. I want to access it with a normal app, so I need the device to be world readable. I can connect via shell and type root@android:/ # su root@android:/ # cd /dev root@android:/dev # chmod 666 video4 and it works. But each time I disconnect the camera, and reconnect it, I have to do it again. Via shell I can remount the root file system r/w mount -o rw,remount -t rootfs rootfs / and

What is the default database location of an android app for an unrooted device?? Is it same as for rooted one?

谁说胖子不能爱 提交于 2019-12-29 08:44:23
问题 I have quite a specific question. First let me explain what I am trying to do and then the problem. Basically what I am trying to do is to store an existing .db database file in assets folder and then after installation I want to copy the .db file from assets to the default database location in Android. Something similar to this page answer [link]How to use an existing database with an Android application. Problem For unrooted device I cannot access /data/data/<<package name folder>> . In

Why do I get a “sqlite3: not found” error on a rooted Nexus One when I try to open a database using the adb shell?

余生颓废 提交于 2019-12-27 11:01:10
问题 # sqlite3 /data/data/com.moodme.android/databases/moodme sqlite3 /data/data/com.moodme.android/databases/moodme sqlite3: not found 回答1: On the Android emulator, sqlite3 is in /system/xbin . There is no /system/xbin on a Nexus One (Android 2.2). Hence, I suspect that sqlite3 is not installed on the Nexus One. 回答2: As an alternative (may not be secure or even good idea though) you can always upload the sqlite3 binary to /system/bin this worked for me: First lets mount /system/ to allow read

Why do I get a “sqlite3: not found” error on a rooted Nexus One when I try to open a database using the adb shell?

我与影子孤独终老i 提交于 2019-12-27 11:00:31
问题 # sqlite3 /data/data/com.moodme.android/databases/moodme sqlite3 /data/data/com.moodme.android/databases/moodme sqlite3: not found 回答1: On the Android emulator, sqlite3 is in /system/xbin . There is no /system/xbin on a Nexus One (Android 2.2). Hence, I suspect that sqlite3 is not installed on the Nexus One. 回答2: As an alternative (may not be secure or even good idea though) you can always upload the sqlite3 binary to /system/bin this worked for me: First lets mount /system/ to allow read

How to obtain NFCEE_ADMIN permission on rooted phone?

一个人想着一个人 提交于 2019-12-19 11:33:14
问题 The NFCEE_ADMIN permission is signature level. However, is it possible to "cheat" to get this permission on a rooted phone ? Maybe using a technique similar to the way ClockSync does it ? I am trying to use reflexion techniques to get access to NFCExtras : mAdapter = NfcAdapter.getDefaultAdapter(this); try { Class mynfcextras = Class.forName("android.nfc.INfcAdapterExtras"); Method getnfcExtras = mAdapter.getClass().getMethod("getNfcAdapterExtrasInterface"); Object nfcExtras = getnfcExtras