Hi guyz, I am adding t-mobile theme chooser to AOSP, I have got success in picking the required commits, solving conflicts and compiling the build but after everything I get force close on clicking the Theme-chooser. Mahdi advised me that its because of SElinux permission error, I found this commit and picked it https://github.com/CyanogenMod/andr...mmit/6048f74c242a936a76b87092fc9d2303b42ea137 but still the same error.
Here's it the main error
Code:
I/ActivityManager( 612): Start proc com.tmobile.themechooser for activity com.tmobile.themechooser/.ThemeChooser: pid=1764 uid=1000 gids={41000, 1028, 1015, 3002, 3001, 3003}
E/SELinux ( 1781): selinux_android_setcontext: Error setting context for app with uid 1300, seinfo release: Success
E/dalvikvm( 1781): cannot set SELinux context: Success
E/dalvikvm( 1781): VM aborting
F/libc ( 1781): Fatal signal 6 (SIGABRT) at 0x000006f5 (code=-6), thread 1781 (zygote)
I/ActivityManager( 612): Start proc com.tmobile.thememanager for content provider com.tmobile.thememanager/.provider.ThemesProvider: pid=1781 uid=1300 gids={41300, -1}
For complete log, refer to this link http://pastebin.com/raw.php?i=nmjbb6YT
I have also tried to set the SELinux mode to permissive but no help
I was missing this commit https://github.com/Mahdi-Rom/android_system_core/commit/cc81fdf03b4d48fc10bc935453224167cfaf57a6.
Thanks to @iceandfire for the guiding me to this commit.
Special thanks to @Mahdi786 and @moneyolo for helping me out throught out this.
Will you release it for AOSP/STOCK users???
tb110188 said:
Will you release it for AOSP/STOCK users???
Click to expand...
Click to collapse
Definitely if you guyz want it, complete aosp only with theme Chooser added.
Sent from my Nexus 4 using Tapatalk
brajesh.sharma87 said:
Definitely if you guyz want it, complete aosp only with theme Chooser added.
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
I'm a bit newbie with this AOSP rom thing but will it work on the Stock ROM???
tb110188 said:
I'm a bit newbie with this AOSP rom thing but will it work on the Stock ROM???
Click to expand...
Click to collapse
It's an rom..what you mean work on a stock rom lol
Related
hey people i tried changing themes in epsylons rom
whenever i tried to apply a theme it showed an error
"this theme was wrongly compiled"
so can anyone give me themes working on this rom ?
Sent from my MB525 using Tapatalk 2
Hallo,
is it possible to create a custom user-defined Toast from a shell script/command? Maybe by 'am' command, sending a broadcast to a systemapp or something?
Any ideas?
DualJoe said:
Hallo,
is it possible to create a custom user-defined Toast from a shell script/command? Maybe by 'am' command, sending a broadcast to a systemapp or something?
Any ideas?
Click to expand...
Click to collapse
I don't know what are you talking about. Toasts can be made only with Java, afaik.
Code:
String MyCustomMessage="SOME MESSAGE HERE";
Toast.makeText(getApplicationContext(), // OR getActivity(), depending on your case.
MyCustomMessage, Toast.LENGTH_LONG).show();
Have a look at this: https://groups.google.com/forum/#!topic/android-scripting/Ok0J5mcIm08
And maybe also this: http://forum.xda-developers.com/showthread.php?t=773232
nikwen said:
Have a look at this: https://groups.google.com/forum/#!topic/android-scripting/Ok0J5mcIm08
And maybe also this: http://forum.xda-developers.com/showthread.php?t=773232
Click to expand...
Click to collapse
I've tested the small Java app. It works but unfortunately its kinda buggy. The screen flashes/goes dark before the toast comes up and logcat shows weird errors (missing crypto libs(?), resource leaks..). Maybe a good time to try coding it myself...
If i fail badly i will take another look at the perl solution even though i don't like the dependency of larger 3rd party tools.
Thanks so far..
DualJoe said:
I've tested the small Java app. It works but unfortunately its kinda buggy. The screen flashes/goes dark before the toast comes up and logcat shows weird errors (missing crypto libs(?), resource leaks..). Maybe a good time to try coding it myself...
If i fail badly i will take another look at the perl solution even though i don't like the dependency of larger 3rd party tools.
Thanks so far..
Click to expand...
Click to collapse
I guess that a new Activity is launched with that apk. Using a BroadcastReceiver instead of an Activity should fix the problem.
nikwen said:
I guess that a new Activity is launched with that apk. Using a BroadcastReceiver instead of an Activity should fix the problem.
Click to expand...
Click to collapse
I think a main activity is mandatory but it probably should be invoked differently indeed. I've seen other apps starting invisible.
I maybe take it to the GScript thread. In the end, that's the tool where it makes sense.
DualJoe said:
I think a main activity is mandatory but it probably should be invoked differently indeed. I've seen other apps starting invisible.
I maybe take it to the GScript thread. In the end, that's the tool where it makes sense.
Click to expand...
Click to collapse
It isn't.
Create the toast in the onReceive() method of the BroadcastReceiver and send the broadcast as described here.
No need for an Activity.
But i thought a java class extending activity is needed to display a toast...
I am also trying to do that and i think if u put the toast-code inside onCreate() after super.onCreate() and just delete 'setContentView(R.layout.xyz)' it should display invisibly
---------------------------------
Phone : Samsung Galaxy Mini S5570
OS:
•AOSP ICS Touchwiz V5 by A_U
•Android 4.0.4
•Baseband XWKS2
•Kernel: 2.6.37.6 Badass v1.9 by alin.p
•Recovery CWM v4.0.0.5
Mods:
PureAudio, Mounts2SD, ODEX through Universal ODEX script, AdBlock by AdAway
---------------------------------
Gesendet von Tapatalk
Masrepus said:
But i thought a java class extending activity is needed to display a toast...
I am also trying to do that and i think if u put the toast-code inside onCreate() after super.onCreate() and just delete 'setContentView(R.layout.xyz)' it should display invisibly
---------------------------------
Phone : Samsung Galaxy Mini S5570
OS:
•AOSP ICS Touchwiz V5 by A_U
•Android 4.0.4
•Baseband XWKS2
•Kernel: 2.6.37.6 Badass v1.9 by alin.p
•Recovery CWM v4.0.0.5
Mods:
PureAudio, Mounts2SD, ODEX through Universal ODEX script, AdBlock by AdAway
---------------------------------
Gesendet von Tapatalk
Click to expand...
Click to collapse
The screen will turn dark for about a second as it will try to launch the new app and prepares everything. Why not do it from the BroadcastReceiver?
Downloaded S5 Lollipop firmware from Poland. Extracted Gallery app.
Tried to install it, and it fails, so i pushed it to /system/app/secgallery2014/
After a reboot, the app appears to be installed, and when i launch it, i've FC. Here's logcat :
W/ActivityManager( 786): Activity pause timeout for ActivityRecord{3dcad235 u0 com.sec.android.gallery3d/.app.GalleryOpaqueActivity t31 f}
Do you know whats the problem ?
Cheers
Most likely needs TouchWiz framework stuff.
Lethargy said:
Most likely needs TouchWiz framework stuff.
Click to expand...
Click to collapse
Okok will try to add some framework files to see
EDIT : didnt solved problem.
dekefake said:
Okok will try to add some framework files to see
EDIT : didnt solved problem.
Click to expand...
Click to collapse
No, you need touchwiz for it to work. I don't think just adding some files would make it work. I believe most Touchwiz apps depend on the complete Touchwiz framework to work properly (the same reason we can't have complete Touchwiz ROMs) so I doubt it would work. (Feel free to prove me wrong or correct me )
hello everyone , please anybody help me for building miui v6 from source . miui source code download completed and everything is working fine . but when i type
Code:
make fullota
miui start building but in half i get an error
Code:
make: *** [out/services.jar] Error 1
SS attached . please help me devs for building miui v6 . error and ss attached
It's completely unrelated but i have to ask, which icon pack are you using on elementary?
sharkaddi said:
It's completely unrelated but i have to ask, which icon pack are you using on elementary?
Click to expand...
Click to collapse
Numix circle
sharkaddi said:
It's completely unrelated but i have to ask, which icon pack are you using on elementary?
Click to expand...
Click to collapse
Numix circle with compiz config .
So, i'm new to this entire thing, i'm hoiping im in the correct section. Redirect me if im not. I appreciate any help I can get.
I must be half retarded or full retarded cause I cannot figure out what i'm doing wrong.
I'm trying apk studio, apk tool, like everything. All I want to do is change a package name of my apk, but I cannot decompile it.
I'm not fully understanding the framework-res.apk I guess. I found one online and tried using it but I keep getting errors while trying to install the framework, and I can't find any framework files via google. Where am I supposed to get the Framework???
THis is the error i'm getting trying to install the framework. Am I using wrong framework? All I want to do is decompile dang apk rename package and recompile, this is killing me. Here is the error i'm getting.
Code:
C:\android\apktool>apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:52)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:685)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:667)
at brut.androlib.Androlib.installFramework(Androlib.java:642)
at brut.apktool.Main.cmdInstallFramework(Main.java:240)
at brut.apktool.Main.main(Main.java:87)
Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000000
at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:238)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:201)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:189
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:157)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:11
4)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
... 6 more
There are a lot more talented people than me but I'll try my best to help you.
1. Make sure your have updated your apktool.jar to the latest version if using apk studio
2. You need to install the correct framework res for the app your trying to decompile. If it is a Google app then you are best using the latest cm framework res.apk so grab it from any cm rom that is the latest release
3. If it is a vendor app like Samsung then you will need the tw framework res.apk and the framework res.apk from the rom the app is from.
If you can tell me the app you want to decompile and the rom it's from I should be able to tell you which frameworks to install
Sent from my SM-N910F using Tapatalk
Well its a custom made app from my buddy, he went away on vacation and my whole goal is to just change the package name so I can run 2 instances. He told me to go ahead, than left on holiday,
He is on stock lollipop, not custom rom.
Syntax323 said:
Well its a custom made app from my buddy, he went away on vacation and my whole goal is to just change the package name so I can run 2 instances. He told me to go ahead, than left on holiday,
He is on stock lollipop, not custom rom.
Click to expand...
Click to collapse
OK then you probably just need the frameworkres.apk from cm 12 to be honest
Sent from my SM-N910F using Tapatalk
Do you have a link to it? Id really appreciate it. I can't find that, maybe i'm looking in wrong place?