chmod unexpected permission error when logged into an actual device

by kooscar » Wed, 29 Oct 2008 07:42:59 GMT

Sponsored Links
 $ ls
$ ls /data/
ls /data/
opendir failed, Permission denied
$ chmod 777 /data/
chmod 777 /data/
Unable to chmod /data/: Operation not permitted

I want to change the permission settings for the /data dir, but it
won't let me....


chmod unexpected permission error when logged into an actual device

by Shane Isbell » Wed, 29 Oct 2008 11:47:18 GMT

 I have the same frustration. This is pretty bad. It is after all, my device.
I wouldn't be happy if I got a computer from Dell and they told me I
couldn't have admin access.



Sponsored Links

chmod unexpected permission error when logged into an actual device

by Jean-Baptiste Queru » Fri, 31 Oct 2008 00:43:04 GMT

 Yes, there are other ways. You can drop a signed update image in
/sdcard/ and have the recovery system flash it for you.

The code is here: ;a=blob;f=recovery.c
(line 267).



Other Threads

1. appwidget query

Hi all,

I am trying to launch an app widget from another application.

On click of a button in an application, the appwidget is receiving the
message i broadcasted.

I have implemented the appwidgetprovider class.
In the appwidgetprovider class, in the onReceive function i am able to
get the broadcasted message.

My broadcast file is:

package com.example.broadcast;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class broadcast extends Activity implements
View.OnClickListener {
    /** Called when the activity is first created. */

        public static final String ACTION_UPDATE_WIDGET =
        public static final String MESSAGE = "message";

        public void onClick(View v) {

    public void onCreate(Bundle savedInstanceState) {

        Button start = (Button) findViewById(;


    private void sendBroadcast() {
        Log.i("test", "send broadcast");
        Intent broadcast = new Intent(this, receiver.class);
        broadcast.putExtra(MESSAGE, "Bye");
        Log.i("test", "after send");


My appwidget class is as follows:

package com.example.broadcast;

import android.appwidget.AppWidgetHost;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.appwidget.AppWidgetProviderInfo;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

public class receiver extends AppWidgetProvider {

        public void onReceive ( Context context,Intent intent ){

                //super.onReceive(context,intent );
                String action = intent.getAction();
                String message="";
                //String packagename="";
                int appwidgetid;

                Log.i("test", "message received");

                if( "Broadcast_Message".equals  ( action ) ) {

                        //String message;
                        Toast.makeText( context, "Broadcast sucessfull...",

                        if ( intent.hasExtra(broadcast.MESSAGE)) {

                                message = 
                                Toast.makeText( context, message, 
                        message = message+"in the for loop";

                        updateSampleWidget( context, appWidgetManager,1,message 



        private void updateSampleWidget(Context context,AppWidgetManager
appWidgetManager, int widget, String text) {

                 Log.i("test","In the update sample widget function");
             RemoteViews views = new RemoteViews(context.getPackageName

             views.setTextViewText(R.layout.widget, text);
             //Intent intent1 = new Intent(context, broadcast.class);
             //PendingIntent pendingIntent = PendingIntent.getActivity
(context, 0,intent1, 0);
             //views.setOnClickPendingIntent(R.layout.widget, pendingIntent);
             //appWidgetManager.updateAppWidget(widget, views);


The widget_provider.xml file contains the appwidget resource file.
The widget.xml file contains a textview element only.

The updateSampleWidget function is not getting executed.

Am i doing anything wrong here???

My questions are:
1. Is it possible to start an appwidet from the onReceive function?
2. Is it possible to start an appwidget from another applicaion by
sending and receiving a broadcast message?


2. Getting the URL from HttpResonse object

I'm writing both the client and REST server for a web app on Android.
The basic idea is to have the phone post a row in the database. I've
setup the HttpPost request's URL to the form page. Then I send the
data to the form in XML. Upon execution the new entry is displayed
from the database. It's not redirected, rather the new data is just
rendered. There is information I'd like to capture in the URL. Does
anyone know how to get a URL from the HttpResponse object?

I've got lots of code to show the Response's status, the headers, the
params. But nothing to show the current URL.

Thanks in advance!


3. Question about data transfer when browsing

4. OpenGL gluUnProject

5. restore factory settings

6. licence apache 2.0

7. about /system/bin/playmp3