Related
Well, I’m sure that it isn’t a secret for anyone, CM7 has been and still is my favorite rom for my Defy(s). I’ve been using it since the day Quarx’s brought IP Tables support to it – hence allowing me to use Droidwall as an Android firewall. I could then selectively allow/deny internet access to any installed app [having internet access permission that is…]. This is a first and important security step, but like anything, this has limitations; apps that do ‘really’ need internet access are then free to send (and receive) whatever their Android permissions allow them to get a hand on. For that, CM7 has a neet feature called ‘permissions management’ that allows you to control each app’s permissions individually. This option works fine BUT the problem is that the apps that you control that way often lose functionalities, stop working altogether or even throw you an error message telling you that the app’s permissions have been altered and that you will not be able to use it unless you reset them.
So how to solve this potentially very critical security flaw without losing apps functionality? ==> PDroid.
Thanks to xda user measel, I’ve just recently discovered this wonderful piece of software and I don’t think that my Defy will ever live without it from now on. The app itself is not really a new one and I’ve decided to create this thread to spread to word around and in the hope that it will be helpful to other Defy owners conscious about their data privacy.
WHAT IT DOES:
• More than just blocking apps Android permissions, it lets you control each individual app’s access to private information (user + system);
• It allows you to block and, in some cases, let you either use random or custom private data;
• It will also (if desired) warn you on any root or privacy info access, all that with an easy to figure out and use user interface [see pics];
• And best of all, applications will not crash when their access to private data is blocked unlike with Permission Denied (using LBE Privacy or alike or with CM7).
Disclaimer: I’m only the messenger and I take no credit or responsibility for anything that you’ll do with your phone from here on.
HOW TO:
Original thread by the dev [go have a read and give your thanks to svyat]
Pre-requisites:
- Make sure that you did not use Titanium Backup to integrate sys Dalvik into the rom [if you don’t know what that means, chances are that you didn’t; ignore it];
- a PC running Windows;
- a CM7-jordan/Jordan-plus build;
- PDroid patcher v1.31 (v1.27 also work but the latest version (v1.32) from the link above doesn’t work for the Defy. So I’m attaching v1.31 here which I’ve found with a little digging through that thread;
- the PDroid.apk itself [Market link] or [Dropbox link from the dev];
=> If you don’t have access to a PC running Windows or just don’t want to go through the trouble of patching process described below, you can head over to measel’s CM7 nightlys | info collection thread and locate the build you are using; he was kind enough to provide us with patches for most of recent Jordan builds. So go and grab your applicable patches and give thanks to him.
=> If you’re running CM9 or CM10, this patcher will not work for you, but there are alternatives - namely: the ‘auto-patcher’ or even the PDroid v2 [I’ll give links to those later]. Just go read the last few pages of the original thread, there are quite a few mentions/redirections to those over there. [please don’t ask me about questions about those as I did not try them just yet]
Note: PDroid is an ongoing but currently ‘on hold’ project [because, like someone said before: devs sometimes have a life outside Android...] which works perfectly fine as it is if you follow the next few steps below.
Zero off: Make a nandroid backup of your current phone setup.
First off: Create the patch for your rom:
To work, PDroid first needs you to mod 3 framework files and push them onto your phone. To do so, all you need to do is to execute the PDroidPatcher.exe. file [extract it from the zip attached] and point it to the CM7 build you are using. Let it do its thing and it will create a CWM recovery flashable zip and an undo (RESTORE) one.
Second: Flash the patch:
Just boot into recovery, wipe cache and dalvik and install the patch and boot up.
Third: Install the apk
That’s it!, you’re now ready to go your list of installed apps and start controlling your privacy accesses.
Warning: again, go read the original thread for a how to on how to backup your PDroid settings and/or use TB to do so.
HOW TO USE:
Well, it’s all pretty obvious and with a bit of common sense, you will easily figure out how and what to set up. By default, nothing is blocked and apps are free to access data. So you’ll have to go through your list of installed apps and set up each individual data access and then try them out. For example, logic would tell us not to block the ‘GPS/Network Location’ data to maps related apps nor block ‘Accounts credentials’ to apps dealing with user IDs and passwords like Email or social apps.
I can’t give you detailed instructions here (it’s not the point of this thread anyway), but if like me you already use Droidwall, you can first leave alone all the apps that you’ve black listed for internet access [pic 2] since they won’t do anything with your private data if they can’t send it back home… There is also an option within the app to ‘hide all the safe apps’ [which do not have an internet permission]; check it to reduce the size of your list of apps to configure.
From experience, I’d also suggest you to keep an eye on the apps requiring a password to run since blocking Device or Subscriber ID might mean that you’ll have to always enter passwords each time you run the app that would otherwise be remembered by those apps. As a rule of thumb, I pretty much choose the ‘use random’ option whenever it is available (just to minimize problems with the app on blocking completely – I’m not even sure this is a valid argument here…) or block everything else when it’s not and finally, I leave ‘Network Info’ allowed since it basically only lets apps know if you connected to internet or not [who cares if they get your wifi’s SSID or not…].
But again, you’ll have to fine tune the whole thing for each and every app and run them to check for full functionalities – but at least they won’t crash on you… Finally, you can pinpoint potential problems/solutions by turning off the general PDroid notifications option and by turning on a specific app’s ones [pic 3].
Happy privacy enhancement!
/AL
As usual!
Quality guides from lovely []AL[]
I don't want a tapatalk sig!
nogoodusername said:
As usual!
Quality guides for lovely []AL[]
Why not move to Android Apps forums?
I don't want a tapatalk sig!
Click to expand...
Click to collapse
"lovely AL" wow! you surely are the first person to tell me anything like this here on xda.
..not sure if I should be flattered or run away by homophobia - hehehe! :laugh:
Well, I didn't mean to make it a guide when I started writing it, but like always I had things
to say and the post got longer and longer.. so I guess that we can call it a sort of guide...
But I truly like the app and believe that along with Droidwall, that should be installed on every phone.
In fact, Google should look at this and incorporate something similar into Android.
OK, I'll go reply to your PM now... cheers!
Edit for your question: because like I wrote in the OP, I'm just the messenger and not the dev of the app.
The app also works mostly for on phones running CM7 and even not all the phones support it either.
So I wouldn't publish this widely without at least asking permission to the dev. But here for Defy owners fellows,
I know it works fine and again, I think that it is pretty much an essential app to have.
9 downloads/1 thank;
Leeches, I see leeches everywhere!
Shhhiiiiii- You got me excited! I thought I'd find a patch for the Quarx rom! So far auto-patcher can't patch Quarx's CM10 roms. Nor do I understand why that's so but that's why I'm not a dev.
Excellent app
Arch Linux User ..
KicknGuitar said:
Shhhiiiiii- You got me excited! I thought I'd find a patch for the Quarx rom! So far auto-patcher can't patch Quarx's CM10 roms. Nor do I understand why that's so but that's why I'm not a dev.
Click to expand...
Click to collapse
Well... sorry to hear that; I had no clue that it doesn't work with Quarx CM10. It seems to work for some other JB builds/phones... But like I wrote on the OP, I haven't tried any of this on CM9/JB yet. So again, too bad that this thing is a no go for now. I hear that Quarx is very busy outside Android's world as of lately so it might not be a good time to ask him about this - might also be low on his priority...but who knows, someone might read this and find an answer for you.
ps: quite an avatar you got there :silly:
an thanks for the link to the auto-patcher thread; it might be useful to others and it'll save me the search when I update the OP with it and your comment eventually...
juan296 said:
Excellent app
Click to expand...
Click to collapse
Well thanks but again, just I'm just a messenger here and not the dev... :highfive:
Actually, I use DroidWall , so.. can uninstall this app? And right now, JUST USE pdroid! Right?
Arch Linux User ..
juan296 said:
Actually, I use DroidWall , so.. can uninstall this app? And right now, JUST USE pdroid! Right?
Click to expand...
Click to collapse
I still use both...they are quite different apps and don't do the same at all. Droidwall is a firewall that let you control if an app has access to internet or not; PDroid controls what private information each app can access.
Like I wrote on the OP, any app that is blocked by Droidwall doesn't need a PDroid setup, but apps that need internet connection could be free to get private information from your phone if you don't use PDroid...
Basically, PDroid has no way of blocking all internet access; it only blocks apps from reading private info (or scrambles it by returning info like random network location or sim ID#...)
Making "Stock" Custom ROMs Defunct (XposedFramework) - Tweaks for any ROM Version
Introduction
Recently it has dismayed me how, across the Android Community, people seem to feel that it's necessary to run a "Custom ROM" in order to get improvements and changes to your ROM. Of course, some of you know it's possible to modify the APK files directly to change things, but these changes need to be done every time your base ROM is updated. Once Samsung starts leaking out updates to 4.2 like a sieve, you guys will be all over them, needing to update your patches and tweaks every time.
Anyway, seeing this displeases me, as it encourages people to see "Custom ROMs" as a commodity, and something you consume. In essence, users were getting their "fix" of tweaks from their "chef", but not learning how to do it themselves, nor realising their beloved chef isn't doing anything magical. In fact, their chef is likely decompiling the applications, and using baksmali/apktool to take apart the app, hard-code in their changes, then rebuild it. This method has worked well for 3 years, but it's been in need of an update for some time.
The Enlightenment
Then I saw this thread by rovo89. That man deserves a beer for every Android user there is, for his work on the Xposed Framework! His and Tungstwenty's work on this has made it possible to modify the core Android system, without doing any actual modifying of applications.
OK... Why are you telling me this?
This invention seems to have pretty much gone unnoticed by the world. The reasons this is vastly superior to any other way of making modifications to apps and the system are:
Your modifications are not tied into a single version of the APK or app or framework. If the ROM is updated, the patch should still work perfectly on the new version of the app (this doesn't necessarily apply across major updates like 4.1 to 4.2, but should be fine across 4.1.0 to 4.1.2 style changes).
You are not actually modifying any files on the phone! If something goes wrong, you can just disable the support for the framework, and the tweaks will do nothing. As such, it's easier to get a working phone if something dies - in fact there is a ZIP placed on your SD for this very purpose. Just flash it in CWM and it will disable the framework.
As no actual files are being modified, it doesn't matter if your ROM is odexed, deodexed, or a bit of both (ie. certain apps deodexed, but frameworks odexed). With this, there is no reason to run a deodexed ROM, since you can change pretty much everything you want to without touching the raw files. So leave them as odex files and you'll not have any problems. Bear in mind we deodex to allow easier customisation, odexed is actually slightly faster, and removes the majority of the dexopt process on first boot.
No application signatures are modified, as the apps are not touched, so if you were to use this to modify an app like Maps or Gmail, you won't get issues when trying to update to a new version of the app via the market.
The only way this can succeed is for you to try it. I usually run a "custom ROM" on my phone. For the first time ever, I've been using a stock ROM for a significant period of time. On the Note2 in particular, Samsung is really getting good at this. But they're not perfect. And as such, I started to look at using this to perfect their work.
When you run a custom ROM, look at what you're getting, and ask yourself why it doesn't use this method. I've only made one little modification so far, but it's one that annoys me hugely! The blooming SMS -> MMS conversion when you try to write any form of prose in a text message. I cannot stand the limitation of SMS to 160 characters, so the ability to chain together messages is a godsend to me. Unfortunately though, Google and Samsung seem to like to restrict you to 3 SMS messages worth of text before converting to an MMS message. Which is wonderful, except when you have totally unlimited SMS, but pay for MMS. As such, I was finding my ability to communicate in my usual verbose way somewhat hindered by the messaging app.
Alas that is no longer an issue. If you want to get started, here's how.
OK... How do I use this?
Download and install the APK file from this post - http://forum.xda-developers.com/showthread.php?t=1574401. I have tested it on the N7100, it works fine. Run it, install the framework, grant it root (yes, this requires root!), and reboot. I have mirrored the APK below just in case of issues.
Download and install the APK modification you want from http://www.villainrom.co.uk/forum/microdownloads/
When you get a notification about enabling the modification (after the APK is installed), tap that notification, and enable the plugin by ticking the box.
Reboot your phone
Go test your modification
If you have any issues with this, please paste the contents of /data/xposed/debug.log on a pastebin site or in
Code:
tags.
[SIZE="5"][B]How can I make my own modifications like this?[/B][/SIZE]
Will post this a bit later, along with the source of this plugin.
[SIZE="5"][B]References[/B][/SIZE]
[url]http://forum.xda-developers.com/showthread.php?t=1574401[/url]
[url=http://forum.xda-developers.com/member.php?u=4322181]Tungstwenty[/url]
[url=http://forum.xda-developers.com/member.php?u=4419114]Robo89[/url]
[SIZE="5"][B]Sources[/B][/SIZE]
You can find the sources for Xposed Framework at [url]https://github.com/rovo89[/url]
You can find the sources for all Xposed modifications I have made so far on Github:
[url=https://github.com/pulser/xposedSMStoMMS]Disable SMS -> MMS Conversion[/url]
[url=https://github.com/pulser/xposedDisableBatteryFullAlert]Disable 100% Battery Notification[/url]
[url=https://github.com/pulser/xposedEnableCallRecording]Enable Call Recording[/url]
[url=https://github.com/pulser/xposedScrollingLauncherWallpaper]Enable scrolling wallpaper in stock launcher[/url]
[url=https://github.com/pulser/xposedEmailTextColour]Make text in email app message list clearer to read (lighter) on the black background[/url]
Install the Xposed Framework from this thread: http://forum.xda-developers.com/showthread.php?t=1574401
Modifications
OK so a few people suggested an addon repository... I have got one sorted
Downloads
http://www.villainrom.co.uk/forum/microdownloads/
I've added some of mine so far, but I won't add other people's - they can add them themselves, and maintain them
This system is vastly superior to a stickied forum thread, as you can update your own modification (as a developer), and as a user, receive notifications if a modification is updated.
Developers
Register for an account (Free, easy, no spam etc)
Go to http://www.villainrom.co.uk/forum/account/join-user-groups
Tick the option for Xposed Uploader, and hit Save. A request will be sent to me for your application. I'll approve it when I see it (should be quite fast, it gives me a popup)
Head back to http://www.villainrom.co.uk/forum/microdownloads/ and click the Upload button at the top right.
Use a general title that describes what your modification does. Put in a version string too. I tend to use the format 1.0, 1.1, 1.2 etc, but this is up to you. You can add Alpha or Beta or other designations if you wish.
For author, pop in your name or username. And enter a brief description of what the modification does (which will appear in the index)
Click Categories/Agreements, and select which category the modification falls under. If you think there's a category which should be added, let me know.
Under Full Description, you can enter a detailed description of your modification. Finally, under File Options, use File to Upload to select your APK file. You can optionally add an Image to Upload. The Use File URL should be set to no, and the File URL box left blank.
Users
There is no need to register an account to download files from the repository. If you wish to receive notifications of updates, you can register an account - just hit the red "Log in or Sign up" button - you can use a Twitter or Google account if you want, or just make a plain account. It makes no difference.
Head across to http://www.villainrom.co.uk/forum/microdownloads/ and have a look at the modifications you want.
Click watch file (at the bottom right) if you want notifications about updates to a modification
Click Report to report a modification for being malicious or problematic.
Click "add comment" to discuss or comment on the modification, or leave a "review" or feedback
Click on the stars under (0 votes) to leave a star rating on the modification, which will help generate most popular lists on the main page.
Click to see licence details of mine:
Feel free to use these as you wish, for non-commercial purposes. You may share these for personal use. Note that distribution in any kind of "package" or "custom ROM" is not personal use. Sending a friend a copy is personal use, feel free to do that and share the love.
Feel free to make changes to the source code of the modifications if you think you can improve them, provided you make your changes available in a similar manner. If you fix a bug or error, please send a pull request.
If you wish to use these commercially, please contact me. This includes in any "distribution package", be it a ROM, app, store, marketplace or other package. That's not in the spirit of this project, so get in touch with me and we'll discuss it.
Tl;dr:
End users, have fun, use these, enjoy them, share them, tweak them, just be sure to share your source changes and/or send a pull request if you improve something!
"Custom ROM" Developers, and anyone wanting to try to use these for commercial purposes: Don't. These are to encourage people to learn about these changes, so contact me if you want to do something else with them. Commercial use, including distribution in "Custom ROMs" is not permitted.
How to make your own such modification
This information is NOT complete. This example only uses 1 of about 10 different types of modification. I have spoken to rovo89 and he has said it would probably be possible to document this further. This example covers ONE usage case - I am going to override an entire method.
1. Create a new empty Android project in Eclipse.
2. Within the "application" section of your AndroidManifest.xml, add the following metadata:
Code:
<meta-data android:name="xposedmodule" android:value="true"/>
<meta-data android:name="xposedminversion" android:value="2.0rc1.*" />
3. Within the assets folder of the project, add a plain text file, "xposed_init". Within this, I have put
Code:
uk.co.villainrom.pulser.allowlongsms.AllowLongSMS
uk.co.villainrom.pulser.allowlongsms is the PACKAGE name of my Java package. AllowLongSMS is my class name. The purpose of this is to tell the Xposed Framework what to run.
4. Within AllowLongSMS.java (ie. the class name, with .java on the end), I put the following code:
PHP:
package uk.co.villainrom.pulser.allowlongsms; //this sets the package for our project, this is the first part of the value in xposed_init file in assets.
import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XC_MethodReplacement;
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.XposedHelpers;
import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam;
//above includes all the required parts of the xposed framework that we need here
public class AllowLongSMS implements IXposedHookLoadPackage { //here we declare the class AllowLongSMS. We say it implements IXposedHookLoadPackage, as we want to make use of the hook-in on package load. Other options are available here for working with native libs etc, and resources, but I'm not using these right now.
public static final String MY_PACKAGE_NAME = AllowLongSMS.class.getPackage()
.getName(); //this doesn't do anything, I just left it here for if I needed to write logs and wanted to have the package name easily accessible.
public static final String TAG = "PulserMmsTweak"; //same here, this doesn't do anything.
@Override //we are going to override the method handleLoadPackage, if it exists further up the hierarchy
public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable {
//this method is called every time a package is loaded. We have a parameter that we're going to call lpparam, that is passed in, that relates to what package was loaded
if (lpparam.packageName.equals("com.android.mms")) { //if the package that has just been loaded is called "com.android.mms" then
ClassLoader classLoader = lpparam.classLoader; //create a classloader object that we can now use
XC_MethodReplacement methodreplacer = new XC_MethodReplacement() { //create a method replacer object, as we are going to REPLACE an entire method within the mms app.
protected Object replaceHookedMethod( //we make an object here, that passes in the parameters of what to actually change
XC_MethodHook.MethodHookParam paramAnonymousMethodHookParam)
throws Throwable {
return Integer.valueOf(255);
/* THIS IS THE IMPORTANT LINE
* This line returns the value 255. Why this happens won't make sense yet, but THIS is where you put your "new method" code.
*
*/
}
};
XposedHelpers.findAndHookMethod("com.android.mms.MmsConfig", //here we say that we want to find and hook into the method "getSMSToMmsTextThreshold" which is part of the class com.android.mms.MmsConfig. We then say that we're passing this to methodreplacer, which we defined earlier
classLoader, "getSmsToMmsTextThreshold", methodreplacer);
}
//if the package wasn't com.android.mms, do nothing.
}
}
Awesome work mate. Wish I had a Note 2 to check this on.
EDIT: Wait.. I can use this on any device! Rock on. Thanks!
Wow this is great post. While reading this it makes me learn something like what is going on in background.
Sent from my GT-N7100 using Tapatalk 2
Thanks for continuing that amazing project pulser!!
I think i'm going to create some small apks for some stuff very soon (and release them of course).
Cool stuff as always pulser, keep it up
simone201 said:
Thanks for continuing that amazing project pulser!!
I think i'm going to create some small apks for some stuff very soon (and release them of course).
Cool stuff as always pulser, keep it up
Click to expand...
Click to collapse
The original guys are not gone, was talking to them recently
There's scarce documentation so far on this, but I will see what else I can do with it... I might make post 2 a repository of these APKs for now...
chaitanya87 said:
Wow this is great post. While reading this it makes me learn something like what is going on in background.
Sent from my GT-N7100 using Tapatalk 2
Click to expand...
Click to collapse
That's the intention Glad it worked! This is about learning, and not just "using".
Sure, you can download the APK and use it, but that's no better than just downloading some zipkang ROM that claims it does everything including making your morning coffee... This is about taking a look at HOW it works too That way people can make their own tweaks and share them!
pulser_g2 said:
The original guys are not gone, was talking to them recently
There's scarce documentation so far on this, but I will see what else I can do with it... I might make post 2 a repository of these APKs for now...
Click to expand...
Click to collapse
A small repo for APKs would be really cool and useful for users....
tell me if i can contribute in some ways (i'm an app dev mainly also)
simone201 said:
A small repo for APKs would be really cool and useful for users....
tell me if i can contribute in some ways (i'm an app dev mainly also)
Click to expand...
Click to collapse
I will work something out (I can easily make a repository if this kicks off, so people can upload them and they appear).
TBH right now it's more a case of thinking up some ideas. For now, I can add anything people send into the second post (though I think it would be reasonable that we request source for all such modifications, just given the sheer ability to modify anything that this has...)
I can't think of enough things to tweak, we just need to work out WHAT people will like to modify, and implement it
I'll be a good example and put mine onto git shortly
My own notepad of things I need...
http://forum.xda-developers.com/showthread.php?t=1965801
http://forum.xda-developers.com/showthread.php?t=1924905
call record:
http://forum.xda-developers.com/showthread.php?t=1938808
http://forum.xda-developers.com/showthread.php?t=1871525
Hey folks,
I'm happy to see some new interest on Xposed.
I've been using it since rovo89 came up with this brilliant idea, and have to admit I was kind of sad to see not many saw its great potential.
Personally, I'm using a couple of hacks for my individual use, but if the community starts to be interested in the HOWs rather than merely nagging about the apks I guess I can try to make an effort to clean and share the code.
Please do ask away stuff, I'm eager to seeing this being used to its full potential
For now, please check the Tweakbox sources. While the code itself might no longer 100% apply to the most recent S2 stock roms, it's still a nice example of how the hacks can be done.
this sounds great! like an universal (almost!) patching system. I hope more chef will write mods for this. man...wish i had taken some lessons in coding.
for a start, how about some of the often repeated annoyance in stock samsung that drives many to use custom roms just to get these functions:-
1) disable the scrolling quick setting panel when you open notification
2) 15 toggles as implement by guys like Wanam.
3) call recording (ok we got this already)
4) 4 way reboot menu
5) some kind of user definable custom battery graphics.
sunwee said:
this sounds great! like an universal (almost!) patching system. I hope more chef will write mods for this. man...wish i had taken some lessons in coding.
for a start, how about some of the often repeated annoyance in stock samsung that drives many to use custom roms just to get these functions:-
1) disable the scrolling quick setting panel when you open notification
2) 15 toggles as implement by guys like Wanam.
3) call recording (ok we got this already)
4) 4 way reboot menu
5) some kind of user definable custom battery graphics.
Click to expand...
Click to collapse
Yeah this is pretty universal. I'd even remove the word "almost" tbh...
For 1, do you mean to disable the scroll animation so that it shows the leftmost icon (wifi) first?
2 is possible, I know samsung has done it on 4.2, is the custom implementation better?
3 is done like you said.
4 should be more than possible.
5 is definitely possible, at least via flashing the modification for the battery style you want...
Thank for the ideas
i flash custom rom just because i need below few things
1.Call-Record. (done)
2.15 toggle, or maybe add NFC, S Beam, Multiwindow, Smart Stay as well
3.Louder Volume Speaker.
4.CRT Lock and Unlock Screen.
5.4 Way Reboot.
6.Unlimited Multi-Window
thanks for the good work and sharing.
Hi. So glad to see that this amazing framework didn't "die"
I would have one question about the mods...
Ok its likely that for the same device they work on different bases of the rom like DLJ5, ELK4 am I right?
But does a mod that was made for lets say the Note 2 work on a SGS3 or must it be adapted?
Thanks !
DirkStorck said:
Hi. So glad to see that this amazing framework didn't "die"
I would have one question about the mods...
Ok its likely that for the same device they work on different bases of the rom like DLJ5, ELK4 am I right?
But does a mod that was made for lets say the Note 2 work on a SGS3 or must it be adapted?
Thanks !
Click to expand...
Click to collapse
If it's touchwiz then it should work - samsung seems to have unified a lot of it.
Jerdog used the SMS to mms patch fine on his s3.
It really just depends on the modification itself tbh...
If I would like to start writing my own mods is there somewhere a guide how to debugg the mod I write?
Thanks!
one more
can you add:
*:laugh:skip music track with volume button
Hello guys, I had an idea and wanted to discuss it with you people that you are definitely more experienced than me, I was wondering if it was possible to create a single apk which is the ROM, or this apk should include the bootanimation, and the launcher would be the apk (or rather a activity in it) ditto for SystemUI framework-res or for short, this apk should consist of the various components that make up a normal ROM, all in one file (except, I think for the folder META-INF because that is read, as far as I know, the default of any recovery, or should create a recovery made on purpose), the benefits would be many of the small size of the system, the speed, the "simplicity" of programming (think that should be programmed to a single apk with all the functions of a system and not to distribute all in many files), but then I came effettivamante doubt that this is not feasible, and so I wondered if you could do the same thing but only for apk (those contained in the app folder)
So what do you think?Is feasible?
No.
R: What do you think?
luxifr said:
No.
Click to expand...
Click to collapse
Why?
UP!! someone might be a little more precise
---blacksoul--- said:
UP!! someone might be a little more precise
Click to expand...
Click to collapse
Don't bump your own thread. Why on earth would we even want to do it? It would increase the size of the ROM, make it extremely hard to debug, and I'm not even sure how it could hypothetically work.
"Joining" all the system apps is certainly possible.
But:
-Seperate apps can be supported and updated better
-One APK with ALL THOSE THOUSENDS of Java code lines is VERY messy
-Compiling it would take long , very long - less attractive to developers
-I can think of much more, but it isn't of any use so I'll stop here.
Cy
Sent from my Galaxy Nexus running Android 4.2 JB
I'll add one other...
You'd still need an underlying file system since Android/Java are interpreted languages and require an interpreter to execute the code.
I dont know if this is possible or someone can point me in the right direction.
All Devices are rooted,
The question is simple really, is there a Addon / Mod / Hack
that would allow me to update a app Providing the package names are the same but signing keys are different
but still allow me to Update it?
A open source app we are all working on in the office (a home project i would like to say)
Each person adds something different or changes it for a weekly meeting presentation, It would be nice to update the app
without having to uninstall it and reinstall the new APK for quick and easy accessibility.
I understand this is a security risk, but its only for our developer handsets. Its a complicated setup in the office lol
Hi,
In this thread or post we will discuss the option that we have to deal with Sony Sketch App.
We all know that the app was terminated since it wasn't doing good profit wise, therefore it was shut down, we will not discuss how to export the data, since this option is not longer available anymore, since Sony had given their users six months to do so.
Now, the question is as the following: (If anyone can answer them that would be cool)
How to extract the downloaded STICKERS from the app?
&
How to download the list of the stickers online if they are available?
&
How to download any other stickers or icons online and use them within the app?
&
What is the format of the stickers used within the app?
In my Twitter account @MedoHamdani an image of the full list of the stickers. If anyone can recreate them, please do let me know. If anyone know where to find them in the phone, please do let me know so they can be extracted and shared with the community.
There is another app called Sketch United by one of the previous developer called Carl (This info not confirmed yet), but it is not similar to Sony Sketch app at all and doesn't have the stickers function.
Thanks
Medo Hamdani
Hi,
MedoHamdani said:
How to extract the downloaded STICKERS from the app?
Click to expand...
Click to collapse
Stickers are located in (complete path from root folder)
/data/data/com.sonymobile.sketch/files/content/stickers
However, you need root access to see the files and eventually add/import another stickers.
Also, the stickers won't show-up in the app until they are registered also within 'content-packs.db' SQLite database.
Database location
/data/data/com.sonymobile.sketch/databases
By copying all the stickers files and replacing the content-packs.* database files, I was able to transfer all my stickers to another phone. Also, file permissions must be set properly (chmod 777, recursively), otherwise you'll actually see a scrollable list of stickers, but everything blank, just blank thumbnails, as the app prepares buttons for them based on the database of downloaded content, but then cannot access them due to bad permissions set on the individual files.
Sadly, I don't have complete pack of stickers, but I'll share them anyway: https://drive.google.com/drive/folders/13VPrjQeLhOiUi7BoOe-znNNT6bP_xq6-?usp=sharing
(compatible with 9.0.T.0.6 and 9.0.A.0.6)
For a non-root users is eventually possible to use built-in Backup & Restore feature found e.g. on LG or Asus phones, which can import/export complete apps INCLUDING data, not just APK file alone. This way I was able to actually extract the Stickers from my non-rooted LG G6 and import them to a rooted Asus ZenFone 2.
Unfortunately, the export files are not in standardized format across manufacturers, and so one rooted device from every smartphone brand with such Backup & Restore functionality would be needed to cover most non-rooted users. Plus, the exported package often contain various personal information, e.g. I found bits and pieces of photo (?) metadata with text geographical locations included, despite I unchecked all but the one single Sketch app for making the backup. And so while it might be a solution for a non-rooted phones, it might hardly be the preferred one.
MedoHamdani said:
What is the format of the stickers used within the app?
Click to expand...
Click to collapse
PNG
nfsmaniac said:
Hi,
Stickers are located in (complete path from root folder)
/data/data/com.sonymobile.sketch/files/content/stickers
However, you need root access to see the files and eventually add/import another stickers.
Also, the stickers won't show-up in the app until they are registered also within 'content-packs.db' SQLite database.
Database location
/data/data/com.sonymobile.sketch/databases
By copying all the stickers files and replacing the content-packs.* database files, I was able to transfer all my stickers to another phone. Also, file permissions must be set properly (chmod 777, recursively), otherwise you'll actually see a scrollable list of stickers, but everything blank, just blank thumbnails, as the app prepares buttons for them based on the database of downloaded content, but then cannot access them due to bad permissions set on the individual files.
Sadly, I don't have complete pack of stickers, but I'll share them anyway: https://drive.google.com/drive/folders/13VPrjQeLhOiUi7BoOe-znNNT6bP_xq6-?usp=sharing
(compatible with 9.0.T.0.6 and 9.0.A.0.6)
For a non-root users is eventually possible to use built-in Backup & Restore feature found e.g. on LG or Asus phones, which can import/export complete apps INCLUDING data, not just APK file alone. This way I was able to actually extract the Stickers from my non-rooted LG G6 and import them to a rooted Asus ZenFone 2.
Unfortunately, the export files are not in standardized format across manufacturers, and so one rooted device from every smartphone brand with such Backup & Restore functionality would be needed to cover most non-rooted users. Plus, the exported package often contain various personal information, e.g. I found bits and pieces of photo (?) metadata with text geographical locations included, despite I unchecked all but the one single Sketch app for making the backup. And so while it might be a solution for a non-rooted phones, it might hardly be the preferred one.
PNG
Click to expand...
Click to collapse
Thanks for your detailed answer, if you have done this process and recorded it in a video that would be helpful. Thanks much
By the way, do you know any other app that does the same thing?
MedoHamdani said:
By the way, do you know any other app that does the same thing?
Click to expand...
Click to collapse
There are some apps like Titanium Backup for making apps backup/restore, but you need root for all of them. Otherwise you need to rely on your phone manufacturer whether he included some proprietary app for this AND whether the format is not any encrypted and if there are tools available to extract the backup file.
E.g. me, on LG's backup I used this great tool to extract it: https://github.com/Mysak0CZ/LBFtool
Okay, first of all let me ask you few questions:
Do you have complete pack of stickers that have been ever available?
What phone do you have? Is it rooted or not?
In case you have root, extraction of Stickers will be a lot easier.
Just navigate inside some file manager like Root Explorer or Total Commander to
/data/data/com.sonymobile.sketch/files/content/stickers
and make backup (create archive, ZIP), of all of its content.
Additionaly copy also these two or three files (first one is the most important and should be common, last two ones varies by device)
/data/data/com.sonymobile.sketch/databases/content-packs.db
/data/data/com.sonymobile.sketch/databases/content-packs.db-shm
/data/data/com.sonymobile.sketch/databases/content-packs.db-journal
Then you can share them and I'll eventually try to get our two collections together to create bigger collection, closer to be complete, in case you don't have complete pack of Stickers.
In case you DON'T have rooted phone, I would ask you for details about your phone first. I can do a guide of what I have, but procedure might be different on your device.
Here is video how it looks on LG, something very similar I've seen on older Asus phones (at Android 5) also.
I've made backup to microSD card, unticked all options and ticked only Sony Sketch app (within "Downloaded apps" section) to be included in the backup.
Hi,
The answer to these questions:
Do you have a complete pack of stickers that have been ever available?
Well, not all of them but most of them, that was one of the reasons that the phone was not sold or formatted.
What phone do you have? Is it rooted or not?
Samsung Galaxy Fan Edition, and it is not rooted, but willing to undergo the process of rooting.
Is there any app that is similar to Sony Sketch, or can we make another one using Adalo?
@MedoHamdani Personally I am lacking real alternative to Sony Sketch. It was lightweight and intuitive app, simple but powerful. And particualary the Stickers were good here. Lack of serious alternative that wouldn't be full of crappy bloat and ads is the reason why I am willing to spend time on this abandoned app.
I've looked into internals of the Sketch app and while I have zero experience with Android apps modding, it seems to be surprisingly clean and understandable code to me.
Chances are I could be able to just embedd the stickers into the base APK file, the same way how there already is the basic set of Stickers included in the app. I believe that even custom fonts might be possible to add.
Sadly, not always are things as simple as they might seem to be. But i will try it.
Anyway I do appreciate the fact you've kept them in archive and have the will to root your phone.
In case of any difficulties, feel free to reach me out or other members in appropriate forum section dedicated to your device.
Please, try to make a backup of the Sony Sketch app first just in case of any failure (or data loss) during the procedure of rooting your phone, so you'd be able to restore the app back to yours (or another) Samsung phone.
Thank you and good luck!
nfsmaniac said:
@MedoHamdani Personally I am lacking real alternative to Sony Sketch. It was lightweight and intuitive app, simple but powerful. And particualary the Stickers were good here. Lack of serious alternative that wouldn't be full of crappy bloat and ads is the reason why I am willing to spend time on this abandoned app.
I've looked into internals of the Sketch app and while I have zero experience with Android apps modding, it seems to be surprisingly clean and understandable code to me.
Chances are I could be able to just embedd the stickers into the base APK file, the same way how there already is the basic set of Stickers included in the app. I believe that even custom fonts might be possible to add.
Sadly, not always are things as simple as they might seem to be. But i will try it.
Anyway I do appreciate the fact you've kept them in archive and have the will to root your phone.
In case of any difficulties, feel free to reach me out or other members in appropriate forum section dedicated to your device.
Please, try to make a backup of the Sony Sketch app first just in case of any failure (or data loss) during the procedure of rooting your phone, so you'd be able to restore the app back to yours (or another) Samsung phone.
Thank you and good luck!
Click to expand...
Click to collapse
Thanks for your extensive detailed reply.
Guess we can form a team who are willing to voluntarily make the app possible. We can use Adalo which is a platform where we can create apps without coding.
If possible will schedule an online meeting using Google Meet so we can back up the phone and root it. Let me know if you are in.
Just imagine if we manage to launch the app after a year from now, since it already has its reputation we can get up to 100,000 downloads.
Please do let me know what software is needed for the backup and the roots.
Cheers,
Medo Hamdani
Dear @MedoHamdani,
I doubt that a sketching app with any practical value can be made using Adalo or any other platform claiming "no coding needed".
I heavily doubt we can just extract stickers we own no rights to and use them in any of our apps that will be publicly distributed somewhere or even sold, as it could be considered as illegal and we would break the rules of XDA forum and laws in your and my country too.
At most we can slightly modify the original application and distribute it with its no-longer available online content. Or create a whole new app with our own stickers and other content.
Perhaps we should move to a private messages if you'd like to discuss it any more in this manner.
You haven't provided exact model of your phone, so I can't point you to any forum thread.
Maybe you should let rooting of your phone on someone more experienced. Or if you have some older or cheaper Samsung phone, definitely try Samsung Smart Switch if it will work for transferring of Sony Sketch's data & stickers.
There is many video guides and it can be done even wirelessly.
Then you can play around with rooting while having a lower harm in case of failure during making a root.
While I can share your enthusiasm, I'd prefer other option to some video meeting currently, I see it as it's kind of early for doing such activity. I hope you understand.
nfsmaniac said:
Dear @MedoHamdani,
I doubt that a sketching app with any practical value can be made using Adalo or any other platform claiming "no coding needed".
I heavily doubt we can just extract stickers we own no rights to and use them in any of our apps that will be publicly distributed somewhere or even sold, as it could be considered as illegal and we would break the rules of XDA forum and laws in your and my country too.
At most we can slightly modify the original application and distribute it with its no-longer available online content. Or create a whole new app with our own stickers and other content.
Perhaps we should move to a private messages if you'd like to discuss it any more in this manner.
You haven't provided exact model of your phone, so I can't point you to any forum thread.
Maybe you should let rooting of your phone on someone more experienced. Or if you have some older or cheaper Samsung phone, definitely try Samsung Smart Switch if it will work for transferring of Sony Sketch's data & stickers.
There is many video guides and it can be done even wirelessly.
Then you can play around with rooting while having a lower harm in case of failure during making a root.
While I can share your enthusiasm, I'd prefer other option to some video meeting currently, I see it as it's kind of early for doing such activity. I hope you understand.
Click to expand...
Click to collapse
Alright let's do this, you are right we can't simply make the whole app with no code platform. point noted.
However, we can extract them then modify them then publish them. ( we might require some volunteers to assist us)
We can move to private messages as well for sure.
The exact model should be Samsung Galaxy Note Fan Edition.
Model Number: SM-N935F/DS
Android version: 9
Previously there was an APK file called King Root that does the job, it was used once on a Lenovo phone, however, it is better to be safe than sorry.
Regarding the video meeting, we can disregard it, that should be fine.
How about creating a backup on the PC instead of getting another phone?!
Thanks much for your help,
We will get these stickers out sooner or later.
What do you think of this article?