yashsingh1/xdaforums huggingface dataset:
[Galaxy Note II Original Android Development] Simone:
Hi,

I was searching for disabling SMS to MMS conversion and I stupidly flashed it as a .zip file.

I got it to work now by doing it correctly.

I was just wondering how I could delete those codes that I flashed stupidly?
[Galaxy Note II Original Android Development] famewolf:
I've never had a single issue from denying apps the ability to look up my imei....I don't even know why they would need to...I have multiple devices and google play has my account info for my pay apps by email address so even it doesn't need that info..make and model can be identified from build.prop.....then you have apps like screebl pro which keeps the screen from going dark if you are holding the phone up vs laying it down....why would that app EVER need Internet access? Denied.....finally the only app I want to have the ability to send sms's is google voice and my antitheft app. There are valid reasons to deny permissions.....I don't need every single app doing it's own update check....those tie up data and power.
[Galaxy Note II Original Android Development] rovo89:
No doubt. But I was not talking about whether it makes sense, I'm a bit worried about crashes. If an app calls a method that enforces a certain permission (e.g. READ_PHONE_STATE), but doesn't have that permission, a SecurityException will be thrown. Of course, an app can catch that Exception or could even check before whether it has the permission. But most apps won't do this. The developer declares that the permission is required and they trust in Android that they get it. Either the user accepts this (which results in the permission being granted) or the app won't be installed at all, so I don't see a fault on the developer's side when they don't handle a situation that can't happen unless someone breaks the axioms.

This of course also happens if you revoke permissions from a single app. Tell Facebook it can't access anything related to the internet and it will crash. It will not fall back to a safe behavior like "hey, I need internet permission to work" or "seems like you have no signal, I don't get any reply from the server, will try again later" because it would have to check that explicitely. But if you revoke some permissions from all apps - even with a whitelist - you have a much higher chance of crashes. And if e.g. your launcher is among those that unnecessarily want to inform you about new themes or whatever, you might get into a crash loop. This is what I meant with "dangerous".
[Galaxy Note II Original Android Development] famewolf:
Both LBE Security manager and Pdroid/OpenPdroid handle it in some manner..perhaps returning a null value. They both run with root permissions and pdroid requires a patch to the kernel so perhaps that gives them what they need. I'm not sure what they return when you deny internet but none of my apps have crashed....then again I only deny internet to a handful of apps. You could see how they do it in the source for openpdroid I suppose.....I wouldn't have much luck with that unless it was written in mainframe cobol. ;)

From Openpdroid's thread:

What does it do?

When configured using either FFU5y's PDroid Manager or CollegeDev's PDroid 2.0 App (up to v1.52), OpenPDroid intervenes in API interactions by apps (e.g. when an app attempts to retrieve your location, phone number, or contacts) and provides either real data, empty data, fake data, or random data, depending on the user setting. Unlike apps which actually remove permissions, OpenPDroid does not actually modify the permissions that an app has and so is much less likely to cause the app to crash as a result of data access being denied.
[Galaxy Note II Original Android Development] rovo89:
I don't know how LBE works.. I might have a look at it when I find the time. However, PDroid technically doesn't revoke the permissions, but returns fake data (or none at all). This might not be a big difference for users, but it makes a huge difference in the implementation. That is why PDroid needs the patches for the Android framework - these patches modify and enhance the code in a way that makes filtering the method calls possible. But these patches are needed for every single thing you want to control. This means it is very much work to implement something like that.

The approach App Settings takes is much simpler: There is a function which looks at the permissions requested by the app and checks if it is ok that the app gets them (e.g. there are some which are only granted to apps in /system etc.). All permissions which pass this functions are granted to the app. And App Settings simply removes the revoked permissions from the list of requested permissions, so the system doesn't even think about granting them to the app. That is universal and rather easy to implement (only 40-50 lines of code do the main job), the main challenge was understanding how the system works.
[Galaxy Note II Original Android Development] lightdelegate:
can i flash this on the new MIUI rom ?
[Galaxy Note II Original Android Development] Scalee:
I am quite curious if this would affect the speed of your device.

