[Magisk MODULE] Patch SecureFolder - Disable Signature Verification - Flag Secure - Biometrics after reboot - Android Software/Hacking General [Developers Only]
SAMSUNG GENERAL PATCHER V2.2
SUPPORT: TELEGRAM CHANNEL - TELEGRAM GROUP - SUPPORT ME
ABOUT THIS:Magisk module to automatically patch the services.jar of Samsung devices, based on Dynamic Installer
The compatibility is relative but Android 10+ is recommended
ALL features:
Disable Signature Verification
Disable Flag Secure
Try to patch SecureFolder (Android 10 method and Android 11)
Enable Biometrics (Fingerprint/FaceUnlock) after reboot
General APK recompiling with stock Signature to prevent rejects from system
HOW DO I USE IT?
Code:
1. Simply install the module on 64bits devices (Not tested on 32bits) by Magisk app
2. The process requires the recompilation of a .JAR so be patient!
CREDITS TO:
Me @BlassGO (Developer of Samsung Patcher and Dynamic Installer)
General Samsung Patcher 2.2
WARNING: In case of any ERROR, delete the module: /data/adb/modules/samsung-patcher
Download link not working, it says the file got removed
SkylinesHD said:
Download link not working, it says the file got removed
Click to expand...
Click to collapse
Thanks for the report, the download is now available
BlassGO said:
Thanks for the report, the download is now available
Click to expand...
Click to collapse
Now it says the file is infected and that's why I'm not permitted to download it
SkylinesHD said:
Now it says the file is infected and that's why I'm not permitted to download it
Click to expand...
Click to collapse
Okey I updated it in AFH, Ill stop using gdrive
where is the link?
dolf123 said:
where is the link?
Click to expand...
Click to collapse
Open General Samsung Patcher from the end
When trying to install module I got this error..
Please tell me how to fix it..
ahmed.sbahii said:
When trying to install module I got this error..
Please tell me how to fix it..
Click to expand...
Click to collapse
Plz send a magisk log
Not hav
BlassGO said:
Plz send a magisk log
Click to expand...
Click to collapse
Not have magisk
Should I use magisk only..?
ahmed.sbahii said:
Not hav
Not have magisk
Should I use magisk only..?
Click to expand...
Click to collapse
Yeah, its a magisk module
BlassGO said:
Yeah, its a magisk module
Click to expand...
Click to collapse
My device Doesn't accept Magisk...!
I don' know why..!
After I install magisk it doesn't give any permission root...!
Can you give me another way to install this model or do it myself manually...
Without Magisk or TWRP..?
If you have it please tell me because I need run secure folder again..
Thanks in advance..
ahmed.sbahii said:
My device Doesn't accept Magisk...!
I don' know why..!
After I install magisk it doesn't give any permission root...!
Can you give me another way to install this model or do it myself manually...
Without Magisk or TWRP..?
If you have it please tell me because I need run secure folder again..
Thanks in advance..
Click to expand...
Click to collapse
If u have root access (without magisk) and based on ur screenshots, it seemed that almost everything worked, in that case edit the zip META-INF/com/google/android/magisk/customize.sh and change the mod="$MODPATH/system/framework/services.jar" to mod="/sdcard/services.jar", then replace the services.jar that will be generated in your internal memory in /system/framework
Additionally replace the libs from the zip in /system/lib and /system/lib64
NOTE: The SecureFolder patch is based on Android 10 method, maybe it not work in older Android versions
ahmed.sbahii said:
My device Doesn't accept Magisk...!
I don' know why..!
After I install magisk it doesn't give any permission root...!
Can you give me another way to install this model or do it myself manually...
Without Magisk or TWRP..?
If you have it please tell me because I need run secure folder again..
Thanks in advance..
Click to expand...
Click to collapse
If u have root access (without magisk) and based on ur screenshots, it seemed that almost everything worked, in that case edit the zip META-INF/com/google/android/magisk/customize.sh and change the mod="$MODPATH/system/framework/services.jar" to mod="/sdcard/services.jar", then replace the services.jar that will be generated in your internal memory in /system/framework
NOTE: The SecureFolder patch is based on Android 10 method, maybe it not work in
BlassGO said:
If u have root access (without magisk) and based on ur screenshots, it seemed that almost everything worked, in that case edit the zip META-INF/com/google/android/magisk/customize.sh and change the mod="$MODPATH/system/framework/services.jar" to mod="/sdcard/services.jar", then replace the services.jar that will be generated in your internal memory in /system/framework
NOTE: The SecureFolder patch is based on Android 10 method, maybe it not work in
Click to expand...
Click to collapse
Now after many tryies to install magisk
Succesfully installed and try with magisk but same error nothing changed..
My sevice is on Android 10
What is the pronlem with my device..?
My device is N970F..?
What should I do now..?
BlassGO said:
If u have root access (without magisk) and based on ur screenshots, it seemed that almost everything worked, in that case edit the zip META-INF/com/google/android/magisk/customize.sh and change the mod="$MODPATH/system/framework/services.jar" to mod="/sdcard/services.jar", then replace the services.jar that will be generated in your internal memory in /system/framework
Additionally replace the libs from the zip in /system/lib and /system/lib64
NOTE: The SecureFolder patch is based on Android 10 method, maybe it not work in older Android versions
Click to expand...
Click to collapse
And this is the log from Magisk
ahmed.sbahii said:
And this is the log from Magisk
Click to expand...
Click to collapse
Huh, press the top save button for a full log
BlassGO said:
Huh, press the top save button for a full log
Click to expand...
Click to collapse
- Copying zip to temp directory
- Installing General_Samsung_Patcher_BlassGO.zip
ls: /system/sbin: No such file or directory
ls: /product/bin: No such file or directory
ls: /system/xbin: No such file or directory
ls: /odm/bin: No such file or directory
ls: /vendor/xbin: No such file or directory
- Device is system-as-root
chown: 0: No such file or directory
chown: 0: No such file or directory
----------------------------------------
>>> Powered by Magisk 23000
----------------------------------------
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
--------------------------------------------------
General Samsung Patcher
--------------------------------------------------
by @BlassGO | Version: Beta-1.0
--------------------------------------------------
-- Disable Signature Verification
-- Disable Flag Secure
-- Try to patch SecureFolder (Android 10+)
--------------------------------------------------
-- Making magisk space
-- Decompiling services.jar...
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
-- Patching services.jar for SecureFolder...
Edited: /dev/tmp/services/smali_classes2/com/android/server/locksettings/SyntheticPasswordManager.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/TimaHelper.smali
Edited: /dev/tmp/services/smali/com/android/server/KnoxFileHandler.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PersonaServiceHelper.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PersonaServiceHelper.smali
-- Disabling Flag Secure in services.jar...
Edited: /dev/tmp/services/smali_classes2/com/android/server/wm/ScreenshotController.smali
-- Disabling Signature Verification in services.jar...
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerServiceUtils.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerServiceUtils.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerServiceUtils.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerService.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerService$InstallParams.smali
-- Recompiling services.jar...
-- Please wait...( Long Process )
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
W: Could not find resources
CANNOT LINK EXECUTABLE "zip": library "libandroid-support.so" not found
mv: can't create '/data/adb/modules_update/samsung-patcher/system/framework/services.jar': Permission denied
-- Some ERROR occurred during the recompilation !
! Installation failed
A full log..!!
ahmed.sbahii said:
- Copying zip to temp directory
- Installing General_Samsung_Patcher_BlassGO.zip
ls: /system/sbin: No such file or directory
ls: /product/bin: No such file or directory
ls: /system/xbin: No such file or directory
ls: /odm/bin: No such file or directory
ls: /vendor/xbin: No such file or directory
- Device is system-as-root
chown: 0: No such file or directory
chown: 0: No such file or directory
----------------------------------------
>>> Powered by Magisk 23000
----------------------------------------
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
--------------------------------------------------
General Samsung Patcher
--------------------------------------------------
by @BlassGO | Version: Beta-1.0
--------------------------------------------------
-- Disable Signature Verification
-- Disable Flag Secure
-- Try to patch SecureFolder (Android 10+)
--------------------------------------------------
-- Making magisk space
-- Decompiling services.jar...
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
-- Patching services.jar for SecureFolder...
Edited: /dev/tmp/services/smali_classes2/com/android/server/locksettings/SyntheticPasswordManager.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/TimaHelper.smali
Edited: /dev/tmp/services/smali/com/android/server/KnoxFileHandler.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PersonaServiceHelper.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PersonaServiceHelper.smali
-- Disabling Flag Secure in services.jar...
Edited: /dev/tmp/services/smali_classes2/com/android/server/wm/ScreenshotController.smali
-- Disabling Signature Verification in services.jar...
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerServiceUtils.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerServiceUtils.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerServiceUtils.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerService.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerService$InstallParams.smali
-- Recompiling services.jar...
-- Please wait...( Long Process )
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
W: Could not find resources
CANNOT LINK EXECUTABLE "zip": library "libandroid-support.so" not found
mv: can't create '/data/adb/modules_update/samsung-patcher/system/framework/services.jar': Permission denied
-- Some ERROR occurred during the recompilation !
! Installation failed
A full log..!!
Click to expand...
Click to collapse
Okey thx
It seems a problem with the Dynamic Installer base, but currently I already developed a v2.0 based on a new version of Dynamic Installer, contact me on pv
Ok I contact with you
Related
32b dream->sapphire script (updated 20th august, new feature!)
So, as the title says a simple bash script to convert a dream rom to a sapphire rom. To make this work you need unpack / repack boot img utilities from here: http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images testsign.jar from here: http://forum.xda-developers.com/showpost.php?p=4008431&postcount=15 mkbootimg from here: http://forum.xda-developers.com/showpost.php?p=3387504&postcount=26 since I'm a nice guy I've included these in the attached zip file. extract the attached zip file into a folder (warning: make sure there's no spaces in the folder name!!) then run: Code: ./convert.sh your_dream_rom.zip this will: extract the boot.img from the zip unpack the boot image rename init.trout.rc to init.sapphire.rc repack the boot image put the boot image back into a copy of the dream rom zip NEW!! in v3: add anything in the 'addin' folder into the zip (see below) resign the new zip you'll be left with your_dream_rom-sapphire.zip which should (hopefully) work on the sapphire. v3: new addin folder. Anything in this folder will be added to the resulting zip, overwriting if needed. So if you want to replace (for example) /system/etc/AudioPara4.csv just put the file in /addin/system/etc and it will automagically be merged in.
Deicist said: So, as the title says a simple bash script to convert a dream rom to a sapphire rom. To make this work you need unpack / repack boot img utilities from here: http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images testsign.jar from here: http://forum.xda-developers.com/showpost.php?p=4008431&postcount=15 since I'm a nice guy I've included these in the attached zip file. You'll also need to compile the mkbootimg executable that (I think!) comes with the android source. extract the attached zip file inot a folder then run: Code: ./convert.sh your_dream_rom.zip this will: extract the boot.img from the zip unpack the boot image rename init.trout.rc to init.sapphire.rc repack the boot image put the boot image back into a copy of the dream rom zip resign the new zip you'll be left with your_dream_rom-sapphire.zip which should (hopefully) work on the sapphire. attached is a zip file containing everything you need except mkbootimg, since that needs to be compiled for your system. Please note, I don't have a compiled copy of mkbootimg for my system, so I haven't been able to try the full process... but extracting and repacking the zip works, signing seems to work... and it's a pretty simple script so I can't see why it wouldn't work. Enjoy! Click to expand... Click to collapse Thanks! Do I need a boot.img and wlan.ko for pvt32A if I want it to work?
it won't work for 32a, but I'm sure you can mod the script to add in a new boot.img and radio thingy. updated initial post with new attachment: added mkbootimg to zip file changed script slightly.
in case anyone was wondering, I tried this script on Drizzy's "superlight hero" rom from the dream forum and it worked perfectly.
[email protected]:~$ /home/ubuntu/Desktop/a/convert.sh Personal.zip unzip: cannot find or open ./Personal.zip, ./Personal.zip.zip or ./Personal.zip.ZIP. /home/ubuntu/Desktop/a/convert.sh: 3: ./unpack-bootimg.pl: not found rm: Entfernen von „boot.img“ nicht möglich: No such file or directory mv: Aufruf von stat für „./boot.img-ramdisk/init.trout.rc“ nicht möglich: No such file or directory /home/ubuntu/Desktop/a/convert.sh: 6: ./repack-bootimg.pl: not found cp: Aufruf von stat für „./Personal.zip“ nicht möglich: No such file or directory zip warning: name not matched: boot.img zip error: Nothing to do! (update.zip) /home/ubuntu/Desktop/a/convert.sh: 9: java: not found rm: Entfernen von „./boot.img-ramdisk“ nicht möglich: No such file or directory rm: Entfernen von „boot.img-kernel.gz“ nicht möglich: No such file or directory rm: Entfernen von „boot.img-ramdisk.cpio.gz“ nicht möglich: No such file or directory rm: Entfernen von „update.zip“ nicht möglich: No such file or directory Click to expand... Click to collapse What do i wrong ... ?
No idea, according to the error message it says it can't find 'Personal.zip'... is that file present in the same directory as 'convert.sh' ?
yes it is ... can anyone convert this boot.img ... so that i can use on 32b?
you need to actually change directory to the directory containing the utility to run it. try: cd /home/ubuntu/Desktop/a/ ./convert.sh Personal.zip
is ist possible that it doesn't work because i'm using the live cd now? now it says Archive: ./Personal.zip inflating: ./boot.img kernel written to ./boot.img-kernel.gz ramdisk written to ./boot.img-ramdisk.cpio.gz 472 blocks extracted ramdisk contents to directory ./boot.img-ramdisk/ 472 blocks sh: mkbootimg: not found repacked boot image written at ./boot.img-ramdisk-repack.img zip error: Nothing to do! (update.zip) Click to expand... Click to collapse but mkbootimg is in this directory
This is what I end up getting. I ended up using a precompiled binary of mkbootimg for OSX since it didn't work on my Linux box. ./convert.sh NewVision_2.8.zip Archive: ./NewVision_2.8.zip inflating: ./boot.img kernel written to ./boot.img-kernel.gz ramdisk written to ./boot.img-ramdisk.cpio.gz extracted ramdisk contents to directory ./boot.img-ramdisk/ usage: cpio -o [-aABcLvVzZ] [-C bytes] [-H format] [-O archive] [-F archive] < name-list [> archive] cpio -i [-bBcdfmnrsStuvVzZ6] [-C bytes] [-E file] [-H format] [-I archive] [-F archive] [pattern...] [< archive] cpio -p [-adlLmuvV] destination-directory < name-list repacked boot image written at ./boot.img-ramdisk-repack.img updating: boot.img (deflated 1%) Exception in thread "main" java.lang.UnsupportedClassVersionError: testsign (Unsupported major.minor version 50.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
Hello, MarcoNieddu said: extracted ramdisk contents to directory ./boot.img-ramdisk/ 472 blocks sh: mkbootimg: not found Click to expand... Click to collapse You have to modify the script repack-bootimg.pl at line 19 : replace : system ("mkbootimg ... by : system ("./mkbootimg ... Note the ./ before mkbootimg Scargoll.
Got everything working. 1. Add ./ to the repack script before mkbootimg 2. make sure you have a 32bit OS, as the binary provided was compiled for it. I made an Intrepid machine on my VM server. 3. Use the latest version of Java. Even Karmic Koala Ubuntu doesn't have it. The class file in the jar was compiled with a very recent version of Java, so you'll error out since the jre version isn't equal to or above whats needed. You can simply do "export JAVAHOME=pathtojava" if you don't want to keep that version permanently. 4. Have fun!
Bugfixes: removes boot.img when script is done added ./ before mkbootimg (sorry!) the provided mkbootimg *should* work on a 64bit machine, it does on my 64 bit arch linux box...as with all things linux though, YMMV.
I ve tried to convert a dream rom but it didn't work, does this method can be applied from a windows command shell ? EDIT: can I take a dream rom, flash it, and push a boot.img from a hero 32B rom ? EDIT2: Ok now that I have read the name of the topic I understand it wont work in windows. So here's my new question... Is there a way to adapt this script (or to create something similar) so it works with windows ?
updated with 'addin' feature
ElChouch said: Is there a way to adapt this script (or to create something similar) so it works with windows ? Click to expand... Click to collapse A windows version would be great!
Nice work Deicist. Thanks for sharing.
some facts: - i'm running Windows 7 RC (64-bit) - i installed Cygwin and executed it as administrator - i browse out to the correct folder where the rom zip file is located i get the following errors. any suggestions?: $ ./convert.sh modaco_hero.zip unzipping... ./convert.sh: line 3: unzip: command not found unpacking boot image ./convert.sh: ./unpack-bootimg.pl: /usr/bin/perl: bad interpreter: Permission de nied moving trout to sapphire mv: cannot stat `./boot.img-ramdisk/init.trout.rc': No such file or directory repacking boot image ./convert.sh: ./repack-bootimg.pl: /usr/bin/perl: bad interpreter: Permission de nied re-zipping ./convert.sh: line 12: zip: command not found rm: cannot remove `boot.img': No such file or directory Addin files found.... ./convert.sh: line 18: zip: command not found Re-signing zip (this may take a while) tidying up rm: cannot remove `./boot.img-ramdisk': No such file or directory rm: cannot remove `boot.img-kernel.gz': No such file or directory rm: cannot remove `boot.img-ramdisk.cpio.gz': No such file or directory all done
Make it work on Fedora Was having problems with this script working at the java part on a FC10 box. Was able to get it to work by installing java-1.6.0-openjdk: Code: $ yum install java-1.6.0-openjdk just posting that here in case anyone who needs it stumbles by. Thanks for your great script Deicist
I'm getting this error. What am I doing wrong? Exception in thread "main" java.lang.NoClassDefFoundError: testsign at java.lang.Class.initializeClass(libgcj.so.90) Caused by: java.lang.ClassNotFoundException: sun.security.x509.AlgorithmId not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:testsign.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(libgcj.so.90) at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.90) at java.lang.ClassLoader.loadClass(libgcj.so.90) at java.lang.ClassLoader.loadClass(libgcj.so.90) at java.lang.Class.initializeClass(libgcj.so.90)
[Q] Aptoide and aapt
Hello, I try to install an aptoide server on archlinux. When I execute the generate.ph, i get the following error: "sh: ./aapt: No such file or directory". The aapt file can be executed and is in the same directory as the generate.ph script. I follow the instructions of the aptoide's website and download the aapt file from there. How can I solve this problem ?
try to copy this aapt file in the same directory of .generate.ph
[Fix] Mobile Hotspot Hack Reposted for OTA 4.24.651.1
I didn't write this hack, but it appears to work with the new stock GB update. I did edit the script and zip archive so it wouldn't need any external exe's or libs to apply. Just copy the newest framework.jar file to the script directory and run the HackHotspot.bat file. Then simply run these ADB commands from a dos window. ------ adb shell mount /system exit adb push framework.jar /system/framework.jar ------- clear Dalvik and fix permissions if desired Reboot Phone Done!
Much appreciated but way over my head (I've never done anything with ADB). Any chance of getting this, and the USB debugging notification fix, in a flashable form?
The debug fix is the one that doesn't display the statusbar icon when connected? I'll see what I can do for ya
townsenk said: Just copy the newest framework.jar file to the script directory and run the HackHotspot.bat file. Click to expand... Click to collapse Awesome script. Thanks.
will this work for the revolutionary?
CAn i do this on a MAC?.... Can n e one verify that this works?
im getting errors in the script: Code: Extracting framework.jar 7-Zip 4.65 Copyright (c) 1999-2009 Igor Pavlov 2009-02-03 Processing archive: framework.jar Extracting META-INF Extracting META-INF\MANIFEST.MF Extracting preloaded-classes Everything is Ok Folders: 1 Files: 2 Size: 65651 Compressed: 12413 Unpacking classes.dex Can't find the file classes.dex Putting HotspotHack into place The system cannot find the path specified. The system cannot find the path specified. 0 file(s) copied. Repacking classes.dex UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.RuntimeException: Cannot find file or directory "out/" at org.jf.smali.main.main(main.java:173) Could Not Find C:\AddHotspotHack\classes.dex The system cannot find the file specified. Updating framework.jar 1 file(s) copied. classes.dex : no such file or directory Cleaning up... Could Not Find C:\AddHotspotHack\classes.dex The system cannot find the file specified. Done if no errors listed above! C:\AddHotspotHack> and shouldnt it be adb push framework.jar /system/framework/framework.jar
[Q] cannot supercid and lost mmcblk0p4 file
i did super cid using supercid.sh file in mac to my HTC one XL/at&t and i got this error please help me.. mkdir: tmp: File exists ./supercid.sh: line 43: ./adb: cannot execute binary file ./supercid.sh: line 44: ./adb: cannot execute binary file Copying your misc partition to your sdcard partition... ./supercid.sh: line 47: ./adb: cannot execute binary file Making a backup copy of the file, just in case... ./supercid.sh: line 50: ./adb: cannot execute binary file Copying the file to your computer so we can work with it... ./supercid.sh: line 53: ./adb: cannot execute binary file Making a backup copy here too... cp: tmp/mmcblk0p4: No such file or directory Converting the image file to text... xxd: tmp/mmcblk0p4: No such file or directory Checking to see what your CID is now... grep: tmp/mmcblk0p4.txt: No such file or directory grep: tmp/mmcblk0p4.txt: No such file or directory grep: tmp/mmcblk0p4.txt: No such file or directory We don't recognize your current CID.
You need to provide more information. What are your bootloader details? Are you perm rooted? What tutorial were you following? What commands came before the text you have posted here? What do you mean by you've lost the file? PS. You've posted this in the General Section, I'll ask for it to be moved to the Q&A Section for you. Sent from my Evita
Can't install a modified app using ADB "A problem occured during package analyze"
Can't install a modified app using ADB "A problem occured during package analyze" Hello, I have modify an app (actually a simple .txt file) and I package it again. Then I move the base.apk in the original folder in /data/app/app_folder and when I hit base.apk, an error message appears : "A problem occured during package analyze" Have you got any idea where I am wrong ? Thanks
probably corrupted signature - Did you re-sign it?
DSA said: probably corrupted signature - Did you re-sign it? Click to expand... Click to collapse In the installation folder there was : "lib" folder, "oat" foolder and the base.apk I only modified the base.apk using an extractor like 7-zip and pack it again after in .apk How do I sign it again ? Error log: "C:\Program Files (x86)\Minimal ADB and Fastboot>adb install D:\app\com.toyquest.Cayla.fr-1\base.apk Failed to install D:\app\com.toyquest.Cayla.fr-1\base.apk: Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl1492354494.tmp/base.apk: AndroidManifest.xml]" I sign it using : keytool -genkey -v -keystore my-release-key.keystore -alias CAYLA -keyalg RSA -keysize 2048 -validity 10000 sudo jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore base.apk CAYLA sudo jarsigner -verify -verbose -certs base.apk Right method ?
Session 'app': Installation did not succeed. The application could not be installed: INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION Retry
i cant install , if i do push abb can i ?
The error reported has NOTHING to do with APK's signature: Error log: "C:\Program Files (x86)\Minimal ADB and Fastboot>adb install D:\app\com.toyquest.Cayla.fr-1\base.apk Failed to install D:\app\com.toyquest.Cayla.fr-1\base.apk: Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl1492354494.tmp/base.apk: AndroidManifest.xml]" Click to expand... Click to collapse APK's AndroidManifest.xml is the culprit! Wondering why you don't carefully read error messages?
it's just that you removed or modify some line in xml file which is causing problem. just search for it alternatively if you want to change image file you can swamp it with another file with same name. hope it helped