[WIP] MIUI Port -HELP NEEDED-

lupohirp

Inactive Recognized Developer
Jul 27, 2010
977
7,399
0
Avellino
Well i was on dinner and came home now,

The Bad Times Returns. Soon Its Me Left, I Cant Stop Em :/
i've resolved so some permissions problems in my AOSP project......maybe this method can work also for you!;)

Sorry , but i have too much homework :(
I will try the work as soon as i can :p
here in italy school doesn't need 'cause at the moment there isn't work offers :))))
 

thachtunganh

Senior Member
Mar 19, 2011
1,695
1,901
0
Hà Nội - Hanoi
Decompiled Phone.apk , in the Manifest file , It is already have this:
Code:
<uses-permission android:name="android.permission.ADD_SYSTEM_SERVICE" />
In the logcat , i saw this:
Line 2
Code:
W/PackageManager( 3955): Unknown permission android.permission.ADD_SYSTEM_SERVICE in package com.android.phone
So , i have to delete:
Code:
<uses-permission android:name="android.permission.ADD_SYSTEM_SERVICE" />
to make the phone.apk work :confused:
 
Last edited:

SWEATTAIMI

Senior Member
Oct 19, 2010
2,051
379
0
W4ZT3D
Decompiled Phone.apk , in the Manifest file , It is already have this:
Code:
<uses-permission android:name="android.permission.ADD_SYSTEM_SERVICE" />
In the logcat , i saw this:
Line 2
Code:
W/PackageManager( 3955): Unknown permission android.permission.ADD_SYSTEM_SERVICE in package com.android.phone
So , i have to delete:
Code:
<uses-permission android:name="android.permission.ADD_SYSTEM_SERVICE" />
to make the phone.apk work :confused:
no we need to add permission
 

Bec de Xorbin

Senior Member
May 28, 2011
716
245
63
What are you talking about?
He means that nobody cares about your comings or goings or dinners or girlfriends or homeworks or opinions about homeworks or opinions about school. There are plenty of other threads for that stuff in Off-topic section. All that people care about when they open MIUI port thread is... well, MIUI port development.
 

thachtunganh

Senior Member
Mar 19, 2011
1,695
1,901
0
Hà Nội - Hanoi
He means that nobody cares about your comings or goings or dinners or girlfriends or homeworks or opinions about homeworks or opinions about school. There are plenty of other threads for that stuff in Off-topic section. All that people care about when they open MIUI port thread is... well, MIUI port development.
Thank you :)

Ppl. Please stay on topic, it's not a blog .. it's hard to track things this way.

Sent from my LG-P500 using xda premium
OK, i just want to say that i'm busy :confused: , why so serious ? you don't help anything but you complain about me while i'm helping to port !
Oh , You want to be the same as some people in Vietnamese android forum , i want to be a suck*r like them ( see my signature ) :D
 

SWEATTAIMI

Senior Member
Oct 19, 2010
2,051
379
0
W4ZT3D
Thank you :)



OK, i just want to say that i'm busy :confused: , why so serious ? you don't help anything but you complain about me while i'm helping to port !
Oh , You want to be the same as some people in Vietnamese android forum , i want to be a suck*r like them ( see my signature ) :D
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.app.myapp" >
<uses-permission android:name="#SET THE PERMISSION HERE" />
...
</manifest>

Permission can be max 777 as i think he wants to tell os to set it to 777 :cool:
 
  • Like
Reactions: thachtunganh

andy572

Inactive Recognized Developer
Sep 4, 2010
2,395
3,937
0
Germany, Munich (Deutschland, München)
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.app.myapp" >
<uses-permission android:name="#SET THE PERMISSION HERE" />
...
</manifest>

Permission can be max 777 as i think he wants to tell os to set it to 777 :cool:
whats this ?????? :D

the syntax has to be as example
Code:
<uses-permission android:name="com.android.phone.READ_CONTACTS" />
but not
Code:
<uses-permission android:name="777" />
*lol
 
  • Like
Reactions: thachtunganh

lupohirp

Inactive Recognized Developer
Jul 27, 2010
977
7,399
0
Avellino
whats this ?????? :D