Theoretically speaking, would it slow down everything or just the packages your modifying?

Maybe i should try creating a multi window mod, probably will take me a while :P

Even though it only looks like 2 small patches.
[Galaxy Note II Original Android Development] rovo89:
Yep, that's how you have to do it (the tutorial is still outdated btw, so please take Tungstwenty's code as an example). It looks rather complex, but the good thing is that you can use this also for other resource types like drawables.

For dimensions, I might add a way to code-only way later. I found the function which is responsible for the unit conversion, but I would have to test how well it works. And you cannot use the code-only replacements if you want to differentiate between different screen sizes for example (not sure how big this limitation really is).
[Galaxy Note II Original Android Development] Tassos_i:
On GN7000, JB "stock" XXLSC odexed, this module installed easily, I chose greek language, but greek dictionary never came up while writing...

And I restarted both the framework and the Note several times.
[Galaxy Note II Original Android Development] Scalee:
Tried to make a multiwindow mod but i think i have the wrong package name.

Class: com.android.server.am.MultiWindowManagerService

File: Services.jar

Code never enters

if (lpparam.packageName.equals("com.android.server"))

Any suggestions?
[Galaxy Note II Original Android Development] DirkStorck:
What about adding .am. ?

com.android.server.am

Send from my Omega ROM powered SGS3 :)
[Galaxy Note II Original Android Development] rovo89:
Most services are running in a special system process. I think the package name for it is simply "android".
[Galaxy Note II Original Android Development] Scalee:
You were right, it was named android. However the mod didn't work, but i figured it might just be the guide.

So i decompiled the flashbarservice and made my own mod, also saves me from messing in root processes.

I am so amazed by the xposed framework, it so bloody powerful.

I am really baffled that this hasn't become the standard, no more messing around in smali or having to have deodex roms.
[Galaxy Note II Original Android Development] pulser_g2:
Yeah, I'm hoping that this does become the standard...
[Galaxy Note II Original Android Development] pulser_g2:
Got it working now with the resource added to the package :)

Thanks guys!

I'll stability test this one for a little bit first though, just to be sure it's all OK!
[Galaxy Note II Original Android Development] lpsi2000:
Can you add multidpi to your to do list:D

Edit: nevermind I should have read the entire thread, but it looks like we may have something in the works already
[Galaxy Note II Original Android Development] rovo89:
Some posts ago, I mentioned that this is already working in Tweakbox if you know how to configure it. Nevertheless, we are planning to move this to a separate app (then with a proper UI of course).

Btw, the concept requires that more people write their own mods using the framework and share them. There are many different ideas what could be done, but if only a few people implement them, they will soon be confronted with many requests which they cannot fulfill.
[Galaxy Note II Original Android Development] o_tiger:
This 'proper ui multi dpi per app' app will definitely be a winner & will push this framework to the sky. How can I / we support this idea? To make this 'paranoid' apk come true. :D
[Galaxy Note II Original Android Development] D3_:
I believe DOC posted in the RedPill kernel thread saying that the upcoming hyperdroid (not hypernote) rom will support multi dpi.

I love the concept of this framework though, what are the basics I need to know to try writing things for it myself? Keep in mind I've currently got no coding knowledge :P
[Galaxy Note II Original Android Development] Scalee:
I was able to make my first mod (multi window mod) in about 8 hours, the first 3 hours were wasted on follow someones guide on how make this mod in smali which didn't work for my version. So i spend 5 hours figuring out how it works and how i wanted it to work (and probably become universal for all version).

But i have quite allot of programming experience (not so much in java though),

And eclipse isn't the most help full editor either.

I am afraid that if you have never coded anything, this will be a steep hill to climb.

But FAR more easy then patching things in smali.

You have to understand what your target app does so you know what to patch.

Long story short, what i think you need to know:

Data types

Loops

Casting

You have to understand what your target app does so you know what to patch. (previous things will help you here)

