I am curious how to change the part that say "GNU Grub Version 1.99-27" at the very top of the boot loader. I have changed my menu entries, the boot order, and the background, and it looks AWESOME! Cannot figure out how to change the top title though. I have searched the web for this issue, and this is the feedback:
Precisely, this is a localized string "GNU GRUB version %s", which resides in /usr/lib/grub/i386-pc/normal.mod.
A few solutions, if you really want to change it:
Build your own packages, with a patch in the source code (see const char *msg in grub-core/normal/main.c) or in the po/ locales;
Modify the appropriate po file with, for example, poedit, then recompile it to an mo file and put it in /boot/grub/locale.
I do not understand what that is telling me to do. Could someone break it into steps for me? Thank you in advance
How to create a setting app?Like storage check,Display,Glance and Extra+info
Go to programming courses and if you'll like it by the end of those you will know the answer.
How to create a setting app?
Click to expand...
Click to collapse
You can install any developer app (from the xap file) in the settings. In the: WMAppManifest.xml file, you have to add one string, in bellow line:
Code:
<App xmlns="" [COLOR=Red][B]HubType="268435456"[/B][/COLOR] ProductID=" blablabla .....
You have to add only: HubType="268435456" with spaces before and after string in the place like in the code.
For WP7.X that work.
I want to make a module to do this:
http://forum.xda-developers.com/showthread.php?t=2692514
I could hide tabs, but I don't know how to copy / move LinearLayout (Step 3 in above thread).
Could someone please tell me how to do it?
Thank you.
Source:
https://github.com/WedyDQ10/Quicksettings/
SystemUI.apk:
http://d-h.st/4E4
Do I understand you correctly that you want to modify a layout, in this case by adding a LinearLayout to "somc_notifications_tab"?
If so, you should use the XResources.hookLayout() API inside handeInitPackageResources(). Quick example here: https://github.com/rovo89/XposedBridge/wiki/Replacing-resources#modifying-layouts
Then you have to create the LinearLayout programmatically, set the required attributes and finally insert it in the hooked layout.
Hi,
I want to use sqlite in my xposed module but i don't have any activity or context to send the database constructor.
Is it possible to overcome this?
I tried to send null as a context, but i'm getting nullPointerException when i try to open the database.
Thanks,
Gidi
If you can't get a context from the method you're hooking, you could try the AndroidAppHelper.currentApplication method.
Code:
Context ctx = AndroidAppHelper.currentApplication();
Context myCtx = ctx.createPackageContext("com.developer.app");
pyler said:
Code:
Context ctx = AndroidAppHelper.currentApplication();
Context myCtx = ctx.createPackageContext("com.developer.app");
Click to expand...
Click to collapse
HI Guys,
I tried the AndroidAppHelper.currentApplication() option, but it returns NULL in my case...
shnapsi said:
HI Guys,
I tried the AndroidAppHelper.currentApplication() option, but it returns NULL in my case...
Click to expand...
Click to collapse
If you are editing a database using sqlite and the current process you are hooking as no context reference, you can use root to set the database file to readable, then have your own service running in the background with a file observer tracking changes to a file on the device. Inside xposed module you will write to the file with a command instructing the file observer what to do. Then your service will "hear" the command and execute the changes needed.
I plan on writing up a guide for this. Tomorrow
elesbb said:
If you are editing a database using sqlite and the current process you are hooking as no context reference, you can use root to set the database file to readable, then have your own service running in the background with a file observer tracking changes to a file on the device. Inside xposed module you will write to the file with a command instructing the file observer what to do. Then your service will "hear" the command and execute the changes needed.
I plan on writing up a guide for this. Tomorrow
Click to expand...
Click to collapse
Thanks, I'll be happy to read your guide and learn new stuff
Anyway, I read that it's possible to use Sqlite DB without using SQLiteOpenHelper, this way, i don't need context.
the problem is that when i do it i get exception:
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
this is my code:
database = SQLiteDatabase.openOrCreateDatabase(DB_NAME,null);
database.execSQL(CREATE_TABLE);
Thanks.
shnapsi said:
Thanks, I'll be happy to read your guide and learn new stuff
Anyway, I read that it's possible to use Sqlite DB without using SQLiteOpenHelper, this way, i don't need context.
the problem is that when i do it i get exception:
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
this is my code:
database = SQLiteDatabase.openOrCreateDatabase(DB_NAME,null);
database.execSQL(CREATE_TABLE);
Thanks.
Click to expand...
Click to collapse
You probably don't have the required permissions to read/write to that location.
GermainZ said:
You probably don't have the required permissions to read/write to that location.
Click to expand...
Click to collapse
Thanks GermainZ,
which permissions do i need?
I tried to do it this way too:
Code:
File db = new File("/data/data/com.example.mytest/databases/" + DB_NAME);
db.setReadable(true);
db.setWritable(true);
File path = new File("/data/data/com.example.mytest/databases/");
path.setReadable(true);
path.setWritable(true);
path.mkdirs();
database = SQLiteDatabase.openOrCreateDatabase(db,null);
Still same result...
Thanks!
shnapsi said:
Thanks GermainZ,
which permissions do i need?
I tried to do it this way too:
Code:
File db = new File("/data/data/com.example.mytest/databases/" + DB_NAME);
db.setReadable(true);
db.setWritable(true);
File path = new File("/data/data/com.example.mytest/databases/");
path.setReadable(true);
path.setWritable(true);
path.mkdirs();
database = SQLiteDatabase.openOrCreateDatabase(db,null);
Still same result...
Thanks!
Click to expand...
Click to collapse
Let's differentiate between two things: your module (normal code) and the hooked process (the Xposed code).
Remember that hooked code runs as the hooked process (that is, the app you're hooking — *not* your module), so you won't be able to write to your module's data directory.
I don't know if you can change that. Maybe you could create the database and use Context.MODE_WORLD_WRITABLE (from your module, when it firsts open), but I don't think you'll have any luck creating it from the hooked process directly.
GermainZ said:
Let's differentiate between two things: your module (normal code) and the hooked process (the Xposed code).
Remember that hooked code runs as the hooked process (that is, the app you're hooking — *not* your module), so you won't be able to write to your module's data directory.
I don't know if you can change that. Maybe you could create the database and use Context.MODE_WORLD_WRITABLE (from your module, when it firsts open), but I don't think you'll have any luck creating it from the hooked process directly.
Click to expand...
Click to collapse
So where is the best place to use AndroidAppHelper.currentApplication(); so it won't return null and i will be able to use it in my hooked method?
Hello gays, i read all post's . I've the same problem. I start develop a module for xposed for my thesis the goal of application is return fake data when some aplications want access features that they don't need. I all ready can save in sqlite database the restrictions that the user want to restrict, the package name of application and uid. Now i want to access to the database methods by the main class (with implements IXposedHookLoadPackage) and i allways getting nullPointerException when i try connect to database. Anyone can solve this problem?? I will attach my main class IdentitySpoofing and my DatabaseHelper Best Regards Joao Marques
I have created a screen layout and now I want to generate a java class that is linked to it.
I am familiar with how to do this in Visual Studio C++ with the 'Class Wizard' and I understand how my dialog resource is linked to the class wizard generated class via the IDD = IDD_DIALOG_MYDIALOG.
But I don't yet understand how to do this with android studio.
Can anyone enlighten me please.
I am not sure if you can do it by wizard in Android Studio.
Howewer, you can create both layout and Java class by using New -> Activity -> Blank Activity from context menu in your package. So I think that one option would be to use this wizard, and then copy your layout to created .xml file.
You can also manually create Java class extending Activity and link it by using setContentView(R.layout.your_layout) in onCreate() method.