Android :: How To Sign .apk File With System Certificate?
Apr 15, 2009
I have an application that I want to be able to use the userid: android:sharedUserId="android.uid.system", I need to sign the .apk file with the same certificate as the built in system applications, such as the 'Settings' application. I've located the keystore file in my build directory which is: cacerts.bks, and I have the password for this. What I seem to be missing in order to sign my .apk file is the alias fo the keystore. Does anyone know what the alias is? Or is there an easier way to do this that I'm missing.I know this not a standard thing to do, and is perhaps a hack, but I have a client requirement to meet.
View 2 Replies
May 21, 2010
How do I sign an APK with more than one certificate, so that I can do this when I publish to the Android Market...
View 1 Replies
View Related
Aug 27, 2013
Reason is i have an apk which works as an installer. When the user installs and opens it, it prompts the user to install another apk (drm free) which was inside the installer apk. However, after signing and zipaligning both with APK Signer tool and Private keys i get this error when installing: an existing package by the same name with a conflicting signature is already installed
basically, both the apk (installer) and apk (theme) have the same package name. When the apk (theme) is installed, it should overwrite the apk (installer).
I think both the installer apk and theme apk should have the same certificates in order to overwrite each other, but i don't know how.
View 5 Replies
View Related
Jan 25, 2010
Anyone else experiencing this problem or know of a solution? I have a Digicert signed https certificate that is throwing an SSLException (Not trusted server certificate). This doesn't make any sense as Digicert is a recognized certificate authority. I can connect to my https url without a problem via IE, Firefox, and Safari so they appear to have no issue with the certificate. Here's the code I'm using. Very simple stuff......................
View 3 Replies
View Related
Sep 3, 2010
I've downloaded and compile Android 2.1 version with signed-google_ion- ota-14721.zip image for my HTC phone. The compile completed successfully and so the system image flash. How can I sign my own Android application with the system signature?
Can someone describe the whole process for signing a user application with system signature as I am completely new with signing process.
View 2 Replies
View Related
Jul 21, 2010
I created an application which is currently on Android market. The key used to sign the application was made using jarsigner. How do I sign using the .key file originally generated?
View 1 Replies
View Related
Sep 12, 2010
Does the X use a FAT32 file system? Is there any way to change this? I'm asking because I have a 4+GB mkv file I want to put on it, but I'm getting a message telling me its too large for the file system. If no way to change, then can anyone suggest a way to make this file small enough to fit?
View 11 Replies
View Related
Nov 21, 2010
i had one that was very seemless and felt much like windows xp sort of. but i factory defaulted my device the other day and now it gone and oddly i don't remember the name of it.
View 3 Replies
View Related
Mar 2, 2009
Am I able to hook file system on Android?that means before a file is opened by other application, a registered function by the third application is invoked, and in the registered function, it can decide whether permit other application to open that file.
View 5 Replies
View Related
Mar 20, 2009
I need to save some persistent data (byte array) in my application.I decided to write these data into a file on the Android hardware.But I cannot create a file under /system/ or /data/.Can any body tell me under which directory can I create a file to save my data except SDCARD(Because We cannot suppose every Android has a SDCARD)?
View 8 Replies
View Related
Sep 1, 2010
I am wondering that how android is providing security against corruption of data in file. I also want to know about security model for Shared Preferences, Sqlite datbase etc. storage methods.
View 2 Replies
View Related
Jul 22, 2010
I am trying to read system logs in my code to generate something like an error report. Similar to adb logcat, but in a programming way.
View 1 Replies
View Related
Apr 30, 2009
I am developing a photoshop application for the G1 where you can apply different filters to your pictures stored in the pictures folder. So I use a gallery and a cursor to select the picture I want to manipulate, copy the picture to a bitmap so I can perform some filter operations and afterwards save the new bitmap as a new file to the phone. So I figured out that there are basically two options I have to save the image. One is to use the MediaStore.Images.Media.insertImage() method, which generally would work, but I don't want a thumbnail to be created. The second option, which I actually use, is to use an OutputStrem.
import android.provider.MediaStore.Images.Media; import android.content.ContentValues; import java.io.OutputStream;
// Save the name and description of an image in a ContentValues map. ContentValues values = new ContentValues(3);
values.put(Media.DISPLAY_NAME, "road_trip_1");
values.put(Media.DESCRIPTION, "Day 1, trip to Los Angeles");
values.put(Media.MIME_TYPE, "image/jpeg");
// Add a new record without the bitmap, but with the values just set.
// insert() returns the URI of the new record. Uri uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values);
// Now get a handle to the file for that record, and save the data into it.
// Here, sourceBitmap is a Bitmap object representing the file to save to the database. try {
OutputStream outStream = getContentResolver().openOutputStream (uri);
sourceBitmap.compress(Bitmap.CompressFormat.JPEG, 50, outStream);
outStream.close(); } catch (Exception e){
View 8 Replies
View Related
Apr 19, 2010
How can I copy files to the file system (place) in android? How can I access it?
View 5 Replies
View Related
Sep 6, 2010
I'm trying to re-partition an SDCard on Android, with root access. What I'm trying to do is resize the 5.9GB partition into 3GB, and then make an EXT partition with the remaining space. I can think of two ways to do this, but I'm a bit stumped in doing either of them: 1) Cross-compile GNU parted, and run it on Android to modify the filesystem in place. This would be my preferred method, but I've been trying to statically compile parted using scratchbox and haven't had much luck, and I haven't been able to dynamically compile for Android in scratchbox either. 2) Directly modify the 512 byte MBR using some utility on my computer, and then dd the file on Android. I have a tool to view the MBR (mbrwiz), but I don't know how to edit it. Does anybody have any suggestions for either, or possibly a third route?
View 2 Replies
View Related
Dec 4, 2013
how to know which type of file system does my android device using ?
View 2 Replies
View Related
Sep 25, 2013
My objective is to create a text file in an android file system.
Using java language, I am creating an app. It has a screen with a table of 3columns. Each time a user enters the table row and click on Submit button, the row entry should be created as a separate comma-separated file on an android device. So each time when the table gets updated with new entry and clicks a submit button, a new file is getting created on the device file system. So I am looking for the file connectivity to the internal device memory where I could open the files and access it.
I have done the same in Nokia mobiles using J2ME. But for Android, I am not able to find the device file path.
View 3 Replies
View Related
Apr 17, 2012
I had format my phone's system through cwm.
now i want to restore it but it just stuck when i power on my phone.
View 1 Replies
View Related
Jun 13, 2009
First I found the problem, then I found this truly ancient post:
http://groups.google.com/group/android-developers/browse_thread/threa...
...with no responses. To browse the file system from the top down I suppose I can simply hardcode the root as a single slash, but I would rather "do it right". Can anyone explain why listRoots returns a root named "/XX" where X is a junk char? It's problematic because that file cannot subsequently be queried for further file system exploration.
View 3 Replies
View Related
Aug 19, 2009
I am trying to copy an image to the emulator sd card by: $ adb push ~/Desktop/bullet_ball_ glass_red.png /sdcard /bullet_ball_glass_red.png But I get an error saying: failed to copy '/Users/n179911/Desktop /bullet_ ball_glass_red.png' to '/sdcard/bullet_ball_glass_ red.png': Read-only file system So I tried to go to adb shell to manual change the /sdcard to non read-only, but it still wont let me. $ adb shell # su # chmod 777 /sdcard Unable to chmod /sdcard: Read-only file system #.
View 8 Replies
View Related
Oct 11, 2010
I had built the system.img file in linux ubuntu OS for Android. I copied the system.img file in the widows SDK at /out/packagees/ target/generic directory. But when i am trying to start the emulator its not starting. And the logcat messages are not shown.
Is it possible to build the system.img in ubuntu and use it in windows.
View 3 Replies
View Related
Sep 23, 2009
In android am using the SDK 1.5 am using the Database concepts to create the Sqlite Db file but i don't know where the file is stored. any one help me to find that Db file in my system please.
View 6 Replies
View Related
Apr 4, 2012
Are there any temp, volatile directories in the Android file system that get wiped once the device is off? In Linux we have /tmp, but this doesn't seem to exist in Android.
View 3 Replies
View Related
Jun 11, 2012
2 days ago I tried to update my aunts sensation xl and told her that it is better to update its ROM from 2.3.5 to 4.0.3. So i created a google account in phone and added it in order to sync contacts....and after 2 hours, I thought that it has been synced...After upgrading device to ICS, and adding the previous account that i made before upgrading, I was waiting for contacts to restore, but nothing happend.. I opened the gmail account on PC and saw that there was no contacts. So the only way for me to restore the contacts is to find a way to restore them from Phone device. So,is there any software, either on phone or PC, to restore contacts from phone? or is there a way to have access to root folders and files of phone on PC to use a recovery program to restore "Contacts.db" file that was erased while flashing ICS?
View 5 Replies
View Related
Jun 19, 2011
i edited /system/etc/hosts file but it looks that my edit is ignored by Android.
In "hosts" file i added line with text "1.1.1.1 customdomain" And then i used "ping customdomain" command in Terminal Emulator but i got error "unknown host am".
View 9 Replies
View Related
May 14, 2012
why android not support NTFS file system. I think NTFS more speeder than FAT and FAT 32 and other file systems. So is it technical or patent issue? I think NTFS file system developed by Microsoft
View 7 Replies
View Related
Sep 28, 2013
I have a HUAWEI Y300-0100, and it comes with a funny feature: every time it can't connect to WIFI a popup message appears saying that if you switch to data plan charges may apply.
I am constantly switching between WIFI/no-WIFI zones so that message really bothered me, and I searched a way to disable it.
Presumably, the only way to do that is by modifying a system file called "build.prop". I already had my phone rooted so doing so wasn't very hard.I used Jota+ to change a setting from "true" to "false" (ro.config.hw******), and saved the file in the root of the SD card. Then, with ES File Explorer, I renamed the "build.prop" in /system to "build.prop.bak" and copied there the "build.prop" I previously saved in the SD root.All seemed to be fine, except that after rebooting my phone it could not get past the HUAWEI logo.
Android recovery mode seems to work, but I don't know how to use a lot of its options nor I want to do a Factory Reset if there's a better alternative.Is there a way to modify system files before booting Android? I really would like to try to delete the "build.prop" file and rename the "build.prop.bak" back to "build.prop".
View 6 Replies
View Related
Dec 10, 2013
So after a failed attempt to upgrade from CyanogenMod 10.1.3 to 10.2, I was unable to access /data or /sdcard because both systems were encrypted. I ended up having to factory reset my phone because it refused to co-operate or let me access my files. However, before I did that, I was able to run
Code:
adb shell "dd if=/dev/block/mmcblk0p2" > data.img
and
Code:
adb shell "dd if=/dev/block/mmcblk0p3" > sdcard.img
Which appears to have copied the raw partition images from the phone (at least, they're the right sizes).
According to my reading, Android (and, I'm inferring, CyanogenMod) encrypts filesystems using dm-crypt, with a AES-CBC ESSIV:SHA256 cipher, with the key being derived from the password using PBKDF2. Knowing the precious little I do about encrypted file systems, my guess is that if I configure the image in cryptsetup to create a drive mapping, I can mount the mapped drive and recover the data from the images.
According to /fstab.herring on my ahem, fresh, install of Android, the /data partition is in ext4 format whereas the /sdcard partition is vFAT. So, once I've gotten through the encryption on the partition images, they should mount normally, right?
I know that dm-crypt accepts plain, LUKS, LoopAES and TrueCrypt device formats. I'm inferring from the PBKDF2 extension that Android goes the LUKS route for encrypting. Is this conclusion correct?
Whether it's possible to decrypt a dumped android image? I'm really hoping that the cypher information is stored on the file system and not on some key file that I nuked in the factory reset. If it can, in theory, be decrypted, am I using the right tools to approach the matter? If so, I'll continue fiddling with cryptsetup and mount, but no sense in wasting time if it's an impossible task.
View 3 Replies
View Related
Sep 20, 2010
1) I am using Eclipse IDE and Android SDK 2.1 for my application. My application reads some data files from the File System, so using DDMS i push all the files in "/data/data/com.mypackage/" folder and run my application on emulator. I am able to see my desired output properly on the emulator.
2) Now i have Android device and i don't know how to push the files in the Internal memory of the phone. I have installed driver CD. But it only shows me the SD card directory.
3) Actually what i want is that the moment my application is installed and run it should read the data files from the file system. So there should be no added efforts to push the files in the file system.
4)Means can i pack my data files with my .apk file and when the apk is getting installed can the data files be placed directly in the internal memory(file system) i.e. "/data/data/com.mypackage/" folder. Is this possible ?
View 3 Replies
View Related
Jul 30, 2010
Hi, I want to create an application in android which at runtime calls an xml file from some path of the system.And make that contents of the xml file run in the same application.Could i get a feasible code because at runtime the bytecode of the activity is already created.how do i compile and run the activity and runtime.Also i was facing problem reading the xml file.Need some suggestions asap.. Thanx in advance!!
View 3 Replies
View Related