That should allow you to do simple patches i guess.
[Galaxy Note II Original Android Development] ruleonyourself:
Hey...the post was very useful for me and you are correct that no one is doing magic in creating costom rom....but from the thanks meter i can judge that u r very deep into the android stull so why cant u tell or create a thread from the starting that include explanation of each terms in android apk ....i mean let us assume there are three part in android .1 is any application that is .apk file.

2. Rom ...any custom rom

3. Kernal...custom kernal

now what i want to say you that u publish the details and step wise step procedure to make an app i.e .apk file ...how to initiate ,how to edit,what are the requirements (OS,software etc etc....) as u had explain in first page an example withh different lines of codes telling there meaning.

then when who are interested and idea of making something creative but do not have any idea how to do(me too includes in this category)

they will learn to make and create apps.

then after that you can add to make or customizes the stock or exposed rom........so that the one who gain the knowlege of making app can able to compile necessary and different app to create various custom rom

then the kernal .....

i hope i was quite clear....and also hope that it will produce lots of innovative and custom mods and app.......
[Galaxy Note II Original Android Development] MohJee:
Would it be possible to make an xposed module that increases USB charge rate to something faster than 475mah? Or is that something outside the frameworks realm?
[Galaxy Note II Original Android Development] pulser_g2:
Thar be kernel based change. Not xposed, unless some OEM had a really strange implementation of charge rates
[Galaxy Note II Original Android Development] pulser_g2:
All the things you asked for are covered in other tutorials on how to make apps.

Check out YouTube or just do a Google search. I don't think it's justified to spend the time making tutorials that already exist tbh.

I am not an expert in making apps - I have never made any... But if I can do this, so can anyone!
[Galaxy Note II Original Android Development] :
I know its probably a given but I can confirm that the xposed framework works perfectly on 4.1.2.

@pulser_g2 how did the testing go with the stock launcher mod? Hopefully we might see it soon?
[Galaxy Note II Original Android Development] Tungstwenty:
It works, just make sure to use the installer APK in the 2nd post, which detects ICS vs JB and installs the correct system file.

I have it running fine on a test Paranoid installation 2.22 (Android 4.1.2)
[Galaxy Note II Original Android Development] rovo89:
No, Miui is not supported.
[Galaxy Note II Original Android Development] Namoi:
Hi,

Is it the proper place to ask about the app settings module?

Thanks, i don't want to clutter the thread ;)
[Galaxy Note II Original Android Development] Tungstwenty:
One of the things I'm working on and hope to finish soon is an additional filter that will let you select apps using e.g. READ_PHONE_STATE, INTERNET, or any other existing permission.

This will make it much easier to browse all the packages using a given permission.

However, as rovo mentioned, bulk denying permission accesses might be very dangerous due to the likely FCs as he explained.

In order for permission revokint to be "safe", something similar to OpenDroid would need to be implemented - not actually denying the permission (and raising possibly unhandled exceptions on the app's side), but rather returning masked values, empty lists, or whatever.

It's a big challenge, and I don't think it will be achieved any time soon unless some of the guys from the OpenPDroid team start exploring the Xposed approach (and even then, not sure if it can be fully implemented without the OS patches).

Personally, I usually disable the permissions I am not willing to accept, whenever I install new apps.

If they work that way, fine. If they FC, I exclude it from my options and uninstall it.

I hope to finish the permissions filtering soon, and will publish a new version at that time.

Another related topic that's still in the roadmap is the notion of "profile" to be applied to a list of apps without needing to repeat the settings in each of them. I'm not yet sure whether permissions revoking fits that concept, though.

---------- Post added at 11:52 PM ---------- Previous post was at 11:46 PM ----------

Yes, this is the right thread :)
[Galaxy Note II Original Android Development] Namoi:
Thanks,

I was just wondering if it would be possible to add another parameter for the rotation : a kind of "force auto rotate"?

Thanks again
[Galaxy Note II Original Android Development] rovo89:
This option already exists, it's called "Normal rotation" (whereas "default app rotation" means that the rotation settings defined by the app developer are respected).
[Galaxy Note II Original Android Development] Tungstwenty:
I think what he's talking about is having the app switch between portrait and landscape even if the auto-rotation global setting is off.