the syntax has to be as example
Code:
<uses-permission android:name="com.android.phone.READ_CONTACTS" />
but not
Code:
<uses-permission android:name="777" />
*lol
sorry my mistake!:) i mean that you must set the name of the process that needs the permissions!:))) sorrryyyy :(((( i'm still a newbie :(( bad explain :(
but the problem is another....seems that permission doesn't exist.....maybe if we can add these directly in manifest??? like we do with <add-resource> tag when we build android....

EDIT: HEREEEEEEEE!!!!!

Code:
Declaring and Enforcing Permissions

To enforce your own permissions, you must first declare them in your AndroidManifest.xml using one or more <permission> tags.

For example, an application that wants to control who can start one of its activities could declare a permission for this operation as follows:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.me.app.myapp" >
    <permission android:name="com.me.app.myapp.permission.DEADLY_ACTIVITY"
        android:label="@string/permlab_deadlyActivity"
        android:description="@string/permdesc_deadlyActivity"
        android:permissionGroup="android.permission-group.COST_MONEY"
        android:protectionLevel="dangerous" />
    ...
</manifest>

The <protectionLevel> attribute is required, telling the system how the user is to be informed of applications requiring the permission, or who is allowed to hold that permission, as described in the linked documentation.

The <permissionGroup> attribute is optional, and only used to help the system display permissions to the user. You will usually want to set this to either a standard system group (listed in android.Manifest.permission_group) or in more rare cases to one defined by yourself. It is preferred to use an existing group, as this simplifies the permission UI shown to the user.

Note that both a label and description should be supplied for the permission. These are string resources that can be displayed to the user when they are viewing a list of permissions (android:label) or details on a single permission ( android:description). The label should be short, a few words describing the key piece of functionality the permission is protecting. The description should be a couple sentences describing what the permission allows a holder to do. Our convention for the description is two sentences, the first describing the permission, the second warning the user of what bad things can happen if an application is granted the permission.
if we "force" to use that permissions?? is right to do so???
 
Last edited:

SWEATTAIMI

Senior Member
Oct 19, 2010
2,051
379
0
W4ZT3D
sorry my mistake!:) i mean that you must set the name of the process that needs the permissions!:))) sorrryyyy :(((( i'm still a newbie :(( bad explain :(
but the problem is another....seems that permission doesn't exist.....maybe if we can add these directly in manifest??? like we do with <add-resource> tag when we build android....

EDIT: HEREEEEEEEE!!!!!

Code:
Declaring and Enforcing Permissions

To enforce your own permissions, you must first declare them in your AndroidManifest.xml using one or more <permission> tags.

For example, an application that wants to control who can start one of its activities could declare a permission for this operation as follows:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.me.app.myapp" >
    <permission android:name="com.me.app.myapp.permission.DEADLY_ACTIVITY"
        android:label="@string/permlab_deadlyActivity"
        android:description="@string/permdesc_deadlyActivity"
        android:permissionGroup="android.permission-group.COST_MONEY"
        android:protectionLevel="dangerous" />
    ...
</manifest>

The <protectionLevel> attribute is required, telling the system how the user is to be informed of applications requiring the permission, or who is allowed to hold that permission, as described in the linked documentation.

The <permissionGroup> attribute is optional, and only used to help the system display permissions to the user. You will usually want to set this to either a standard system group (listed in android.Manifest.permission_group) or in more rare cases to one defined by yourself. [/QUOTE]

I see what you mean i will try later :) 

Sent from my LG-P500 using xda premium
 

SWEATTAIMI

Senior Member
Oct 19, 2010
2,051
379
0
W4ZT3D
I see what you mean i will try later :)

Sent from my LG-P500 using xda premium
The unknown permission is of phone is caused by some line. However that line seems to do nothing , but still does do anything .

I am working on see what strings are missing :) hopefully in the week we may get a working launchjer :) if i am that fast :)

The Bad Times Returns. Soon Its Me Left, I Cant Stop Em :/
 
Last edited:

thachtunganh

Senior Member
Mar 19, 2011
1,695
1,901
0
Hà Nội - Hanoi
The unknown permission is of phone is caused by some line. However that line seems to do nothing , but still does do anything .

I am working on see what strings are missing :) hopefully in the week we may get a working launchjer :) if i am that fast :)

The Bad Times Returns. Soon Its Me Left, I Cant Stop Em :/
I did a lot of thing with the permission in phone.apk ,but it still not working ....

Sent from my LG-P500 using XDA App