Fingerprint error, cant set pin code - Sprint Samsung Galaxy S6 Edge

Hello, My fingerprint sensor is not working with any official or custom firmware other than renegade v1.1. Even renegade v2.0 does not work, does anyone have any hints at what might be happening? Thanks.

Solution
After a long time trying to find a solution to the fingerprint / pin code error I found: Just create a new user and switch to it and everything will be solved.
Edit
Secondary user have limitation (privileges) so is not a solution but somehow the pin password fingerprint works like a charm on Secondary user, the problem persists...

I think I found the cause of the error in rom renegade 1.1 the XML file of the primary user found in the path /data/system/user/0.xml, looks like this:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<user id="0" serialNumber="0" flags="19" created="0" lastLoggedIn="1497859689448">
<name>Zeki Melo</name>
<restrictions />
</user>
In stock firmware (which does not work pin nor password is this way:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<user id="0" serialNumber="0" flags="19" created="0" lastLoggedIn="1497859689448">
<name>Zeki Melo</name>
<restrictions />
<device_restriction_polices /> (something like that)
</user>
I think there has to be with the security policy of Google / Samsung, does anyone know if you have how to disable this security policy in Android or take off this code ( <device_restriction_polices />) from the primary user?

Related

[GUIDE] Enabling Apps for Pen Window without ROOT

Hello Friends,
Just want to share another GUIDE/MOD this time for NON-ROOT users - ENABLING Apps for PEN Window without Root.
Without root, the only way to add more apps for Pen Window is modifying the app yourself or getting developers to add pen window support to their apps. But it involves a bit of knowledge in decompiling, editing, recompiling and resigning apps with apktool, jarsigner or some similar tool like Apk Manager, Apk Multitool and a lot others. I won't go into a tutorial about decompilation. I was a noob once and I did my best to search and learn about this stuff so if you are interested then a few google or xda search would give you tons of links on how to decompile/recompile apk files.
TOOLS:
1. Knowledge of modding apk files
2. ApkManager or other similar tools
3. Notepad++ or something similar
GUIDE:
1. Decompile apk file using ApkManager or your tool of choice.
2. Open the AndroidManifest.xml file of the decompiled apk file using Notepad++ or your editor of choice. Below is a sample AndroidManifest.xml file.
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mobi.xperiacle.PenWindowTest"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="mobi.xperiacle.PenWindowTest.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
3. Look for the acivity which has "<category android:name="android.intent.category.LAUNCHER" />"
and add "<category android:name="com.samsung.android.intent.category.PENWINDOW_LAUNCHER" />" below it.
Below is the same AndroidManifest.xml above with the change highlighted in RED.
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mobi.xperiacle.PenWindowTest"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="mobi.xperiacle.PenWindowTest.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
[COLOR="Red"]<category android:name="com.samsung.android.intent.category.PENWINDOW_LAUNCHER" />[/COLOR]
</intent-filter>
</activity>
</application>
</manifest>
4. Look for "</application>" which is the closing tag of the <application...> node. Then add
"<meta-data android:name="com.samsung.android.sdk.multiwindow.penwindow.enable" android:value="true" />" above it. Below is the same AndroidManifest.xml file above with the all changes in RED.
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mobi.xperiacle.PenWindowTest"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="mobi.xperiacle.PenWindowTest.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
[COLOR="Red"]<category android:name="com.samsung.android.intent.category.PENWINDOW_LAUNCHER" />[/COLOR]
</intent-filter>
</activity>
[COLOR="Red"]<meta-data android:name="com.samsung.android.sdk.multiwindow.penwindow.enable" android:value="true" />[/COLOR]
</application>
</manifest>
5. Recompile and Resign apk file and push to your phone. If you are using ApkManager that is all done in one go with option 14 while phone is connected.
6. Have FUN! A COFFEE would be Nice. he he
THANKS to @soloilmeglio for testing and making sure it works before I write and share this guide.
Great news for all non-rooted gn3 eh eh.... great work as always
Inviato dal mio SM-N9005 utilizzando Tapatalk
So is it possible for you to do an app that automaticly does the magic?
Like some drag and drop .apk to make it work on penwindow (and why not in multiwindow too?)
Thanks, it works
I got it work only in one app (tried for ~5 apps)
Dunno if the problem is using APK Multi-Tool instead of ApkManager? And I believe problem is in .apk or tool.. Not in your guide
And why I can't find those lines already in app that has multiwindow, pen window or both already? How those are made then?
But thanks anyway very useful guide
ps. Didn't try to only add pen window, but multiwindow too at same time
Sent from my SM-N9005 using XDA Premium HD app
Oh man this is such great news..... if I knew how to decompile and recompile apks.
I've downloaded the tool but it's way above my knowledge.
Will wait to see if some-one can design an app to do it automatically as I'm NOT rooting my N3....
Amdathlonuk said:
Oh man this is such great news..... if I knew how to decompile and recompile apks.
I've downloaded the tool but it's way above my knowledge.
Will wait to see if some-one can design an app to do it automatically as I'm NOT rooting my N3....
Click to expand...
Click to collapse
It's not that hard really, it took a while for me but even I managed to make it work
If you got Java JDK and ADB installed (Google how to install if not)
Google APK Multi-Tool, you'll find a link to some topic on XDA where is download link (and instructions how to use it)
When you got all ready and multi tool running, type 24 and enter, choose your apk file (if you have that apk on computer and moved to Multi-Tool apk edit folder) and enter again. Then type 9 and enter to decompile, go to projects folder and edit AndroidManifest.xml. Then delete that app from your phone if already installed, connect your phone to pc using USB cable and then type 15 in Multi-Tool and hit enter. Now it should compile, sign and install that app to your phone, if everything went right.
Sorry for messy message but I'm at work. Ask if somethings not clear to you
Sent from my SM-N9005 using XDA Premium HD app
Add the red string under penwindow tweak and you unlock Multiwindows too
<category android:name="com.samsung.android.intent.category.PENWINDOW_LAUNCHER" />
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
Click to expand...
Click to collapse
<meta-data android:name="com.samsung.android.sdk.multiwindow.penwindow.enable" android:value="true" />
<uses-library required="false" name="com.sec.android.app.multiwindow" />
<meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:value="632.0dip" />
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H" android:value="598.0dip" />
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_W" android:value="632.0dip" />
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_H" android:value="598.0dip" />
Click to expand...
Click to collapse
---------- Post added at 01:43 AM ---------- Previous post was at 01:42 AM ----------
Add the red string under penwindow tweak and you unlock Multiwindows too
<category android:name="com.samsung.android.intent.category.PENWINDOW_LAUNCHER" />
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
Click to expand...
Click to collapse
<meta-data android:name="com.samsung.android.sdk.multiwindow.penwindow.enable" android:value="true" />
<uses-library required="false" name="com.sec.android.app.multiwindow" />
<meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:value="632.0dip" />
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H" android:value="598.0dip" />
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_W" android:value="632.0dip" />
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_H" android:value="598.0dip" />
Click to expand...
Click to collapse
erlos said:
Add the red string under penwindow tweak and you unlock Multiwindows too
---------- Post added at 01:43 AM ---------- Previous post was at 01:42 AM ----------
Add the red string under penwindow tweak and you unlock Multiwindows too
Click to expand...
Click to collapse
would anything of this work with Waze?
valtersboze said:
would anything of this work with Waze?
Click to expand...
Click to collapse
?????
I did Not understand...
This is OLD tips on note 1
Inviato dal mio SM-N9005 utilizzando Tapatalk
erlos said:
?????
I did Not understand...
This is OLD tips on note 1
Click to expand...
Click to collapse
before i spend hours trying to figure out the apk tool - i wanted to ask if anyone has applied the penwindow/multiwindow tags to Waze apk and if it works. In city driving waze is critical to be open but it is waste of screen real estate to see just waze. i would like whatsapp or music apps open and visible too.
I Will be try later!
Inviato dal mio SM-N9005 utilizzando Tapatalk
nice work...
itworks thanks
What apps have you all tested this on? I'd like to try it on a confirmed app. I did this with one app already and the app runs normally but it is not showing up in my pen window list when I bring it up. I also tried setting it up for multiwindows but I don't know how to test that feature. Is there a way to bring up multiwindows without having to do it automatically? For example if I'm browsing on chrome and I want to pull up a dictionary app in the second window, is that possible and if so how?
Dewdropkorn said:
What apps have you all tested this on? I'd like to try it on a confirmed app. I did this with one app already and the app runs normally but it is not showing up in my pen window list when I bring it up. I also tried setting it up for multiwindows but I don't know how to test that feature. Is there a way to bring up multiwindows without having to do it automatically? For example if I'm browsing on chrome and I want to pull up a dictionary app in the second window, is that possible and if so how?
Click to expand...
Click to collapse
Allright..
If you made it right, app should show in penwindow menu and for multiwindow in the list when you open "multiwindow bar"
What program you used for editing .apk?
I did it this way (some apps still didn't work, but not sure why is that)
I downloaded APK Multi-Tool from bottom of first post http://forum.xda-developers.com/showthread.php?t=695701
Then: Enter 24 (Set current project) --> 9 (Decompile apk) --> Then I deleted the app from my phone --> Edited the AndroidManifest.xml --> 15 (compile apk / sign apk / install apk)
Now it install the app to phone
Okay then, there is typos in all post in this topic that should enable penwindow (at least didn't work for me before I corrected them)
If you watch close to (example those at first post) they got SPACE between "." and "P" --> "...category.(SPACE HERE)PENWINDOW..."
Same for another line "...multiwindow.(SPACE HERE)penwindow.enable"
APK Multi-Tool gave error to log and app didn't work before those SPACEs were removed.
Hmm.. When I was writing this post, I noticed that SPACE came there in post preview even it really wasn't in post?
It did same when I tried to put those lines in quote tags, so why is that?
Only way to get that one "automatic space" away from line was to put it in code tags
So try copying these to AndroidManifest.xml to enable both Penwindow and Multiwindow
Code:
<category android:name="com.samsung.android.intent.category.PENWINDOW_LAUNCHER" />
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
Code:
<meta-data android:name="com.samsung.android.sdk.multiwindow.penwindow.enable" android:value="true" />
<uses-library required="false" name="com.sec.android.app.multiwindow" />
<meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_ SIZE_W" android:value="632.0dip" />
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_ SIZE_H" android:value="598.0dip" />
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_ SIZE_W" android:value="632.0dip" />
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_ SIZE_H" android:value="598.0dip" />
Spere said:
Allright..
If you made it right, app should show in penwindow menu and for multiwindow in the list when you open "multiwindow bar"
What program you used for editing .apk?
I did it this way (some apps still didn't work, but not sure why is that)
I downloaded APK Multi-Tool from bottom of first post http://forum.xda-developers.com/showthread.php?t=695701
Then: Enter 24 (Set current project) --> 9 (Decompile apk) --> Then I deleted the app from my phone --> Edited the AndroidManifest.xml --> 15 (compile apk / sign apk / install apk)
Now it install the app to phone
Okay then, there is typos in all post in this topic that should enable penwindow (at least didn't work for me before I corrected them)
If you watch close to (example those at first post) they got SPACE between "." and "P" --> "...category.(SPACE HERE)PENWINDOW..."
Same for another line "...multiwindow.(SPACE HERE)penwindow.enable"
APK Multi-Tool gave error to log and app didn't work before those SPACEs were removed.
Hmm.. When I was writing this post, I noticed that SPACE came there in post preview even it really wasn't in post?
It did same when I tried to put those lines in quote tags, so why is that?
Only way to get that one "automatic space" away from line was to put it in code tags
So try copying these to AndroidManifest.xml to enable both Penwindow and Multiwindow
Code:
<category android:name="com.samsung.android.intent.category.PENWINDOW_LAUNCHER" />
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
Code:
<meta-data android:name="com.samsung.android.sdk.multiwindow.penwindow.enable" android:value="true" />
<uses-library required="false" name="com.sec.android.app.multiwindow" />
<meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_ SIZE_W" android:value="632.0dip" />
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_ SIZE_H" android:value="598.0dip" />
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_ SIZE_W" android:value="632.0dip" />
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_ SIZE_H" android:value="598.0dip" />
Click to expand...
Click to collapse
That's exactly what my problem was. Fixing the spaces caused the app to show up for both my Penwindow and my multiwindow. Thank you so much. I don't have the luxury of rooting and this was exactly what I needed for doing what I need for this phone for.:good:
Thanks
Sent from my SM-N900 using XDA Premium 4 mobile app
Dewdropkorn said:
That's exactly what my problem was. Fixing the spaces caused the app to show up for both my Penwindow and my multiwindow. Thank you so much. I don't have the luxury of rooting and this was exactly what I needed for doing what I need for this phone for.:good:
Click to expand...
Click to collapse
Nice to hear it works
Sent from my SM-N9005 using XDA Premium HD app
Has anyone done this with Spotify? I've successfully modded about 6 apps now but the .apk I recompiled and signed for Spotify has "parsing" errors when I try to installing it. Anyone else with better luck?

[Q&A] [Ubuntu Touch - Utopic][PORT]STOPED][Test-BUILD][2014-08-27] Ubuntu Touch for

[Q&A] [Ubuntu Touch - Utopic][PORT]STOPED][Test-BUILD][2014-08-27] Ubuntu Touch for
Q&A for [Ubuntu Touch - Utopic][PORT]STOPED][Test-BUILD][2014-08-27] Ubuntu Touch for falcon
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [Ubuntu Touch - Utopic][PORT]STOPED][Test-BUILD][2014-08-27] Ubuntu Touch for falcon. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Is there any way to flash the boot.img and system.img using multirom. I found about multirom installer (*.mrom files). But didn't had any luck with it.
I tried to compile the Android pieces on my own but I get an error with libmake_f2fs_intermediates:
make: *** No rule to make target `<.....>/out/target/product/falcon/obj/STATIC_LIBRARIES/libmake_f2fs_intermediates/export_includes', needed by `<.....>/out/target/product/falcon/obj/EXECUTABLES/recovery_intermediates/import_includes'. Stop.
I checked out the Ubuntu Touch code using Canonical's manifest. I did not use h2o64's manifest.
In my local manifest I added the CyanogenMod projects for falcon, as well as dependencies:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="git://github.com/" name="github" />
<project name="cyanogenmod/android_kernel_motorola_msm8226" path="kernel/motorola/msm8226" remote="github" revision="cm-11.0" />
<project name="cyanogenmod/android_device_motorola_falcon" path="device/motorola/falcon" remote="github" revision="cm-11.0" />
<project name="cyanogenmod/android_device_motorola_msm8226-common" path="device/motorola/msm8226-common" remote="github" revision="cm-11.0" />
<project name="cyanogenmod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-11.0" />
<project name="cyanogenmod/android_hardware_qcom_fm" path="hardware/qcom/fm" remote="github" revision="cm-11.0" />
<remove-project name="aosp/platform/hardware/qcom/display" />
<project name="cyanogenmod/android_hardware_qcom_display-caf-new" path="hardware/qcom/display-caf-new" remote="github" revision="cm-11.0" />
<remove-project name="aosp/platform/hardware/qcom/media" />
<project name="cyanogenmod/android_hardware_qcom_media-caf-new" path="hardware/qcom/media-caf-new" remote="github" revision="cm-11.0" />
</manifest>
Apart from that I did not make any changes. Just trying to get the sources compiled.
Can somebody tell me why I get this error and how to fix it?
The system is restarting all the time
I followed all the steps of the fórum and the system is restarting all the time
multirom
is it possible to install the ubuntu touch image via multirom manually?
Errors during build
I have finished downloading the sources including your local manifest. Now I am trying to build and will report some errors here. Once I have a successful build, I am happy to share logs (if accessible) and help debugging.
I directly encountered this error:
build/core/base_rules.mk:134: *** hardware/qcom/display/msm8x26/liblight: MODULE.TARGET.SHARED_LIBRARIES.lights.msm8226 already defined by device/motorola/falcon/liblight. Stop.
So I renamed old module to lights.msm8226.old
hardware/qcom/display/msm8x26/liblight/Android.mk:160:
LOCAL_MODULE := lights.$(TARGET_BOARD_PLATFORM).old
No the build process stops after only a few lines with:
make: *** No rule to make target `[...]/Ubuntu_Touch/out/target/product/falcon/kernel', needed by `prebuilt'. Stop.
---------- Post added at 07:50 PM ---------- Previous post was at 07:40 PM ----------
I also noticed that not all the dependent projects are added in the local manifest.
android_device_motorola_falcon
depends on
android_device_motorola_msm8226-common
depends on
android_device_qcom_common
android_kernel_motorola_msm8226
android_hardware_qcom_fm
android_hardware_qcom_display-caf-new
android_hardware_qcom_media-caf-new
Will add the missing ones and try to build again.
Edit: Just saw that you included the files already in device/motorola/falcon.
the_MUKe said:
I have finished downloading the sources including your local manifest. Now I am trying to build and will report some errors here. Once I have a successful build, I am happy to share logs (if accessible) and help debugging.
I directly encountered this error:
build/core/base_rules.mk:134: *** hardware/qcom/display/msm8x26/liblight: MODULE.TARGET.SHARED_LIBRARIES.lights.msm8226 already defined by device/motorola/falcon/liblight. Stop.
So I renamed old module to lights.msm8226.old
hardware/qcom/display/msm8x26/liblight/Android.mk:160:
LOCAL_MODULE := lights.$(TARGET_BOARD_PLATFORM).old
No the build process stops after only a few lines with:
make: *** No rule to make target `[...]/Ubuntu_Touch/out/target/product/falcon/kernel', needed by `prebuilt'. Stop.
---------- Post added at 07:50 PM ---------- Previous post was at 07:40 PM ----------
I also noticed that not all the dependent projects are added in the local manifest.
android_device_motorola_falcon
depends on
android_device_motorola_msm8226-common
depends on
android_device_qcom_common
android_kernel_motorola_msm8226
android_hardware_qcom_fm
android_hardware_qcom_display-caf-new
android_hardware_qcom_media-caf-new
Will add the missing ones and try to build again.
Edit: Just saw that you included the files already in device/motorola/falcon.
Click to expand...
Click to collapse
I'm fixing things guys
Wait
(I'll tell here when the major issues (building issues) are fixed
---------- Post added at 11:35 AM ---------- Previous post was at 11:27 AM ----------
the_MUKe said:
I tried to compile the Android pieces on my own but I get an error with libmake_f2fs_intermediates:
make: *** No rule to make target `<.....>/out/target/product/falcon/obj/STATIC_LIBRARIES/libmake_f2fs_intermediates/export_includes', needed by `<.....>/out/target/product/falcon/obj/EXECUTABLES/recovery_intermediates/import_includes'. Stop.
I checked out the Ubuntu Touch code using Canonical's manifest. I did not use h2o64's manifest.
In my local manifest I added the CyanogenMod projects for falcon, as well as dependencies:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="git://github.com/" name="github" />
<project name="cyanogenmod/android_kernel_motorola_msm8226" path="kernel/motorola/msm8226" remote="github" revision="cm-11.0" />
<project name="cyanogenmod/android_device_motorola_falcon" path="device/motorola/falcon" remote="github" revision="cm-11.0" />
<project name="cyanogenmod/android_device_motorola_msm8226-common" path="device/motorola/msm8226-common" remote="github" revision="cm-11.0" />
<project name="cyanogenmod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-11.0" />
<project name="cyanogenmod/android_hardware_qcom_fm" path="hardware/qcom/fm" remote="github" revision="cm-11.0" />
<remove-project name="aosp/platform/hardware/qcom/display" />
<project name="cyanogenmod/android_hardware_qcom_display-caf-new" path="hardware/qcom/display-caf-new" remote="github" revision="cm-11.0" />
<remove-project name="aosp/platform/hardware/qcom/media" />
<project name="cyanogenmod/android_hardware_qcom_media-caf-new" path="hardware/qcom/media-caf-new" remote="github" revision="cm-11.0" />
</manifest>
Apart from that I did not make any changes. Just trying to get the sources compiled.
Can somebody tell me why I get this error and how to fix it?
Click to expand...
Click to collapse
You forgot to add "CyanogenMod/android_external_f2fs-tools" revison cm-11.0
And include it in main.mk
KMSG log file
I hope it's useful.
Logfile is attached.
thx
omniaholic said:
I hope it's useful.
Logfile is attached.
thx
Click to expand...
Click to collapse
The last build is useless and outdated
But thank you for sending. I'll notificate you when a new build will come
Update on build process
First thanks for the responses. Indeed I forgot to add the subdir in main.mk before. However, now I making sure that all subdirs are included...
Just to inform you about what I have done so far. I started building based on the phablet repo and added my own local manifest (attached).
added device/motorola/falcon and dependencies
copied vendor/motorola from existing (and recent) CyanogenMod
added subdirs in build/core/main.mk
added external/f2fs-tools
removed APKs and JARs from vendor/motorola/msm8226-common/proprietary
replaced hardware/qcom/keymaster with CyanogenMod version (some error with original keymaster)
replaced all hardware/qcom project with CyanogenMod versions (helpful?)
Workaround: deleted gps from device/motorola/msm8226-common (libnativehelper would be required, plus several undeclared constants)
Workaround: force include of all subdirs in device/qcom/common/Android.mk (dtbToolCM is required)
Workaround: deleted power in device/qcom/common (some undeclared constants)
Now the build process runs through but there are errors with creating the recovery image and the boot image.
However, I noticed that h2o64 made some changes to android/system/core, in particular mkbootimg. So I will see if I can also use the CyanogenMod version here.
If anyone has better solutions for these Workaround items, please let me know.
the_MUKe said:
First thanks for the responses. Indeed I forgot to add the subdir in main.mk before. However, now I making sure that all subdirs are included...
Just to inform you about what I have done so far. I started building based on the phablet repo and added my own local manifest (attached).
added device/motorola/falcon and dependencies
copied vendor/motorola from existing (and recent) CyanogenMod
added subdirs in build/core/main.mk
added external/fsf2-tools
removed APKs and JARs from vendor/motorola/msm8226-common/proprietary
replaced hardware/qcom/keymaster with CyanogenMod version (some error with original keymaster)
replaced all hardware/qcom project with CyanogenMod versions (helpful?)
Workaround: deleted gps from device/motorola/msm8226-common (libnativehelper would be required, plus several undeclared constants)
Workaround: force include of all subdirs in device/qcom/common/Android.mk (dtbToolCM is required)
Workaround: deleted power in device/qcom/common (some undeclared constants)
Now the build process runs through but there are errors with creating the recovery image and the boot image.
However, I noticed that h2o64 made some changes to android/system/core, in particular mkbootimg. So I will see if I can also use the CyanogenMod version here.
If anyone has better solutions for these Workaround items, please let me know.
Click to expand...
Click to collapse
Changing hardware/qcom was a BIG mistake!
Revert it and try to change things line by line.
Anyway! Good job!
Accessing the boot log...
@h2o64: Great to hear that you made progress!
In my repo I managed to finish the build process. I flashed the boot.img and ran the rootstock-touch-install script without errors. I needed to raise the size of the ext4fs: make_ext4fs -l 256M $WORKDIR/system.img $TMPMOUNT
The 256M are just a value I put in there, no idea which value would be best.
Unfortunately, when booting the device, the screen remains at the Motorola logo.
I bootet into recovery and took the dmesg output. Not sure whether this also includes the previous boot log or only the log of booting into recovery...
In the Ubuntu Wiki in the Deprecated Porting Guide they suggest to look at /proc/last_kmsg
In the Debug section they also recommend to pass command line arguments to the kernel:
If you encounter initrd issues while booting you can add to your kernel boot arguments the following line "break=top"...
This should then pause the boot process and open an adb shell.
But in which file can I set the kernel arguments? There are several config files in the kernel directory...
Well, as soon as h2o64 has finished updating his repo, I will try with his local manifest. And then try to provide boot logs, etc.
the_MUKe said:
@h2o64: Great to hear that you made progress!
In my repo I managed to finish the build process. I flashed the boot.img and ran the rootstock-touch-install script without errors. I needed to raise the size of the ext4fs: make_ext4fs -l 256M $WORKDIR/system.img $TMPMOUNT
The 256M are just a value I put in there, no idea which value would be best.
Unfortunately, when booting the device, the screen remains at the Motorola logo.
I bootet into recovery and took the dmesg output. Not sure whether this also includes the previous boot log or only the log of booting into recovery...
In the Ubuntu Wiki in the Deprecated Porting Guide they suggest to look at /proc/last_kmsg
In the Debug section they also recommend to pass command line arguments to the kernel:
If you encounter initrd issues while booting you can add to your kernel boot arguments the following line "break=top"...
This should then pause the boot process and open an adb shell.
But in which file can I set the kernel arguments? There are several config files in the kernel directory...
Well, as soon as h2o64 has finished updating his repo, I will try with his local manifest. And then try to provide boot logs, etc.
Click to expand...
Click to collapse
You made a very impressive work
Last_kmsg is the best we can take... The kernel patch... Hmm... It's not fit me.
To be honest I'm kind of lazy xD
I need to redo the hardware qcom part..
Do you have hangout? We can talk about it with more serious details?
hardware/qcom projects
No, I don't use Hangouts. Maybe IRC might do?
But I am also fine to post the (bigger) issues here. Then also somebody else could possibly find a solution.
The hardware/qcom part seems to be indeed a bit tricky.
When using the projects from Ubuntu Touch repo, eventually some kernel headers cannot be found, e.g. a file inside hardware/qcom/display/... includes "linux/msm_ion.h" which cannot be found.
I tried manually setting the kernel_includes in hardware/qcom/display/msm8x26/common.mk: kernel_includes := kernel/motorola/msm8226/include
But this only leads to multiple C++ errors like: narrowing conversion of 'dst->copybit_image_t::w' from 'const uint32_t {aka const unsigned int}' to 'int' inside { } is ill-formed in C++11 [-Werror=narrowing]
Also the liblight module is duplicated (but one can easily be renamed).
These problems do not occur when using the corresponding projects from CyanogenMod instead.
I am still undecided whether to stick to the original Ubuntu Touch projects for hardware/qcom or better go consistently with all the hardware/qcom projects from CyanogenMod. Not sure which other interdependencies exist there...
the_MUKe said:
No, I don't use Hangouts. Maybe IRC might do?
But I am also fine to post the (bigger) issues here. Then also somebody else could possibly find a solution.
The hardware/qcom part seems to be indeed a bit tricky.
When using the projects from Ubuntu Touch repo, eventually some kernel headers cannot be found, e.g. a file inside hardware/qcom/display/... includes "linux/msm_ion.h" which cannot be found.
I tried manually setting the kernel_includes in hardware/qcom/display/msm8x26/common.mk: kernel_includes := kernel/motorola/msm8226/include
But this only leads to multiple C++ errors like: narrowing conversion of 'dst->copybit_image_t::w' from 'const uint32_t {aka const unsigned int}' to 'int' inside { } is ill-formed in C++11 [-Werror=narrowing]
Also the liblight module is duplicated (but one can easily be renamed).
These problems do not occur when using the corresponding projects from CyanogenMod instead.
I am still undecided whether to stick to the original Ubuntu Touch projects for hardware/qcom or better go consistently with all the hardware/qcom projects from CyanogenMod. Not sure which other interdependencies exist there...
Click to expand...
Click to collapse
I did fix it on the previous release. I'll do it again.
the_MUKe said:
No, I don't use Hangouts. Maybe IRC might do?
But I am also fine to post the (bigger) issues here. Then also somebody else could possibly find a solution.
The hardware/qcom part seems to be indeed a bit tricky.
When using the projects from Ubuntu Touch repo, eventually some kernel headers cannot be found, e.g. a file inside hardware/qcom/display/... includes "linux/msm_ion.h" which cannot be found.
I tried manually setting the kernel_includes in hardware/qcom/display/msm8x26/common.mk: kernel_includes := kernel/motorola/msm8226/include
But this only leads to multiple C++ errors like: narrowing conversion of 'dst->copybit_image_t::w' from 'const uint32_t {aka const unsigned int}' to 'int' inside { } is ill-formed in C++11 [-Werror=narrowing]
Also the liblight module is duplicated (but one can easily be renamed).
These problems do not occur when using the corresponding projects from CyanogenMod instead.
I am still undecided whether to stick to the original Ubuntu Touch projects for hardware/qcom or better go consistently with all the hardware/qcom projects from CyanogenMod. Not sure which other interdependencies exist there...
Click to expand...
Click to collapse
I start working back on it.
Check my github
Will download your .img files, flash them and provide my last_kmsg log.
Will probably also build it using your manifest - just to check if build goes through also on my machine (Ubuntu 14.04 64-bit).
I noticed in the recent log provided by Awesomeslayerg that the init process could not find a system partition:
[ 4.326129,1] initrd: Couldn't find a system partition.
It's towards the end of the log. There were a few other errors but this might be a critical one?
I also had this error with my previous build (when using all hardware/qcom projects from CyanogenMod).
And did you make any changes in the rootstock-touch-install script?
It will work on 5.0.1 lollipop bootloader??
Results with provided .img files
The recovery you provided is not working in my case - I get a blank screen. So I flashed back to TWRP.
I actually had the Ubuntu recovery (a reduced CWM with Ubuntu Logo) working when using all hardware/qcom projects from CyanogenMod.
I also flashed your boot.img and used the rootstock-touch-install script to get the system.img together with vivid files onto the phone. The script finished very fast but all steps were completed.
When booting up, the phone gets stuck while the Motorola logo is still showing.
So I rebooted into recovery and obtained the last_kmsg log (attached).
the_MUKe said:
The recovery you provided is not working in my case - I get a blank screen. So I flashed back to TWRP.
I actually had the Ubuntu recovery (a reduced CWM with Ubuntu Logo) working when using all hardware/qcom projects from CyanogenMod.
I also flashed your boot.img and used the rootstock-touch-install script to get the system.img together with vivid files onto the phone. The script finished very fast but all steps were completed.
When booting up, the phone gets stuck while the Motorola logo is still showing.
So I rebooted into recovery and obtained the last_kmsg log (attached).
Click to expand...
Click to collapse
Very nice.
Yeah... My hardware display & media are weirdly inconsistent... I'll redo them
Thanks for your report!
(please, speak on the main thread )
---------- Post added at 12:03 AM ---------- Previous post was at 12:03 AM ----------
ADr0n said:
It will work on 5.0.1 lollipop bootloader??
Click to expand...
Click to collapse
Nope

Building CM 13 CAF

Hello, I'm trying to build cm 13 caf rom myself (i have never done it before) and I'm following this guide. I have done everything to the step "download the source code" from https://github.com/CyanogenMod/android.git. Now I should "Prepare the device-specific code", but the guide is for hammerhead CM (non-caf) and, if I'm right, I should add some local_manifests but I have no idea of how to do this. (in fact if I type $ breakfast hammerheadcaf it starts downloading and then it says
** Don't have a product spec for: 'cm_hammerheadcaf'
** Do you have the right repo manifest?)
Can anyone explain it to me, please?
Hello apon97!
You can search the CAF thread a bit - a lot of question regarding building CyanogenMod for hammerheadcaf have been already covered there. However, the thread is huge and searching it is a pain in the b*tt sometimes so I'll try to help you here.
You have to know the following:
Downloading the source code will 'only' download the default projects. This usually takes a few hours to download depending on your internet connection. However, to build for a specific device (hammerheadcaf in this case) you also have to get two more things: It's dependencies (device- and kernel-tree) and the vendor proprietary files - usually simplified as 'blobs'.
So after you've downloaded the source code you don't have any local manifests. A simple 'breakfast hammerheadcaf' will look for cm.dependencies in the device-tree and automagically add these to your default local manifest (called 'roomservice.xml').
The proprietary stuff has to be manually added to the local manifest. Just open up /SOURCE/.repo/local_manifests.xml and you should see that the kernel and device tree is already there (because you breakfasted...). Now add another line for the blobs. These can be found on TheMuppets: github.com/TheMuppets/proprietary_vendor_lge
So your local manifest 'roomservice.xml' should look something similar to this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_lge_hammerheadcaf" path="device/lge/hammerheadcaf" remote="github" />
<project name="CyanogenMod/android_kernel_lge_hammerhead" path="kernel/lge/hammerhead" remote="github" revision="cm-13.0-caf" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="TheMuppets/proprietary_vendor_lge" path="vendor/lge" remote="github" />
</manifest>
PS: myfluxi updated the proprietary files for hammerheadcaf on his personal GitHub. You're free to use this project instead if you want to be up-to-date. However, he says that we don't need necessarily up-to-date blobs. Then the last project would look like this:
Code:
<project name="myfluxi/proprietary_vendor_lge" path="vendor/lge" remote="github" />
Now you have everything set up and ready to build CM13 CAF for the Nexus 5!
You don't have to go through this everytime you want to build. Next time just use
'repo sync'
'source build/envsetup.sh'
Optionally 'make clean' or 'make clobber' <- This will delete stuff from previous builds. Doing a clean build will take longer...
and finally...
'brunch hammerheadcaf'
Much fun building!
Everything looks clear. Yes, I have searched your thread but couldn't find the answer (maybe I could have tried a little more). I hope I will not have to bother you anymore
Thank for such a complete answer and for everything you do for our Nexus 5
Yeah I know, the thread is a bit messy but I can't do anything about it
Don't hesitate to ask if you need a bit more help

Reversing Alcatel upgrade software, explanation about flash needed

Hello
I was reversing s/w for upgread alcatel and I found some flash info but need some explanation
Code:
<?xml version="1.0" encoding="utf-8"?>
<GOTU><UPDATE_DESC>4</UPDATE_DESC><ENCODING_ERROR>0</ENCODING_ERROR>
<CUREF>6039H-2ATBPL7</CUREF>
<VERSION><TYPE>4</TYPE>
<FV>0000000</FV>
<TV>1ADHFPH1</TV>
<SVN>010 08P</SVN>
<RELEASE_INFO><year>2016</year><month>05</month><day>07</day><hour>01</hour><minute>32</minute><second>00</second><timezone>GMT 8</timezone><publisher>Auto Sync Tool</publisher></RELEASE_INFO></VERSION>
<FIRMWARE><FW_ID>156777</FW_ID>
<FILESET_COUNT>21</FILESET_COUNT>
<FILESET>
<FILE><FILENAME>x1a0fp01bq10.mbn</FILENAME><FILE_ID>107427</FILE_ID><SIZE>1072</SIZE><CHECKSUM>121a961f8b32c4e2924d2d1b0dde2e57bc8fef87</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>0</INDEX></FILE>
<FILE><FILENAME>g1adfph1bq10.mbn</FILENAME><FILE_ID>107421</FILE_ID><SIZE>16896</SIZE><CHECKSUM>6d1cc71c7687ba1b16835de8121e14daa61723bc</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>1</INDEX></FILE>
<FILE><FILENAME>B1ADH0H0BQ00.mbn</FILENAME><FILE_ID>107395</FILE_ID><SIZE>8081664</SIZE><CHECKSUM>756b23d2837e33bf8a312d8d645b88a63f04ba5b</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>2</INDEX></FILE>
<FILE><FILENAME>R1ADH0H0BQ00.mbn</FILENAME><FILE_ID>107403</FILE_ID><SIZE>8835328</SIZE><CHECKSUM>913a06b1e931e500d9f7cb949d9d7852b8dfacdc</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>3</INDEX></FILE>
<FILE><FILENAME>I1ADH0H0BQ00.mbn</FILENAME><FILE_ID>107399</FILE_ID><SIZE>6398160</SIZE><CHECKSUM>60e83567357ca8bdea1b19cf1db24a00af646ac6</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>4</INDEX></FILE>
<FILE><FILENAME>e1adfph1bq10.mbn</FILENAME><FILE_ID>107420</FILE_ID><SIZE>5530624</SIZE><CHECKSUM>f0f3b44bf4e77e5e1e43515bcc5b2e9bc056ce37</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>5</INDEX></FILE>
<FILE><FILENAME>o1adfph1bq10.mbn</FILENAME><FILE_ID>107423</FILE_ID><SIZE>17408</SIZE><CHECKSUM>1cac34f4e557c0016ef3f197aca0198c6f0d20bb</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>6</INDEX></FILE>
<FILE><FILENAME>u1adfph1bq10.mbn</FILENAME><FILE_ID>107426</FILE_ID><SIZE>86017444</SIZE><CHECKSUM>d19a56b02430ab85e263773c031258c85177d5e5</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>7</INDEX></FILE>
<FILE><FILENAME>W1ADH0H0BQ00.mbn</FILENAME><FILE_ID>107405</FILE_ID><SIZE>154708</SIZE><CHECKSUM>7947603a9168e08ff273de7d20dcf695090a5ebe</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>8</INDEX></FILE>
<FILE><FILENAME>J1ADH0H0BQ00.mbn</FILENAME><FILE_ID>107400</FILE_ID><SIZE>4927708</SIZE><CHECKSUM>09df1dddd576aa5a73610afd87eedf879bffc6de</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>9</INDEX></FILE>
<FILE><FILENAME>p1adfph1bq10.mbn</FILENAME><FILE_ID>107424</FILE_ID><SIZE>10487</SIZE><CHECKSUM>e003582e902d7454bd1c1cac02a8aab3d9c8b313</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>10</INDEX></FILE>
<FILE><FILENAME>n1adfph1bq10.mbn</FILENAME><FILE_ID>107422</FILE_ID><SIZE>53937664</SIZE><CHECKSUM>49f11324beed11a5a612ca9120404a792fa6d767</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>11</INDEX></FILE>
<FILE><FILENAME>D1ADH0H0BQ00.mbn</FILENAME><FILE_ID>107397</FILE_ID><SIZE>57344</SIZE><CHECKSUM>0f5962f6007ae0372712b6e1af9b66c3aa781885</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>12</INDEX></FILE>
<FILE><FILENAME>C1ADH0H0BQ00.mbn</FILENAME><FILE_ID>107396</FILE_ID><SIZE>262160</SIZE><CHECKSUM>90d0bcec0d83e9a2a7f539792d73368afda26c59</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>13</INDEX></FILE>
<FILE><FILENAME>s1adfph1bq10.mbn</FILENAME><FILE_ID>107425</FILE_ID><SIZE>1105920</SIZE><CHECKSUM>a43f8be29816b0436f0d676d9426a7016e849edf</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>14</INDEX></FILE>
<FILE><FILENAME>K1ADH0H0BQ00.mbn</FILENAME><FILE_ID>107401</FILE_ID><SIZE>80</SIZE><CHECKSUM>51b8848fbf5f5cec886c19a882fb2f4d1f196540</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>15</INDEX></FILE>
<FILE><FILENAME>y1adfph1bq10.mbn.zip</FILENAME><FILE_ID>107428</FILE_ID><SIZE>1125807599</SIZE><CHECKSUM>da9a6d7842f4557281c32ba33ec19dc4a6d0e1d3</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>16</INDEX></FILE>
<FILE><FILENAME>L1ADH0H0BQ00.mbn</FILENAME><FILE_ID>107402</FILE_ID><SIZE>518868</SIZE><CHECKSUM>db95d39b7245a20c6edb75fe47d638f17c00dad0</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>17</INDEX></FILE>
<FILE><FILENAME>T1ADH0H0BQ00.mbn</FILENAME><FILE_ID>107404</FILE_ID><SIZE>487564</SIZE><CHECKSUM>2588972c30bb3d6173cabd013e4f02b7f9979eae</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>18</INDEX></FILE>
<FILE><FILENAME>z1adfph1bq10.mbn</FILENAME><FILE_ID>107429</FILE_ID><SIZE>6266</SIZE><CHECKSUM>2cd0db3409eeec45f649ee081850071f71b4c8be</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>19</INDEX></FILE>
<FILE><FILENAME>F1ADH0H0BQ00.mbn</FILENAME><FILE_ID>107398</FILE_ID><SIZE>4579476</SIZE><CHECKSUM>178950e72c4579fee6d17a8b9e53e55fa6bb854e</CHECKSUM><FILE_VERSION>5</FILE_VERSION><INDEX>20</INDEX></FILE>
</FILESET></FIRMWARE><DESCRIPTION/></GOTU>
this file will be usefull ?

Whatsapp Enable Dark Mode

Whatsapp Enable Dark Mode for rooted device only.
This is for information only. Do it on your own risk.
Make sure you have a file explorer that supports root. If you don’t have much idea about this, suggest you download the*Solid Explorer File Manager*from Play Store. Now when you open the app, grant it root access by tapping Allow in the Magisk pop-up that appears.*
Open File Manager and head over to the root partition.*
Then go to*Data*>*Data*and navigate to the*com.whatsapp*folder.
Go to the*shared_prefs*folder and search for the*com.whatsapp_preferences.xml*file.
Now add the below lines to that xml file, anywhere inside the*<map>*and*</map>*tags. This one line of code is, in fact, responsible for enabling Dark Mode on WhatsApp on rooted Android devices.
<boolean name="dark_mode" value="true" />
Next, tap on the floppy icon to save the file. Now just force close WhatsApp and re-open it.
Finally, head over to*Settings. You could now see the*Theme*option, just beneath Account. Tap on it and select*Dark.
That’s it.
Tested in android 9 and 10.
Example how i added that line
<boolean name="move_media_folder_from_sister_app" value="true" />
<int name="web_service_delay" value="120" />
<boolean name="search_in_storage_usage" value="true" />
<boolean name="third_party_sticker_caching" value="true" />
<boolean name="auth_fingerprint_enabled" value="true" />
<boolean name="dark_mode" value="true" />
</map>
I hv added in last line...
For example
There's already a thread for this here:
https://forum.xda-developers.com/general/general/enable-dark-mode-whatsapp-root-twrp-t4017667
Please search before posting to avoid creating duplicate topics.
Thread closed.

Categories

Resources