I have tried with the SCREEN_ORIENTATION_SENSOR and it works, it will be available in the next version.
[Galaxy Note II Original Android Development] Namoi:
Thanks a lot, Indeed i was speaking of forcing the auto rotation EVEN if it is disabled in Settings.

With this feature (and the already "keep screen on"), i just have to launch maps and only have to enable gps. Lazyness is a bless ;)

Eh, btw, this could be nice too : enabling GPS on certain apps ? but maybe it is a little tricky, as the gps would turn off when the app loses focus...

Anyway thanks again
[Galaxy Note II Original Android Development] dcharleyultra:
I know enabling GPS for certain apps using Tasker is a pain because of foreground/background detection.

Swyped from my SPH-L710
[Galaxy Note II Original Android Development] pongster:
Is it possible to add an option in App Settings to force apps to use Holo (dark) dialogs instead of the default Holo.Light being used in AOSP based ROMs? For example when in apps such as Twitter and you select "share", the dialog window that opens is usually Holo.Light. This calls on the theme installed by default in the framework. There are 2 themes usually available with 4.2.2 by default, Holo and Holo.Light.

I'm not sure how you'd force the dialog to use the Holo instead of Holo.Light but it would cool to have per app control on what theme the dialog it uses, up to its settings screen since both themes are already available by default in the system. (For Holo compatible apps of course as legacy apps are a different story) :)
[Galaxy Note II Original Android Development] Tungstwenty:
Is there anyone that is willing to point out if/how this can be achieved? Any code submissions or pull requests would be great, if this is doable.

I don't have any idea of how it might be done and, to be honest, this isn't something I'm particularly interested in for myself and therefore not willing to spend time investigating it.

Permissions management and bulk settings are much more useful IMO (and complex), and I still haven't found the time to spend on it.
[Galaxy Note II Original Android Development] pongster:
Let me look closer at the code SlimRom uses for its TRDS feature, which does this but does it for all possible apps that support it. Some apps seem hard coded to call the Holo.Light dialogs even of Holo ones are available and are set as such by the system. A per-app setting to force these apps to use the dark dialogs would be ideal. Hopefully I can find how apps decide to use Holo or Holo.Light.

The clipper app on Play store has a function that let's you change from the default light theme to dark. Changing this changes the dialogs called so it can be done. Just need to find out how. :)
[Galaxy Note II Original Android Development] jpkbeddu:
Could a module for applying Smooth android spinners on Sammy ROMs is possible..?

Kristo made his Sammy ROM (Hyper Note) with that..

Sent from my GT-N7100
[Galaxy Note II Original Android Development] rovo89:
As far as I can see from this thread, it's about replacing drawables (in this case, they are written in XML and referencing other drawables). If this is correct and you can bundle the new drawable with a new app (i.e. whatever you do needs to compile properly), then yes, this should be possible. You just need to find someone who wants to do this or do it yourself.
[Galaxy Note II Original Android Development] Crussader87:
I still can't get tablet mode in some apps (ex. Youtube) y any configuration tried (all of them)... any idea?

thank you!
[Galaxy Note II Original Android Development] dcharleyultra:
The settings in my screenshot work for me.

Swyped from my SPH-L710
[Galaxy Note II Original Android Development] :
Ive just been looking at the new xposed theme engine which I think has some brilliant possibilities. Could this or even better the xposed app setting module be used to invert apps?
[Galaxy Note II Original Android Development] rovo89:
I think something like this has been asked a couple of times before, e.g. five posts ago. The first step for this is defining what is necessary to "invert" an app. Not the details of the Xposed module, but let's say you create an app, what do you do to invert it? Is it enough to select a different Holo theme as suggested by pongster? If so - what do you do if you already have a custom theme? Is it enough to replace the base theme it extends? Once this is clarified, the next question is where this information is evaluated so that it can be changed. I'd be willing to look into the second part if somebody else could answer and test the first one.
[Galaxy Note II Original Android Development] :
Thank you for your patience and explanation. My thinking was if its as simple as ticking a box to invert stock browser and chrome it might be something that could be hooked. But alas things are never that simple, I'm just glad more people seem to be adopting the xposed framework and we are getting more modules
[Galaxy Note II Original Android Development] rovo89:
Well, the stock browser and probably also chrome are using a special "invert" function that comes with WebKit. However, that is implemented in native code and cannot be used for any other apps. So a different approach is needed here.
[Galaxy Note II Original Android Development] pongster:
From the gist I created to "brainstorm" on how to possibly do this via Xposed and can be found here.

