[Q] Mysterious Permissions! Where did they get from? - Other Tools & General Discussion

Hello! I am really going mad!! Please help me! I am developing cm11 theme using other one as a template. But now I want to change the package name of apk!
I changed it using Eclipes, signed and recompiled it. But when i install this theme, it shows me new "Privacy" permissions with 2 items (see screenshot), that were not before (when I was using template's package name, compiling it using apktool and signing it with Zipsigner).
Is it OK to have "Privacy" permissions and these 2 items? (But I dont think so..) Or how can I remove them?
In manifest there are no changes except package and author names.
Here is the code:
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="internalOnly" package="com.my.theme">
<meta-data android:name="org.cyanogenmod.theme.name" android:value="My Theme"/>
<meta-data android:name="org.cyanogenmod.theme.author" android:value="Me"/>
<uses-permission android:name="android.permission.SET_WALLPAPER"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name"/>
<uses-feature android:name="org.cyanogenmod.theme" android:required="true"/>
</manifest>
When I edit Manifest using Notepad and compile it Using Apktool I Get .apk file With 80KB.. When I edit manifest and smali folders and files, where is written package name, and compile it, I get normal apk but with old Package name!! What is the problem? Are there other ways to edit manifest?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Nurbolat said:
Hello! I am really going mad!! Please help me! I am developing cm11 theme using other one as a template. But now I want to change the package name of apk!
I changed it using Eclipes, signed and recompiled it. But when i install this theme, it shows me new "Privacy" permissions with 2 items (see screenshot), that were not before (when I was using template's package name, compiling it using apktool and signing it with Zipsigner).
Is it OK to have "Privacy" permissions and these 2 items? (But I dont think so..) Or how can I remove them?
In manifest there are no changes except package and author names.
Here is the code:
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="internalOnly" package="com.my.theme">
<meta-data android:name="org.cyanogenmod.theme.name" android:value="My Theme"/>
<meta-data android:name="org.cyanogenmod.theme.author" android:value="Me"/>
<uses-permission android:name="android.permission.SET_WALLPAPER"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name"/>
<uses-feature android:name="org.cyanogenmod.theme" android:required="true"/>
</manifest>
When I edit Manifest using Notepad and compile it Using Apktool I Get .apk file With 80KB.. When I edit manifest and smali folders and files, where is written package name, and compile it, I get normal apk but with old Package name!! What is the problem? Are there other ways to edit manifest?
Click to expand...
Click to collapse
post the apk

I've already solved the problem The problem was in capability code in manifest

Related

[GUIDE] [HOW TO] add extra info in about phone [03.10.2014]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Who want add extra info in your phone? If you want this it guide for it
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk file
- Know how to push/make flashable zip apk
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else
first of all you need installed framework before try this guide
for installed framework
Code:
apktool if framework-res.apk
for installed sony framework
Code:
apktool if semcgenericuxpres.apk
ok lets guide and make it easy
Decompiling setting.apk
Go to res/xml/ device_info_settings.xml
For title add this code
Code:
<PreferenceCategory android:title="@string/[COLOR="Red"]title_new[/COLOR]" />
This for extra info add this code
Code:
<Preference android:title="@string/[COLOR="Red"]myname[/COLOR]" android:summary="@string/[COLOR="Red"]myname_config[/COLOR]" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/[COLOR="Red"]mydevicename[/COLOR]" android:summary="@string/[COLOR="Red"]mydevicename_config[/COLOR]" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/[COLOR="Red"]mysignature[/COLOR]" android:summary="@string/[COLOR="Red"]mysignature_config[/COLOR]" style="?android:preferenceInformationStyle" />
For screenshot
Now goto res/values/strings.xml
Add this code
Code:
<string name="[COLOR="Red"]title_new[/COLOR]">[COLOR="Red"]Extra info[/COLOR]</string>
<string name="[COLOR="Red"]myname[/COLOR]">[COLOR="Red"]My name[/COLOR]</string>
<string name="[COLOR="Red"]myname_config[/COLOR]">[COLOR="Red"]Philiadi Agung Wicaksana[/COLOR]</string>
<string name="[COLOR="Red"]mydevicename[/COLOR]">[COLOR="Red"]My device name[/COLOR]</string>
<string name="[COLOR="Red"]mydevicename_config[/COLOR]">[COLOR="Red"]Taoshan[/COLOR]</string>
<string name="[COLOR="Red"]mysignature[/COLOR]">[COLOR="Red"]Signature[/COLOR]</string>
<string name="[COLOR="Red"]mysignature_config[/COLOR]">[COLOR="Red"]I love Indonesia[/COLOR]</string>
For screenshot
Done !! recompile settings.apk and sign apk and push into system/app
Note : for red code you can change it with anything you want and you can add much more info if you want
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Please press thanks button if this thread useful for you all !!
Ashadin.com
reserved
Thanks gan...
I'll try it
Sent from my C2105 using xda app-developers app
pepen9 said:
Thanks gan...
I'll try it
Sent from my C2105 using xda app-developers app
Click to expand...
Click to collapse
sipp:good:
Maybe in post #2 you can show us how to add image on about phone and how to make setting background colour depend on selected theme
vanitea said:
Maybe in post #2 you can show us how to add image on about phone and how to make setting background colour depend on selected theme
Click to expand...
Click to collapse
yes i will make other guide soon
Thank you, very interesting.
It works perfect!!!!!!!
G.M.L._V2_IcSmoothness
http://pasakalis.blogspot.gr
good tutorial, permission to share this to my site
Nice work
Sent from my C2104 using XDA Free mobile app

[GUIDE] How to add animation in Opera Mini

Hello brothers,
now, I want to share guide to add animation on Opera Mini, and you can make this guide also to other apk
1. decompile your opera mini
2. open res/layout/main.xml
add this code
<LinearLayout android:gravity="center" androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.rouf.Animasi android:id="@id/rouf_anim" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
Click to expand...
Click to collapse
before this code
</merge>
like this
<LinearLayout android:gravity="center" androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.rouf.Animasi android:id="@id/rouf_anim" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</merge>
Click to expand...
Click to collapse
3. save
4. open res/values/ids.xml
add this code
<item type="id" name="rouf_anim">false</item>
Click to expand...
Click to collapse
before this code
</resources>
like this
<item type="id" name="rouf_anim">false</item>
</resources>
Click to expand...
Click to collapse
5. save
6. download smali and png of animation Here
7. after you downloaded, enter the png and animasi.xml to opmin_src/res/drawable/com/here
and add folder "rouf" to folder opmin_src/smali/here
8. and than open AndroidManifest.xml change
package="com.opera.mini.android"
Click to expand...
Click to collapse
like this
package="com.opera.mini.rouf
Click to expand...
Click to collapse
save
9. recompile.
10. after recompile you must decompile again to change id public of animasi.xml and png animations
11. open opmin_src/smali/com/rouf/Animasi.smali
12. change code id 0x7f080004 in line 37
with code id public type="id" name="rouf_anim"
and this code id 0x7f020008 in line 53
change with code id public type="drawable" name="animasi"
13. recompile, sign, install
SS
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
THANKS TO :
ALLAH SWT
All members and admins of Group Oprek Galaxy Y Indonesia S5360 @fb
DONT FORGET TO PRESS THANKS IF YOU LIKE MY THREAD :good:
if you want to download my latest mod of Opera Mini you can visit here

[TUTO] How to make Theme for Touchwiz

Hi i just want explain how to make theme for sectheme chooser
first i provide Evo.apk it's a basic theme i made for exemple
so let's start :
1-download Evo.apk
2-paste it in apktool "in" folder
3-decompil it
now go to out folder you will see Evo.apk Folder
So rename It to "your theme name.apk" (for an exemple i do it with "Hallowin" )
5-so open your folder "Hallowin"
Now open AndroidManifest.xml And change "Red"
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.sec.android.theme.[COLOR="Red"]Evo[/COLOR]">
<application android:icon="@drawable/[COLOR="Red"]Evo[/COLOR]_icon" android:label="@string/app_name">
<activity android:name=".Theme">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.SEC_THEME"/>
</intent-filter>
</activity>
</application>
</manifest>
i change to
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.sec.android.theme.[COLOR="Lime"]Hallowin[/COLOR]">
<application android:icon="@drawable/[COLOR="Lime"]Hallowin[/COLOR]_icon" android:label="@string/app_name">
<activity android:name=".Theme">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.SEC_THEME"/>
</intent-filter>
</activity>
</application>
</manifest>
now go to smali/com/sec/android/theme/ you will see Evo Folder so rename it to "Your Theme name" in my case Hallowin
go in and open R$attr.smali
Code:
.class public final Lcom/sec/android/theme/[COLOR="Red"]Evo[/COLOR]/R$attr; Change it to "[COLOR="Lime"]your theme name[/COLOR]"
.super Ljava/lang/Object;
.source "R.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sec/android/theme/[COLOR="Red"]Evo[/COLOR]/R; Change it to "[COLOR="Lime"]your theme name[/COLOR]"
.end annotation
ok save it and open R$color.smali
Code:
.class public final Lcom/sec/android/theme/[COLOR="Red"]Evo[/COLOR]/R$color; Change it to "[COLOR="Lime"]your theme name[/COLOR]"
.super Ljava/lang/Object;
.source "R.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sec/android/theme/[COLOR="Red"]Evo[/COLOR]/R; Change it to "[COLOR="Lime"]your theme name[/COLOR]"
.end annotation
do the same for all .smali when done return to res folder
go to value and open Public.xml find these line
Code:
<public type="drawable" name="Evo_icon" id="0x7f020002" /> and Change it to [COLOR="Lime"]your theme name[/COLOR]
now open string.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">[COLOR="Red"]Evo[/COLOR]</string> and Change it to ? "[COLOR="Lime"]your theme name[/COLOR]" :eek:
</resources>
do the same for all string.xml in different value folder
Now go to drawable-xhdpi folder
rename Evo_icon.png to "your themename"_icon.png
replace all the icon you want in and change the wallpaper andd create preview img ( For the icon make sure all the icon have 144X144
ok it's done so recompil it and sign it
Good work you've done your Personal Theme
So go on and Make some good Themes :good:
For exemple here is a screanshot of Hallowin theme i made for explain
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
thanks good tortual,is there any mod or flashable zip to change touchwz home or menu grid to 5x6 etc , i tried some mods but seems useless,olso how can i center the "apps" icon in buttom of touchwz homescreen ?? thanks again ?
salimtn said:
thanks good tortual,is there any mod or flashable zip to change touchwz home or menu grid to 5x6 etc , i tried some mods but seems useless,olso how can i center the "apps" icon in buttom of touchwz homescreen ?? thanks again ?
Click to expand...
Click to collapse
for 5x6 see my post here for app icon's i don't know
http://forum.xda-developers.com/galaxy-grand-2/help/65-app-drawer-stock-touchwiz-t2955094
maxx35000 said:
for 5x6 see my post here for app icon's i don't know
http://forum.xda-developers.com/galaxy-grand-2/help/65-app-drawer-stock-touchwiz-t2955094
Click to expand...
Click to collapse
thanks so much but its so difficult hhh,could you plz give me that file after modification and tell me where should i put it in my phone ? ?
Can you post a link of your hallowin theme

[MOD/TUTORIAL] [LP] Add reboot option for Systemui (the easy way)

I got asked a few times on how to add reboot option for SystemUI just like in my ROM.
Here's how it looks like: (the button next to the battery icon)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Q: Why this is the easy way?
A: Basically there are two ways to make your SystemuI restart - the one is using java/smali and the other, the easier way, is using xml editing only.
Q: How does it work?
A: In xml language for Android every element has it's own attributes, for example the button that we're going to use has an
Code:
android:onClick
attribute, this specific attribute allows to call a method from java/smali in order to start a certain function. But if no method is found the SystemUI app will force close and then automatically start again - which is what we want.
Requirements:
--- you know what compile/decompile is
--- you know what odex/deodex is
--- you have experience with flashing stuff
Warning! This mod might work on odexed roms since it doesn't mess with smali. For odexed users it is highly recommended that a back up is created.
Installation:
--- locate your SystemUI. It's in system>priv-app>SystemUI>SystemUI.apk
--- decompile
--- go to res>layout and open status_bar_expanded_header.xml
--- find the following line of code:
Code:
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_expanded" />
</LinearLayout>
--- paste this code after it:
Code:
<ImageButton
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="@drawable/systemui_restart"
android:layout_toStartOf="@id/multi_user_switch"
android:onClick="selfDestruct"
android:layout_marginRight="160dip"
android:layout_marginTop="19dip"/>
--- save the xml file
--- the hard parts is over
--- download the attached systemUI_drawables.zip archive (non-flashable!) and put the extracted files into your systemui
--- compile and flash
When your phone reboots you should now have a reboot SystemUI option!
Happy play!
? OK...
Thx very very much.... ?
?????
thx
working perfectly! thx
ipuzz said:
working perfectly! thx
Click to expand...
Click to collapse
are you using mokee rom???
Sent from my 2014811
silaey said:
are you using mokee rom???
Sent from my 2014811
Click to expand...
Click to collapse
Am used Stock rom deodex Xperia z1 ??

[Resolved] Why Doesn't "lunch" Command Show My Device?

I'm trying to build CM13 for the R1 HD by following this guide. I made my way through to the part where I need to issue the "lunch" command to show which devices CM can be built for. Even after (supposedly) making my own local_manifest file correctly which pulls the R1 HD device tree and kernel source from GitHub, my device still doesn't show up when I run lunch.
Here is my local_manifest file, placed in the correct local_manifest folder:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="anpage"
fetch="https://github.com/anpage/" />
<project path="device/blu/p6601" name="android_device_blu_p6601" remote="anpage" revision="master" />
<project path="kernel/blu/p6601" name="android_kernel_mediatek_mt6735" remote="anpage" revision="master" />
</manifest>
EDIT: Turns out I had to do an add_lunch_combo for cm_p6601-userdebug. Building fine now.
jasonmerc said:
I'm trying to build CM13 for the R1 HD by following this guide. I made my way through to the part where I need to issue the "lunch" command to show which devices CM can be built for. Even after (supposedly) making my own local_manifest file correctly which pulls the R1 HD device tree and kernel source from GitHub, my device still doesn't show up when I run lunch.
Here is my local_manifest file, placed in the correct local_manifest folder:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="anpage"
fetch="https://github.com/anpage/" />
<project path="device/blu/p6601" name="android_device_blu_p6601" remote="anpage" revision="master" />
<project path="kernel/blu/p6601" name="android_kernel_mediatek_mt6735" remote="anpage" revision="master" />
</manifest>
EDIT: Turns out I had to do an add_lunch_combo for cm_p6601-userdebug. Building fine now.
Click to expand...
Click to collapse
where exactly did you type the add_lunch_combo?
into what file
Stephanizgo said:
where exactly did you type the add_lunch_combo?
into what file
Click to expand...
Click to collapse
Bruh
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I will never be able to build custom roms even tho I have All the binaries I need. I need to solve this. This is what the aosp wants from me
Dude this was from like 7 years ago i dont remember what i did
jasonmerc said:
Dude this was from like 7 years ago i dont remember what i did
Click to expand...
Click to collapse
Doesn't matter what matters is if u are still able to build roms by yourself
Stephanizgo said:
Doesn't matter what matters is if u are still able to build roms by yourself
Click to expand...
Click to collapse
Don't remember or know what to do, I'm sorry.

Categories

Resources