- setTheme(R.style.Theme_DeviceDefault_Light_Dialog_Alert);
+ if (Settings.Secure.getInt(getContentResolver(),
+ Settings.Secure.UI_INVERTED_MODE, 0) == 1) {
+ setTheme(R.style.Theme_DeviceDefault_Dialog_Alert);
+ } else {
+ setTheme(R.style.Theme_DeviceDefault_Light_Dialog_Alert);
+ }

Hopefully, this post made sense. :)
[Galaxy Note II Original Android Development] ipprof:
I have a problem and I'm not sure this can help me. I would like to download the Next Issue app or else the new Yorker app but neither let's me do it. I thought if I tried the tablet ui that would work. Then I thought maybe if I just made the app store into a tablet format it would work. I get the new Yorker app because I'm a hard copy subscriber but I've run into a dead end. Maybe I am using the wrong settings.Any geniuses out there who might help me crack this? I once had the app and it worked fine so it will work if I can download it.Thanks
[Galaxy Note II Original Android Development] rovo89:
Are you talking about downloading the app from the Play Store? This is a complex topic because the selection of available apps is done on Google's servers, not on your device. If you have modified your system DPI, you can try this module http://www.villainrom.co.uk/forum/index.php?microdownloads/15/viewfile
[Galaxy Note II Original Android Development] Terrarist:
I'm trying to change Flipboard from tablet mode to phone mode. Using CM 10.1 with a modified build.prop (lcd=240). Used Xposed to change the dpi and/or the Screen (dp). Nothing seems to work. All I get is a zoomed in screen with the same tablet layout.
[Galaxy Note II Original Android Development] The Dutchman:
Change the resolution to 1000 by 1600, and DPI to 160, that should do it

---------- Post added at 11:45 AM ---------- Previous post was at 11:34 AM ----------

My apology I thought you wanted tablet ui, I don't know about phone mode :)
[Galaxy Note II Original Android Development] Terrarist:
& I nearly responded that it looked exactly the same :crying:
[Galaxy Note II Original Android Development] Ranomez:
i am starting to learn android development cause i want to make my own apps, and i saw thie xposed framework and wanted to ask if we could use it to make something like the par-app-collor thing in paranoid android, cause that is a thing i really like but dont have it in aokp, also could we make it so that some apps read other phone model than the one in build prop using a module (make some apps on the phone think its a samsung galaxy s3, some think its a sony xperia z etf), cause i yes i will try to learn and make them, or at least i hope someone will make them if i fail?
[Galaxy Note II Original Android Development] ipprof:
That would be super. If I could make the app store think I were a kindle it would download the app I want in a second.
[Galaxy Note II Original Android Development] hopesfall19:
Hi,

had a weired experience.

I could not enter the battery settings under the normal android setting. rebootet, also took out the battery for half an hour. nothing worked.

when i pressed on "battery" it took some seconds than a blackscreen and the message " settings stopped".

why am i posting this here, because after inactivation my two xposed modules - multiwindo and tweakbox - and restarting my note i could again enter battery. Even after activation of the modues it still work.

I am on 4.1.2 DMC3 (DBT).

2 weeks ago a had some freezes + reboots and i did a factory reset + update from 4.1.2 DMB2 --> i stayed 4 days on absolut stock + some of my most important apps , after 4 days i rooted and yesterday (again after ~4 days) i added xposed-framework + the two xposed mods.

so i believe it has something to do with xposed or one of the modules.

so my question, did someone else had simmilar problems pointing to xposed ?

before that i had it 2-3 months running with no problems!